]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure
Update configure deps, remove stray \xA0 in picflag.m4, regenerate
[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
c915a581 174test \$(( 1 + 1 )) = 2 || exit 1
f35db108
WM
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
c915a581 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
f35db108
WM
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
10189819 607SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
b0edd457 608TSAN_TARGET_DEPENDENT_OBJECTS
c915a581
JJ
609LIBBACKTRACE_SUPPORTED_FALSE
610LIBBACKTRACE_SUPPORTED_TRUE
d041a6fc 611RPC_DEFS
c915a581
JJ
612BACKTRACE_SUPPORTS_THREADS
613BACKTRACE_USES_MALLOC
614ALLOC_FILE
615VIEW_FILE
616BACKTRACE_SUPPORTED
617FORMAT_FILE
4a7eaf5f
YG
618SANITIZER_SUPPORTED_FALSE
619SANITIZER_SUPPORTED_TRUE
8c4d267c
KS
620USING_MAC_INTERPOSE_FALSE
621USING_MAC_INTERPOSE_TRUE
35814b03
JJ
622link_liblsan
623link_libubsan
624link_libtsan
625link_libasan
9065ada9
JJ
626LSAN_SUPPORTED_FALSE
627LSAN_SUPPORTED_TRUE
64548f3b
JJ
628TSAN_SUPPORTED_FALSE
629TSAN_SUPPORTED_TRUE
f35db108
WM
630enable_static
631enable_shared
632CXXCPP
f35db108
WM
633OTOOL64
634OTOOL
635LIPO
636NMEDIT
637DSYMUTIL
f35db108 638AR
f35db108
WM
639OBJDUMP
640LN_S
641NM
642ac_ct_DUMPBIN
643DUMPBIN
644LD
645FGREP
f35db108 646SED
f35db108 647LIBTOOL
c915a581 648RANLIB
f35db108
WM
649am__fastdepCCAS_FALSE
650am__fastdepCCAS_TRUE
651CCASDEPMODE
652CCASFLAGS
653CCAS
654am__fastdepCXX_FALSE
655am__fastdepCXX_TRUE
656CXXDEPMODE
657ac_ct_CXX
658CXXFLAGS
659CXX
c915a581
JJ
660toolexeclibdir
661toolexecdir
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
f35db108
WM
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
f3915b42 668am__nodep
f35db108
WM
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
f35db108
WM
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
e1e953d9 698LIBSTDCXX_RAW_CXX_LDFLAGS
d10a2df2
L
699LIBSTDCXX_RAW_CXX_CXXFLAGS
700target_noncanonical
2a6346c4
L
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
c915a581
JJ
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
94213c10 723multi_basedir
f35db108
WM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
94213c10 765enable_multilib
2a6346c4 766enable_version_specific_runtime_libs
c915a581 767enable_dependency_tracking
2b723e21 768enable_maintainer_mode
f35db108
WM
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
f35db108
WM
774enable_libtool_lock
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
c915a581 784CPP
f35db108
WM
785CXX
786CXXFLAGS
787CCC
788CCAS
789CCASFLAGS
f35db108
WM
790CXXCPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
a2479b3d
L
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
f35db108
WM
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 899 as_fn_error "invalid feature name: $ac_useropt"
f35db108
WM
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 925 as_fn_error "invalid feature name: $ac_useropt"
f35db108
WM
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 1129 as_fn_error "invalid package name: $ac_useropt"
f35db108
WM
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 1145 as_fn_error "invalid package name: $ac_useropt"
f35db108
WM
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
a2479b3d
L
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information."
f35db108
WM
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
a2479b3d 1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
f35db108
WM
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
a2479b3d 1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
f35db108
WM
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
a2479b3d 1202 as_fn_error "missing argument to $ac_option"
f35db108
WM
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
a2479b3d 1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
f35db108
WM
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
a2479b3d 1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
f35db108
WM
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
a2479b3d
L
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
f35db108
WM
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
a2479b3d 1261 as_fn_error "working directory cannot be determined"
f35db108 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
a2479b3d 1263 as_fn_error "pwd does not report name of working directory"
f35db108
WM
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
a2479b3d 1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
f35db108
WM
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
a2479b3d 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
f35db108
WM
1307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
a2479b3d 1346 -q, --quiet, --silent do not print \`checking...' messages
f35db108
WM
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2a6346c4 1397 --target=TARGET configure for building compilers for TARGET [HOST]
f35db108
WM
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of package-unused version-unused:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
94213c10 1411 --enable-multilib build many library versions (default)
2a6346c4 1412 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
c915a581
JJ
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
2b723e21
TT
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
f35db108
WM
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422
1423Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a2479b3d 1426 --with-pic try to use only PIC/non-PIC objects [default=use
f35db108
WM
1427 both]
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
f35db108
WM
1429
1430Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
a2479b3d 1436 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
f35db108 1437 you have headers in a nonstandard directory <include dir>
c915a581 1438 CPP C preprocessor
f35db108
WM
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CCAS assembler compiler command (defaults to CC)
1442 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
f35db108
WM
1443 CXXCPP C++ preprocessor
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
1448Report bugs to <libsanitizer>.
1449_ACEOF
1450ac_status=$?
1451fi
1452
1453if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1460
1461case "$ac_dir" in
1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463*)
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471esac
1472ac_abs_top_builddir=$ac_pwd
1473ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474# for backward compatibility:
1475ac_top_builddir=$ac_top_build_prefix
1476
1477case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490esac
1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1506fi
1507
1508test -n "$ac_init_help" && exit $ac_status
1509if $ac_init_version; then
1510 cat <<\_ACEOF
1511package-unused configure version-unused
a2479b3d 1512generated by GNU Autoconf 2.64
f35db108 1513
a2479b3d 1514Copyright (C) 2009 Free Software Foundation, Inc.
f35db108
WM
1515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
1518 exit
1519fi
1520
1521## ------------------------ ##
1522## Autoconf initialization. ##
1523## ------------------------ ##
1524
1525# ac_fn_c_try_compile LINENO
1526# --------------------------
1527# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_compile ()
1529{
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1545 fi
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552else
1553 $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556 ac_retval=1
1557fi
a2479b3d
L
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
f35db108
WM
1560
1561} # ac_fn_c_try_compile
1562
c915a581
JJ
1563# ac_fn_c_try_cpp LINENO
1564# ----------------------
1565# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_cpp ()
f35db108
WM
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1569 if { { ac_try="$ac_cpp conftest.$ac_ext"
f35db108
WM
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
c915a581 1576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
f35db108
WM
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1584 test $ac_status = 0; } >/dev/null && {
1585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
f35db108 1586 test ! -s conftest.err
c915a581 1587 }; then :
f35db108
WM
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
c915a581 1593 ac_retval=1
f35db108 1594fi
a2479b3d
L
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
f35db108 1597
c915a581 1598} # ac_fn_c_try_cpp
f35db108 1599
c915a581
JJ
1600# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603# the include files in INCLUDES and setting the cache variable VAR
1604# accordingly.
1605ac_fn_c_check_header_mongrel ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612 $as_echo_n "(cached) " >&6
1613fi
1614eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617else
1618 # Is the header compilable?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620$as_echo_n "checking $2 usability... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h. */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627 ac_header_compiler=yes
1628else
1629 ac_header_compiler=no
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633$as_echo "$ac_header_compiler" >&6; }
1634
1635# Is the header present?
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637$as_echo_n "checking $2 presence... " >&6; }
1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h. */
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_cpp "$LINENO"; then :
1643 ac_header_preproc=yes
1644else
1645 ac_header_preproc=no
1646fi
1647rm -f conftest.err conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649$as_echo "$ac_header_preproc" >&6; }
1650
1651# So? What about this header?
1652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653 yes:no: )
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 ;;
1659 no:yes:* )
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1663$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1667$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670( cat <<\_ASBOX
1671## --------------------------- ##
1672## Report this to libsanitizer ##
1673## --------------------------- ##
1674_ASBOX
1675 ) | sed "s/^/$as_me: WARNING: /" >&2
1676 ;;
1677esac
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
1680if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681 $as_echo_n "(cached) " >&6
1682else
1683 eval "$3=\$ac_header_compiler"
1684fi
1685eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690
1691} # ac_fn_c_check_header_mongrel
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
f35db108
WM
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f35db108
WM
1700 if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
c915a581 1707 (eval "$ac_link") 2>&5
f35db108 1708 ac_status=$?
f35db108 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
f35db108
WM
1721 ac_retval=0
1722else
c915a581
JJ
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
c915a581 1727 ac_retval=$ac_status
f35db108 1728fi
f35db108 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
f35db108 1732
c915a581 1733} # ac_fn_c_try_run
f35db108
WM
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
a2479b3d 1744if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
1745 $as_echo_n "(cached) " >&6
1746else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
a2479b3d 1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
f35db108
WM
1763
1764} # ac_fn_c_check_header_compile
1765
c915a581
JJ
1766# ac_fn_cxx_try_compile LINENO
1767# ----------------------------
1768# Try to compile conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_cxx_try_compile ()
f35db108
WM
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581
JJ
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
f35db108
WM
1774case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
c915a581 1780 (eval "$ac_compile") 2>conftest.err
f35db108
WM
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
f35db108 1790 test ! -s conftest.err
c915a581 1791 } && test -s conftest.$ac_objext; then :
f35db108
WM
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
c915a581 1797 ac_retval=1
f35db108 1798fi
a2479b3d
L
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
f35db108 1801
c915a581 1802} # ac_fn_cxx_try_compile
f35db108 1803
c915a581
JJ
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
f35db108
WM
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c915a581 1810 rm -f conftest.$ac_objext conftest$ac_exeext
f35db108
WM
1811 if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
c915a581 1818 (eval "$ac_link") 2>conftest.err
f35db108 1819 ac_status=$?
c915a581
JJ
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
f35db108 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 $as_test_x conftest$ac_exeext
1832 }; then :
f35db108
WM
1833 ac_retval=0
1834else
c915a581 1835 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
c915a581 1838 ac_retval=1
f35db108 1839fi
c915a581
JJ
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
f35db108 1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
f35db108 1847
c915a581 1848} # ac_fn_c_try_link
f35db108
WM
1849
1850# ac_fn_c_check_func LINENO FUNC VAR
1851# ----------------------------------
1852# Tests whether FUNC exists, setting the cache variable VAR accordingly
1853ac_fn_c_check_func ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
a2479b3d 1858if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
1859 $as_echo_n "(cached) " >&6
1860else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1865#define $2 innocuous_$2
1866
1867/* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $2 (); below.
1869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870 <limits.h> exists even on freestanding compilers. */
1871
1872#ifdef __STDC__
1873# include <limits.h>
1874#else
1875# include <assert.h>
1876#endif
1877
1878#undef $2
1879
1880/* Override any GCC internal prototype to avoid an error.
1881 Use char because int might match the return type of a GCC
1882 builtin and then its argument prototype would still apply. */
1883#ifdef __cplusplus
1884extern "C"
1885#endif
1886char $2 ();
1887/* The GNU C library defines this for functions which it implements
1888 to always fail with ENOSYS. Some functions are actually named
1889 something starting with __ and the normal name is an alias. */
1890#if defined __stub_$2 || defined __stub___$2
1891choke me
1892#endif
1893
1894int
1895main ()
1896{
1897return $2 ();
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_link "$LINENO"; then :
1903 eval "$3=yes"
1904else
1905 eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext \
1908 conftest$ac_exeext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
a2479b3d 1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
f35db108
WM
1914
1915} # ac_fn_c_check_func
1916
1917# ac_fn_cxx_try_cpp LINENO
1918# ------------------------
1919# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1920ac_fn_cxx_try_cpp ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2479b3d 1938 test $ac_status = 0; } >/dev/null && {
f35db108
WM
1939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 }; then :
1942 ac_retval=0
1943else
1944 $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948fi
a2479b3d
L
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 return $ac_retval
f35db108
WM
1951
1952} # ac_fn_cxx_try_cpp
1953
1954# ac_fn_cxx_try_link LINENO
1955# -------------------------
1956# Try to link conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_link ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest$ac_exeext
1961 if { { ac_try="$ac_link"
1962case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest$ac_exeext && {
1980 test "$cross_compiling" = yes ||
1981 $as_test_x conftest$ac_exeext
1982 }; then :
1983 ac_retval=0
1984else
1985 $as_echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988 ac_retval=1
1989fi
1990 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992 # interfere with the next link command; also delete a directory that is
1993 # left behind by Apple's compiler. We do this before executing the actions.
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
f35db108
WM
1997
1998} # ac_fn_cxx_try_link
64548f3b
JJ
1999
2000# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001# --------------------------------------------
2002# Tries to find the compile-time value of EXPR in a program that includes
2003# INCLUDES, setting VAR accordingly. Returns whether the value could be
2004# computed
2005ac_fn_c_compute_int ()
2006{
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if test "$cross_compiling" = yes; then
2009 # Depending upon the size, compute the lo and hi bounds.
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016static int test_array [1 - 2 * !(($2) >= 0)];
2017test_array [0] = 0
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_lo=0 ac_mid=0
2025 while :; do
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029int
2030main ()
2031{
2032static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033test_array [0] = 0
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=$ac_mid; break
2041else
2042 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043 if test $ac_lo -le $ac_mid; then
2044 ac_lo= ac_hi=
2045 break
2046 fi
2047 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 done
2051else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) < 0)];
2059test_array [0] = 0
2060
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_hi=-1 ac_mid=-1
2067 while :; do
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075test_array [0] = 0
2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=$ac_mid; break
2083else
2084 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085 if test $ac_mid -le $ac_hi; then
2086 ac_lo= ac_hi=
2087 break
2088 fi
2089 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093else
2094 ac_lo= ac_hi=
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099# Binary search between lo and hi bounds.
2100while test "x$ac_lo" != "x$ac_hi"; do
2101 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109test_array [0] = 0
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=$ac_mid
2117else
2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121done
2122case $ac_lo in #((
2123?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2124'') ac_retval=1 ;;
2125esac
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130static long int longval () { return $2; }
2131static unsigned long int ulongval () { return $2; }
2132#include <stdio.h>
2133#include <stdlib.h>
2134int
2135main ()
2136{
2137
2138 FILE *f = fopen ("conftest.val", "w");
2139 if (! f)
2140 return 1;
2141 if (($2) < 0)
2142 {
2143 long int i = longval ();
2144 if (i != ($2))
2145 return 1;
2146 fprintf (f, "%ld", i);
2147 }
2148 else
2149 {
2150 unsigned long int i = ulongval ();
2151 if (i != ($2))
2152 return 1;
2153 fprintf (f, "%lu", i);
2154 }
2155 /* Do not output a trailing newline, as this causes \r\n confusion
2156 on some platforms. */
2157 return ferror (f) || fclose (f) != 0;
2158
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_run "$LINENO"; then :
2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2165else
2166 ac_retval=1
2167fi
2168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
2170rm -f conftest.val
2171
2172 fi
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2175
2176} # ac_fn_c_compute_int
f35db108 2177
c915a581
JJ
2178# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2179# -------------------------------------------
2180# Tests whether TYPE exists after having included INCLUDES, setting cache
2181# variable VAR accordingly.
2182ac_fn_c_check_type ()
f35db108 2183{
c915a581
JJ
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186$as_echo_n "checking for $2... " >&6; }
2187if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189else
2190 eval "$3=no"
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h. */
2193$4
2194int
2195main ()
2196{
2197if (sizeof ($2))
2198 return 0;
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207int
2208main ()
2209{
2210if (sizeof (($2)))
2211 return 0;
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217
2218else
2219 eval "$3=yes"
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229
2230} # ac_fn_c_check_type
2231
2232# ac_fn_c_check_decl LINENO SYMBOL VAR
2233# ------------------------------------
2234# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235ac_fn_c_check_decl ()
2236{
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 as_decl_name=`echo $2|sed 's/ *(.*//'`
2239 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h. */
2247$4
2248int
2249main ()
2250{
2251#ifndef $as_decl_name
2252#ifdef __cplusplus
2253 (void) $as_decl_use;
2254#else
2255 (void) $as_decl_name;
2256#endif
2257#endif
2258
2259 ;
2260 return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264 eval "$3=yes"
2265else
2266 eval "$3=no"
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269fi
2270eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272$as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275} # ac_fn_c_check_decl
2276cat >config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by package-unused $as_me version-unused, which was
2281generated by GNU Autoconf 2.64. Invocation command line was
2282
2283 $ $0 $@
2284
2285_ACEOF
2286exec 5>>config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2301
2302/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2303/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f35db108
WM
2305/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2306/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2307/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2308/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 $as_echo "PATH: $as_dir"
2318 done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344 for ac_arg
2345 do
2346 case $ac_arg in
2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349 | -silent | --silent | --silen | --sile | --sil)
2350 continue ;;
2351 *\'*)
2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 esac
2354 case $ac_pass in
2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356 2)
2357 as_fn_append ac_configure_args1 " '$ac_arg'"
2358 if test $ac_must_keep_next = true; then
2359 ac_must_keep_next=false # Got value, back to normal.
2360 else
2361 case $ac_arg in
2362 *=* | --config-cache | -C | -disable-* | --disable-* \
2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365 | -with-* | --with-* | -without-* | --without-* | --x)
2366 case "$ac_configure_args0 " in
2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 esac
2369 ;;
2370 -* ) ac_must_keep_next=true ;;
2371 esac
2372 fi
2373 as_fn_append ac_configure_args " '$ac_arg'"
2374 ;;
2375 esac
2376 done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log. We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387 # Save into config.log some information that might help in debugging.
2388 {
2389 echo
2390
a2479b3d
L
2391 cat <<\_ASBOX
2392## ---------------- ##
f35db108 2393## Cache variables. ##
a2479b3d
L
2394## ---------------- ##
2395_ASBOX
f35db108
WM
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2398(
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2421 *)
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 ;;
2424 esac |
2425 sort
2426)
2427 echo
2428
a2479b3d
L
2429 cat <<\_ASBOX
2430## ----------------- ##
f35db108 2431## Output variables. ##
a2479b3d
L
2432## ----------------- ##
2433_ASBOX
f35db108
WM
2434 echo
2435 for ac_var in $ac_subst_vars
2436 do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2444
2445 if test -n "$ac_subst_files"; then
a2479b3d
L
2446 cat <<\_ASBOX
2447## ------------------- ##
f35db108 2448## File substitutions. ##
a2479b3d
L
2449## ------------------- ##
2450_ASBOX
f35db108
WM
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
a2479b3d
L
2464 cat <<\_ASBOX
2465## ----------- ##
f35db108 2466## confdefs.h. ##
a2479b3d
L
2467## ----------- ##
2468_ASBOX
f35db108
WM
2469 echo
2470 cat confdefs.h
2471 echo
2472 fi
2473 test "$ac_signal" != 0 &&
2474 $as_echo "$as_me: caught signal $ac_signal"
2475 $as_echo "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2480' 0
2481for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483done
2484ac_signal=0
2485
2486# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487rm -f -r conftest* confdefs.h
2488
2489$as_echo "/* confdefs.h */" > confdefs.h
2490
2491# Predefined preprocessor variables.
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_NAME "$PACKAGE_NAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_STRING "$PACKAGE_STRING"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_URL "$PACKAGE_URL"
2515_ACEOF
2516
2517
2518# Let the site file select an alternate cache file if it wants to.
2519# Prefer an explicitly selected file to automatically selected ones.
2520ac_site_file1=NONE
2521ac_site_file2=NONE
2522if test -n "$CONFIG_SITE"; then
a2479b3d 2523 ac_site_file1=$CONFIG_SITE
f35db108
WM
2524elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2527else
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2530fi
2531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532do
2533 test "x$ac_site_file" = xNONE && continue
a2479b3d 2534 if test -r "$ac_site_file"; then
f35db108
WM
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
a2479b3d 2538 . "$ac_site_file"
f35db108
WM
2539 fi
2540done
2541
2542if test -r "$cache_file"; then
a2479b3d
L
2543 # Some versions of bash will fail to source /dev/null (special
2544 # files actually), so we avoid doing that.
2545 if test -f "$cache_file"; then
f35db108
WM
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547$as_echo "$as_me: loading cache $cache_file" >&6;}
2548 case $cache_file in
2549 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550 *) . "./$cache_file";;
2551 esac
2552 fi
2553else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555$as_echo "$as_me: creating cache $cache_file" >&6;}
2556 >$cache_file
2557fi
2558
2559# Check that the precious variables saved in the cache have kept the same
2560# value.
2561ac_cache_corrupted=false
2562for ac_var in $ac_precious_vars; do
2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564 eval ac_new_set=\$ac_env_${ac_var}_set
2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566 eval ac_new_val=\$ac_env_${ac_var}_value
2567 case $ac_old_set,$ac_new_set in
2568 set,)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,set)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,);;
2577 *)
2578 if test "x$ac_old_val" != "x$ac_new_val"; then
2579 # differences in whitespace do not lead to failure.
2580 ac_old_val_w=`echo x $ac_old_val`
2581 ac_new_val_w=`echo x $ac_new_val`
2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585 ac_cache_corrupted=:
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589 eval $ac_var=\$ac_old_val
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 fi;;
2596 esac
2597 # Pass precious variables to config.status.
2598 if test "$ac_new_set" = set; then
2599 case $ac_new_val in
2600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601 *) ac_arg=$ac_var=$ac_new_val ;;
2602 esac
2603 case " $ac_configure_args " in
2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 esac
2607 fi
2608done
2609if $ac_cache_corrupted; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a2479b3d 2614 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
f35db108
WM
2615fi
2616## -------------------- ##
2617## Main body of script. ##
2618## -------------------- ##
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
a2479b3d
L
2628
2629
2630
4053ca2c 2631
94213c10
MK
2632# Default to --enable-multilib
2633# Check whether --enable-multilib was given.
2634if test "${enable_multilib+set}" = set; then :
2635 enableval=$enable_multilib; case "$enableval" in
2636 yes) multilib=yes ;;
2637 no) multilib=no ;;
2638 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2639 esac
2640else
2641 multilib=yes
2642fi
2643
2644
2645# We may get other options which we leave undocumented:
2646# --with-target-subdir, --with-multisrctop, --with-multisubdir
2647# See config-ml.in if you want the gory details.
2648
2649if test "$srcdir" = "."; then
2650 if test "$with_target_subdir" != "."; then
2651 multi_basedir="$srcdir/$with_multisrctop../.."
2652 else
2653 multi_basedir="$srcdir/$with_multisrctop.."
2654 fi
2655else
2656 multi_basedir="$srcdir/.."
2657fi
2658
2659
2660# Even if the default multilib is not a cross compilation,
2661# it may be that some of the other multilibs are.
2662if test $cross_compiling = no && test $multilib = yes \
2663 && test "x${with_multisubdir}" != x ; then
2664 cross_compiling=maybe
2665fi
2666
2667ac_config_commands="$ac_config_commands default-1"
2668
2669
2a6346c4
L
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2671$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2672# Check whether --enable-version-specific-runtime-libs was given.
2673if test "${enable_version_specific_runtime_libs+set}" = set; then :
2674 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2675 yes) version_specific_libs=yes ;;
2676 no) version_specific_libs=no ;;
2677 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2678 esac
2679else
2680 version_specific_libs=no
2681fi
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2684$as_echo "$version_specific_libs" >&6; }
2685
c915a581
JJ
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if test "${ac_cv_prog_CC+set}" = set; then :
2a6346c4
L
2697 $as_echo_n "(cached) " >&6
2698else
c915a581
JJ
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714 done
2715IFS=$as_save_IFS
2a6346c4
L
2716
2717fi
c915a581
JJ
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722$as_echo "$CC" >&6; }
2723else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2a6346c4
L
2727
2728
c915a581
JJ
2729fi
2730if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733set dummy gcc; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2a6346c4
L
2737 $as_echo_n "(cached) " >&6
2738else
c915a581
JJ
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2a6346c4 2741else
c915a581
JJ
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_ac_ct_CC="gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753done
2754 done
2755IFS=$as_save_IFS
2a6346c4
L
2756
2757fi
c915a581
JJ
2758fi
2759ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760if test -n "$ac_ct_CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762$as_echo "$ac_ct_CC" >&6; }
2763else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775ac_tool_warned=yes ;;
2a6346c4 2776esac
c915a581
JJ
2777 CC=$ac_ct_CC
2778 fi
2779else
2780 CC="$ac_cv_prog_CC"
2781fi
2a6346c4 2782
c915a581
JJ
2783if test -z "$CC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}cc; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if test "${ac_cv_prog_CC+set}" = set; then :
2a6346c4
L
2790 $as_echo_n "(cached) " >&6
2791else
c915a581
JJ
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2a6346c4 2794else
c915a581
JJ
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="${ac_tool_prefix}cc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806done
2807 done
2808IFS=$as_save_IFS
2a6346c4
L
2809
2810fi
c915a581
JJ
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815$as_echo "$CC" >&6; }
2816else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
e1e953d9 2820
d10a2df2 2821
c915a581
JJ
2822 fi
2823fi
2824if test -z "$CC"; then
2825 # Extract the first word of "cc", so it can be a program name with args.
2826set dummy cc; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2831else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834else
2835 ac_prog_rejected=no
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2844 ac_prog_rejected=yes
2845 continue
2846 fi
2847 ac_cv_prog_CC="cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852 done
2853IFS=$as_save_IFS
d10a2df2 2854
c915a581
JJ
2855if test $ac_prog_rejected = yes; then
2856 # We found a bogon in the path, so make sure we never use it.
2857 set dummy $ac_cv_prog_CC
2858 shift
2859 if test $# != 0; then
2860 # We chose a different compiler from the bogus one.
2861 # However, it has the same basename, so the bogon will be chosen
2862 # first if we set CC to just the basename; use the full file name.
2863 shift
2864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2865 fi
2866fi
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872$as_echo "$CC" >&6; }
2873else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2a6346c4 2877
2a6346c4 2878
c915a581
JJ
2879fi
2880if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in cl.exe
2883 do
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
2889 $as_echo_n "(cached) " >&6
2890else
c915a581
JJ
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f35db108
WM
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
c915a581
JJ
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
f35db108
WM
2906 done
2907IFS=$as_save_IFS
2908
f35db108 2909fi
f35db108 2910fi
c915a581
JJ
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
f35db108 2915else
c915a581
JJ
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
f35db108 2918fi
f35db108 2919
f35db108 2920
c915a581
JJ
2921 test -n "$CC" && break
2922 done
f35db108 2923fi
c915a581
JJ
2924if test -z "$CC"; then
2925 ac_ct_CC=$CC
2926 for ac_prog in cl.exe
2927do
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929set dummy $ac_prog; ac_word=$2
f35db108
WM
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
c915a581 2932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f35db108
WM
2933 $as_echo_n "(cached) " >&6
2934else
c915a581
JJ
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 2945 ac_cv_prog_ac_ct_CC="$ac_prog"
f35db108
WM
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950 done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
c915a581
JJ
2955ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956if test -n "$ac_ct_CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
c915a581 2965 test -n "$ac_ct_CC" && break
f35db108 2966done
f35db108 2967
c915a581
JJ
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
f35db108
WM
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972yes:)
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975ac_tool_warned=yes ;;
2976esac
c915a581 2977 CC=$ac_ct_CC
f35db108 2978 fi
f35db108
WM
2979fi
2980
2981fi
f35db108 2982
f35db108 2983
c915a581
JJ
2984test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986as_fn_error "no acceptable C compiler found in \$PATH
2987See \`config.log' for more details." "$LINENO" 5; }
f35db108 2988
c915a581
JJ
2989# Provide some information about the compiler.
2990$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991set X $ac_compile
2992ac_compiler=$2
2993for ac_option in --version -v -V -qversion; do
2994 { { ac_try="$ac_compiler $ac_option >&5"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000$as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3002 ac_status=$?
3003 if test -s conftest.err; then
3004 sed '10a\
3005... rest of stderr output deleted ...
3006 10q' conftest.err >conftest.er1
3007 cat conftest.er1 >&5
3008 rm -f conftest.er1 conftest.err
f35db108 3009 fi
c915a581
JJ
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012done
f35db108 3013
c915a581
JJ
3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h. */
f35db108 3016
c915a581
JJ
3017int
3018main ()
3019{
f35db108 3020
c915a581
JJ
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025ac_clean_files_save=$ac_clean_files
3026ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3027# Try to create an executable without -o first, disregard a.out.
3028# It will help us diagnose broken compilers, and finding out an intuition
3029# of exeext.
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031$as_echo_n "checking for C compiler default output file name... " >&6; }
3032ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f35db108 3033
c915a581
JJ
3034# The possible output files:
3035ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
f35db108 3036
c915a581
JJ
3037ac_rmfiles=
3038for ac_file in $ac_files
3039do
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043 esac
f35db108 3044done
c915a581 3045rm -f $ac_rmfiles
f35db108 3046
c915a581
JJ
3047if { { ac_try="$ac_link_default"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
f35db108 3051esac
c915a581
JJ
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link_default") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3059# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3060# in a Makefile. We should not override ac_cv_exeext if it was cached,
3061# so that the user can short-circuit this test for compilers unknown to
3062# Autoconf.
3063for ac_file in $ac_files ''
3064do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068 ;;
3069 [ab].out )
3070 # We found the default executable, but exeext='' is most
3071 # certainly right.
3072 break;;
3073 *.* )
3074 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3075 then :; else
3076 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 fi
3078 # We set ac_cv_exeext here because the later test for it is not
3079 # safe: cross compilers may not add the suffix if given an `-o'
3080 # argument, so we may need to know it at that point already.
3081 # Even if this section looks crufty: it has the advantage of
3082 # actually working.
3083 break;;
3084 * )
3085 break;;
3086 esac
3087done
3088test "$ac_cv_exeext" = no && ac_cv_exeext=
f35db108 3089
f35db108 3090else
c915a581 3091 ac_file=''
f35db108 3092fi
c915a581
JJ
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094$as_echo "$ac_file" >&6; }
3095if test -z "$ac_file"; then :
3096 $as_echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
f35db108 3098
c915a581
JJ
3099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101{ as_fn_set_status 77
3102as_fn_error "C compiler cannot create executables
3103See \`config.log' for more details." "$LINENO" 5; }; }
f35db108 3104fi
c915a581 3105ac_exeext=$ac_cv_exeext
f35db108 3106
c915a581
JJ
3107# Check that the compiler produces executables we can run. If not, either
3108# the compiler is broken, or we cross compile.
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110$as_echo_n "checking whether the C compiler works... " >&6; }
3111# If not cross compiling, check that we can run a simple program.
3112if test "$cross_compiling" != yes; then
3113 if { ac_try='./$ac_file'
3114 { { case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; }; then
3124 cross_compiling=no
f35db108 3125 else
c915a581
JJ
3126 if test "$cross_compiling" = maybe; then
3127 cross_compiling=yes
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error "cannot run C compiled programs.
3132If you meant to cross compile, use \`--host'.
3133See \`config.log' for more details." "$LINENO" 5; }
3134 fi
f35db108
WM
3135 fi
3136fi
c915a581
JJ
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138$as_echo "yes" >&6; }
f35db108 3139
c915a581
JJ
3140rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3141ac_clean_files=$ac_clean_files_save
3142# Check that the compiler produces executables we can run. If not, either
3143# the compiler is broken, or we cross compile.
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3145$as_echo_n "checking whether we are cross compiling... " >&6; }
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3147$as_echo "$cross_compiling" >&6; }
f35db108 3148
c915a581
JJ
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150$as_echo_n "checking for suffix of executables... " >&6; }
3151if { { ac_try="$ac_link"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164# work properly (i.e., refer to `conftest.exe'), while it won't with
3165# `rm'.
3166for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174done
3175else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error "cannot compute suffix of executables: cannot compile and link
3179See \`config.log' for more details." "$LINENO" 5; }
3180fi
3181rm -f conftest$ac_cv_exeext
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183$as_echo "$ac_cv_exeext" >&6; }
f35db108 3184
c915a581
JJ
3185rm -f conftest.$ac_ext
3186EXEEXT=$ac_cv_exeext
3187ac_exeext=$EXEEXT
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3189$as_echo_n "checking for suffix of object files... " >&6; }
3190if test "${ac_cv_objext+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h. */
f35db108 3195
c915a581
JJ
3196int
3197main ()
3198{
f35db108 3199
c915a581
JJ
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204rm -f conftest.o conftest.obj
3205if { { ac_try="$ac_compile"
3206case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compile") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; then :
3216 for ac_file in conftest.o conftest.obj conftest.*; do
3217 test -f "$ac_file" || continue;
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 break;;
3222 esac
3223done
2a6346c4 3224else
c915a581
JJ
3225 $as_echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
2a6346c4 3227
c915a581
JJ
3228{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230as_fn_error "cannot compute suffix of object files: cannot compile
3231See \`config.log' for more details." "$LINENO" 5; }
2a6346c4 3232fi
c915a581 3233rm -f conftest.$ac_cv_objext conftest.$ac_ext
2a6346c4 3234fi
c915a581
JJ
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3236$as_echo "$ac_cv_objext" >&6; }
3237OBJEXT=$ac_cv_objext
3238ac_objext=$OBJEXT
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3240$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3241if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243else
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
2a6346c4 3246
c915a581
JJ
3247int
3248main ()
3249{
3250#ifndef __GNUC__
3251 choke me
3252#endif
2a6346c4 3253
c915a581
JJ
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_compiler_gnu=yes
2b723e21 3260else
c915a581 3261 ac_compiler_gnu=no
2b723e21 3262fi
c915a581
JJ
3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264ac_cv_c_compiler_gnu=$ac_compiler_gnu
2b723e21 3265
c915a581
JJ
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3268$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3269if test $ac_compiler_gnu = yes; then
3270 GCC=yes
2b723e21 3271else
c915a581 3272 GCC=
2b723e21 3273fi
c915a581
JJ
3274ac_test_CFLAGS=${CFLAGS+set}
3275ac_save_CFLAGS=$CFLAGS
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3277$as_echo_n "checking whether $CC accepts -g... " >&6; }
3278if test "${ac_cv_prog_cc_g+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280else
3281 ac_save_c_werror_flag=$ac_c_werror_flag
3282 ac_c_werror_flag=yes
3283 ac_cv_prog_cc_g=no
3284 CFLAGS="-g"
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h. */
2b723e21 3287
c915a581
JJ
3288int
3289main ()
3290{
2b723e21 3291
c915a581
JJ
3292 ;
3293 return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_g=yes
3298else
3299 CFLAGS=""
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h. */
2a6346c4 3302
c915a581
JJ
3303int
3304main ()
3305{
2a6346c4 3306
c915a581
JJ
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
f35db108 3312
f35db108 3313else
c915a581
JJ
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315 CFLAGS="-g"
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h. */
3318
3319int
3320main ()
3321{
f35db108 3322
c915a581
JJ
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_cv_prog_cc_g=yes
f35db108 3329fi
c915a581 3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3331fi
c915a581 3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3333fi
c915a581
JJ
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
f35db108 3336fi
c915a581
JJ
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3338$as_echo "$ac_cv_prog_cc_g" >&6; }
3339if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
f35db108 3346 fi
f35db108 3347else
c915a581
JJ
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
f35db108 3350 else
c915a581 3351 CFLAGS=
f35db108 3352 fi
f35db108 3353fi
c915a581
JJ
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3355$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356if test "${ac_cv_prog_cc_c89+set}" = set; then :
f35db108
WM
3357 $as_echo_n "(cached) " >&6
3358else
c915a581
JJ
3359 ac_cv_prog_cc_c89=no
3360ac_save_CC=$CC
3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363#include <stdarg.h>
3364#include <stdio.h>
3365#include <sys/types.h>
3366#include <sys/stat.h>
3367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368struct buf { int x; };
3369FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370static char *e (p, i)
3371 char **p;
3372 int i;
3373{
3374 return p[i];
3375}
3376static char *f (char * (*g) (char **, int), char **p, ...)
3377{
3378 char *s;
3379 va_list v;
3380 va_start (v,p);
3381 s = g (p, va_arg (v,int));
3382 va_end (v);
3383 return s;
3384}
f35db108 3385
c915a581
JJ
3386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 3394
c915a581
JJ
3395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3397#define FOO(x) 'x'
3398int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 3399
c915a581
JJ
3400int test (int i, double x);
3401struct s1 {int (*f) (int a);};
3402struct s2 {int (*f) (double a);};
3403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404int argc;
3405char **argv;
3406int
3407main ()
3408{
3409return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 ;
3411 return 0;
3412}
3413_ACEOF
3414for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f35db108 3416do
c915a581
JJ
3417 CC="$ac_save_CC $ac_arg"
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_c89=$ac_arg
3420fi
3421rm -f core conftest.err conftest.$ac_objext
3422 test "x$ac_cv_prog_cc_c89" != "xno" && break
f35db108 3423done
c915a581
JJ
3424rm -f conftest.$ac_ext
3425CC=$ac_save_CC
f35db108 3426
f35db108 3427fi
c915a581
JJ
3428# AC_CACHE_VAL
3429case "x$ac_cv_prog_cc_c89" in
3430 x)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3432$as_echo "none needed" >&6; } ;;
3433 xno)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3435$as_echo "unsupported" >&6; } ;;
3436 *)
3437 CC="$CC $ac_cv_prog_cc_c89"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3439$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3440esac
3441if test "x$ac_cv_prog_cc_c89" != xno; then :
3442
f35db108
WM
3443fi
3444
c915a581
JJ
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
f35db108 3451
c915a581
JJ
3452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3458$as_echo_n "checking how to run the C preprocessor... " >&6; }
3459# On Suns, sometimes $CPP names a directory.
3460if test -n "$CPP" && test -d "$CPP"; then
3461 CPP=
f35db108 3462fi
c915a581
JJ
3463if test -z "$CPP"; then
3464 if test "${ac_cv_prog_CPP+set}" = set; then :
f35db108
WM
3465 $as_echo_n "(cached) " >&6
3466else
c915a581
JJ
3467 # Double quotes because CPP needs to be expanded
3468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469 do
3470 ac_preproc_ok=false
3471for ac_c_preproc_warn_flag in '' yes
f35db108 3472do
c915a581
JJ
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h. */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
3486 Syntax error
3487_ACEOF
3488if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3489
c915a581
JJ
3490else
3491 # Broken: fails on valid input.
3492continue
f35db108 3493fi
c915a581
JJ
3494rm -f conftest.err conftest.$ac_ext
3495
3496 # OK, works on sane cases. Now check whether nonexistent headers
3497 # can be detected and how.
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500#include <ac_nonexistent.h>
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
3503 # Broken: success on invalid input.
3504continue
f35db108 3505else
c915a581
JJ
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then :
3516 break
f35db108
WM
3517fi
3518
c915a581
JJ
3519 done
3520 ac_cv_prog_CPP=$CPP
f35db108 3521
f35db108 3522fi
c915a581 3523 CPP=$ac_cv_prog_CPP
f35db108 3524else
c915a581
JJ
3525 ac_cv_prog_CPP=$CPP
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3528$as_echo "$CPP" >&6; }
3529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
f35db108 3531do
c915a581
JJ
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
3547if ac_fn_c_try_cpp "$LINENO"; then :
f35db108 3548
c915a581
JJ
3549else
3550 # Broken: fails on valid input.
3551continue
f35db108 3552fi
c915a581
JJ
3553rm -f conftest.err conftest.$ac_ext
3554
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559#include <ac_nonexistent.h>
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562 # Broken: success on invalid input.
3563continue
3564else
3565 # Passes both tests.
3566ac_preproc_ok=:
3567break
f35db108 3568fi
c915a581
JJ
3569rm -f conftest.err conftest.$ac_ext
3570
3571done
3572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573rm -f conftest.err conftest.$ac_ext
3574if $ac_preproc_ok; then :
3575
f35db108 3576else
c915a581
JJ
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579as_fn_error "C preprocessor \"$CPP\" fails sanity check
3580See \`config.log' for more details." "$LINENO" 5; }
f35db108
WM
3581fi
3582
c915a581
JJ
3583ac_ext=c
3584ac_cpp='$CPP $CPPFLAGS'
3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 3588
f35db108 3589
c915a581
JJ
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3591$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3592if test "${ac_cv_path_GREP+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594else
3595 if test -z "$GREP"; then
3596 ac_path_GREP_found=false
3597 # Loop through the user's path and test for each of PROGNAME-LIST
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_prog in grep ggrep; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3606 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3607# Check for GNU ac_path_GREP and select it if it is found.
3608 # Check for GNU $ac_path_GREP
3609case `"$ac_path_GREP" --version 2>&1` in
3610*GNU*)
3611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3612*)
3613 ac_count=0
3614 $as_echo_n 0123456789 >"conftest.in"
3615 while :
3616 do
3617 cat "conftest.in" "conftest.in" >"conftest.tmp"
3618 mv "conftest.tmp" "conftest.in"
3619 cp "conftest.in" "conftest.nl"
3620 $as_echo 'GREP' >> "conftest.nl"
3621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623 as_fn_arith $ac_count + 1 && ac_count=$as_val
3624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3625 # Best one so far, save it but keep looking for a better one
3626 ac_cv_path_GREP="$ac_path_GREP"
3627 ac_path_GREP_max=$ac_count
3628 fi
3629 # 10*(2^10) chars as input seems more than enough
3630 test $ac_count -gt 10 && break
3631 done
3632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3633esac
c915a581
JJ
3634
3635 $ac_path_GREP_found && break 3
3636 done
3637 done
3638 done
3639IFS=$as_save_IFS
3640 if test -z "$ac_cv_path_GREP"; then
3641 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108 3642 fi
c915a581
JJ
3643else
3644 ac_cv_path_GREP=$GREP
f35db108
WM
3645fi
3646
3647fi
c915a581
JJ
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3649$as_echo "$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
f35db108
WM
3651
3652
c915a581
JJ
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3654$as_echo_n "checking for egrep... " >&6; }
3655if test "${ac_cv_path_EGREP+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
3661 if test -z "$EGREP"; then
3662 ac_path_EGREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108 3666do
c915a581
JJ
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in egrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673# Check for GNU ac_path_EGREP and select it if it is found.
3674 # Check for GNU $ac_path_EGREP
3675case `"$ac_path_EGREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678*)
3679 ac_count=0
3680 $as_echo_n 0123456789 >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 $as_echo 'EGREP' >> "conftest.nl"
3687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 as_fn_arith $ac_count + 1 && ac_count=$as_val
3690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_EGREP="$ac_path_EGREP"
3693 ac_path_EGREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
f35db108 3699esac
f35db108 3700
c915a581
JJ
3701 $ac_path_EGREP_found && break 3
3702 done
3703 done
3704 done
3705IFS=$as_save_IFS
3706 if test -z "$ac_cv_path_EGREP"; then
3707 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3708 fi
f35db108 3709else
c915a581 3710 ac_cv_path_EGREP=$EGREP
f35db108 3711fi
f35db108 3712
c915a581 3713 fi
a2479b3d 3714fi
c915a581
JJ
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3716$as_echo "$ac_cv_path_EGREP" >&6; }
3717 EGREP="$ac_cv_path_EGREP"
a2479b3d 3718
f35db108 3719
c915a581
JJ
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3721$as_echo_n "checking for ANSI C header files... " >&6; }
3722if test "${ac_cv_header_stdc+set}" = set; then :
f35db108
WM
3723 $as_echo_n "(cached) " >&6
3724else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h. */
c915a581
JJ
3727#include <stdlib.h>
3728#include <stdarg.h>
3729#include <string.h>
3730#include <float.h>
f35db108
WM
3731
3732int
3733main ()
3734{
3735
3736 ;
3737 return 0;
3738}
3739_ACEOF
c915a581
JJ
3740if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_header_stdc=yes
f35db108 3742else
c915a581 3743 ac_cv_header_stdc=no
f35db108 3744fi
c915a581
JJ
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746
3747if test $ac_cv_header_stdc = yes; then
3748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f35db108
WM
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
c915a581 3751#include <string.h>
f35db108 3752
f35db108 3753_ACEOF
c915a581
JJ
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 $EGREP "memchr" >/dev/null 2>&1; then :
3756
f35db108 3757else
c915a581 3758 ac_cv_header_stdc=no
f35db108 3759fi
c915a581 3760rm -f conftest*
f35db108
WM
3761
3762fi
c915a581
JJ
3763
3764if test $ac_cv_header_stdc = yes; then
3765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h. */
3768#include <stdlib.h>
3769
3770_ACEOF
3771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 $EGREP "free" >/dev/null 2>&1; then :
3773
f35db108 3774else
c915a581 3775 ac_cv_header_stdc=no
f35db108 3776fi
c915a581 3777rm -f conftest*
f35db108 3778
c915a581 3779fi
f35db108 3780
c915a581
JJ
3781if test $ac_cv_header_stdc = yes; then
3782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3783 if test "$cross_compiling" = yes; then :
3784 :
f35db108 3785else
c915a581 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 3787/* end confdefs.h. */
c915a581
JJ
3788#include <ctype.h>
3789#include <stdlib.h>
3790#if ((' ' & 0x0FF) == 0x020)
3791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3793#else
3794# define ISLOWER(c) \
3795 (('a' <= (c) && (c) <= 'i') \
3796 || ('j' <= (c) && (c) <= 'r') \
3797 || ('s' <= (c) && (c) <= 'z'))
3798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799#endif
f35db108 3800
c915a581 3801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f35db108
WM
3802int
3803main ()
3804{
c915a581
JJ
3805 int i;
3806 for (i = 0; i < 256; i++)
3807 if (XOR (islower (i), ISLOWER (i))
3808 || toupper (i) != TOUPPER (i))
3809 return 2;
f35db108
WM
3810 return 0;
3811}
3812_ACEOF
c915a581 3813if ac_fn_c_try_run "$LINENO"; then :
f35db108
WM
3814
3815else
c915a581
JJ
3816 ac_cv_header_stdc=no
3817fi
3818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3819 conftest.$ac_objext conftest.beam conftest.$ac_ext
3820fi
f35db108 3821
f35db108 3822fi
f35db108 3823fi
c915a581
JJ
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3825$as_echo "$ac_cv_header_stdc" >&6; }
3826if test $ac_cv_header_stdc = yes; then
3827
3828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3829
f35db108 3830fi
c915a581
JJ
3831
3832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3834 inttypes.h stdint.h unistd.h
3835do :
3836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3838"
3839eval as_val=\$$as_ac_Header
3840 if test "x$as_val" = x""yes; then :
3841 cat >>confdefs.h <<_ACEOF
3842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843_ACEOF
3844
f35db108 3845fi
c915a581
JJ
3846
3847done
3848
3849
3850
3851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3852if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3853 MINIX=yes
f35db108 3854else
c915a581 3855 MINIX=
f35db108 3856fi
c915a581
JJ
3857
3858
3859 if test "$MINIX" = yes; then
3860
3861$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3862
3863
3864$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3865
3866
3867$as_echo "#define _MINIX 1" >>confdefs.h
3868
3869 fi
3870
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
f35db108
WM
3875 $as_echo_n "(cached) " >&6
3876else
c915a581 3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 3878/* end confdefs.h. */
f35db108 3879
c915a581
JJ
3880# define __EXTENSIONS__ 1
3881 $ac_includes_default
f35db108
WM
3882int
3883main ()
3884{
c915a581 3885
f35db108
WM
3886 ;
3887 return 0;
3888}
3889_ACEOF
c915a581
JJ
3890if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_safe_to_define___extensions__=yes
3892else
3893 ac_cv_safe_to_define___extensions__=no
f35db108 3894fi
c915a581 3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 3896fi
c915a581
JJ
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3898$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3899 test $ac_cv_safe_to_define___extensions__ = yes &&
3900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
f35db108 3901
c915a581 3902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f35db108 3903
c915a581 3904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f35db108 3905
c915a581 3906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
f35db108 3907
c915a581 3908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f35db108 3909
f35db108 3910
f35db108 3911
c915a581
JJ
3912# Do not delete or change the following two lines. For why, see
3913# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3914ac_aux_dir=
3915for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3916 for ac_t in install-sh install.sh shtool; do
3917 if test -f "$ac_dir/$ac_t"; then
3918 ac_aux_dir=$ac_dir
3919 ac_install_sh="$ac_aux_dir/$ac_t -c"
3920 break 2
3921 fi
3922 done
3923done
3924if test -z "$ac_aux_dir"; then
3925 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
f35db108
WM
3926fi
3927
c915a581
JJ
3928# These three variables are undocumented and unsupported,
3929# and are intended to be withdrawn in a future Autoconf release.
3930# They can cause serious problems if a builder's source tree is in a directory
3931# whose full name contains unusual characters.
3932ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3933ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3934ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
f35db108
WM
3935
3936
c915a581
JJ
3937# Make sure we can run config.sub.
3938$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3939 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f35db108 3940
c915a581
JJ
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3942$as_echo_n "checking build system type... " >&6; }
3943if test "${ac_cv_build+set}" = set; then :
f35db108
WM
3944 $as_echo_n "(cached) " >&6
3945else
c915a581
JJ
3946 ac_build_alias=$build_alias
3947test "x$ac_build_alias" = x &&
3948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3949test "x$ac_build_alias" = x &&
3950 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3951ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3952 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f35db108 3953
c915a581
JJ
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3956$as_echo "$ac_cv_build" >&6; }
3957case $ac_cv_build in
3958*-*-*) ;;
3959*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3960esac
3961build=$ac_cv_build
3962ac_save_IFS=$IFS; IFS='-'
3963set x $ac_cv_build
3964shift
3965build_cpu=$1
3966build_vendor=$2
3967shift; shift
3968# Remember, the first character of IFS is used to create $*,
3969# except with old shells:
3970build_os=$*
3971IFS=$ac_save_IFS
3972case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f35db108 3973
f35db108 3974
c915a581
JJ
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3976$as_echo_n "checking host system type... " >&6; }
3977if test "${ac_cv_host+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
f35db108 3979else
c915a581
JJ
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3982else
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f35db108
WM
3985fi
3986
3987fi
c915a581
JJ
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3989$as_echo "$ac_cv_host" >&6; }
3990case $ac_cv_host in
3991*-*-*) ;;
3992*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3993esac
3994host=$ac_cv_host
3995ac_save_IFS=$IFS; IFS='-'
3996set x $ac_cv_host
3997shift
3998host_cpu=$1
3999host_vendor=$2
4000shift; shift
4001# Remember, the first character of IFS is used to create $*,
4002# except with old shells:
4003host_os=$*
4004IFS=$ac_save_IFS
4005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f35db108
WM
4006
4007
c915a581
JJ
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4009$as_echo_n "checking target system type... " >&6; }
4010if test "${ac_cv_target+set}" = set; then :
f35db108
WM
4011 $as_echo_n "(cached) " >&6
4012else
c915a581
JJ
4013 if test "x$target_alias" = x; then
4014 ac_cv_target=$ac_cv_host
f35db108 4015else
c915a581
JJ
4016 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4017 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
f35db108
WM
4018fi
4019
f35db108 4020fi
c915a581
JJ
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4022$as_echo "$ac_cv_target" >&6; }
4023case $ac_cv_target in
4024*-*-*) ;;
4025*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4026esac
4027target=$ac_cv_target
4028ac_save_IFS=$IFS; IFS='-'
4029set x $ac_cv_target
4030shift
4031target_cpu=$1
4032target_vendor=$2
4033shift; shift
4034# Remember, the first character of IFS is used to create $*,
4035# except with old shells:
4036target_os=$*
4037IFS=$ac_save_IFS
4038case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f35db108 4039
f35db108 4040
c915a581
JJ
4041# The aliases save the names the user supplied, while $host etc.
4042# will get canonicalized.
4043test -n "$target_alias" &&
4044 test "$program_prefix$program_suffix$program_transform_name" = \
4045 NONENONEs,x,x, &&
4046 program_prefix=${target_alias}-
f35db108 4047
c915a581 4048target_alias=${target_alias-$host_alias}
f35db108 4049
c915a581
JJ
4050 case ${build_alias} in
4051 "") build_noncanonical=${build} ;;
4052 *) build_noncanonical=${build_alias} ;;
f35db108 4053esac
f35db108 4054
c915a581
JJ
4055 case ${host_alias} in
4056 "") host_noncanonical=${build_noncanonical} ;;
4057 *) host_noncanonical=${host_alias} ;;
f35db108 4058esac
f35db108 4059
c915a581
JJ
4060 case ${target_alias} in
4061 "") target_noncanonical=${host_noncanonical} ;;
4062 *) target_noncanonical=${target_alias} ;;
4063esac
f35db108 4064
f35db108 4065
f35db108 4066
f35db108 4067
f35db108 4068
c915a581
JJ
4069 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4070 -I\$(top_builddir)/../libstdc++-v3/include \
4071 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4072 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4073 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4074 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
f35db108 4075
f35db108 4076
f35db108 4077
f35db108 4078
c915a581 4079am__api_version='1.11'
f35db108 4080
c915a581
JJ
4081# Find a good install program. We prefer a C program (faster),
4082# so one script is as good as another. But avoid the broken or
4083# incompatible versions:
4084# SysV /etc/install, /usr/sbin/install
4085# SunOS /usr/etc/install
4086# IRIX /sbin/install
4087# AIX /bin/install
4088# AmigaOS /C/install, which installs bootblocks on floppy discs
4089# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4090# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4091# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4092# OS/2's system install, which has a completely different semantic
4093# ./install, which can be erroneously created by make from ./install.sh.
4094# Reject install programs that cannot install multiple files.
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4096$as_echo_n "checking for a BSD-compatible install... " >&6; }
4097if test -z "$INSTALL"; then
4098if test "${ac_cv_path_install+set}" = set; then :
f35db108
WM
4099 $as_echo_n "(cached) " >&6
4100else
c915a581
JJ
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 # Account for people who put trailing slashes in PATH elements.
4107case $as_dir/ in #((
4108 ./ | .// | /[cC]/* | \
4109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4110 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4111 /usr/ucb/* ) ;;
4112 *)
4113 # OSF1 and SCO ODT 3.0 have their own names for install.
4114 # Don't use installbsd from OSF since it installs stuff as root
4115 # by default.
4116 for ac_prog in ginstall scoinst install; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4119 if test $ac_prog = install &&
4120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4121 # AIX install. It has an incompatible calling convention.
4122 :
4123 elif test $ac_prog = install &&
4124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4125 # program-specific install script used by HP pwplus--don't use.
4126 :
4127 else
4128 rm -rf conftest.one conftest.two conftest.dir
4129 echo one > conftest.one
4130 echo two > conftest.two
4131 mkdir conftest.dir
4132 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4133 test -s conftest.one && test -s conftest.two &&
4134 test -s conftest.dir/conftest.one &&
4135 test -s conftest.dir/conftest.two
4136 then
4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138 break 3
4139 fi
4140 fi
4141 fi
4142 done
f35db108 4143 done
c915a581
JJ
4144 ;;
4145esac
f35db108 4146
f35db108 4147 done
c915a581 4148IFS=$as_save_IFS
f35db108 4149
c915a581 4150rm -rf conftest.one conftest.two conftest.dir
f35db108
WM
4151
4152fi
c915a581
JJ
4153 if test "${ac_cv_path_install+set}" = set; then
4154 INSTALL=$ac_cv_path_install
4155 else
4156 # As a last resort, use the slow shell script. Don't cache a
4157 # value for INSTALL within a source directory, because that will
4158 # break other packages using the cache if that directory is
4159 # removed, or if the value is a relative name.
4160 INSTALL=$ac_install_sh
4161 fi
f35db108 4162fi
c915a581
JJ
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4164$as_echo "$INSTALL" >&6; }
f35db108 4165
c915a581
JJ
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
f35db108 4169
c915a581 4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f35db108 4171
c915a581 4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
f35db108 4173
c915a581
JJ
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4175$as_echo_n "checking whether build environment is sane... " >&6; }
4176# Just in case
4177sleep 1
4178echo timestamp > conftest.file
4179# Reject unsafe characters in $srcdir or the absolute working directory
4180# name. Accept space and tab only in the latter.
4181am_lf='
4182'
4183case `pwd` in
4184 *[\\\"\#\$\&\'\`$am_lf]*)
4185 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4186esac
4187case $srcdir in
4188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4189 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4190esac
f35db108 4191
c915a581
JJ
4192# Do `set' in a subshell so we don't clobber the current shell's
4193# arguments. Must try -L first in case configure is actually a
4194# symlink; some systems play weird games with the mod time of symlinks
4195# (eg FreeBSD returns the mod time of the symlink's containing
4196# directory).
4197if (
4198 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4199 if test "$*" = "X"; then
4200 # -L didn't work.
4201 set X `ls -t "$srcdir/configure" conftest.file`
4202 fi
4203 rm -f conftest.file
4204 if test "$*" != "X $srcdir/configure conftest.file" \
4205 && test "$*" != "X conftest.file $srcdir/configure"; then
f35db108 4206
c915a581
JJ
4207 # If neither matched, then we have a broken ls. This can happen
4208 # if, for instance, CONFIG_SHELL is bash and it inherits a
4209 # broken ls alias from the environment. This has actually
4210 # happened. Such a system could not be considered "sane".
4211 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4212alias in your environment" "$LINENO" 5
4213 fi
f35db108 4214
c915a581
JJ
4215 test "$2" = conftest.file
4216 )
4217then
4218 # Ok.
4219 :
f35db108 4220else
c915a581
JJ
4221 as_fn_error "newly created file is older than distributed files!
4222Check your system clock" "$LINENO" 5
f35db108 4223fi
c915a581
JJ
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225$as_echo "yes" >&6; }
4226test "$program_prefix" != NONE &&
4227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4228# Use a double $ so make ignores it.
4229test "$program_suffix" != NONE &&
4230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4231# Double any \ or $.
4232# By default was `s,x,x', remove it if useless.
4233ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4234program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f35db108 4235
c915a581
JJ
4236# expand $ac_aux_dir to an absolute path
4237am_aux_dir=`cd $ac_aux_dir && pwd`
f35db108 4238
c915a581
JJ
4239if test x"${MISSING+set}" != xset; then
4240 case $am_aux_dir in
4241 *\ * | *\ *)
4242 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4243 *)
4244 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4245 esac
4246fi
4247# Use eval to expand $SHELL
4248if eval "$MISSING --run true"; then
4249 am_missing_run="$MISSING --run "
f35db108 4250else
c915a581
JJ
4251 am_missing_run=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4253$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
f35db108
WM
4254fi
4255
c915a581
JJ
4256if test x"${install_sh}" != xset; then
4257 case $am_aux_dir in
f35db108 4258 *\ * | *\ *)
c915a581
JJ
4259 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4260 *)
4261 install_sh="\${SHELL} $am_aux_dir/install-sh"
4262 esac
4263fi
f35db108 4264
c915a581
JJ
4265# Installed binaries are usually stripped using `strip' when the user
4266# run `make install-strip'. However `strip' might not be the right
4267# tool to use in cross-compilation environments, therefore Automake
4268# will honor the `STRIP' environment variable to overrule this program.
4269if test "$cross_compiling" != no; then
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4272set dummy ${ac_tool_prefix}strip; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if test "${ac_cv_prog_STRIP+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277else
4278 if test -n "$STRIP"; then
4279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292done
4293 done
4294IFS=$as_save_IFS
f35db108 4295
c915a581
JJ
4296fi
4297fi
4298STRIP=$ac_cv_prog_STRIP
4299if test -n "$STRIP"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4301$as_echo "$STRIP" >&6; }
4302else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
f35db108
WM
4306
4307
c915a581
JJ
4308fi
4309if test -z "$ac_cv_prog_STRIP"; then
4310 ac_ct_STRIP=$STRIP
4311 # Extract the first word of "strip", so it can be a program name with args.
4312set dummy strip; ac_word=$2
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317else
4318 if test -n "$ac_ct_STRIP"; then
4319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_ac_ct_STRIP="strip"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332done
4333 done
4334IFS=$as_save_IFS
f35db108 4335
c915a581
JJ
4336fi
4337fi
4338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4339if test -n "$ac_ct_STRIP"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4341$as_echo "$ac_ct_STRIP" >&6; }
f35db108 4342else
c915a581
JJ
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
f35db108
WM
4345fi
4346
c915a581
JJ
4347 if test "x$ac_ct_STRIP" = x; then
4348 STRIP=":"
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
f35db108 4355esac
c915a581
JJ
4356 STRIP=$ac_ct_STRIP
4357 fi
4358else
4359 STRIP="$ac_cv_prog_STRIP"
4360fi
f35db108 4361
c915a581
JJ
4362fi
4363INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
f35db108 4364
c915a581
JJ
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4366$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4367if test -z "$MKDIR_P"; then
4368 if test "${ac_cv_path_mkdir+set}" = set; then :
f35db108
WM
4369 $as_echo_n "(cached) " >&6
4370else
f35db108 4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c915a581 4372for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
f35db108
WM
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
c915a581
JJ
4376 for ac_prog in mkdir gmkdir; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4379 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4380 'mkdir (GNU coreutils) '* | \
4381 'mkdir (coreutils) '* | \
4382 'mkdir (fileutils) '4.1*)
4383 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4384 break 3;;
4385 esac
4386 done
4387 done
f35db108
WM
4388 done
4389IFS=$as_save_IFS
f35db108
WM
4390
4391fi
f35db108 4392
c915a581
JJ
4393 if test "${ac_cv_path_mkdir+set}" = set; then
4394 MKDIR_P="$ac_cv_path_mkdir -p"
4395 else
4396 # As a last resort, use the slow shell script. Don't cache a
4397 # value for MKDIR_P within a source directory, because that will
4398 # break other packages using the cache if that directory is
4399 # removed, or if the value is a relative name.
4400 test -d ./--version && rmdir ./--version
4401 MKDIR_P="$ac_install_sh -d"
4402 fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4405$as_echo "$MKDIR_P" >&6; }
f35db108 4406
c915a581
JJ
4407mkdir_p="$MKDIR_P"
4408case $mkdir_p in
4409 [\\/$]* | ?:[\\/]*) ;;
4410 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4411esac
f35db108 4412
c915a581
JJ
4413for ac_prog in gawk mawk nawk awk
4414do
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416set dummy $ac_prog; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if test "${ac_cv_prog_AWK+set}" = set; then :
f35db108
WM
4420 $as_echo_n "(cached) " >&6
4421else
c915a581
JJ
4422 if test -n "$AWK"; then
4423 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
f35db108
WM
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
f35db108 4430 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581
JJ
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_AWK="$ac_prog"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4435 fi
4436done
f35db108 4437 done
c915a581 4438IFS=$as_save_IFS
f35db108 4439
c915a581
JJ
4440fi
4441fi
4442AWK=$ac_cv_prog_AWK
4443if test -n "$AWK"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4445$as_echo "$AWK" >&6; }
f35db108 4446else
c915a581
JJ
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
f35db108
WM
4449fi
4450
f35db108 4451
c915a581
JJ
4452 test -n "$AWK" && break
4453done
f35db108 4454
c915a581
JJ
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4456$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4457set x ${MAKE-make}
4458ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4459if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
4460 $as_echo_n "(cached) " >&6
4461else
c915a581
JJ
4462 cat >conftest.make <<\_ACEOF
4463SHELL = /bin/sh
4464all:
4465 @echo '@@@%%%=$(MAKE)=@@@%%%'
4466_ACEOF
4467# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4468case `${MAKE-make} -f conftest.make 2>/dev/null` in
4469 *@@@%%%=?*=@@@%%%*)
4470 eval ac_cv_prog_make_${ac_make}_set=yes;;
4471 *)
4472 eval ac_cv_prog_make_${ac_make}_set=no;;
f35db108 4473esac
c915a581
JJ
4474rm -f conftest.make
4475fi
4476if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478$as_echo "yes" >&6; }
4479 SET_MAKE=
f35db108 4480else
c915a581
JJ
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483 SET_MAKE="MAKE=${MAKE-make}"
f35db108
WM
4484fi
4485
c915a581
JJ
4486rm -rf .tst 2>/dev/null
4487mkdir .tst 2>/dev/null
4488if test -d .tst; then
4489 am__leading_dot=.
4490else
4491 am__leading_dot=_
f35db108 4492fi
c915a581 4493rmdir .tst 2>/dev/null
f35db108 4494
c915a581 4495DEPDIR="${am__leading_dot}deps"
f35db108 4496
c915a581 4497ac_config_commands="$ac_config_commands depfiles"
f35db108 4498
f35db108 4499
c915a581
JJ
4500am_make=${MAKE-make}
4501cat > confinc << 'END'
4502am__doit:
4503 @echo this is the am__doit target
4504.PHONY: am__doit
4505END
4506# If we don't find an include directive, just comment out the code.
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4508$as_echo_n "checking for style of include used by $am_make... " >&6; }
4509am__include="#"
4510am__quote=
4511_am_result=none
4512# First try GNU make style include.
4513echo "include confinc" > confmf
4514# Ignore all kinds of additional output from `make'.
4515case `$am_make -s -f confmf 2> /dev/null` in #(
4516*the\ am__doit\ target*)
4517 am__include=include
4518 am__quote=
4519 _am_result=GNU
4520 ;;
4521esac
4522# Now try BSD make style include.
4523if test "$am__include" = "#"; then
4524 echo '.include "confinc"' > confmf
4525 case `$am_make -s -f confmf 2> /dev/null` in #(
4526 *the\ am__doit\ target*)
4527 am__include=.include
4528 am__quote="\""
4529 _am_result=BSD
4530 ;;
4531 esac
f35db108 4532fi
f35db108
WM
4533
4534
c915a581
JJ
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4536$as_echo "$_am_result" >&6; }
4537rm -f confinc confmf
f35db108 4538
c915a581
JJ
4539# Check whether --enable-dependency-tracking was given.
4540if test "${enable_dependency_tracking+set}" = set; then :
4541 enableval=$enable_dependency_tracking;
4542fi
f35db108 4543
c915a581
JJ
4544if test "x$enable_dependency_tracking" != xno; then
4545 am_depcomp="$ac_aux_dir/depcomp"
4546 AMDEPBACKSLASH='\'
f3915b42 4547 am__nodep='_no'
c915a581
JJ
4548fi
4549 if test "x$enable_dependency_tracking" != xno; then
4550 AMDEP_TRUE=
4551 AMDEP_FALSE='#'
4552else
4553 AMDEP_TRUE='#'
4554 AMDEP_FALSE=
4555fi
f35db108
WM
4556
4557
c915a581
JJ
4558if test "`cd $srcdir && pwd`" != "`pwd`"; then
4559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4560 # is not polluted with repeated "-I."
4561 am__isrc=' -I$(srcdir)'
4562 # test to see if srcdir already configured
4563 if test -f $srcdir/config.status; then
4564 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4565 fi
4566fi
f35db108 4567
c915a581
JJ
4568# test whether we have cygpath
4569if test -z "$CYGPATH_W"; then
4570 if (cygpath --version) >/dev/null 2>/dev/null; then
4571 CYGPATH_W='cygpath -w'
4572 else
4573 CYGPATH_W=echo
4574 fi
4575fi
f35db108
WM
4576
4577
c915a581
JJ
4578# Define the identity of the package.
4579 PACKAGE='package-unused'
4580 VERSION='version-unused'
f35db108
WM
4581
4582
c915a581
JJ
4583cat >>confdefs.h <<_ACEOF
4584#define PACKAGE "$PACKAGE"
4585_ACEOF
f35db108
WM
4586
4587
c915a581
JJ
4588cat >>confdefs.h <<_ACEOF
4589#define VERSION "$VERSION"
4590_ACEOF
f35db108 4591
c915a581 4592# Some tools Automake needs.
f35db108 4593
c915a581 4594ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
f35db108
WM
4595
4596
c915a581 4597AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
f35db108
WM
4598
4599
c915a581 4600AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
f35db108
WM
4601
4602
c915a581 4603AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
f35db108 4604
c915a581
JJ
4605
4606MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4607
4608# We need awk for the "check" target. The system "awk" is bad on
4609# some platforms.
f3915b42
MH
4610# Always define AMTAR for backward compatibility. Yes, it's still used
4611# in the wild :-( We should find a proper way to deprecate it ...
4612AMTAR='$${TAR-tar}'
c915a581 4613
f3915b42 4614am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
c915a581
JJ
4615
4616
4617
4618
4619depcc="$CC" am_compiler_list=
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4622$as_echo_n "checking dependency style of $depcc... " >&6; }
4623if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
f35db108
WM
4624 $as_echo_n "(cached) " >&6
4625else
c915a581
JJ
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4631 # in D'.
f3915b42 4632 rm -rf conftest.dir
c915a581
JJ
4633 mkdir conftest.dir
4634 # Copy depcomp to subdir because otherwise we won't find it if we're
4635 # using a relative directory.
4636 cp "$am_depcomp" conftest.dir
4637 cd conftest.dir
4638 # We will build objects and dependencies in a subdirectory because
4639 # it helps to detect inapplicable dependency modes. For instance
4640 # both Tru64's cc and ICC support -MD to output dependencies as a
4641 # side effect of compilation, but ICC will put the dependencies in
4642 # the current directory while Tru64 will put them in the object
4643 # directory.
4644 mkdir sub
4645
4646 am_cv_CC_dependencies_compiler_type=none
4647 if test "$am_compiler_list" = ""; then
4648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649 fi
4650 am__universal=false
4651 case " $depcc " in #(
4652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4653 esac
4654
4655 for depmode in $am_compiler_list; do
4656 # Setup a source with many dependencies, because some compilers
4657 # like to wrap large dependency lists on column 80 (with \), and
4658 # we should not choose a depcomp mode which is confused by this.
4659 #
4660 # We need to recreate these files for each test, as the compiler may
4661 # overwrite some of them when testing with obscure command lines.
4662 # This happens at least with the AIX C compiler.
4663 : > sub/conftest.c
4664 for i in 1 2 3 4 5 6; do
4665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4666 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4667 # Solaris 8's {/usr,}/bin/sh.
4668 touch sub/conftst$i.h
4669 done
4670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4671
4672 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4673 # mode. It turns out that the SunPro C++ compiler does not properly
4674 # handle `-M -o', and we need to detect this. Also, some Intel
4675 # versions had trouble with output in subdirs
4676 am__obj=sub/conftest.${OBJEXT-o}
4677 am__minus_obj="-o $am__obj"
4678 case $depmode in
4679 gcc)
4680 # This depmode causes a compiler race in universal mode.
4681 test "$am__universal" = false || continue
4682 ;;
4683 nosideeffect)
4684 # after this tag, mechanisms are not by side-effect, so they'll
4685 # only be used when explicitly requested
4686 if test "x$enable_dependency_tracking" = xyes; then
4687 continue
4688 else
4689 break
4690 fi
4691 ;;
f3915b42 4692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
c915a581
JJ
4693 # This compiler won't grok `-c -o', but also, the minuso test has
4694 # not run yet. These depmodes are late enough in the game, and
4695 # so weak that their functioning should not be impacted.
4696 am__obj=conftest.${OBJEXT-o}
4697 am__minus_obj=
4698 ;;
4699 none) break ;;
4700 esac
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=$am__obj \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4710 # icc doesn't choke on unknown options, it will just issue warnings
4711 # or remarks (even with -Werror). So we grep stderr for any message
4712 # that says an option was ignored or not supported.
4713 # When given -MP, icc 7.0 and 7.1 complain thusly:
4714 # icc: Command line warning: ignoring option '-M'; no argument required
4715 # The diagnosis changed in icc 8.0:
4716 # icc: Command line remark: option '-MP' not supported
4717 if (grep 'ignoring option' conftest.err ||
4718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4719 am_cv_CC_dependencies_compiler_type=$depmode
4720 break
4721 fi
f35db108
WM
4722 fi
4723 done
c915a581
JJ
4724
4725 cd ..
4726 rm -rf conftest.dir
f35db108 4727else
c915a581 4728 am_cv_CC_dependencies_compiler_type=none
f35db108 4729fi
c915a581 4730
f35db108 4731fi
c915a581
JJ
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4733$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4734CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
f35db108 4735
c915a581
JJ
4736 if
4737 test "x$enable_dependency_tracking" != xno \
4738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4739 am__fastdepCC_TRUE=
4740 am__fastdepCC_FALSE='#'
f35db108 4741else
c915a581
JJ
4742 am__fastdepCC_TRUE='#'
4743 am__fastdepCC_FALSE=
f35db108 4744fi
c915a581
JJ
4745
4746
4747
f35db108 4748
c915a581
JJ
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4750$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4751 # Check whether --enable-maintainer-mode was given.
4752if test "${enable_maintainer_mode+set}" = set; then :
4753 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
f35db108 4754else
c915a581 4755 USE_MAINTAINER_MODE=no
f35db108 4756fi
c915a581
JJ
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4759$as_echo "$USE_MAINTAINER_MODE" >&6; }
4760 if test $USE_MAINTAINER_MODE = yes; then
4761 MAINTAINER_MODE_TRUE=
4762 MAINTAINER_MODE_FALSE='#'
f35db108 4763else
c915a581
JJ
4764 MAINTAINER_MODE_TRUE='#'
4765 MAINTAINER_MODE_FALSE=
4766fi
4767
4768 MAINT=$MAINTAINER_MODE_TRUE
4769
4770
4771
4772# Calculate toolexeclibdir
4773# Also toolexecdir, though it's only used in toolexeclibdir
4774case ${version_specific_libs} in
4775 yes)
4776 # Need the gcc compiler version to know where to install libraries
4777 # and header files if --enable-version-specific-runtime-libs option
4778 # is selected.
4779 toolexecdir='$(libdir)/gcc/$(target_alias)'
4780 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4781 ;;
4782 no)
4783 if test -n "$with_cross_host" &&
4784 test x"$with_cross_host" != x"no"; then
4785 # Install a library built with a cross compiler in tooldir, not libdir.
4786 toolexecdir='$(exec_prefix)/$(target_alias)'
4787 toolexeclibdir='$(toolexecdir)/lib'
4788 else
4789 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4790 toolexeclibdir='$(libdir)'
4791 fi
4792 multi_os_directory=`$CC -print-multi-os-directory`
4793 case $multi_os_directory in
4794 .) ;; # Avoid trailing /.
4795 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4796 esac
4797 ;;
4798esac
4799
4800
4801
4802# Checks for programs.
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4810set dummy ${ac_tool_prefix}gcc; ac_word=$2
f35db108
WM
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812$as_echo_n "checking for $ac_word... " >&6; }
c915a581 4813if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
4814 $as_echo_n "(cached) " >&6
4815else
c915a581
JJ
4816 if test -n "$CC"; then
4817 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 4826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
f35db108
WM
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831 done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
c915a581
JJ
4836CC=$ac_cv_prog_CC
4837if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839$as_echo "$CC" >&6; }
f35db108
WM
4840else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
f35db108 4846fi
c915a581
JJ
4847if test -z "$ac_cv_prog_CC"; then
4848 ac_ct_CC=$CC
4849 # Extract the first word of "gcc", so it can be a program name with args.
4850set dummy gcc; ac_word=$2
f35db108
WM
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
c915a581 4853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f35db108
WM
4854 $as_echo_n "(cached) " >&6
4855else
c915a581
JJ
4856 if test -n "$ac_ct_CC"; then
4857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f35db108
WM
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 4866 ac_cv_prog_ac_ct_CC="gcc"
f35db108
WM
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871 done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
c915a581
JJ
4876ac_ct_CC=$ac_cv_prog_ac_ct_CC
4877if test -n "$ac_ct_CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4879$as_echo "$ac_ct_CC" >&6; }
f35db108
WM
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
c915a581
JJ
4885 if test "x$ac_ct_CC" = x; then
4886 CC=""
f35db108
WM
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892ac_tool_warned=yes ;;
4893esac
c915a581 4894 CC=$ac_ct_CC
f35db108 4895 fi
c915a581
JJ
4896else
4897 CC="$ac_cv_prog_CC"
f35db108
WM
4898fi
4899
c915a581
JJ
4900if test -z "$CC"; then
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4903set dummy ${ac_tool_prefix}cc; ac_word=$2
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905$as_echo_n "checking for $ac_word... " >&6; }
4906if test "${ac_cv_prog_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC="$CC" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_CC="${ac_tool_prefix}cc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
f35db108 4922 fi
c915a581
JJ
4923done
4924 done
4925IFS=$as_save_IFS
f35db108 4926
f35db108 4927fi
c915a581
JJ
4928fi
4929CC=$ac_cv_prog_CC
4930if test -n "$CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4932$as_echo "$CC" >&6; }
4933else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936fi
f35db108
WM
4937
4938
f35db108 4939 fi
f35db108 4940fi
c915a581
JJ
4941if test -z "$CC"; then
4942 # Extract the first word of "cc", so it can be a program name with args.
4943set dummy cc; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
f35db108 4948else
c915a581
JJ
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108 4951else
c915a581 4952 ac_prog_rejected=no
f35db108
WM
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581
JJ
4960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4961 ac_prog_rejected=yes
4962 continue
4963 fi
4964 ac_cv_prog_CC="cc"
f35db108
WM
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969 done
4970IFS=$as_save_IFS
4971
c915a581
JJ
4972if test $ac_prog_rejected = yes; then
4973 # We found a bogon in the path, so make sure we never use it.
4974 set dummy $ac_cv_prog_CC
4975 shift
4976 if test $# != 0; then
4977 # We chose a different compiler from the bogus one.
4978 # However, it has the same basename, so the bogon will be chosen
4979 # first if we set CC to just the basename; use the full file name.
4980 shift
4981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4982 fi
4983fi
4984fi
4985fi
4986CC=$ac_cv_prog_CC
4987if test -n "$CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989$as_echo "$CC" >&6; }
f35db108
WM
4990else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
4993fi
4994
4995
4996fi
c915a581
JJ
4997if test -z "$CC"; then
4998 if test -n "$ac_tool_prefix"; then
4999 for ac_prog in cl.exe
5000 do
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
c915a581 5005if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
5006 $as_echo_n "(cached) " >&6
5007else
c915a581
JJ
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC="$CC" # Let the user override the test.
f35db108
WM
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 5018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
f35db108
WM
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023 done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
c915a581
JJ
5028CC=$ac_cv_prog_CC
5029if test -n "$CC"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5031$as_echo "$CC" >&6; }
f35db108
WM
5032else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
c915a581
JJ
5037
5038 test -n "$CC" && break
5039 done
5040fi
5041if test -z "$CC"; then
5042 ac_ct_CC=$CC
5043 for ac_prog in cl.exe
5044do
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046set dummy $ac_prog; ac_word=$2
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051else
5052 if test -n "$ac_ct_CC"; then
5053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_CC="$ac_prog"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066done
5067 done
5068IFS=$as_save_IFS
5069
5070fi
5071fi
5072ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073if test -n "$ac_ct_CC"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5075$as_echo "$ac_ct_CC" >&6; }
5076else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
5079fi
5080
5081
5082 test -n "$ac_ct_CC" && break
5083done
5084
5085 if test "x$ac_ct_CC" = x; then
5086 CC=""
f35db108
WM
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092ac_tool_warned=yes ;;
5093esac
c915a581 5094 CC=$ac_ct_CC
f35db108 5095 fi
f35db108
WM
5096fi
5097
c915a581 5098fi
f35db108
WM
5099
5100
c915a581
JJ
5101test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103as_fn_error "no acceptable C compiler found in \$PATH
5104See \`config.log' for more details." "$LINENO" 5; }
f35db108 5105
c915a581
JJ
5106# Provide some information about the compiler.
5107$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5108set X $ac_compile
5109ac_compiler=$2
5110for ac_option in --version -v -V -qversion; do
5111 { { ac_try="$ac_compiler $ac_option >&5"
5112case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117$as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5119 ac_status=$?
5120 if test -s conftest.err; then
5121 sed '10a\
5122... rest of stderr output deleted ...
5123 10q' conftest.err >conftest.er1
5124 cat conftest.er1 >&5
5125 rm -f conftest.er1 conftest.err
5126 fi
5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128 test $ac_status = 0; }
5129done
f35db108 5130
c915a581
JJ
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5133if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h. */
f35db108 5138
c915a581
JJ
5139int
5140main ()
5141{
5142#ifndef __GNUC__
5143 choke me
5144#endif
f35db108 5145
c915a581
JJ
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_compiler_gnu=yes
5152else
5153 ac_compiler_gnu=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156ac_cv_c_compiler_gnu=$ac_compiler_gnu
f35db108 5157
c915a581
JJ
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5161if test $ac_compiler_gnu = yes; then
5162 GCC=yes
5163else
5164 GCC=
5165fi
5166ac_test_CFLAGS=${CFLAGS+set}
5167ac_save_CFLAGS=$CFLAGS
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5169$as_echo_n "checking whether $CC accepts -g... " >&6; }
5170if test "${ac_cv_prog_cc_g+set}" = set; then :
f35db108
WM
5171 $as_echo_n "(cached) " >&6
5172else
c915a581
JJ
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5175 ac_cv_prog_cc_g=no
5176 CFLAGS="-g"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h. */
f35db108 5179
c915a581
JJ
5180int
5181main ()
5182{
f35db108 5183
c915a581
JJ
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_prog_cc_g=yes
5190else
5191 CFLAGS=""
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h. */
f35db108 5194
c915a581
JJ
5195int
5196main ()
5197{
f35db108 5198
c915a581
JJ
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
f35db108 5204
c915a581
JJ
5205else
5206 ac_c_werror_flag=$ac_save_c_werror_flag
5207 CFLAGS="-g"
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h. */
f35db108 5210
c915a581
JJ
5211int
5212main ()
5213{
f35db108 5214
c915a581
JJ
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_prog_cc_g=yes
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_c_werror_flag=$ac_save_c_werror_flag
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5230$as_echo "$ac_cv_prog_cc_g" >&6; }
5231if test "$ac_test_CFLAGS" = set; then
5232 CFLAGS=$ac_save_CFLAGS
5233elif test $ac_cv_prog_cc_g = yes; then
5234 if test "$GCC" = yes; then
5235 CFLAGS="-g -O2"
f35db108 5236 else
c915a581 5237 CFLAGS="-g"
f35db108 5238 fi
c915a581
JJ
5239else
5240 if test "$GCC" = yes; then
5241 CFLAGS="-O2"
5242 else
5243 CFLAGS=
5244 fi
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5248if test "${ac_cv_prog_cc_c89+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250else
5251 ac_cv_prog_cc_c89=no
5252ac_save_CC=$CC
5253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h. */
5255#include <stdarg.h>
5256#include <stdio.h>
5257#include <sys/types.h>
5258#include <sys/stat.h>
5259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5260struct buf { int x; };
5261FILE * (*rcsopen) (struct buf *, struct stat *, int);
5262static char *e (p, i)
5263 char **p;
5264 int i;
5265{
5266 return p[i];
5267}
5268static char *f (char * (*g) (char **, int), char **p, ...)
5269{
5270 char *s;
5271 va_list v;
5272 va_start (v,p);
5273 s = g (p, va_arg (v,int));
5274 va_end (v);
5275 return s;
5276}
f35db108 5277
c915a581
JJ
5278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5279 function prototypes and stuff, but not '\xHH' hex character constants.
5280 These don't provoke an error unfortunately, instead are silently treated
5281 as 'x'. The following induces an error, until -std is added to get
5282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5283 array size at least. It's necessary to write '\x00'==0 to get something
5284 that's true only with -std. */
5285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
f35db108 5286
c915a581
JJ
5287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5288 inside strings and character constants. */
5289#define FOO(x) 'x'
5290int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
f35db108 5291
c915a581
JJ
5292int test (int i, double x);
5293struct s1 {int (*f) (int a);};
5294struct s2 {int (*f) (double a);};
5295int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5296int argc;
5297char **argv;
5298int
5299main ()
5300{
5301return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5302 ;
5303 return 0;
5304}
5305_ACEOF
5306for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5308do
5309 CC="$ac_save_CC $ac_arg"
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_prog_cc_c89=$ac_arg
5312fi
5313rm -f core conftest.err conftest.$ac_objext
5314 test "x$ac_cv_prog_cc_c89" != "xno" && break
5315done
5316rm -f conftest.$ac_ext
5317CC=$ac_save_CC
f35db108 5318
c915a581
JJ
5319fi
5320# AC_CACHE_VAL
5321case "x$ac_cv_prog_cc_c89" in
5322 x)
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5324$as_echo "none needed" >&6; } ;;
5325 xno)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327$as_echo "unsupported" >&6; } ;;
5328 *)
5329 CC="$CC $ac_cv_prog_cc_c89"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5331$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5332esac
5333if test "x$ac_cv_prog_cc_c89" != xno; then :
f35db108 5334
c915a581 5335fi
f35db108 5336
c915a581
JJ
5337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5342
c915a581
JJ
5343ac_ext=cpp
5344ac_cpp='$CXXCPP $CPPFLAGS'
5345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348if test -z "$CXX"; then
5349 if test -n "$CCC"; then
5350 CXX=$CCC
f35db108 5351 else
c915a581
JJ
5352 if test -n "$ac_tool_prefix"; then
5353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354 do
5355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_CXX+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361else
5362 if test -n "$CXX"; then
5363 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
f35db108 5375 fi
c915a581
JJ
5376done
5377 done
5378IFS=$as_save_IFS
f35db108 5379
c915a581
JJ
5380fi
5381fi
5382CXX=$ac_cv_prog_CXX
5383if test -n "$CXX"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5385$as_echo "$CXX" >&6; }
5386else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
f35db108 5390
f35db108 5391
c915a581
JJ
5392 test -n "$CXX" && break
5393 done
f35db108 5394fi
c915a581
JJ
5395if test -z "$CXX"; then
5396 ac_ct_CXX=$CXX
5397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398do
5399 # Extract the first word of "$ac_prog", so it can be a program name with args.
5400set dummy $ac_prog; ac_word=$2
f35db108
WM
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
c915a581 5403if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
f35db108
WM
5404 $as_echo_n "(cached) " >&6
5405else
c915a581
JJ
5406 if test -n "$ac_ct_CXX"; then
5407 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
f35db108
WM
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 5416 ac_cv_prog_ac_ct_CXX="$ac_prog"
f35db108
WM
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420done
5421 done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
c915a581
JJ
5426ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5427if test -n "$ac_ct_CXX"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5429$as_echo "$ac_ct_CXX" >&6; }
f35db108
WM
5430else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
c915a581 5436 test -n "$ac_ct_CXX" && break
f35db108 5437done
f35db108 5438
c915a581
JJ
5439 if test "x$ac_ct_CXX" = x; then
5440 CXX="g++"
f35db108
WM
5441 else
5442 case $cross_compiling:$ac_tool_warned in
5443yes:)
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446ac_tool_warned=yes ;;
5447esac
c915a581 5448 CXX=$ac_ct_CXX
f35db108 5449 fi
f35db108
WM
5450fi
5451
f35db108 5452 fi
c915a581
JJ
5453fi
5454# Provide some information about the compiler.
5455$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5456set X $ac_compile
5457ac_compiler=$2
5458for ac_option in --version -v -V -qversion; do
5459 { { ac_try="$ac_compiler $ac_option >&5"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5465$as_echo "$ac_try_echo"; } >&5
5466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5467 ac_status=$?
5468 if test -s conftest.err; then
5469 sed '10a\
5470... rest of stderr output deleted ...
5471 10q' conftest.err >conftest.er1
5472 cat conftest.er1 >&5
5473 rm -f conftest.er1 conftest.err
5474 fi
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; }
f35db108 5477done
f35db108 5478
c915a581
JJ
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5480$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5481if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
f35db108 5483else
c915a581
JJ
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h. */
f35db108 5486
c915a581
JJ
5487int
5488main ()
5489{
5490#ifndef __GNUC__
5491 choke me
5492#endif
f35db108 5493
c915a581
JJ
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_cxx_try_compile "$LINENO"; then :
5499 ac_compiler_gnu=yes
f35db108 5500else
c915a581 5501 ac_compiler_gnu=no
f35db108 5502fi
c915a581
JJ
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5505
f35db108 5506fi
c915a581
JJ
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5508$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5509if test $ac_compiler_gnu = yes; then
5510 GXX=yes
f35db108 5511else
c915a581 5512 GXX=
f35db108 5513fi
c915a581
JJ
5514ac_test_CXXFLAGS=${CXXFLAGS+set}
5515ac_save_CXXFLAGS=$CXXFLAGS
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5517$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5518if test "${ac_cv_prog_cxx_g+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
f35db108 5520else
c915a581
JJ
5521 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5522 ac_cxx_werror_flag=yes
5523 ac_cv_prog_cxx_g=no
5524 CXXFLAGS="-g"
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h. */
f35db108 5527
c915a581
JJ
5528int
5529main ()
5530{
f35db108 5531
c915a581
JJ
5532 ;
5533 return 0;
5534}
5535_ACEOF
5536if ac_fn_cxx_try_compile "$LINENO"; then :
5537 ac_cv_prog_cxx_g=yes
5538else
5539 CXXFLAGS=""
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h. */
f35db108 5542
c915a581
JJ
5543int
5544main ()
5545{
f35db108 5546
c915a581
JJ
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551if ac_fn_cxx_try_compile "$LINENO"; then :
f35db108 5552
f35db108 5553else
c915a581
JJ
5554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555 CXXFLAGS="-g"
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h. */
f35db108 5558
c915a581
JJ
5559int
5560main ()
5561{
f35db108 5562
c915a581
JJ
5563 ;
5564 return 0;
5565}
5566_ACEOF
5567if ac_fn_cxx_try_compile "$LINENO"; then :
5568 ac_cv_prog_cxx_g=yes
f35db108 5569fi
c915a581 5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5571fi
c915a581 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f35db108 5573fi
c915a581
JJ
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
f35db108 5576fi
c915a581
JJ
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5578$as_echo "$ac_cv_prog_cxx_g" >&6; }
5579if test "$ac_test_CXXFLAGS" = set; then
5580 CXXFLAGS=$ac_save_CXXFLAGS
5581elif test $ac_cv_prog_cxx_g = yes; then
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-g -O2"
f35db108 5584 else
c915a581 5585 CXXFLAGS="-g"
f35db108
WM
5586 fi
5587else
c915a581
JJ
5588 if test "$GXX" = yes; then
5589 CXXFLAGS="-O2"
5590 else
5591 CXXFLAGS=
5592 fi
f35db108 5593fi
c915a581
JJ
5594ac_ext=c
5595ac_cpp='$CPP $CPPFLAGS'
5596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 5599
c915a581 5600depcc="$CXX" am_compiler_list=
f35db108 5601
c915a581
JJ
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5603$as_echo_n "checking dependency style of $depcc... " >&6; }
5604if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608 # We make a subdir and do the tests there. Otherwise we can end up
5609 # making bogus files that we don't know about and never remove. For
5610 # instance it was reported that on HP-UX the gcc test will end up
5611 # making a dummy file named `D' -- because `-MD' means `put the output
5612 # in D'.
f3915b42 5613 rm -rf conftest.dir
c915a581
JJ
5614 mkdir conftest.dir
5615 # Copy depcomp to subdir because otherwise we won't find it if we're
5616 # using a relative directory.
5617 cp "$am_depcomp" conftest.dir
5618 cd conftest.dir
5619 # We will build objects and dependencies in a subdirectory because
5620 # it helps to detect inapplicable dependency modes. For instance
5621 # both Tru64's cc and ICC support -MD to output dependencies as a
5622 # side effect of compilation, but ICC will put the dependencies in
5623 # the current directory while Tru64 will put them in the object
5624 # directory.
5625 mkdir sub
f35db108 5626
c915a581
JJ
5627 am_cv_CXX_dependencies_compiler_type=none
5628 if test "$am_compiler_list" = ""; then
5629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5630 fi
5631 am__universal=false
5632 case " $depcc " in #(
5633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5634 esac
f35db108 5635
c915a581
JJ
5636 for depmode in $am_compiler_list; do
5637 # Setup a source with many dependencies, because some compilers
5638 # like to wrap large dependency lists on column 80 (with \), and
5639 # we should not choose a depcomp mode which is confused by this.
5640 #
5641 # We need to recreate these files for each test, as the compiler may
5642 # overwrite some of them when testing with obscure command lines.
5643 # This happens at least with the AIX C compiler.
5644 : > sub/conftest.c
5645 for i in 1 2 3 4 5 6; do
5646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5648 # Solaris 8's {/usr,}/bin/sh.
5649 touch sub/conftst$i.h
5650 done
5651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 5652
c915a581
JJ
5653 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5654 # mode. It turns out that the SunPro C++ compiler does not properly
5655 # handle `-M -o', and we need to detect this. Also, some Intel
5656 # versions had trouble with output in subdirs
5657 am__obj=sub/conftest.${OBJEXT-o}
5658 am__minus_obj="-o $am__obj"
5659 case $depmode in
5660 gcc)
5661 # This depmode causes a compiler race in universal mode.
5662 test "$am__universal" = false || continue
5663 ;;
5664 nosideeffect)
5665 # after this tag, mechanisms are not by side-effect, so they'll
5666 # only be used when explicitly requested
5667 if test "x$enable_dependency_tracking" = xyes; then
5668 continue
5669 else
5670 break
5671 fi
5672 ;;
f3915b42 5673 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
c915a581
JJ
5674 # This compiler won't grok `-c -o', but also, the minuso test has
5675 # not run yet. These depmodes are late enough in the game, and
5676 # so weak that their functioning should not be impacted.
5677 am__obj=conftest.${OBJEXT-o}
5678 am__minus_obj=
5679 ;;
5680 none) break ;;
5681 esac
5682 if depmode=$depmode \
5683 source=sub/conftest.c object=$am__obj \
5684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5686 >/dev/null 2>conftest.err &&
5687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5691 # icc doesn't choke on unknown options, it will just issue warnings
5692 # or remarks (even with -Werror). So we grep stderr for any message
5693 # that says an option was ignored or not supported.
5694 # When given -MP, icc 7.0 and 7.1 complain thusly:
5695 # icc: Command line warning: ignoring option '-M'; no argument required
5696 # The diagnosis changed in icc 8.0:
5697 # icc: Command line remark: option '-MP' not supported
5698 if (grep 'ignoring option' conftest.err ||
5699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5700 am_cv_CXX_dependencies_compiler_type=$depmode
5701 break
5702 fi
5703 fi
5704 done
f35db108 5705
c915a581
JJ
5706 cd ..
5707 rm -rf conftest.dir
5708else
5709 am_cv_CXX_dependencies_compiler_type=none
5710fi
f35db108 5711
c915a581
JJ
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5714$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5715CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
f35db108 5716
c915a581
JJ
5717 if
5718 test "x$enable_dependency_tracking" != xno \
5719 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5720 am__fastdepCXX_TRUE=
5721 am__fastdepCXX_FALSE='#'
5722else
5723 am__fastdepCXX_TRUE='#'
5724 am__fastdepCXX_FALSE=
5725fi
f35db108
WM
5726
5727
c915a581 5728# By default we simply use the C compiler to build assembly code.
f35db108 5729
c915a581
JJ
5730test "${CCAS+set}" = set || CCAS=$CC
5731test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
f35db108
WM
5732
5733
5734
c915a581 5735depcc="$CCAS" am_compiler_list=
f35db108 5736
c915a581
JJ
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5738$as_echo_n "checking dependency style of $depcc... " >&6; }
5739if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5743 # We make a subdir and do the tests there. Otherwise we can end up
5744 # making bogus files that we don't know about and never remove. For
5745 # instance it was reported that on HP-UX the gcc test will end up
5746 # making a dummy file named `D' -- because `-MD' means `put the output
5747 # in D'.
f3915b42 5748 rm -rf conftest.dir
c915a581
JJ
5749 mkdir conftest.dir
5750 # Copy depcomp to subdir because otherwise we won't find it if we're
5751 # using a relative directory.
5752 cp "$am_depcomp" conftest.dir
5753 cd conftest.dir
5754 # We will build objects and dependencies in a subdirectory because
5755 # it helps to detect inapplicable dependency modes. For instance
5756 # both Tru64's cc and ICC support -MD to output dependencies as a
5757 # side effect of compilation, but ICC will put the dependencies in
5758 # the current directory while Tru64 will put them in the object
5759 # directory.
5760 mkdir sub
f35db108 5761
c915a581
JJ
5762 am_cv_CCAS_dependencies_compiler_type=none
5763 if test "$am_compiler_list" = ""; then
5764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5765 fi
5766 am__universal=false
f35db108
WM
5767
5768
c915a581
JJ
5769 for depmode in $am_compiler_list; do
5770 # Setup a source with many dependencies, because some compilers
5771 # like to wrap large dependency lists on column 80 (with \), and
5772 # we should not choose a depcomp mode which is confused by this.
5773 #
5774 # We need to recreate these files for each test, as the compiler may
5775 # overwrite some of them when testing with obscure command lines.
5776 # This happens at least with the AIX C compiler.
5777 : > sub/conftest.c
5778 for i in 1 2 3 4 5 6; do
5779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5781 # Solaris 8's {/usr,}/bin/sh.
5782 touch sub/conftst$i.h
5783 done
5784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
f35db108 5785
c915a581
JJ
5786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5787 # mode. It turns out that the SunPro C++ compiler does not properly
5788 # handle `-M -o', and we need to detect this. Also, some Intel
5789 # versions had trouble with output in subdirs
5790 am__obj=sub/conftest.${OBJEXT-o}
5791 am__minus_obj="-o $am__obj"
5792 case $depmode in
5793 gcc)
5794 # This depmode causes a compiler race in universal mode.
5795 test "$am__universal" = false || continue
5796 ;;
5797 nosideeffect)
5798 # after this tag, mechanisms are not by side-effect, so they'll
5799 # only be used when explicitly requested
5800 if test "x$enable_dependency_tracking" = xyes; then
5801 continue
5802 else
5803 break
5804 fi
5805 ;;
f3915b42 5806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
c915a581
JJ
5807 # This compiler won't grok `-c -o', but also, the minuso test has
5808 # not run yet. These depmodes are late enough in the game, and
5809 # so weak that their functioning should not be impacted.
5810 am__obj=conftest.${OBJEXT-o}
5811 am__minus_obj=
5812 ;;
5813 none) break ;;
5814 esac
5815 if depmode=$depmode \
5816 source=sub/conftest.c object=$am__obj \
5817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5819 >/dev/null 2>conftest.err &&
5820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5824 # icc doesn't choke on unknown options, it will just issue warnings
5825 # or remarks (even with -Werror). So we grep stderr for any message
5826 # that says an option was ignored or not supported.
5827 # When given -MP, icc 7.0 and 7.1 complain thusly:
5828 # icc: Command line warning: ignoring option '-M'; no argument required
5829 # The diagnosis changed in icc 8.0:
5830 # icc: Command line remark: option '-MP' not supported
5831 if (grep 'ignoring option' conftest.err ||
5832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5833 am_cv_CCAS_dependencies_compiler_type=$depmode
5834 break
5835 fi
5836 fi
5837 done
f35db108 5838
c915a581
JJ
5839 cd ..
5840 rm -rf conftest.dir
5841else
5842 am_cv_CCAS_dependencies_compiler_type=none
5843fi
f35db108 5844
c915a581
JJ
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5847$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5848CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
f35db108 5849
c915a581
JJ
5850 if
5851 test "x$enable_dependency_tracking" != xno \
5852 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5853 am__fastdepCCAS_TRUE=
5854 am__fastdepCCAS_FALSE='#'
5855else
5856 am__fastdepCCAS_TRUE='#'
5857 am__fastdepCCAS_FALSE=
5858fi
f35db108
WM
5859
5860
c915a581
JJ
5861if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if test "${ac_cv_prog_RANLIB+set}" = set; then :
f35db108
WM
5867 $as_echo_n "(cached) " >&6
5868else
c915a581
JJ
5869 if test -n "$RANLIB"; then
5870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884 done
5885IFS=$as_save_IFS
f35db108 5886
c915a581
JJ
5887fi
5888fi
5889RANLIB=$ac_cv_prog_RANLIB
5890if test -n "$RANLIB"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5892$as_echo "$RANLIB" >&6; }
5893else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
f35db108 5897
f35db108 5898
c915a581
JJ
5899fi
5900if test -z "$ac_cv_prog_RANLIB"; then
5901 ac_ct_RANLIB=$RANLIB
5902 # Extract the first word of "ranlib", so it can be a program name with args.
5903set dummy ranlib; ac_word=$2
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905$as_echo_n "checking for $ac_word... " >&6; }
5906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908else
5909 if test -n "$ac_ct_RANLIB"; then
5910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_ac_ct_RANLIB="ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
f35db108
WM
5922 fi
5923done
c915a581
JJ
5924 done
5925IFS=$as_save_IFS
f35db108
WM
5926
5927fi
f35db108 5928fi
c915a581
JJ
5929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5930if test -n "$ac_ct_RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5932$as_echo "$ac_ct_RANLIB" >&6; }
f35db108 5933else
c915a581
JJ
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
f35db108
WM
5936fi
5937
c915a581
JJ
5938 if test "x$ac_ct_RANLIB" = x; then
5939 RANLIB=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942yes:)
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945ac_tool_warned=yes ;;
5946esac
5947 RANLIB=$ac_ct_RANLIB
5948 fi
5949else
5950 RANLIB="$ac_cv_prog_RANLIB"
5951fi
f35db108
WM
5952
5953
c915a581 5954enable_dlopen=yes
f35db108
WM
5955
5956
5957
c915a581
JJ
5958case `pwd` in
5959 *\ * | *\ *)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5962esac
f35db108
WM
5963
5964
5965
c915a581
JJ
5966macro_version='2.2.7a'
5967macro_revision='1.3134'
f35db108
WM
5968
5969
5970
5971
5972
5973
5974
5975
5976
f35db108
WM
5977
5978
5979
5980
c915a581 5981ltmain="$ac_aux_dir/ltmain.sh"
f35db108 5982
c915a581
JJ
5983# Backslashify metacharacters that are still active within
5984# double-quoted strings.
5985sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
f35db108 5986
c915a581
JJ
5987# Same as above, but do not quote variable references.
5988double_quote_subst='s/\(["`\\]\)/\\\1/g'
f35db108 5989
c915a581
JJ
5990# Sed substitution to delay expansion of an escaped shell variable in a
5991# double_quote_subst'ed string.
5992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
f35db108 5993
c915a581
JJ
5994# Sed substitution to delay expansion of an escaped single quote.
5995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
f35db108 5996
c915a581
JJ
5997# Sed substitution to avoid accidental globbing in evaled expressions
5998no_glob_subst='s/\*/\\\*/g'
f35db108 5999
c915a581
JJ
6000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
f35db108 6003
c915a581
JJ
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6005$as_echo_n "checking how to print strings... " >&6; }
6006# Test print first, because it will be a builtin if present.
6007if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6009 ECHO='print -r --'
6010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6011 ECHO='printf %s\n'
f35db108 6012else
c915a581
JJ
6013 # Use this function as a fallback that always works.
6014 func_fallback_echo ()
6015 {
6016 eval 'cat <<_LTECHO_EOF
6017$1
6018_LTECHO_EOF'
6019 }
6020 ECHO='func_fallback_echo'
f35db108 6021fi
f35db108 6022
c915a581
JJ
6023# func_echo_all arg...
6024# Invoke $ECHO with all args, space-separated.
6025func_echo_all ()
6026{
6027 $ECHO ""
6028}
6029
6030case "$ECHO" in
6031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6032$as_echo "printf" >&6; } ;;
6033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6034$as_echo "print -r" >&6; } ;;
6035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6036$as_echo "cat" >&6; } ;;
f35db108
WM
6037esac
6038
f35db108 6039
f35db108 6040
c915a581
JJ
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6053$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6054if test "${ac_cv_path_SED+set}" = set; then :
f35db108
WM
6055 $as_echo_n "(cached) " >&6
6056else
c915a581
JJ
6057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6058 for ac_i in 1 2 3 4 5 6 7; do
6059 ac_script="$ac_script$as_nl$ac_script"
6060 done
6061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6062 { ac_script=; unset ac_script;}
6063 if test -z "$SED"; then
6064 ac_path_SED_found=false
6065 # Loop through the user's path and test for each of PROGNAME-LIST
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
f35db108
WM
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
c915a581 6071 for ac_prog in sed gsed; do
f35db108 6072 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581
JJ
6073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6074 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6075# Check for GNU ac_path_SED and select it if it is found.
6076 # Check for GNU $ac_path_SED
6077case `"$ac_path_SED" --version 2>&1` in
6078*GNU*)
6079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6080*)
6081 ac_count=0
6082 $as_echo_n 0123456789 >"conftest.in"
6083 while :
6084 do
6085 cat "conftest.in" "conftest.in" >"conftest.tmp"
6086 mv "conftest.tmp" "conftest.in"
6087 cp "conftest.in" "conftest.nl"
6088 $as_echo '' >> "conftest.nl"
6089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6091 as_fn_arith $ac_count + 1 && ac_count=$as_val
6092 if test $ac_count -gt ${ac_path_SED_max-0}; then
6093 # Best one so far, save it but keep looking for a better one
6094 ac_cv_path_SED="$ac_path_SED"
6095 ac_path_SED_max=$ac_count
6096 fi
6097 # 10*(2^10) chars as input seems more than enough
6098 test $ac_count -gt 10 && break
f35db108 6099 done
c915a581
JJ
6100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6101esac
f35db108 6102
c915a581
JJ
6103 $ac_path_SED_found && break 3
6104 done
6105 done
f35db108
WM
6106 done
6107IFS=$as_save_IFS
c915a581
JJ
6108 if test -z "$ac_cv_path_SED"; then
6109 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6110 fi
f35db108 6111else
c915a581 6112 ac_cv_path_SED=$SED
f35db108
WM
6113fi
6114
f35db108 6115fi
c915a581
JJ
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6117$as_echo "$ac_cv_path_SED" >&6; }
6118 SED="$ac_cv_path_SED"
6119 rm -f conftest.sed
f35db108 6120
c915a581
JJ
6121test -z "$SED" && SED=sed
6122Xsed="$SED -e 1s/^X//"
f35db108 6123
f35db108
WM
6124
6125
c915a581
JJ
6126
6127
6128
6129
6130
6131
6132
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6135$as_echo_n "checking for fgrep... " >&6; }
6136if test "${ac_cv_path_FGREP+set}" = set; then :
f35db108
WM
6137 $as_echo_n "(cached) " >&6
6138else
c915a581
JJ
6139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6140 then ac_cv_path_FGREP="$GREP -F"
6141 else
6142 if test -z "$FGREP"; then
6143 ac_path_FGREP_found=false
6144 # Loop through the user's path and test for each of PROGNAME-LIST
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
f35db108
WM
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
c915a581 6150 for ac_prog in fgrep; do
f35db108 6151 for ac_exec_ext in '' $ac_executable_extensions; do
c915a581
JJ
6152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6153 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6154# Check for GNU ac_path_FGREP and select it if it is found.
6155 # Check for GNU $ac_path_FGREP
6156case `"$ac_path_FGREP" --version 2>&1` in
6157*GNU*)
6158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6159*)
6160 ac_count=0
6161 $as_echo_n 0123456789 >"conftest.in"
6162 while :
6163 do
6164 cat "conftest.in" "conftest.in" >"conftest.tmp"
6165 mv "conftest.tmp" "conftest.in"
6166 cp "conftest.in" "conftest.nl"
6167 $as_echo 'FGREP' >> "conftest.nl"
6168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6170 as_fn_arith $ac_count + 1 && ac_count=$as_val
6171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6172 # Best one so far, save it but keep looking for a better one
6173 ac_cv_path_FGREP="$ac_path_FGREP"
6174 ac_path_FGREP_max=$ac_count
6175 fi
6176 # 10*(2^10) chars as input seems more than enough
6177 test $ac_count -gt 10 && break
f35db108 6178 done
c915a581
JJ
6179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6180esac
f35db108 6181
c915a581
JJ
6182 $ac_path_FGREP_found && break 3
6183 done
6184 done
6185 done
6186IFS=$as_save_IFS
6187 if test -z "$ac_cv_path_FGREP"; then
6188 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6189 fi
f35db108 6190else
c915a581 6191 ac_cv_path_FGREP=$FGREP
f35db108
WM
6192fi
6193
c915a581 6194 fi
f35db108 6195fi
c915a581
JJ
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6197$as_echo "$ac_cv_path_FGREP" >&6; }
6198 FGREP="$ac_cv_path_FGREP"
f35db108 6199
c915a581
JJ
6200
6201test -z "$GREP" && GREP=grep
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221# Check whether --with-gnu-ld was given.
6222if test "${with_gnu_ld+set}" = set; then :
6223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6224else
6225 with_gnu_ld=no
6226fi
6227
6228ac_prog=ld
6229if test "$GCC" = yes; then
6230 # Check if gcc -print-prog-name=ld gives a path.
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6232$as_echo_n "checking for ld used by $CC... " >&6; }
6233 case $host in
6234 *-*-mingw*)
6235 # gcc leaves a trailing carriage return which upsets mingw
6236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6237 *)
6238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6239 esac
6240 case $ac_prog in
6241 # Accept absolute paths.
6242 [\\/]* | ?:[\\/]*)
6243 re_direlt='/[^/][^/]*/\.\./'
6244 # Canonicalize the pathname of ld
6245 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6246 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6247 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6248 done
6249 test -z "$LD" && LD="$ac_prog"
6250 ;;
6251 "")
6252 # If it fails, then pretend we aren't using GCC.
6253 ac_prog=ld
6254 ;;
6255 *)
6256 # If it is relative, then search for the first ld in PATH.
6257 with_gnu_ld=unknown
6258 ;;
6259 esac
6260elif test "$with_gnu_ld" = yes; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6262$as_echo_n "checking for GNU ld... " >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6265$as_echo_n "checking for non-GNU ld... " >&6; }
6266fi
6267if test "${lt_cv_path_LD+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269else
6270 if test -z "$LD"; then
6271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6272 for ac_dir in $PATH; do
6273 IFS="$lt_save_ifs"
6274 test -z "$ac_dir" && ac_dir=.
6275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6276 lt_cv_path_LD="$ac_dir/$ac_prog"
6277 # Check to see if the program is GNU ld. I'd rather use --version,
6278 # but apparently some variants of GNU ld only accept -v.
6279 # Break only if it was the GNU/non-GNU ld that we prefer.
6280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282 test "$with_gnu_ld" != no && break
6283 ;;
6284 *)
6285 test "$with_gnu_ld" != yes && break
6286 ;;
6287 esac
6288 fi
6289 done
6290 IFS="$lt_save_ifs"
6291else
6292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6293fi
6294fi
6295
6296LD="$lt_cv_path_LD"
6297if test -n "$LD"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6299$as_echo "$LD" >&6; }
6300else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6306$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6307if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309else
6310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6311case `$LD -v 2>&1 </dev/null` in
6312*GNU* | *'with BFD'*)
6313 lt_cv_prog_gnu_ld=yes
6314 ;;
6315*)
6316 lt_cv_prog_gnu_ld=no
6317 ;;
6318esac
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6321$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6322with_gnu_ld=$lt_cv_prog_gnu_ld
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6333$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6334if test "${lt_cv_path_NM+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336else
6337 if test -n "$NM"; then
6338 # Let the user override the test.
6339 lt_cv_path_NM="$NM"
6340else
6341 lt_nm_to_check="${ac_tool_prefix}nm"
6342 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6343 lt_nm_to_check="$lt_nm_to_check nm"
6344 fi
6345 for lt_tmp_nm in $lt_nm_to_check; do
6346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6347 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6348 IFS="$lt_save_ifs"
6349 test -z "$ac_dir" && ac_dir=.
6350 tmp_nm="$ac_dir/$lt_tmp_nm"
6351 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6352 # Check to see if the nm accepts a BSD-compat flag.
6353 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6354 # nm: unknown option "B" ignored
6355 # Tru64's nm complains that /dev/null is an invalid object file
6356 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6357 */dev/null* | *'Invalid file or object type'*)
6358 lt_cv_path_NM="$tmp_nm -B"
6359 break
6360 ;;
6361 *)
6362 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6363 */dev/null*)
6364 lt_cv_path_NM="$tmp_nm -p"
6365 break
6366 ;;
6367 *)
6368 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6369 continue # so that we can try to find one that supports BSD flags
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375 done
6376 IFS="$lt_save_ifs"
6377 done
6378 : ${lt_cv_path_NM=no}
6379fi
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6382$as_echo "$lt_cv_path_NM" >&6; }
6383if test "$lt_cv_path_NM" != "no"; then
6384 NM="$lt_cv_path_NM"
6385else
6386 # Didn't find any BSD compatible name lister, look for dumpbin.
6387 if test -n "$DUMPBIN"; then :
6388 # Let the user override the test.
6389 else
f35db108 6390 if test -n "$ac_tool_prefix"; then
c915a581
JJ
6391 for ac_prog in dumpbin "link -dump"
6392 do
6393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f35db108
WM
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
c915a581 6397if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
f35db108
WM
6398 $as_echo_n "(cached) " >&6
6399else
c915a581
JJ
6400 if test -n "$DUMPBIN"; then
6401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
f35db108
WM
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 6410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
f35db108
WM
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
c915a581
JJ
6420DUMPBIN=$ac_cv_prog_DUMPBIN
6421if test -n "$DUMPBIN"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6423$as_echo "$DUMPBIN" >&6; }
f35db108
WM
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
c915a581
JJ
6430 test -n "$DUMPBIN" && break
6431 done
f35db108 6432fi
c915a581
JJ
6433if test -z "$DUMPBIN"; then
6434 ac_ct_DUMPBIN=$DUMPBIN
6435 for ac_prog in dumpbin "link -dump"
6436do
6437 # Extract the first word of "$ac_prog", so it can be a program name with args.
6438set dummy $ac_prog; ac_word=$2
f35db108
WM
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
c915a581 6441if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
f35db108
WM
6442 $as_echo_n "(cached) " >&6
6443else
c915a581
JJ
6444 if test -n "$ac_ct_DUMPBIN"; then
6445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
f35db108
WM
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c915a581 6454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
f35db108
WM
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459 done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
c915a581
JJ
6464ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6465if test -n "$ac_ct_DUMPBIN"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6467$as_echo "$ac_ct_DUMPBIN" >&6; }
f35db108
WM
6468else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
c915a581
JJ
6473
6474 test -n "$ac_ct_DUMPBIN" && break
6475done
6476
6477 if test "x$ac_ct_DUMPBIN" = x; then
6478 DUMPBIN=":"
f35db108
WM
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481yes:)
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484ac_tool_warned=yes ;;
6485esac
c915a581 6486 DUMPBIN=$ac_ct_DUMPBIN
f35db108 6487 fi
f35db108
WM
6488fi
6489
c915a581
JJ
6490 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6491 *COFF*)
6492 DUMPBIN="$DUMPBIN -symbols"
6493 ;;
6494 *)
6495 DUMPBIN=:
6496 ;;
6497 esac
f35db108 6498 fi
f35db108 6499
c915a581
JJ
6500 if test "$DUMPBIN" != ":"; then
6501 NM="$DUMPBIN"
6502 fi
f35db108 6503fi
c915a581 6504test -z "$NM" && NM=nm
f35db108
WM
6505
6506
f35db108 6507
f35db108 6508
f35db108 6509
c915a581
JJ
6510
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6512$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6513if test "${lt_cv_nm_interface+set}" = set; then :
f35db108
WM
6514 $as_echo_n "(cached) " >&6
6515else
c915a581
JJ
6516 lt_cv_nm_interface="BSD nm"
6517 echo "int some_variable = 0;" > conftest.$ac_ext
6518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6519 (eval "$ac_compile" 2>conftest.err)
6520 cat conftest.err >&5
6521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6523 cat conftest.err >&5
6524 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6525 cat conftest.out >&5
6526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6527 lt_cv_nm_interface="MS dumpbin"
f35db108 6528 fi
c915a581 6529 rm -f conftest*
f35db108 6530fi
c915a581
JJ
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6532$as_echo "$lt_cv_nm_interface" >&6; }
6533
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6535$as_echo_n "checking whether ln -s works... " >&6; }
6536LN_S=$as_ln_s
6537if test "$LN_S" = "ln -s"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6539$as_echo "yes" >&6; }
f35db108 6540else
c915a581
JJ
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6542$as_echo "no, using $LN_S" >&6; }
f35db108
WM
6543fi
6544
c915a581
JJ
6545# find the maximum length of command line arguments
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6548if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
f35db108
WM
6549 $as_echo_n "(cached) " >&6
6550else
c915a581
JJ
6551 i=0
6552 teststring="ABCD"
f35db108 6553
c915a581
JJ
6554 case $build_os in
6555 msdosdjgpp*)
6556 # On DJGPP, this test can blow up pretty badly due to problems in libc
6557 # (any single argument exceeding 2000 bytes causes a buffer overrun
6558 # during glob expansion). Even if it were fixed, the result of this
6559 # check would be larger than it should be.
6560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6561 ;;
f35db108 6562
c915a581
JJ
6563 gnu*)
6564 # Under GNU Hurd, this test is not required because there is
6565 # no limit to the length of command line arguments.
6566 # Libtool will interpret -1 as no limit whatsoever
6567 lt_cv_sys_max_cmd_len=-1;
6568 ;;
f35db108 6569
c915a581
JJ
6570 cygwin* | mingw* | cegcc*)
6571 # On Win9x/ME, this test blows up -- it succeeds, but takes
6572 # about 5 minutes as the teststring grows exponentially.
6573 # Worse, since 9x/ME are not pre-emptively multitasking,
6574 # you end up with a "frozen" computer, even though with patience
6575 # the test eventually succeeds (with a max line length of 256k).
6576 # Instead, let's just punt: use the minimum linelength reported by
6577 # all of the supported platforms: 8192 (on NT/2K/XP).
6578 lt_cv_sys_max_cmd_len=8192;
6579 ;;
f35db108 6580
c915a581
JJ
6581 mint*)
6582 # On MiNT this can take a long time and run out of memory.
6583 lt_cv_sys_max_cmd_len=8192;
6584 ;;
f35db108 6585
c915a581
JJ
6586 amigaos*)
6587 # On AmigaOS with pdksh, this test takes hours, literally.
6588 # So we just punt and use a minimum line length of 8192.
6589 lt_cv_sys_max_cmd_len=8192;
6590 ;;
f35db108 6591
c915a581
JJ
6592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593 # This has been around since 386BSD, at least. Likely further.
6594 if test -x /sbin/sysctl; then
6595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596 elif test -x /usr/sbin/sysctl; then
6597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598 else
6599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6600 fi
6601 # And add a safety zone
6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604 ;;
f35db108 6605
c915a581
JJ
6606 interix*)
6607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608 lt_cv_sys_max_cmd_len=196608
6609 ;;
6610
6611 osf*)
6612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614 # nice to cause kernel panics so lets avoid the loop below.
6615 # First set a reasonable default.
6616 lt_cv_sys_max_cmd_len=16384
6617 #
6618 if test -x /sbin/sysconfig; then
6619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621 esac
6622 fi
6623 ;;
6624 sco3.2v5*)
6625 lt_cv_sys_max_cmd_len=102400
6626 ;;
6627 sysv5* | sco5v6* | sysv4.2uw2*)
6628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629 if test -n "$kargmax"; then
6630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6631 else
6632 lt_cv_sys_max_cmd_len=32768
6633 fi
6634 ;;
6635 *)
6636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637 if test -n "$lt_cv_sys_max_cmd_len"; then
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640 else
6641 # Make teststring a little bigger before we do anything with it.
6642 # a 1K string should be a reasonable start.
6643 for i in 1 2 3 4 5 6 7 8 ; do
6644 teststring=$teststring$teststring
6645 done
6646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647 # If test is not a shell built-in, we'll probably end up computing a
6648 # maximum length that is only half of the actual maximum length, but
6649 # we can't tell.
6650 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6652 test $i != 17 # 1/2 MB should be enough
6653 do
6654 i=`expr $i + 1`
6655 teststring=$teststring$teststring
6656 done
6657 # Only check the string length outside the loop.
6658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659 teststring=
6660 # Add a significant safety factor because C++ compilers can tack on
6661 # massive amounts of additional arguments before passing them to the
6662 # linker. It appears as though 1/2 is a usable value.
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6664 fi
6665 ;;
6666 esac
6667
6668fi
6669
6670if test -n $lt_cv_sys_max_cmd_len ; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675$as_echo "none" >&6; }
6676fi
6677max_cmd_len=$lt_cv_sys_max_cmd_len
f35db108
WM
6678
6679
6680
6681
6682
6683
c915a581
JJ
6684: ${CP="cp -f"}
6685: ${MV="mv -f"}
6686: ${RM="rm -f"}
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690# Try some XSI features
6691xsi_shell=no
6692( _lt_dummy="a/b/c"
6693 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6694 = c,a/b,, \
6695 && eval 'test $(( 1 + 1 )) -eq 2 \
6696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697 && xsi_shell=yes
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699$as_echo "$xsi_shell" >&6; }
6700
6701
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704lt_shell_append=no
6705( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706 >/dev/null 2>&1 \
6707 && lt_shell_append=yes
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709$as_echo "$lt_shell_append" >&6; }
f35db108
WM
6710
6711
c915a581
JJ
6712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6713 lt_unset=unset
6714else
6715 lt_unset=false
6716fi
f35db108
WM
6717
6718
6719
6720
6721
c915a581
JJ
6722# test EBCDIC or ASCII
6723case `echo X|tr X '\101'` in
6724 A) # ASCII based system
6725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726 lt_SP2NL='tr \040 \012'
6727 lt_NL2SP='tr \015\012 \040\040'
6728 ;;
6729 *) # EBCDIC based system
6730 lt_SP2NL='tr \100 \n'
6731 lt_NL2SP='tr \r\n \100\100'
6732 ;;
6733esac
f35db108
WM
6734
6735
6736
6737
6738
6739
6740
6741
6742
c915a581
JJ
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6744$as_echo_n "checking for $LD option to reload object files... " >&6; }
6745if test "${lt_cv_ld_reload_flag+set}" = set; then :
f35db108
WM
6746 $as_echo_n "(cached) " >&6
6747else
c915a581 6748 lt_cv_ld_reload_flag='-r'
f35db108 6749fi
c915a581
JJ
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6751$as_echo "$lt_cv_ld_reload_flag" >&6; }
6752reload_flag=$lt_cv_ld_reload_flag
6753case $reload_flag in
6754"" | " "*) ;;
6755*) reload_flag=" $reload_flag" ;;
6756esac
6757reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758case $host_os in
6759 darwin*)
6760 if test "$GCC" = yes; then
6761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6762 else
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764 fi
6765 ;;
6766esac
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6778set dummy ${ac_tool_prefix}objdump; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
f35db108
WM
6782 $as_echo_n "(cached) " >&6
6783else
c915a581
JJ
6784 if test -n "$OBJDUMP"; then
6785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799 done
6800IFS=$as_save_IFS
f35db108 6801
c915a581
JJ
6802fi
6803fi
6804OBJDUMP=$ac_cv_prog_OBJDUMP
6805if test -n "$OBJDUMP"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6807$as_echo "$OBJDUMP" >&6; }
f35db108 6808else
c915a581
JJ
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
f35db108 6811fi
c915a581 6812
f35db108
WM
6813
6814fi
c915a581
JJ
6815if test -z "$ac_cv_prog_OBJDUMP"; then
6816 ac_ct_OBJDUMP=$OBJDUMP
6817 # Extract the first word of "objdump", so it can be a program name with args.
6818set dummy objdump; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
f35db108
WM
6822 $as_echo_n "(cached) " >&6
6823else
c915a581
JJ
6824 if test -n "$ac_ct_OBJDUMP"; then
6825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
f35db108 6826else
c915a581
JJ
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
f35db108 6829do
c915a581
JJ
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
f35db108 6838done
c915a581
JJ
6839 done
6840IFS=$as_save_IFS
f35db108
WM
6841
6842fi
f35db108 6843fi
c915a581
JJ
6844ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6845if test -n "$ac_ct_OBJDUMP"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6847$as_echo "$ac_ct_OBJDUMP" >&6; }
f35db108 6848else
c915a581
JJ
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
f35db108 6851fi
f35db108 6852
c915a581
JJ
6853 if test "x$ac_ct_OBJDUMP" = x; then
6854 OBJDUMP="false"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862 OBJDUMP=$ac_ct_OBJDUMP
6863 fi
f35db108 6864else
c915a581 6865 OBJDUMP="$ac_cv_prog_OBJDUMP"
f35db108 6866fi
f35db108 6867
c915a581 6868test -z "$OBJDUMP" && OBJDUMP=objdump
f35db108 6869
f35db108 6870
f35db108
WM
6871
6872
f35db108 6873
f35db108 6874
f35db108 6875
f35db108 6876
f35db108 6877
c915a581
JJ
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6879$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6880if test "${lt_cv_deplibs_check_method+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
f35db108 6882else
c915a581
JJ
6883 lt_cv_file_magic_cmd='$MAGIC_CMD'
6884lt_cv_file_magic_test_file=
6885lt_cv_deplibs_check_method='unknown'
6886# Need to set the preceding variable on all platforms that support
6887# interlibrary dependencies.
6888# 'none' -- dependencies not supported.
6889# `unknown' -- same as none, but documents that we really don't know.
6890# 'pass_all' -- all dependencies passed with no checks.
6891# 'test_compile' -- check by making test program.
6892# 'file_magic [[regex]]' -- check by looking for files in library path
6893# which responds to the $file_magic_cmd with a given extended regex.
6894# If you have `file' or equivalent on your system and you're not sure
6895# whether `pass_all' will *always* work, you probably want this one.
f35db108 6896
c915a581
JJ
6897case $host_os in
6898aix[4-9]*)
6899 lt_cv_deplibs_check_method=pass_all
6900 ;;
f35db108 6901
c915a581
JJ
6902beos*)
6903 lt_cv_deplibs_check_method=pass_all
6904 ;;
f35db108 6905
c915a581
JJ
6906bsdi[45]*)
6907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908 lt_cv_file_magic_cmd='/usr/bin/file -L'
6909 lt_cv_file_magic_test_file=/shlib/libc.so
6910 ;;
f35db108 6911
c915a581
JJ
6912cygwin*)
6913 # func_win32_libid is a shell function defined in ltmain.sh
6914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915 lt_cv_file_magic_cmd='func_win32_libid'
6916 ;;
f35db108 6917
c915a581
JJ
6918mingw* | pw32*)
6919 # Base MSYS/MinGW do not provide the 'file' command needed by
6920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921 # unless we find 'file', for example because we are cross-compiling.
6922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6925 lt_cv_file_magic_cmd='func_win32_libid'
6926 else
6927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6928 lt_cv_file_magic_cmd='$OBJDUMP -f'
6929 fi
6930 ;;
f35db108 6931
c915a581
JJ
6932cegcc*)
6933 # use the weaker test based on 'objdump'. See mingw*.
6934 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6935 lt_cv_file_magic_cmd='$OBJDUMP -f'
6936 ;;
f35db108 6937
c915a581
JJ
6938darwin* | rhapsody*)
6939 lt_cv_deplibs_check_method=pass_all
6940 ;;
f35db108 6941
c915a581
JJ
6942freebsd* | dragonfly*)
6943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6944 case $host_cpu in
6945 i*86 )
6946 # Not sure whether the presence of OpenBSD here was a mistake.
6947 # Let's accept both of them until this is cleared up.
6948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6949 lt_cv_file_magic_cmd=/usr/bin/file
6950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6951 ;;
6952 esac
6953 else
6954 lt_cv_deplibs_check_method=pass_all
6955 fi
6956 ;;
f35db108 6957
c915a581
JJ
6958gnu*)
6959 lt_cv_deplibs_check_method=pass_all
6960 ;;
f35db108 6961
c915a581
JJ
6962haiku*)
6963 lt_cv_deplibs_check_method=pass_all
6964 ;;
f35db108 6965
c915a581
JJ
6966hpux10.20* | hpux11*)
6967 lt_cv_file_magic_cmd=/usr/bin/file
6968 case $host_cpu in
6969 ia64*)
6970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6972 ;;
6973 hppa*64*)
6974 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]'
6975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6976 ;;
6977 *)
6978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6980 ;;
6981 esac
6982 ;;
f35db108 6983
c915a581
JJ
6984interix[3-9]*)
6985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6987 ;;
f35db108 6988
c915a581
JJ
6989irix5* | irix6* | nonstopux*)
6990 case $LD in
6991 *-32|*"-32 ") libmagic=32-bit;;
6992 *-n32|*"-n32 ") libmagic=N32;;
6993 *-64|*"-64 ") libmagic=64-bit;;
6994 *) libmagic=never-match;;
6995 esac
6996 lt_cv_deplibs_check_method=pass_all
6997 ;;
f35db108 6998
c915a581
JJ
6999# This must be Linux ELF.
7000linux* | k*bsd*-gnu | kopensolaris*-gnu)
7001 lt_cv_deplibs_check_method=pass_all
7002 ;;
f35db108 7003
c915a581
JJ
7004netbsd*)
7005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7007 else
7008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7009 fi
7010 ;;
f35db108 7011
c915a581
JJ
7012newos6*)
7013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7014 lt_cv_file_magic_cmd=/usr/bin/file
7015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7016 ;;
f35db108 7017
c915a581
JJ
7018*nto* | *qnx*)
7019 lt_cv_deplibs_check_method=pass_all
7020 ;;
f35db108 7021
c915a581
JJ
7022openbsd*)
7023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7025 else
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7027 fi
7028 ;;
f35db108 7029
c915a581
JJ
7030osf3* | osf4* | osf5*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
f35db108 7033
c915a581
JJ
7034rdos*)
7035 lt_cv_deplibs_check_method=pass_all
7036 ;;
f35db108 7037
c915a581
JJ
7038solaris*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
f35db108 7041
c915a581
JJ
7042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7043 lt_cv_deplibs_check_method=pass_all
7044 ;;
f35db108 7045
c915a581
JJ
7046sysv4 | sysv4.3*)
7047 case $host_vendor in
7048 motorola)
7049 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]'
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7051 ;;
7052 ncr)
7053 lt_cv_deplibs_check_method=pass_all
7054 ;;
7055 sequent)
7056 lt_cv_file_magic_cmd='/bin/file'
7057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7058 ;;
7059 sni)
7060 lt_cv_file_magic_cmd='/bin/file'
7061 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7062 lt_cv_file_magic_test_file=/lib/libc.so
7063 ;;
7064 siemens)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067 pc)
7068 lt_cv_deplibs_check_method=pass_all
7069 ;;
7070 esac
7071 ;;
f35db108 7072
c915a581
JJ
7073tpf*)
7074 lt_cv_deplibs_check_method=pass_all
7075 ;;
7076esac
f35db108 7077
c915a581
JJ
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7080$as_echo "$lt_cv_deplibs_check_method" >&6; }
7081file_magic_cmd=$lt_cv_file_magic_cmd
7082deplibs_check_method=$lt_cv_deplibs_check_method
7083test -z "$deplibs_check_method" && deplibs_check_method=unknown
f35db108
WM
7084
7085
f35db108
WM
7086
7087
f35db108
WM
7088
7089
7090
7091
7092
7093
7094
7095
c915a581
JJ
7096if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}ar; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_AR+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103else
7104 if test -n "$AR"; then
7105 ac_cv_prog_AR="$AR" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_AR="${ac_tool_prefix}ar"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119 done
7120IFS=$as_save_IFS
f35db108 7121
c915a581
JJ
7122fi
7123fi
7124AR=$ac_cv_prog_AR
7125if test -n "$AR"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7127$as_echo "$AR" >&6; }
f35db108 7128else
c915a581
JJ
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
f35db108
WM
7131fi
7132
7133
c915a581
JJ
7134fi
7135if test -z "$ac_cv_prog_AR"; then
7136 ac_ct_AR=$AR
7137 # Extract the first word of "ar", so it can be a program name with args.
7138set dummy ar; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7143else
7144 if test -n "$ac_ct_AR"; then
7145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_ac_ct_AR="ar"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159 done
7160IFS=$as_save_IFS
f35db108 7161
c915a581
JJ
7162fi
7163fi
7164ac_ct_AR=$ac_cv_prog_ac_ct_AR
7165if test -n "$ac_ct_AR"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7167$as_echo "$ac_ct_AR" >&6; }
f35db108 7168else
c915a581
JJ
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
f35db108
WM
7171fi
7172
c915a581
JJ
7173 if test "x$ac_ct_AR" = x; then
7174 AR="false"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182 AR=$ac_ct_AR
7183 fi
f35db108 7184else
c915a581 7185 AR="$ac_cv_prog_AR"
f35db108
WM
7186fi
7187
c915a581
JJ
7188test -z "$AR" && AR=ar
7189test -z "$AR_FLAGS" && AR_FLAGS=cru
f35db108
WM
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
c915a581
JJ
7201if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7203set dummy ${ac_tool_prefix}strip; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
7206if test "${ac_cv_prog_STRIP+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208else
7209 if test -n "$STRIP"; then
7210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224 done
7225IFS=$as_save_IFS
f35db108 7226
c915a581
JJ
7227fi
7228fi
7229STRIP=$ac_cv_prog_STRIP
7230if test -n "$STRIP"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7232$as_echo "$STRIP" >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
f35db108
WM
7237
7238
c915a581
JJ
7239fi
7240if test -z "$ac_cv_prog_STRIP"; then
7241 ac_ct_STRIP=$STRIP
7242 # Extract the first word of "strip", so it can be a program name with args.
7243set dummy strip; ac_word=$2
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
7246if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248else
7249 if test -n "$ac_ct_STRIP"; then
7250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_STRIP="strip"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264 done
7265IFS=$as_save_IFS
f35db108 7266
c915a581
JJ
7267fi
7268fi
7269ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7270if test -n "$ac_ct_STRIP"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7272$as_echo "$ac_ct_STRIP" >&6; }
7273else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
f35db108 7277
c915a581
JJ
7278 if test "x$ac_ct_STRIP" = x; then
7279 STRIP=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285ac_tool_warned=yes ;;
7286esac
7287 STRIP=$ac_ct_STRIP
7288 fi
7289else
7290 STRIP="$ac_cv_prog_STRIP"
7291fi
f35db108 7292
c915a581 7293test -z "$STRIP" && STRIP=:
f35db108
WM
7294
7295
7296
7297
7298
7299
c915a581
JJ
7300if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_RANLIB+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307else
7308 if test -n "$RANLIB"; then
7309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322done
7323 done
7324IFS=$as_save_IFS
f35db108 7325
c915a581
JJ
7326fi
7327fi
7328RANLIB=$ac_cv_prog_RANLIB
7329if test -n "$RANLIB"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7331$as_echo "$RANLIB" >&6; }
7332else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
f35db108
WM
7336
7337
f35db108 7338fi
c915a581
JJ
7339if test -z "$ac_cv_prog_RANLIB"; then
7340 ac_ct_RANLIB=$RANLIB
7341 # Extract the first word of "ranlib", so it can be a program name with args.
7342set dummy ranlib; ac_word=$2
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344$as_echo_n "checking for $ac_word... " >&6; }
7345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
f35db108
WM
7346 $as_echo_n "(cached) " >&6
7347else
c915a581
JJ
7348 if test -n "$ac_ct_RANLIB"; then
7349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
f35db108 7350else
c915a581
JJ
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_RANLIB="ranlib"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363 done
7364IFS=$as_save_IFS
7365
f35db108 7366fi
f35db108 7367fi
c915a581
JJ
7368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7369if test -n "$ac_ct_RANLIB"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7371$as_echo "$ac_ct_RANLIB" >&6; }
7372else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377 if test "x$ac_ct_RANLIB" = x; then
7378 RANLIB=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381yes:)
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384ac_tool_warned=yes ;;
7385esac
7386 RANLIB=$ac_ct_RANLIB
7387 fi
7388else
7389 RANLIB="$ac_cv_prog_RANLIB"
7390fi
f35db108 7391
c915a581 7392test -z "$RANLIB" && RANLIB=:
f35db108
WM
7393
7394
7395
7396
f35db108
WM
7397
7398
c915a581
JJ
7399# Determine commands to create old-style static archives.
7400old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7401old_postinstall_cmds='chmod 644 $oldlib'
7402old_postuninstall_cmds=
f35db108 7403
c915a581
JJ
7404if test -n "$RANLIB"; then
7405 case $host_os in
7406 openbsd*)
7407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7408 ;;
7409 *)
7410 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7411 ;;
7412 esac
7413 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7414fi
f35db108
WM
7415
7416case $host_os in
c915a581
JJ
7417 darwin*)
7418 lock_old_archive_extraction=yes ;;
7419 *)
7420 lock_old_archive_extraction=no ;;
f35db108
WM
7421esac
7422
f35db108 7423
f35db108 7424
f35db108 7425
f35db108 7426
f35db108 7427
f35db108
WM
7428
7429
f35db108 7430
f35db108 7431
f35db108 7432
f35db108
WM
7433
7434
7435
7436
7437
f35db108 7438
f35db108 7439
f35db108 7440
f35db108
WM
7441
7442
f35db108 7443
f35db108 7444
f35db108 7445
f35db108
WM
7446
7447
f35db108 7448
f35db108 7449
f35db108 7450
c915a581
JJ
7451
7452
7453
f35db108
WM
7454
7455
7456
7457
7458
7459
7460
7461# If no C compiler was specified, use CC.
7462LTCC=${LTCC-"$CC"}
7463
7464# If no C compiler flags were specified, use CFLAGS.
7465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7466
7467# Allow CC to be a program name with arguments.
7468compiler=$CC
7469
f35db108 7470
c915a581
JJ
7471# Check for command to grab the raw symbol name followed by C symbol from nm.
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7473$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7474if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476else
f35db108 7477
c915a581
JJ
7478# These are sane defaults that work on at least a few old systems.
7479# [They come from Ultrix. What could be older than Ultrix?!! ;)]
f35db108 7480
c915a581
JJ
7481# Character class describing NM global symbol codes.
7482symcode='[BCDEGRST]'
f35db108 7483
c915a581
JJ
7484# Regexp to match symbols that can be accessed directly from C.
7485sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
f35db108 7486
c915a581
JJ
7487# Define system-specific variables.
7488case $host_os in
7489aix*)
7490 symcode='[BCDT]'
7491 ;;
7492cygwin* | mingw* | pw32* | cegcc*)
7493 symcode='[ABCDGISTW]'
7494 ;;
7495hpux*)
7496 if test "$host_cpu" = ia64; then
7497 symcode='[ABCDEGRST]'
7498 fi
7499 ;;
7500irix* | nonstopux*)
7501 symcode='[BCDEGRST]'
7502 ;;
7503osf*)
7504 symcode='[BCDEGQRST]'
7505 ;;
7506solaris*)
7507 symcode='[BDRT]'
7508 ;;
7509sco3.2v5*)
7510 symcode='[DT]'
7511 ;;
7512sysv4.2uw2*)
7513 symcode='[DT]'
7514 ;;
7515sysv5* | sco5v6* | unixware* | OpenUNIX*)
7516 symcode='[ABDT]'
7517 ;;
7518sysv4)
7519 symcode='[DFNSTU]'
7520 ;;
7521esac
f35db108 7522
c915a581
JJ
7523# If we're using GNU nm, then use its standard symbol codes.
7524case `$NM -V 2>&1` in
7525*GNU* | *'with BFD'*)
7526 symcode='[ABCDGIRSTW]' ;;
7527esac
f35db108 7528
c915a581
JJ
7529# Transform an extracted symbol line into a proper C declaration.
7530# Some systems (esp. on ia64) link data and code symbols differently,
7531# so use this general approach.
7532lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
f35db108 7533
c915a581
JJ
7534# Transform an extracted symbol line into symbol name and symbol address
7535lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7536lt_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 7537
c915a581
JJ
7538# Handle CRLF in mingw tool chain
7539opt_cr=
7540case $build_os in
7541mingw*)
7542 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7543 ;;
7544esac
f35db108 7545
c915a581
JJ
7546# Try without a prefix underscore, then with it.
7547for ac_symprfx in "" "_"; do
f35db108 7548
c915a581
JJ
7549 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7550 symxfrm="\\1 $ac_symprfx\\2 \\2"
f35db108 7551
c915a581
JJ
7552 # Write the raw and C identifiers.
7553 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7554 # Fake it for dumpbin and say T for any non-static function
7555 # and D for any global variable.
7556 # Also find C++ and __fastcall symbols from MSVC++,
7557 # which start with @ or ?.
7558 lt_cv_sys_global_symbol_pipe="$AWK '"\
7559" {last_section=section; section=\$ 3};"\
7560" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7561" \$ 0!~/External *\|/{next};"\
7562" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7563" {if(hide[section]) next};"\
7564" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7565" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7566" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7567" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7568" ' prfx=^$ac_symprfx"
7569 else
7570 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7571 fi
f35db108 7572
c915a581
JJ
7573 # Check to see that the pipe works correctly.
7574 pipe_works=no
f35db108 7575
c915a581
JJ
7576 rm -f conftest*
7577 cat > conftest.$ac_ext <<_LT_EOF
7578#ifdef __cplusplus
7579extern "C" {
7580#endif
7581char nm_test_var;
7582void nm_test_func(void);
7583void nm_test_func(void){}
7584#ifdef __cplusplus
7585}
7586#endif
7587int main(){nm_test_var='a';nm_test_func();return(0);}
7588_LT_EOF
f35db108 7589
c915a581
JJ
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 # Now try to grab the symbols.
7596 nlist=conftest.nm
7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7598 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7599 ac_status=$?
7600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601 test $ac_status = 0; } && test -s "$nlist"; then
7602 # Try sorting and uniquifying the output.
7603 if sort "$nlist" | uniq > "$nlist"T; then
7604 mv -f "$nlist"T "$nlist"
7605 else
7606 rm -f "$nlist"T
7607 fi
f35db108 7608
c915a581
JJ
7609 # Make sure that we snagged all the symbols we need.
7610 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7611 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7612 cat <<_LT_EOF > conftest.$ac_ext
7613#ifdef __cplusplus
7614extern "C" {
7615#endif
f35db108 7616
c915a581
JJ
7617_LT_EOF
7618 # Now generate the symbol file.
7619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
f35db108 7620
c915a581
JJ
7621 cat <<_LT_EOF >> conftest.$ac_ext
7622
7623/* The mapping between symbol names and symbols. */
7624const struct {
7625 const char *name;
7626 void *address;
7627}
7628lt__PROGRAM__LTX_preloaded_symbols[] =
7629{
7630 { "@PROGRAM@", (void *) 0 },
7631_LT_EOF
7632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7633 cat <<\_LT_EOF >> conftest.$ac_ext
7634 {0, (void *) 0}
7635};
7636
7637/* This works around a problem in FreeBSD linker */
7638#ifdef FREEBSD_WORKAROUND
7639static const void *lt_preloaded_setup() {
7640 return lt__PROGRAM__LTX_preloaded_symbols;
7641}
7642#endif
7643
7644#ifdef __cplusplus
7645}
7646#endif
7647_LT_EOF
7648 # Now try linking the two files.
7649 mv conftest.$ac_objext conftstm.$ac_objext
7650 lt_save_LIBS="$LIBS"
7651 lt_save_CFLAGS="$CFLAGS"
7652 LIBS="conftstm.$ac_objext"
7653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7655 (eval $ac_link) 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7659 pipe_works=yes
7660 fi
7661 LIBS="$lt_save_LIBS"
7662 CFLAGS="$lt_save_CFLAGS"
7663 else
7664 echo "cannot find nm_test_func in $nlist" >&5
7665 fi
7666 else
7667 echo "cannot find nm_test_var in $nlist" >&5
f35db108 7668 fi
c915a581
JJ
7669 else
7670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671 fi
7672 else
7673 echo "$progname: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 fi
7676 rm -rf conftest* conftst*
f35db108 7677
c915a581
JJ
7678 # Do not use the global_symbol_pipe unless it works.
7679 if test "$pipe_works" = yes; then
7680 break
7681 else
7682 lt_cv_sys_global_symbol_pipe=
7683 fi
7684done
f35db108 7685
c915a581 7686fi
f35db108 7687
c915a581
JJ
7688if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689 lt_cv_sys_global_symbol_to_cdecl=
7690fi
7691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693$as_echo "failed" >&6; }
7694else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696$as_echo "ok" >&6; }
7697fi
f35db108 7698
f35db108 7699
f35db108 7700
f35db108 7701
f35db108 7702
f35db108 7703
f35db108 7704
f35db108 7705
f35db108 7706
f35db108 7707
f35db108 7708
f35db108 7709
f35db108 7710
c915a581
JJ
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720# Check whether --enable-libtool-lock was given.
7721if test "${enable_libtool_lock+set}" = set; then :
7722 enableval=$enable_libtool_lock;
7723fi
7724
7725test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7726
7727# Some flags need to be propagated to the compiler or linker for good
7728# libtool support.
7729case $host in
7730ia64-*-hpux*)
7731 # Find out which ABI we are using.
7732 echo 'int i;' > conftest.$ac_ext
7733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }; then
7738 case `/usr/bin/file conftest.$ac_objext` in
7739 *ELF-32*)
7740 HPUX_IA64_MODE="32"
f35db108 7741 ;;
c915a581
JJ
7742 *ELF-64*)
7743 HPUX_IA64_MODE="64"
f35db108 7744 ;;
c915a581
JJ
7745 esac
7746 fi
7747 rm -rf conftest*
7748 ;;
7749*-*-irix6*)
7750 # Find out which ABI we are using.
7751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7757 if test "$lt_cv_prog_gnu_ld" = yes; then
7758 case `/usr/bin/file conftest.$ac_objext` in
7759 *32-bit*)
7760 LD="${LD-ld} -melf32bsmip"
f35db108 7761 ;;
c915a581
JJ
7762 *N32*)
7763 LD="${LD-ld} -melf32bmipn32"
f35db108 7764 ;;
c915a581
JJ
7765 *64-bit*)
7766 LD="${LD-ld} -melf64bmip"
f35db108
WM
7767 ;;
7768 esac
c915a581
JJ
7769 else
7770 case `/usr/bin/file conftest.$ac_objext` in
7771 *32-bit*)
7772 LD="${LD-ld} -32"
7773 ;;
7774 *N32*)
7775 LD="${LD-ld} -n32"
7776 ;;
7777 *64-bit*)
7778 LD="${LD-ld} -64"
7779 ;;
f35db108 7780 esac
c915a581
JJ
7781 fi
7782 fi
7783 rm -rf conftest*
7784 ;;
f35db108 7785
c915a581
JJ
7786x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7787s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7788 # Find out which ABI we are using.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `/usr/bin/file conftest.o` in
7796 *32-bit*)
7797 case $host in
7798 x86_64-*kfreebsd*-gnu)
7799 LD="${LD-ld} -m elf_i386_fbsd"
7800 ;;
7801 x86_64-*linux*)
7802 case `/usr/bin/file conftest.o` in
7803 *x86-64*)
7804 LD="${LD-ld} -m elf32_x86_64"
7805 ;;
7806 *)
7807 LD="${LD-ld} -m elf_i386"
7808 ;;
7809 esac
7810 ;;
7811 powerpc64le-*linux*)
7812 LD="${LD-ld} -m elf32lppclinux"
7813 ;;
7814 powerpc64-*linux*)
7815 LD="${LD-ld} -m elf32ppclinux"
7816 ;;
7817 s390x-*linux*)
7818 LD="${LD-ld} -m elf_s390"
7819 ;;
7820 sparc64-*linux*)
7821 LD="${LD-ld} -m elf32_sparc"
7822 ;;
7823 esac
7824 ;;
7825 *64-bit*)
7826 case $host in
7827 x86_64-*kfreebsd*-gnu)
7828 LD="${LD-ld} -m elf_x86_64_fbsd"
7829 ;;
7830 x86_64-*linux*)
7831 LD="${LD-ld} -m elf_x86_64"
7832 ;;
7833 powerpcle-*linux*)
7834 LD="${LD-ld} -m elf64lppc"
7835 ;;
7836 powerpc-*linux*)
7837 LD="${LD-ld} -m elf64ppc"
7838 ;;
7839 s390*-*linux*|s390*-*tpf*)
7840 LD="${LD-ld} -m elf64_s390"
7841 ;;
7842 sparc*-*linux*)
7843 LD="${LD-ld} -m elf64_sparc"
7844 ;;
7845 esac
7846 ;;
7847 esac
7848 fi
7849 rm -rf conftest*
7850 ;;
f35db108 7851
c915a581
JJ
7852*-*-sco3.2v5*)
7853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7854 SAVE_CFLAGS="$CFLAGS"
7855 CFLAGS="$CFLAGS -belf"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7857$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7858if test "${lt_cv_cc_needs_belf+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860else
7861 ac_ext=c
7862ac_cpp='$CPP $CPPFLAGS'
7863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 7866
c915a581
JJ
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h. */
f35db108 7869
c915a581
JJ
7870int
7871main ()
7872{
f35db108 7873
c915a581
JJ
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879 lt_cv_cc_needs_belf=yes
7880else
7881 lt_cv_cc_needs_belf=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 ac_ext=c
7886ac_cpp='$CPP $CPPFLAGS'
7887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108 7890
c915a581
JJ
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7893$as_echo "$lt_cv_cc_needs_belf" >&6; }
7894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7896 CFLAGS="$SAVE_CFLAGS"
7897 fi
7898 ;;
7899sparc*-*solaris*)
7900 # Find out which ABI we are using.
7901 echo 'int i;' > conftest.$ac_ext
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903 (eval $ac_compile) 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 case `/usr/bin/file conftest.o` in
7908 *64-bit*)
7909 case $lt_cv_prog_gnu_ld in
7910 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7911 *)
7912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7913 LD="${LD-ld} -64"
7914 fi
7915 ;;
7916 esac
f35db108
WM
7917 ;;
7918 esac
7919 fi
c915a581
JJ
7920 rm -rf conftest*
7921 ;;
7922esac
f35db108 7923
c915a581 7924need_locks="$enable_libtool_lock"
a2479b3d
L
7925
7926
c915a581
JJ
7927 case $host_os in
7928 rhapsody* | darwin*)
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7931set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933$as_echo_n "checking for $ac_word... " >&6; }
7934if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936else
7937 if test -n "$DSYMUTIL"; then
7938 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7939else
7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952 done
7953IFS=$as_save_IFS
a2479b3d 7954
c915a581
JJ
7955fi
7956fi
7957DSYMUTIL=$ac_cv_prog_DSYMUTIL
7958if test -n "$DSYMUTIL"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7960$as_echo "$DSYMUTIL" >&6; }
7961else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964fi
f35db108 7965
f35db108 7966
c915a581
JJ
7967fi
7968if test -z "$ac_cv_prog_DSYMUTIL"; then
7969 ac_ct_DSYMUTIL=$DSYMUTIL
7970 # Extract the first word of "dsymutil", so it can be a program name with args.
7971set dummy dsymutil; ac_word=$2
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
f35db108
WM
7975 $as_echo_n "(cached) " >&6
7976else
c915a581
JJ
7977 if test -n "$ac_ct_DSYMUTIL"; then
7978 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992 done
7993IFS=$as_save_IFS
f35db108
WM
7994
7995fi
c915a581
JJ
7996fi
7997ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7998if test -n "$ac_ct_DSYMUTIL"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8000$as_echo "$ac_ct_DSYMUTIL" >&6; }
f35db108 8001else
c915a581
JJ
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
f35db108
WM
8004fi
8005
c915a581
JJ
8006 if test "x$ac_ct_DSYMUTIL" = x; then
8007 DSYMUTIL=":"
8008 else
8009 case $cross_compiling:$ac_tool_warned in
8010yes:)
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013ac_tool_warned=yes ;;
8014esac
8015 DSYMUTIL=$ac_ct_DSYMUTIL
8016 fi
8017else
8018 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
f35db108
WM
8019fi
8020
c915a581
JJ
8021 if test -n "$ac_tool_prefix"; then
8022 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8023set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if test "${ac_cv_prog_NMEDIT+set}" = set; then :
f35db108
WM
8027 $as_echo_n "(cached) " >&6
8028else
c915a581
JJ
8029 if test -n "$NMEDIT"; then
8030 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043done
8044 done
8045IFS=$as_save_IFS
f35db108
WM
8046
8047fi
c915a581
JJ
8048fi
8049NMEDIT=$ac_cv_prog_NMEDIT
8050if test -n "$NMEDIT"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8052$as_echo "$NMEDIT" >&6; }
f35db108 8053else
c915a581
JJ
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
f35db108
WM
8056fi
8057
8058
c915a581
JJ
8059fi
8060if test -z "$ac_cv_prog_NMEDIT"; then
8061 ac_ct_NMEDIT=$NMEDIT
8062 # Extract the first word of "nmedit", so it can be a program name with args.
8063set dummy nmedit; ac_word=$2
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065$as_echo_n "checking for $ac_word... " >&6; }
8066if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
f35db108
WM
8067 $as_echo_n "(cached) " >&6
8068else
c915a581
JJ
8069 if test -n "$ac_ct_NMEDIT"; then
8070 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8082 fi
8083done
8084 done
8085IFS=$as_save_IFS
f35db108
WM
8086
8087fi
c915a581
JJ
8088fi
8089ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8090if test -n "$ac_ct_NMEDIT"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8092$as_echo "$ac_ct_NMEDIT" >&6; }
8093else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
8096fi
f35db108 8097
c915a581
JJ
8098 if test "x$ac_ct_NMEDIT" = x; then
8099 NMEDIT=":"
8100 else
8101 case $cross_compiling:$ac_tool_warned in
8102yes:)
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105ac_tool_warned=yes ;;
8106esac
8107 NMEDIT=$ac_ct_NMEDIT
8108 fi
8109else
8110 NMEDIT="$ac_cv_prog_NMEDIT"
8111fi
f35db108 8112
c915a581
JJ
8113 if test -n "$ac_tool_prefix"; then
8114 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8115set dummy ${ac_tool_prefix}lipo; ac_word=$2
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
8118if test "${ac_cv_prog_LIPO+set}" = set; then :
f35db108
WM
8119 $as_echo_n "(cached) " >&6
8120else
c915a581
JJ
8121 if test -n "$LIPO"; then
8122 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135done
8136 done
8137IFS=$as_save_IFS
f35db108
WM
8138
8139fi
c915a581
JJ
8140fi
8141LIPO=$ac_cv_prog_LIPO
8142if test -n "$LIPO"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8144$as_echo "$LIPO" >&6; }
8145else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
f35db108
WM
8149
8150
c915a581
JJ
8151fi
8152if test -z "$ac_cv_prog_LIPO"; then
8153 ac_ct_LIPO=$LIPO
8154 # Extract the first word of "lipo", so it can be a program name with args.
8155set dummy lipo; ac_word=$2
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160else
8161 if test -n "$ac_ct_LIPO"; then
8162 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171 ac_cv_prog_ac_ct_LIPO="lipo"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175done
8176 done
8177IFS=$as_save_IFS
f35db108 8178
c915a581
JJ
8179fi
8180fi
8181ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8182if test -n "$ac_ct_LIPO"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8184$as_echo "$ac_ct_LIPO" >&6; }
8185else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
8188fi
f35db108 8189
c915a581
JJ
8190 if test "x$ac_ct_LIPO" = x; then
8191 LIPO=":"
8192 else
8193 case $cross_compiling:$ac_tool_warned in
8194yes:)
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8197ac_tool_warned=yes ;;
8198esac
8199 LIPO=$ac_ct_LIPO
f35db108
WM
8200 fi
8201else
c915a581 8202 LIPO="$ac_cv_prog_LIPO"
f35db108
WM
8203fi
8204
c915a581
JJ
8205 if test -n "$ac_tool_prefix"; then
8206 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8207set dummy ${ac_tool_prefix}otool; ac_word=$2
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if test "${ac_cv_prog_OTOOL+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212else
8213 if test -n "$OTOOL"; then
8214 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227done
8228 done
8229IFS=$as_save_IFS
f35db108 8230
c915a581
JJ
8231fi
8232fi
8233OTOOL=$ac_cv_prog_OTOOL
8234if test -n "$OTOOL"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236$as_echo "$OTOOL" >&6; }
8237else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
f35db108
WM
8241
8242
c915a581
JJ
8243fi
8244if test -z "$ac_cv_prog_OTOOL"; then
8245 ac_ct_OTOOL=$OTOOL
8246 # Extract the first word of "otool", so it can be a program name with args.
8247set dummy otool; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252else
8253 if test -n "$ac_ct_OTOOL"; then
8254 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_ac_ct_OTOOL="otool"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268 done
8269IFS=$as_save_IFS
f35db108 8270
c915a581
JJ
8271fi
8272fi
8273ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8274if test -n "$ac_ct_OTOOL"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8276$as_echo "$ac_ct_OTOOL" >&6; }
8277else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
f35db108 8281
c915a581
JJ
8282 if test "x$ac_ct_OTOOL" = x; then
8283 OTOOL=":"
8284 else
8285 case $cross_compiling:$ac_tool_warned in
8286yes:)
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289ac_tool_warned=yes ;;
8290esac
8291 OTOOL=$ac_ct_OTOOL
8292 fi
8293else
8294 OTOOL="$ac_cv_prog_OTOOL"
8295fi
f35db108 8296
c915a581
JJ
8297 if test -n "$ac_tool_prefix"; then
8298 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8299set dummy ${ac_tool_prefix}otool64; ac_word=$2
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304else
8305 if test -n "$OTOOL64"; then
8306 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
f35db108 8318 fi
c915a581
JJ
8319done
8320 done
8321IFS=$as_save_IFS
f35db108 8322
c915a581
JJ
8323fi
8324fi
8325OTOOL64=$ac_cv_prog_OTOOL64
8326if test -n "$OTOOL64"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8328$as_echo "$OTOOL64" >&6; }
8329else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
8332fi
f35db108 8333
f35db108 8334
c915a581
JJ
8335fi
8336if test -z "$ac_cv_prog_OTOOL64"; then
8337 ac_ct_OTOOL64=$OTOOL64
8338 # Extract the first word of "otool64", so it can be a program name with args.
8339set dummy otool64; ac_word=$2
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341$as_echo_n "checking for $ac_word... " >&6; }
8342if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344else
8345 if test -n "$ac_ct_OTOOL64"; then
8346 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8347else
8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_ac_ct_OTOOL64="otool64"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359done
8360 done
8361IFS=$as_save_IFS
f35db108 8362
c915a581
JJ
8363fi
8364fi
8365ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8366if test -n "$ac_ct_OTOOL64"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8368$as_echo "$ac_ct_OTOOL64" >&6; }
8369else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371$as_echo "no" >&6; }
8372fi
f35db108 8373
c915a581
JJ
8374 if test "x$ac_ct_OTOOL64" = x; then
8375 OTOOL64=":"
8376 else
8377 case $cross_compiling:$ac_tool_warned in
8378yes:)
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381ac_tool_warned=yes ;;
8382esac
8383 OTOOL64=$ac_ct_OTOOL64
8384 fi
8385else
8386 OTOOL64="$ac_cv_prog_OTOOL64"
8387fi
f35db108 8388
f35db108 8389
f35db108 8390
f35db108 8391
f35db108 8392
f35db108 8393
f35db108 8394
f35db108 8395
f35db108 8396
f35db108 8397
f35db108 8398
f35db108 8399
f35db108 8400
f35db108 8401
f35db108 8402
f35db108 8403
f35db108 8404
f35db108 8405
f35db108 8406
f35db108 8407
f35db108 8408
f35db108 8409
f35db108 8410
f35db108 8411
f35db108 8412
c915a581
JJ
8413
8414
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8416$as_echo_n "checking for -single_module linker flag... " >&6; }
8417if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419else
8420 lt_cv_apple_cc_single_mod=no
8421 if test -z "${LT_MULTI_MODULE}"; then
8422 # By default we will add the -single_module flag. You can override
8423 # by either setting the environment variable LT_MULTI_MODULE
8424 # non-empty at configure time, or by adding -multi_module to the
8425 # link flags.
8426 rm -rf libconftest.dylib*
8427 echo "int foo(void){return 1;}" > conftest.c
8428 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429-dynamiclib -Wl,-single_module conftest.c" >&5
8430 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8431 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8432 _lt_result=$?
8433 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8434 lt_cv_apple_cc_single_mod=yes
f35db108 8435 else
c915a581 8436 cat conftest.err >&5
f35db108 8437 fi
c915a581
JJ
8438 rm -rf libconftest.dylib*
8439 rm -f conftest.*
f35db108 8440 fi
c915a581
JJ
8441fi
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8443$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8445$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8446if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448else
8449 lt_cv_ld_exported_symbols_list=no
8450 save_LDFLAGS=$LDFLAGS
8451 echo "_main" > conftest.sym
8452 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
8454/* end confdefs.h. */
8455
8456int
8457main ()
8458{
8459
8460 ;
8461 return 0;
8462}
8463_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then :
c915a581
JJ
8465 lt_cv_ld_exported_symbols_list=yes
8466else
8467 lt_cv_ld_exported_symbols_list=no
f35db108
WM
8468fi
8469rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
c915a581 8471 LDFLAGS="$save_LDFLAGS"
f35db108 8472
c915a581
JJ
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8475$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8477$as_echo_n "checking for -force_load linker flag... " >&6; }
8478if test "${lt_cv_ld_force_load+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480else
8481 lt_cv_ld_force_load=no
8482 cat > conftest.c << _LT_EOF
8483int forced_loaded() { return 2;}
8484_LT_EOF
8485 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8486 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8487 echo "$AR cru libconftest.a conftest.o" >&5
8488 $AR cru libconftest.a conftest.o 2>&5
8489 cat > conftest.c << _LT_EOF
8490int main() { return 0;}
8491_LT_EOF
8492 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8493 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8494 _lt_result=$?
8495 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8496 lt_cv_ld_force_load=yes
f35db108 8497 else
c915a581
JJ
8498 cat conftest.err >&5
8499 fi
8500 rm -f conftest.err libconftest.a conftest conftest.c
8501 rm -rf conftest.dSYM
f35db108 8502
c915a581
JJ
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8505$as_echo "$lt_cv_ld_force_load" >&6; }
8506 case $host_os in
8507 rhapsody* | darwin1.[012])
8508 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8509 darwin1.*)
8510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8511 darwin*) # darwin 5.x on
8512 # if running on 10.5 or later, the deployment target defaults
8513 # to the OS version, if on x86, and 10.4, the deployment
8514 # target defaults to 10.4. Don't you love it?
8515 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8516 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8517 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8518 10.[012][,.]*)
c915a581
JJ
8519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8520 10.*)
8521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8522 esac
8523 ;;
8524 esac
8525 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8526 _lt_dar_single_mod='$single_module'
8527 fi
8528 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8529 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8530 else
8531 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8532 fi
8533 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8534 _lt_dsymutil='~$DSYMUTIL $lib || :'
8535 else
8536 _lt_dsymutil=
8537 fi
8538 ;;
8539 esac
f35db108 8540
c915a581
JJ
8541for ac_header in dlfcn.h
8542do :
8543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8544"
8545if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547#define HAVE_DLFCN_H 1
f35db108 8548_ACEOF
f35db108 8549
f35db108 8550fi
f35db108 8551
c915a581 8552done
f35db108 8553
f35db108 8554
f35db108 8555
f35db108 8556
f35db108
WM
8557
8558
c915a581 8559# Set options
f35db108 8560
f35db108 8561
f35db108 8562
f35db108 8563
c915a581 8564 enable_win32_dll=no
f35db108 8565
f35db108 8566
c915a581
JJ
8567 # Check whether --enable-shared was given.
8568if test "${enable_shared+set}" = set; then :
8569 enableval=$enable_shared; p=${PACKAGE-default}
8570 case $enableval in
8571 yes) enable_shared=yes ;;
8572 no) enable_shared=no ;;
8573 *)
8574 enable_shared=no
8575 # Look at the argument we got. We use all the common list separators.
8576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577 for pkg in $enableval; do
8578 IFS="$lt_save_ifs"
8579 if test "X$pkg" = "X$p"; then
8580 enable_shared=yes
8581 fi
8582 done
8583 IFS="$lt_save_ifs"
f35db108 8584 ;;
c915a581
JJ
8585 esac
8586else
8587 enable_shared=yes
8588fi
f35db108 8589
f35db108 8590
f35db108 8591
f35db108 8592
f35db108 8593
f35db108 8594
f35db108 8595
c915a581
JJ
8596
8597
8598 # Check whether --enable-static was given.
8599if test "${enable_static+set}" = set; then :
8600 enableval=$enable_static; p=${PACKAGE-default}
8601 case $enableval in
8602 yes) enable_static=yes ;;
8603 no) enable_static=no ;;
8604 *)
8605 enable_static=no
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608 for pkg in $enableval; do
8609 IFS="$lt_save_ifs"
8610 if test "X$pkg" = "X$p"; then
8611 enable_static=yes
8612 fi
8613 done
8614 IFS="$lt_save_ifs"
8615 ;;
8616 esac
f35db108 8617else
c915a581 8618 enable_static=yes
f35db108
WM
8619fi
8620
f35db108 8621
f35db108 8622
f35db108 8623
a2479b3d 8624
f35db108 8625
f35db108 8626
f35db108 8627
f35db108 8628
f35db108 8629
c915a581
JJ
8630# Check whether --with-pic was given.
8631if test "${with_pic+set}" = set; then :
8632 withval=$with_pic; pic_mode="$withval"
8633else
8634 pic_mode=default
8635fi
f35db108 8636
f35db108 8637
c915a581 8638test -z "$pic_mode" && pic_mode=default
f35db108 8639
f35db108 8640
f35db108 8641
f35db108 8642
f35db108 8643
f35db108 8644
c915a581
JJ
8645
8646 # Check whether --enable-fast-install was given.
8647if test "${enable_fast_install+set}" = set; then :
8648 enableval=$enable_fast_install; p=${PACKAGE-default}
8649 case $enableval in
8650 yes) enable_fast_install=yes ;;
8651 no) enable_fast_install=no ;;
8652 *)
8653 enable_fast_install=no
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8656 for pkg in $enableval; do
8657 IFS="$lt_save_ifs"
8658 if test "X$pkg" = "X$p"; then
8659 enable_fast_install=yes
8660 fi
8661 done
8662 IFS="$lt_save_ifs"
f35db108 8663 ;;
c915a581
JJ
8664 esac
8665else
8666 enable_fast_install=yes
8667fi
f35db108
WM
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
c915a581
JJ
8679# This can be used to rebuild libtool when needed
8680LIBTOOL_DEPS="$ltmain"
f35db108 8681
c915a581
JJ
8682# Always use our own libtool.
8683LIBTOOL='$(SHELL) $(top_builddir)/libtool'
f35db108
WM
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
c915a581 8710test -z "$LN_S" && LN_S="ln -s"
f35db108
WM
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
c915a581
JJ
8725if test -n "${ZSH_VERSION+set}" ; then
8726 setopt NO_GLOB_SUBST
8727fi
f35db108 8728
c915a581
JJ
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8730$as_echo_n "checking for objdir... " >&6; }
8731if test "${lt_cv_objdir+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8733else
8734 rm -f .libs 2>/dev/null
8735mkdir .libs 2>/dev/null
8736if test -d .libs; then
8737 lt_cv_objdir=.libs
8738else
8739 # MS-DOS does not allow filenames that begin with a dot.
8740 lt_cv_objdir=_libs
8741fi
8742rmdir .libs 2>/dev/null
8743fi
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8745$as_echo "$lt_cv_objdir" >&6; }
8746objdir=$lt_cv_objdir
f35db108
WM
8747
8748
8749
8750
8751
c915a581
JJ
8752cat >>confdefs.h <<_ACEOF
8753#define LT_OBJDIR "$lt_cv_objdir/"
8754_ACEOF
f35db108
WM
8755
8756
8757
8758
c915a581
JJ
8759case $host_os in
8760aix3*)
8761 # AIX sometimes has problems with the GCC collect2 program. For some
8762 # reason, if we set the COLLECT_NAMES environment variable, the problems
8763 # vanish in a puff of smoke.
8764 if test "X${COLLECT_NAMES+set}" != Xset; then
8765 COLLECT_NAMES=
8766 export COLLECT_NAMES
8767 fi
8768 ;;
8769esac
f35db108 8770
c915a581
JJ
8771# Global variables:
8772ofile=libtool
8773can_build_shared=yes
f35db108 8774
c915a581
JJ
8775# All known linkers require a `.a' archive for static linking (except MSVC,
8776# which needs '.lib').
8777libext=a
f35db108 8778
c915a581 8779with_gnu_ld="$lt_cv_prog_gnu_ld"
f35db108 8780
c915a581
JJ
8781old_CC="$CC"
8782old_CFLAGS="$CFLAGS"
f35db108 8783
c915a581
JJ
8784# Set sane defaults for various variables
8785test -z "$CC" && CC=cc
8786test -z "$LTCC" && LTCC=$CC
8787test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8788test -z "$LD" && LD=ld
8789test -z "$ac_objext" && ac_objext=o
f35db108 8790
c915a581
JJ
8791for cc_temp in $compiler""; do
8792 case $cc_temp in
8793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8795 \-*) ;;
8796 *) break;;
8797 esac
8798done
8799cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
f35db108
WM
8800
8801
c915a581
JJ
8802# Only perform the check for file, if the check method requires it
8803test -z "$MAGIC_CMD" && MAGIC_CMD=file
8804case $deplibs_check_method in
8805file_magic*)
8806 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8808$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8809if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811else
8812 case $MAGIC_CMD in
8813[\\/*] | ?:[\\/]*)
8814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8815 ;;
8816*)
8817 lt_save_MAGIC_CMD="$MAGIC_CMD"
8818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8820 for ac_dir in $ac_dummy; do
8821 IFS="$lt_save_ifs"
8822 test -z "$ac_dir" && ac_dir=.
8823 if test -f $ac_dir/${ac_tool_prefix}file; then
8824 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8825 if test -n "$file_magic_test_file"; then
8826 case $deplibs_check_method in
8827 "file_magic "*)
8828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8831 $EGREP "$file_magic_regex" > /dev/null; then
8832 :
8833 else
8834 cat <<_LT_EOF 1>&2
f35db108 8835
c915a581
JJ
8836*** Warning: the command libtool uses to detect shared libraries,
8837*** $file_magic_cmd, produces output that libtool cannot recognize.
8838*** The result is that libtool may fail to recognize shared libraries
8839*** as such. This will affect the creation of libtool libraries that
8840*** depend on shared libraries, but programs linked with such libtool
8841*** libraries will work regardless of this problem. Nevertheless, you
8842*** may want to report the problem to your system manager and/or to
8843*** bug-libtool@gnu.org
f35db108 8844
c915a581
JJ
8845_LT_EOF
8846 fi ;;
8847 esac
8848 fi
8849 break
8850 fi
8851 done
8852 IFS="$lt_save_ifs"
8853 MAGIC_CMD="$lt_save_MAGIC_CMD"
8854 ;;
8855esac
8856fi
f35db108 8857
c915a581
JJ
8858MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859if test -n "$MAGIC_CMD"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8861$as_echo "$MAGIC_CMD" >&6; }
8862else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
8865fi
f35db108
WM
8866
8867
8868
8869
8870
c915a581
JJ
8871if test -z "$lt_cv_path_MAGIC_CMD"; then
8872 if test -n "$ac_tool_prefix"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8874$as_echo_n "checking for file... " >&6; }
8875if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877else
8878 case $MAGIC_CMD in
8879[\\/*] | ?:[\\/]*)
8880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8881 ;;
8882*)
8883 lt_save_MAGIC_CMD="$MAGIC_CMD"
8884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8885 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8886 for ac_dir in $ac_dummy; do
8887 IFS="$lt_save_ifs"
8888 test -z "$ac_dir" && ac_dir=.
8889 if test -f $ac_dir/file; then
8890 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8891 if test -n "$file_magic_test_file"; then
8892 case $deplibs_check_method in
8893 "file_magic "*)
8894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8897 $EGREP "$file_magic_regex" > /dev/null; then
8898 :
8899 else
8900 cat <<_LT_EOF 1>&2
f35db108 8901
c915a581
JJ
8902*** Warning: the command libtool uses to detect shared libraries,
8903*** $file_magic_cmd, produces output that libtool cannot recognize.
8904*** The result is that libtool may fail to recognize shared libraries
8905*** as such. This will affect the creation of libtool libraries that
8906*** depend on shared libraries, but programs linked with such libtool
8907*** libraries will work regardless of this problem. Nevertheless, you
8908*** may want to report the problem to your system manager and/or to
8909*** bug-libtool@gnu.org
f35db108 8910
c915a581
JJ
8911_LT_EOF
8912 fi ;;
8913 esac
8914 fi
8915 break
8916 fi
8917 done
8918 IFS="$lt_save_ifs"
8919 MAGIC_CMD="$lt_save_MAGIC_CMD"
8920 ;;
8921esac
8922fi
f35db108 8923
c915a581
JJ
8924MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8925if test -n "$MAGIC_CMD"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8927$as_echo "$MAGIC_CMD" >&6; }
8928else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930$as_echo "no" >&6; }
8931fi
f35db108
WM
8932
8933
c915a581
JJ
8934 else
8935 MAGIC_CMD=:
8936 fi
8937fi
f35db108 8938
c915a581
JJ
8939 fi
8940 ;;
8941esac
f35db108 8942
c915a581 8943# Use C for the default configuration in the libtool script
f35db108 8944
c915a581
JJ
8945lt_save_CC="$CC"
8946ac_ext=c
8947ac_cpp='$CPP $CPPFLAGS'
8948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
8951
8952
c915a581
JJ
8953# Source file extension for C test sources.
8954ac_ext=c
f35db108 8955
c915a581
JJ
8956# Object file extension for compiled C test sources.
8957objext=o
8958objext=$objext
f35db108 8959
c915a581
JJ
8960# Code to be used in simple compile tests
8961lt_simple_compile_test_code="int some_variable = 0;"
f35db108 8962
c915a581
JJ
8963# Code to be used in simple link tests
8964lt_simple_link_test_code='int main(){return(0);}'
f35db108
WM
8965
8966
8967
8968
8969
8970
8971
c915a581
JJ
8972# If no C compiler was specified, use CC.
8973LTCC=${LTCC-"$CC"}
f35db108 8974
c915a581
JJ
8975# If no C compiler flags were specified, use CFLAGS.
8976LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
f35db108 8977
c915a581
JJ
8978# Allow CC to be a program name with arguments.
8979compiler=$CC
f35db108 8980
c915a581
JJ
8981# Save the default compiler, since it gets overwritten when the other
8982# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8983compiler_DEFAULT=$CC
f35db108 8984
c915a581
JJ
8985# save warnings/boilerplate of simple test code
8986ac_outfile=conftest.$ac_objext
8987echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8989_lt_compiler_boilerplate=`cat conftest.err`
8990$RM conftest*
f35db108 8991
c915a581
JJ
8992ac_outfile=conftest.$ac_objext
8993echo "$lt_simple_link_test_code" >conftest.$ac_ext
8994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8995_lt_linker_boilerplate=`cat conftest.err`
8996$RM -r conftest*
f35db108
WM
8997
8998
c915a581
JJ
8999## CAVEAT EMPTOR:
9000## There is no encapsulation within the following macros, do not change
9001## the running order or otherwise move them around unless you know exactly
9002## what you are doing...
9003if test -n "$compiler"; then
f35db108 9004
c915a581 9005lt_prog_compiler_no_builtin_flag=
f35db108 9006
c915a581
JJ
9007if test "$GCC" = yes; then
9008 case $cc_basename in
9009 nvcc*)
9010 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9011 *)
9012 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9013 esac
f35db108 9014
c915a581
JJ
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9016$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9017if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019else
9020 lt_cv_prog_compiler_rtti_exceptions=no
9021 ac_outfile=conftest.$ac_objext
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023 lt_compiler_flag="-fno-rtti -fno-exceptions"
9024 # Insert the option either (1) after the last *FLAGS variable, or
9025 # (2) before a word containing "conftest.", or (3) at the end.
9026 # Note that $ac_compile itself does not contain backslashes and begins
9027 # with a dollar sign (not a hyphen), so the echo should work correctly.
9028 # The option is referenced via a variable to avoid confusing sed.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>conftest.err)
9035 ac_status=$?
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s "$ac_outfile"; then
9039 # The compiler can only warn and ignore the option if not recognized
9040 # So say no if there are warnings other than the usual output.
9041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_rtti_exceptions=yes
9045 fi
9046 fi
9047 $RM conftest*
f35db108 9048
c915a581
JJ
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9051$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
f35db108 9052
c915a581
JJ
9053if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9054 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9055else
9056 :
9057fi
f35db108 9058
c915a581 9059fi
f35db108
WM
9060
9061
9062
9063
9064
9065
c915a581
JJ
9066 lt_prog_compiler_wl=
9067lt_prog_compiler_pic=
9068lt_prog_compiler_static=
f35db108 9069
c915a581
JJ
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9071$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108 9072
c915a581
JJ
9073 if test "$GCC" = yes; then
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_static='-static'
f35db108 9076
c915a581
JJ
9077 case $host_os in
9078 aix*)
9079 # All AIX code is PIC.
9080 if test "$host_cpu" = ia64; then
9081 # AIX 5 now supports IA64 processor
9082 lt_prog_compiler_static='-Bstatic'
9083 fi
9084 lt_prog_compiler_pic='-fPIC'
9085 ;;
f35db108 9086
c915a581
JJ
9087 amigaos*)
9088 case $host_cpu in
9089 powerpc)
9090 # see comment about AmigaOS4 .so support
9091 lt_prog_compiler_pic='-fPIC'
9092 ;;
9093 m68k)
9094 # FIXME: we need at least 68020 code to build shared libraries, but
9095 # adding the `-m68020' flag to GCC prevents building anything better,
9096 # like `-m68040'.
9097 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9098 ;;
9099 esac
9100 ;;
f35db108 9101
c915a581
JJ
9102 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9103 # PIC is the default for these OSes.
9104 ;;
f35db108 9105
c915a581
JJ
9106 mingw* | cygwin* | pw32* | os2* | cegcc*)
9107 # This hack is so that the source file can tell whether it is being
9108 # built for inclusion in a dll (and should export symbols for example).
9109 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9110 # (--disable-auto-import) libraries
9111 lt_prog_compiler_pic='-DDLL_EXPORT'
9112 ;;
f35db108 9113
c915a581
JJ
9114 darwin* | rhapsody*)
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 lt_prog_compiler_pic='-fno-common'
9118 ;;
f35db108 9119
c915a581
JJ
9120 haiku*)
9121 # PIC is the default for Haiku.
9122 # The "-static" flag exists, but is broken.
9123 lt_prog_compiler_static=
9124 ;;
f35db108 9125
c915a581
JJ
9126 hpux*)
9127 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9128 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9129 # sets the default TLS model and affects inlining.
9130 case $host_cpu in
9131 hppa*64*)
9132 # +Z the default
9133 ;;
9134 *)
9135 lt_prog_compiler_pic='-fPIC'
9136 ;;
9137 esac
9138 ;;
f35db108 9139
c915a581
JJ
9140 interix[3-9]*)
9141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9142 # Instead, we relocate shared libraries at runtime.
9143 ;;
a2479b3d 9144
c915a581
JJ
9145 msdosdjgpp*)
9146 # Just because we use GCC doesn't mean we suddenly get shared libraries
9147 # on systems that don't support them.
9148 lt_prog_compiler_can_build_shared=no
9149 enable_shared=no
9150 ;;
a2479b3d 9151
c915a581
JJ
9152 *nto* | *qnx*)
9153 # QNX uses GNU C++, but need to define -shared option too, otherwise
9154 # it will coredump.
9155 lt_prog_compiler_pic='-fPIC -shared'
9156 ;;
a2479b3d 9157
c915a581
JJ
9158 sysv4*MP*)
9159 if test -d /usr/nec; then
9160 lt_prog_compiler_pic=-Kconform_pic
9161 fi
9162 ;;
a2479b3d 9163
c915a581
JJ
9164 *)
9165 lt_prog_compiler_pic='-fPIC'
9166 ;;
9167 esac
a2479b3d 9168
c915a581
JJ
9169 case $cc_basename in
9170 nvcc*) # Cuda Compiler Driver 2.2
9171 lt_prog_compiler_wl='-Xlinker '
9172 lt_prog_compiler_pic='-Xcompiler -fPIC'
9173 ;;
9174 esac
9175 else
9176 # PORTME Check for flag to pass linker flags through the system compiler.
9177 case $host_os in
9178 aix*)
9179 lt_prog_compiler_wl='-Wl,'
9180 if test "$host_cpu" = ia64; then
9181 # AIX 5 now supports IA64 processor
9182 lt_prog_compiler_static='-Bstatic'
9183 else
9184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9185 fi
9186 ;;
f35db108 9187
c915a581
JJ
9188 mingw* | cygwin* | pw32* | os2* | cegcc*)
9189 # This hack is so that the source file can tell whether it is being
9190 # built for inclusion in a dll (and should export symbols for example).
9191 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 ;;
f35db108 9193
c915a581
JJ
9194 hpux9* | hpux10* | hpux11*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197 # not for PA HP-UX.
9198 case $host_cpu in
9199 hppa*64*|ia64*)
9200 # +Z the default
9201 ;;
9202 *)
9203 lt_prog_compiler_pic='+Z'
9204 ;;
9205 esac
9206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9207 lt_prog_compiler_static='${wl}-a ${wl}archive'
9208 ;;
f35db108 9209
c915a581
JJ
9210 irix5* | irix6* | nonstopux*)
9211 lt_prog_compiler_wl='-Wl,'
9212 # PIC (with -KPIC) is the default.
9213 lt_prog_compiler_static='-non_shared'
9214 ;;
f35db108 9215
c915a581
JJ
9216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9217 case $cc_basename in
9218 # old Intel for x86_64 which still supported -KPIC.
9219 ecc*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-static'
9223 ;;
9224 # icc used to be incompatible with GCC.
9225 # ICC 10 doesn't accept -KPIC any more.
9226 icc* | ifort*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-fPIC'
9229 lt_prog_compiler_static='-static'
9230 ;;
9231 # Lahey Fortran 8.1.
9232 lf95*)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='--shared'
9235 lt_prog_compiler_static='--static'
9236 ;;
9237 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9238 # Portland Group compilers (*not* the Pentium gcc compiler,
9239 # which looks to be a dead project)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-fpic'
9242 lt_prog_compiler_static='-Bstatic'
9243 ;;
9244 ccc*)
9245 lt_prog_compiler_wl='-Wl,'
9246 # All Alpha code is PIC.
9247 lt_prog_compiler_static='-non_shared'
9248 ;;
9249 xl* | bgxl* | bgf* | mpixl*)
9250 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-qpic'
9253 lt_prog_compiler_static='-qstaticlink'
9254 ;;
9255 *)
9256 case `$CC -V 2>&1 | sed 5q` in
9257 *Sun\ F* | *Sun*Fortran*)
9258 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 lt_prog_compiler_wl=''
9262 ;;
9263 *Sun\ C*)
9264 # Sun C 5.9
9265 lt_prog_compiler_pic='-KPIC'
9266 lt_prog_compiler_static='-Bstatic'
9267 lt_prog_compiler_wl='-Wl,'
9268 ;;
9269 esac
9270 ;;
9271 esac
9272 ;;
f35db108 9273
c915a581
JJ
9274 newsos6)
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
f35db108 9278
c915a581
JJ
9279 *nto* | *qnx*)
9280 # QNX uses GNU C++, but need to define -shared option too, otherwise
9281 # it will coredump.
9282 lt_prog_compiler_pic='-fPIC -shared'
9283 ;;
f35db108 9284
c915a581
JJ
9285 osf3* | osf4* | osf5*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All OSF/1 code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
f35db108 9290
c915a581
JJ
9291 rdos*)
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
f35db108 9294
c915a581
JJ
9295 solaris*)
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 case $cc_basename in
9299 f77* | f90* | f95*)
9300 lt_prog_compiler_wl='-Qoption ld ';;
9301 *)
9302 lt_prog_compiler_wl='-Wl,';;
9303 esac
9304 ;;
f35db108 9305
c915a581
JJ
9306 sunos4*)
9307 lt_prog_compiler_wl='-Qoption ld '
9308 lt_prog_compiler_pic='-PIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 ;;
f35db108 9311
c915a581
JJ
9312 sysv4 | sysv4.2uw2* | sysv4.3*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317
9318 sysv4*MP*)
9319 if test -d /usr/nec ;then
9320 lt_prog_compiler_pic='-Kconform_pic'
9321 lt_prog_compiler_static='-Bstatic'
f35db108
WM
9322 fi
9323 ;;
c915a581
JJ
9324
9325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 ;;
9330
9331 unicos*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_can_build_shared=no
9334 ;;
9335
9336 uts4*)
9337 lt_prog_compiler_pic='-pic'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 *)
9342 lt_prog_compiler_can_build_shared=no
9343 ;;
f35db108 9344 esac
f35db108 9345 fi
f35db108 9346
c915a581
JJ
9347case $host_os in
9348 # For platforms which do not support PIC, -DPIC is meaningless:
9349 *djgpp*)
9350 lt_prog_compiler_pic=
f35db108 9351 ;;
c915a581
JJ
9352 *)
9353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
f35db108 9354 ;;
c915a581
JJ
9355esac
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9357$as_echo "$lt_prog_compiler_pic" >&6; }
f35db108 9358
f35db108 9359
f35db108 9360
f35db108 9361
f35db108 9362
f35db108 9363
c915a581
JJ
9364#
9365# Check to make sure the PIC flag actually works.
9366#
9367if test -n "$lt_prog_compiler_pic"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9370if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9371 $as_echo_n "(cached) " >&6
9372else
9373 lt_cv_prog_compiler_pic_works=no
9374 ac_outfile=conftest.$ac_objext
9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9377 # Insert the option either (1) after the last *FLAGS variable, or
9378 # (2) before a word containing "conftest.", or (3) at the end.
9379 # Note that $ac_compile itself does not contain backslashes and begins
9380 # with a dollar sign (not a hyphen), so the echo should work correctly.
9381 # The option is referenced via a variable to avoid confusing sed.
9382 lt_compile=`echo "$ac_compile" | $SED \
9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385 -e 's:$: $lt_compiler_flag:'`
9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387 (eval "$lt_compile" 2>conftest.err)
9388 ac_status=$?
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 if (exit $ac_status) && test -s "$ac_outfile"; then
9392 # The compiler can only warn and ignore the option if not recognized
9393 # So say no if there are warnings other than the usual output.
9394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9397 lt_cv_prog_compiler_pic_works=yes
9398 fi
9399 fi
9400 $RM conftest*
f35db108 9401
c915a581
JJ
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9404$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
f35db108 9405
c915a581
JJ
9406if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9407 case $lt_prog_compiler_pic in
9408 "" | " "*) ;;
9409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9410 esac
9411else
9412 lt_prog_compiler_pic=
9413 lt_prog_compiler_can_build_shared=no
9414fi
f35db108 9415
c915a581 9416fi
f35db108 9417
f35db108 9418
f35db108 9419
f35db108 9420
f35db108 9421
f35db108 9422
c915a581
JJ
9423#
9424# Check to make sure the static flag actually works.
9425#
9426wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9428$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9429if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431else
9432 lt_cv_prog_compiler_static_works=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler_static_works=yes
9446 fi
9447 else
9448 lt_cv_prog_compiler_static_works=yes
9449 fi
9450 fi
9451 $RM -r conftest*
9452 LDFLAGS="$save_LDFLAGS"
f35db108 9453
c915a581
JJ
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9456$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f35db108 9457
c915a581
JJ
9458if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9459 :
9460else
9461 lt_prog_compiler_static=
9462fi
f35db108 9463
f35db108 9464
f35db108 9465
f35db108 9466
f35db108 9467
f35db108 9468
f35db108 9469
c915a581
JJ
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9472if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474else
9475 lt_cv_prog_compiler_c_o=no
9476 $RM -r conftest 2>/dev/null
9477 mkdir conftest
9478 cd conftest
9479 mkdir out
9480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9481
c915a581
JJ
9482 lt_compiler_flag="-o out/conftest2.$ac_objext"
9483 # Insert the option either (1) after the last *FLAGS variable, or
9484 # (2) before a word containing "conftest.", or (3) at the end.
9485 # Note that $ac_compile itself does not contain backslashes and begins
9486 # with a dollar sign (not a hyphen), so the echo should work correctly.
9487 lt_compile=`echo "$ac_compile" | $SED \
9488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490 -e 's:$: $lt_compiler_flag:'`
9491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492 (eval "$lt_compile" 2>out/conftest.err)
9493 ac_status=$?
9494 cat out/conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497 then
9498 # The compiler can only warn and ignore the option if not recognized
9499 # So say no if there are warnings
9500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9503 lt_cv_prog_compiler_c_o=yes
9504 fi
9505 fi
9506 chmod u+w . 2>&5
9507 $RM conftest*
9508 # SGI C++ compiler will create directory out/ii_files/ for
9509 # template instantiation
9510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9511 $RM out/* && rmdir out
9512 cd ..
9513 $RM -r conftest
9514 $RM conftest*
f35db108 9515
c915a581
JJ
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9518$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9519
f35db108 9520
f35db108 9521
f35db108 9522
f35db108 9523
f35db108 9524
c915a581
JJ
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9527if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529else
9530 lt_cv_prog_compiler_c_o=no
9531 $RM -r conftest 2>/dev/null
9532 mkdir conftest
9533 cd conftest
9534 mkdir out
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
f35db108 9536
c915a581
JJ
9537 lt_compiler_flag="-o out/conftest2.$ac_objext"
9538 # Insert the option either (1) after the last *FLAGS variable, or
9539 # (2) before a word containing "conftest.", or (3) at the end.
9540 # Note that $ac_compile itself does not contain backslashes and begins
9541 # with a dollar sign (not a hyphen), so the echo should work correctly.
9542 lt_compile=`echo "$ac_compile" | $SED \
9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545 -e 's:$: $lt_compiler_flag:'`
9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547 (eval "$lt_compile" 2>out/conftest.err)
9548 ac_status=$?
9549 cat out/conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9552 then
9553 # The compiler can only warn and ignore the option if not recognized
9554 # So say no if there are warnings
9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9558 lt_cv_prog_compiler_c_o=yes
9559 fi
9560 fi
9561 chmod u+w . 2>&5
9562 $RM conftest*
9563 # SGI C++ compiler will create directory out/ii_files/ for
9564 # template instantiation
9565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9566 $RM out/* && rmdir out
9567 cd ..
9568 $RM -r conftest
9569 $RM conftest*
f35db108 9570
c915a581
JJ
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9573$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
f35db108 9574
f35db108 9575
f35db108 9576
f35db108 9577
c915a581
JJ
9578hard_links="nottested"
9579if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9580 # do not overwrite the value of need_locks provided by the user
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9582$as_echo_n "checking if we can lock with hard links... " >&6; }
9583 hard_links=yes
9584 $RM conftest*
9585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9586 touch conftest.a
9587 ln conftest.a conftest.b 2>&5 || hard_links=no
9588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9590$as_echo "$hard_links" >&6; }
9591 if test "$hard_links" = no; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9593$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9594 need_locks=warn
f35db108 9595 fi
c915a581
JJ
9596else
9597 need_locks=no
f35db108
WM
9598fi
9599
f35db108
WM
9600
9601
9602
9603
9604
c915a581
JJ
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
f35db108 9607
c915a581
JJ
9608 runpath_var=
9609 allow_undefined_flag=
9610 always_export_symbols=no
9611 archive_cmds=
9612 archive_expsym_cmds=
9613 compiler_needs_object=no
9614 enable_shared_with_static_runtimes=no
9615 export_dynamic_flag_spec=
9616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9617 hardcode_automatic=no
9618 hardcode_direct=no
9619 hardcode_direct_absolute=no
9620 hardcode_libdir_flag_spec=
9621 hardcode_libdir_flag_spec_ld=
9622 hardcode_libdir_separator=
9623 hardcode_minus_L=no
9624 hardcode_shlibpath_var=unsupported
9625 inherit_rpath=no
9626 link_all_deplibs=unknown
9627 module_cmds=
9628 module_expsym_cmds=
9629 old_archive_from_new_cmds=
9630 old_archive_from_expsyms_cmds=
9631 thread_safe_flag_spec=
9632 whole_archive_flag_spec=
9633 # include_expsyms should be a list of space-separated symbols to be *always*
9634 # included in the symbol list
9635 include_expsyms=
9636 # exclude_expsyms can be an extended regexp of symbols to exclude
9637 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9639 # as well as any symbol that contains `d'.
9640 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9642 # platforms (ab)use it in PIC code, but their linkers get confused if
9643 # the symbol is explicitly referenced. Since portable code cannot
9644 # rely on this symbol name, it's probably fine to never include it in
9645 # preloaded symbol tables.
9646 # Exclude shared library initialization/finalization symbols.
9647 extract_expsyms_cmds=
f35db108 9648
c915a581
JJ
9649 case $host_os in
9650 cygwin* | mingw* | pw32* | cegcc*)
9651 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9652 # When not using gcc, we currently assume that we are using
9653 # Microsoft Visual C++.
9654 if test "$GCC" != yes; then
9655 with_gnu_ld=no
9656 fi
9657 ;;
9658 interix*)
9659 # we just hope/assume this is gcc and not c89 (= MSVC++)
9660 with_gnu_ld=yes
9661 ;;
9662 openbsd*)
9663 with_gnu_ld=no
9664 ;;
9665 esac
f35db108 9666
c915a581 9667 ld_shlibs=yes
f35db108 9668
c915a581
JJ
9669 # On some targets, GNU ld is compatible enough with the native linker
9670 # that we're better off using the native interface for both.
9671 lt_use_gnu_ld_interface=no
9672 if test "$with_gnu_ld" = yes; then
9673 case $host_os in
9674 aix*)
9675 # The AIX port of GNU ld has always aspired to compatibility
9676 # with the native linker. However, as the warning in the GNU ld
9677 # block says, versions before 2.19.5* couldn't really create working
9678 # shared libraries, regardless of the interface used.
9679 case `$LD -v 2>&1` in
9680 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9681 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9682 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9683 *)
9684 lt_use_gnu_ld_interface=yes
9685 ;;
9686 esac
9687 ;;
9688 *)
9689 lt_use_gnu_ld_interface=yes
9690 ;;
9691 esac
9692 fi
f35db108 9693
c915a581
JJ
9694 if test "$lt_use_gnu_ld_interface" = yes; then
9695 # If archive_cmds runs LD, not CC, wlarc should be empty
9696 wlarc='${wl}'
f35db108 9697
c915a581
JJ
9698 # Set some defaults for GNU ld with shared library support. These
9699 # are reset later if shared libraries are not supported. Putting them
9700 # here allows them to be overridden if necessary.
9701 runpath_var=LD_RUN_PATH
9702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703 export_dynamic_flag_spec='${wl}--export-dynamic'
9704 # ancient GNU ld didn't support --whole-archive et. al.
9705 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9706 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9707 else
9708 whole_archive_flag_spec=
9709 fi
9710 supports_anon_versioning=no
9711 case `$LD -v 2>&1` in
9712 *GNU\ gold*) supports_anon_versioning=yes ;;
9713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9716 *\ 2.11.*) ;; # other 2.11 versions
9717 *) supports_anon_versioning=yes ;;
9718 esac
f35db108 9719
c915a581
JJ
9720 # See if GNU ld supports shared libraries.
9721 case $host_os in
9722 aix[3-9]*)
9723 # On AIX/PPC, the GNU linker is very broken
9724 if test "$host_cpu" != ia64; then
9725 ld_shlibs=no
9726 cat <<_LT_EOF 1>&2
f35db108 9727
c915a581
JJ
9728*** Warning: the GNU linker, at least up to release 2.19, is reported
9729*** to be unable to reliably create shared libraries on AIX.
9730*** Therefore, libtool is disabling shared libraries support. If you
9731*** really care for shared libraries, you may want to install binutils
9732*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9733*** You will then need to restart the configuration process.
f35db108 9734
c915a581
JJ
9735_LT_EOF
9736 fi
9737 ;;
f35db108 9738
c915a581
JJ
9739 amigaos*)
9740 case $host_cpu in
9741 powerpc)
9742 # see comment about AmigaOS4 .so support
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744 archive_expsym_cmds=''
9745 ;;
9746 m68k)
9747 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)'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_minus_L=yes
9750 ;;
9751 esac
9752 ;;
f35db108 9753
c915a581
JJ
9754 beos*)
9755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9756 allow_undefined_flag=unsupported
9757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9758 # support --undefined. This deserves some investigation. FIXME
9759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760 else
9761 ld_shlibs=no
9762 fi
9763 ;;
f35db108 9764
c915a581
JJ
9765 cygwin* | mingw* | pw32* | cegcc*)
9766 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9767 # as there is no search path for DLLs.
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 export_dynamic_flag_spec='${wl}--export-all-symbols'
9770 allow_undefined_flag=unsupported
9771 always_export_symbols=no
9772 enable_shared_with_static_runtimes=yes
9773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
f35db108 9774
c915a581
JJ
9775 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9777 # If the export-symbols file already is a .def file (1st line
9778 # is EXPORTS), use it as is; otherwise, prepend...
9779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780 cp $export_symbols $output_objdir/$soname.def;
9781 else
9782 echo EXPORTS > $output_objdir/$soname.def;
9783 cat $export_symbols >> $output_objdir/$soname.def;
9784 fi~
9785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786 else
9787 ld_shlibs=no
9788 fi
9789 ;;
f35db108 9790
c915a581
JJ
9791 haiku*)
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 link_all_deplibs=yes
9794 ;;
f35db108 9795
c915a581
JJ
9796 interix[3-9]*)
9797 hardcode_direct=no
9798 hardcode_shlibpath_var=no
9799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800 export_dynamic_flag_spec='${wl}-E'
9801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9802 # Instead, shared libraries are loaded at an image base (0x10000000 by
9803 # default) and relocated if they conflict, which is a slow very memory
9804 # consuming and fragmenting process. To avoid this, we pick a random,
9805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9808 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'
9809 ;;
f35db108 9810
c915a581
JJ
9811 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9812 tmp_diet=no
9813 if test "$host_os" = linux-dietlibc; then
9814 case $cc_basename in
9815 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9816 esac
9817 fi
9818 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9819 && test "$tmp_diet" = no
9820 then
a699d672 9821 tmp_addflag=' $pic_flag'
c915a581
JJ
9822 tmp_sharedflag='-shared'
9823 case $cc_basename,$host_cpu in
9824 pgcc*) # Portland Group C compiler
9825 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'
9826 tmp_addflag=' $pic_flag'
9827 ;;
9828 pgf77* | pgf90* | pgf95* | pgfortran*)
9829 # Portland Group f77 and f90 compilers
9830 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'
9831 tmp_addflag=' $pic_flag -Mnomain' ;;
9832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9833 tmp_addflag=' -i_dynamic' ;;
9834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9835 tmp_addflag=' -i_dynamic -nofor_main' ;;
9836 ifc* | ifort*) # Intel Fortran compiler
9837 tmp_addflag=' -nofor_main' ;;
9838 lf95*) # Lahey Fortran 8.1
9839 whole_archive_flag_spec=
9840 tmp_sharedflag='--shared' ;;
9841 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9842 tmp_sharedflag='-qmkshrobj'
9843 tmp_addflag= ;;
9844 nvcc*) # Cuda Compiler Driver 2.2
9845 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'
9846 compiler_needs_object=yes
9847 ;;
9848 esac
9849 case `$CC -V 2>&1 | sed 5q` in
9850 *Sun\ C*) # Sun C 5.9
9851 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'
9852 compiler_needs_object=yes
9853 tmp_sharedflag='-G' ;;
9854 *Sun\ F*) # Sun Fortran 8.3
9855 tmp_sharedflag='-G' ;;
9856 esac
9857 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
f35db108 9858
c915a581
JJ
9859 if test "x$supports_anon_versioning" = xyes; then
9860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9862 echo "local: *; };" >> $output_objdir/$libname.ver~
9863 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9864 fi
f35db108 9865
c915a581
JJ
9866 case $cc_basename in
9867 xlf* | bgf* | bgxlf* | mpixlf*)
9868 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9869 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9870 hardcode_libdir_flag_spec=
9871 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9872 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9873 if test "x$supports_anon_versioning" = xyes; then
9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876 echo "local: *; };" >> $output_objdir/$libname.ver~
9877 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9878 fi
9879 ;;
9880 esac
9881 else
9882 ld_shlibs=no
9883 fi
9884 ;;
f35db108 9885
c915a581
JJ
9886 netbsd*)
9887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9888 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9889 wlarc=
9890 else
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9893 fi
9894 ;;
f35db108 9895
c915a581
JJ
9896 solaris*)
9897 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9898 ld_shlibs=no
9899 cat <<_LT_EOF 1>&2
f35db108 9900
c915a581
JJ
9901*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9902*** create shared libraries on Solaris systems. Therefore, libtool
9903*** is disabling shared libraries support. We urge you to upgrade GNU
9904*** binutils to release 2.9.1 or newer. Another option is to modify
9905*** your PATH or compiler configuration so that the native linker is
9906*** used, and then restart.
f35db108 9907
c915a581
JJ
9908_LT_EOF
9909 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912 else
9913 ld_shlibs=no
9914 fi
9915 ;;
f35db108 9916
c915a581
JJ
9917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9918 case `$LD -v 2>&1` in
9919 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9920 ld_shlibs=no
9921 cat <<_LT_EOF 1>&2
f35db108 9922
c915a581
JJ
9923*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9924*** reliably create shared libraries on SCO systems. Therefore, libtool
9925*** is disabling shared libraries support. We urge you to upgrade GNU
9926*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9927*** your PATH or compiler configuration so that the native linker is
9928*** used, and then restart.
f35db108 9929
c915a581
JJ
9930_LT_EOF
9931 ;;
9932 *)
9933 # For security reasons, it is highly recommended that you always
9934 # use absolute paths for naming shared libraries, and exclude the
9935 # DT_RUNPATH tag from executables and libraries. But doing so
9936 # requires that you compile everything twice, which is a pain.
9937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9941 else
9942 ld_shlibs=no
9943 fi
9944 ;;
9945 esac
9946 ;;
f35db108 9947
c915a581
JJ
9948 sunos4*)
9949 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950 wlarc=
9951 hardcode_direct=yes
9952 hardcode_shlibpath_var=no
9953 ;;
f35db108 9954
c915a581
JJ
9955 *)
9956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 else
9960 ld_shlibs=no
9961 fi
9962 ;;
9963 esac
f35db108 9964
c915a581
JJ
9965 if test "$ld_shlibs" = no; then
9966 runpath_var=
9967 hardcode_libdir_flag_spec=
9968 export_dynamic_flag_spec=
9969 whole_archive_flag_spec=
9970 fi
9971 else
9972 # PORTME fill in a description of your system's linker (not GNU ld)
9973 case $host_os in
9974 aix3*)
9975 allow_undefined_flag=unsupported
9976 always_export_symbols=yes
9977 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'
9978 # Note: this linker hardcodes the directories in LIBPATH if there
9979 # are no directories specified by -L.
9980 hardcode_minus_L=yes
9981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9982 # Neither direct hardcoding nor static linking is supported with a
9983 # broken collect2.
9984 hardcode_direct=unsupported
9985 fi
9986 ;;
f35db108 9987
c915a581
JJ
9988 aix[4-9]*)
9989 if test "$host_cpu" = ia64; then
9990 # On IA64, the linker does run time linking by default, so we don't
9991 # have to do anything special.
9992 aix_use_runtimelinking=no
9993 exp_sym_flag='-Bexport'
9994 no_entry_flag=""
9995 else
9996 # If we're using GNU nm, then we don't want the "-C" option.
9997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9998 # Also, AIX nm treats weak defined symbols like other global
9999 # defined symbols, whereas GNU nm marks them as "W".
10000 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10001 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'
10002 else
bf93d543 10003 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
c915a581
JJ
10004 fi
10005 aix_use_runtimelinking=no
f35db108 10006
c915a581
JJ
10007 # Test if we are trying to use run time linking or normal
10008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10009 # need to do runtime linking.
10010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10011 for ld_flag in $LDFLAGS; do
10012 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10013 aix_use_runtimelinking=yes
10014 break
10015 fi
10016 done
10017 ;;
10018 esac
f35db108 10019
c915a581
JJ
10020 exp_sym_flag='-bexport'
10021 no_entry_flag='-bnoentry'
10022 fi
f35db108 10023
c915a581
JJ
10024 # When large executables or shared objects are built, AIX ld can
10025 # have problems creating the table of contents. If linking a library
10026 # or program results in "error TOC overflow" add -mminimal-toc to
10027 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10028 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
f35db108 10029
c915a581
JJ
10030 archive_cmds=''
10031 hardcode_direct=yes
10032 hardcode_direct_absolute=yes
10033 hardcode_libdir_separator=':'
10034 link_all_deplibs=yes
10035 file_list_spec='${wl}-f,'
f35db108 10036
c915a581
JJ
10037 if test "$GCC" = yes; then
10038 case $host_os in aix4.[012]|aix4.[012].*)
10039 # We only want to do this on AIX 4.2 and lower, the check
10040 # below for broken collect2 doesn't work under 4.3+
10041 collect2name=`${CC} -print-prog-name=collect2`
10042 if test -f "$collect2name" &&
10043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10044 then
10045 # We have reworked collect2
10046 :
10047 else
10048 # We have old collect2
10049 hardcode_direct=unsupported
10050 # It fails to find uninstalled libraries when the uninstalled
10051 # path is not listed in the libpath. Setting hardcode_minus_L
10052 # to unsupported forces relinking
10053 hardcode_minus_L=yes
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_libdir_separator=
10056 fi
10057 ;;
10058 esac
10059 shared_flag='-shared'
10060 if test "$aix_use_runtimelinking" = yes; then
10061 shared_flag="$shared_flag "'${wl}-G'
10062 fi
10063 else
10064 # not using gcc
10065 if test "$host_cpu" = ia64; then
10066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10067 # chokes on -Wl,-G. The following line is correct:
10068 shared_flag='-G'
10069 else
10070 if test "$aix_use_runtimelinking" = yes; then
10071 shared_flag='${wl}-G'
10072 else
10073 shared_flag='${wl}-bM:SRE'
10074 fi
10075 fi
10076 fi
f35db108 10077
c915a581
JJ
10078 export_dynamic_flag_spec='${wl}-bexpall'
10079 # It seems that -bexpall does not export symbols beginning with
10080 # underscore (_), so it is better to generate a list of symbols to export.
10081 always_export_symbols=yes
10082 if test "$aix_use_runtimelinking" = yes; then
10083 # Warning - without using the other runtime loading flags (-brtl),
10084 # -berok will link without error, but may produce a broken library.
10085 allow_undefined_flag='-berok'
10086 # Determine the default libpath from the value encoded in an
10087 # empty executable.
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089/* end confdefs.h. */
f35db108 10090
c915a581
JJ
10091int
10092main ()
10093{
f35db108 10094
c915a581
JJ
10095 ;
10096 return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_link "$LINENO"; then :
f35db108 10100
c915a581
JJ
10101lt_aix_libpath_sed='
10102 /Import File Strings/,/^$/ {
10103 /^0/ {
10104 s/^0 *\(.*\)$/\1/
10105 p
10106 }
10107 }'
10108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10109# Check for a 64-bit object if we didn't find anything.
10110if test -z "$aix_libpath"; then
10111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10112fi
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10117
c915a581
JJ
10118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10119 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"
10120 else
10121 if test "$host_cpu" = ia64; then
10122 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10123 allow_undefined_flag="-z nodefs"
10124 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"
10125 else
10126 # Determine the default libpath from the value encoded in an
10127 # empty executable.
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h. */
f35db108 10130
c915a581
JJ
10131int
10132main ()
10133{
f35db108 10134
c915a581
JJ
10135 ;
10136 return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_link "$LINENO"; then :
f35db108 10140
c915a581
JJ
10141lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\(.*\)$/\1/
10145 p
10146 }
10147 }'
10148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149# Check for a 64-bit object if we didn't find anything.
10150if test -z "$aix_libpath"; then
10151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152fi
10153fi
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108 10157
c915a581
JJ
10158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159 # Warning - without using the other run time loading flags,
10160 # -berok will link without error, but may produce a broken library.
10161 no_undefined_flag=' ${wl}-bernotok'
10162 allow_undefined_flag=' ${wl}-berok'
10163 if test "$with_gnu_ld" = yes; then
10164 # We only use this code for GNU lds that support --whole-archive.
10165 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10166 else
10167 # Exported symbols can be pulled into shared objects from archives
10168 whole_archive_flag_spec='$convenience'
10169 fi
10170 archive_cmds_need_lc=yes
10171 # This is similar to how AIX traditionally builds its shared libraries.
10172 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'
10173 fi
10174 fi
10175 ;;
f35db108 10176
c915a581
JJ
10177 amigaos*)
10178 case $host_cpu in
10179 powerpc)
10180 # see comment about AmigaOS4 .so support
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182 archive_expsym_cmds=''
10183 ;;
10184 m68k)
10185 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)'
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_minus_L=yes
10188 ;;
10189 esac
10190 ;;
f35db108 10191
c915a581
JJ
10192 bsdi[45]*)
10193 export_dynamic_flag_spec=-rdynamic
10194 ;;
f35db108 10195
c915a581
JJ
10196 cygwin* | mingw* | pw32* | cegcc*)
10197 # When not using gcc, we currently assume that we are using
10198 # Microsoft Visual C++.
10199 # hardcode_libdir_flag_spec is actually meaningless, as there is
10200 # no search path for DLLs.
10201 hardcode_libdir_flag_spec=' '
10202 allow_undefined_flag=unsupported
10203 # Tell ltmain to make .lib files, not .a files.
10204 libext=lib
10205 # Tell ltmain to make .dll files, not .so files.
10206 shrext_cmds=".dll"
10207 # FIXME: Setting linknames here is a bad hack.
10208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10209 # The linker will automatically build a .lib file if we build a DLL.
10210 old_archive_from_new_cmds='true'
10211 # FIXME: Should let the user specify the lib program.
10212 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10213 fix_srcfile_path='`cygpath -w "$srcfile"`'
10214 enable_shared_with_static_runtimes=yes
10215 ;;
f35db108 10216
c915a581 10217 darwin* | rhapsody*)
f35db108
WM
10218
10219
c915a581
JJ
10220 archive_cmds_need_lc=no
10221 hardcode_direct=no
10222 hardcode_automatic=yes
10223 hardcode_shlibpath_var=unsupported
10224 if test "$lt_cv_ld_force_load" = "yes"; then
10225 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\"`'
10226 else
10227 whole_archive_flag_spec=''
10228 fi
10229 link_all_deplibs=yes
10230 allow_undefined_flag="$_lt_dar_allow_undefined"
10231 case $cc_basename in
10232 ifort*) _lt_dar_can_shared=yes ;;
10233 *) _lt_dar_can_shared=$GCC ;;
10234 esac
10235 if test "$_lt_dar_can_shared" = "yes"; then
10236 output_verbose_link_cmd=func_echo_all
10237 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10238 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10239 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}"
10240 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}"
f35db108 10241
c915a581
JJ
10242 else
10243 ld_shlibs=no
10244 fi
f35db108 10245
c915a581 10246 ;;
f35db108 10247
c915a581
JJ
10248 dgux*)
10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_libdir_flag_spec='-L$libdir'
10251 hardcode_shlibpath_var=no
10252 ;;
f35db108 10253
c915a581
JJ
10254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255 # support. Future versions do this automatically, but an explicit c++rt0.o
10256 # does not break anything, and helps significantly (at the cost of a little
10257 # extra space).
10258 freebsd2.2*)
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_direct=yes
10262 hardcode_shlibpath_var=no
10263 ;;
f35db108 10264
c915a581
JJ
10265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10266 freebsd2.*)
10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes
10269 hardcode_minus_L=yes
10270 hardcode_shlibpath_var=no
10271 ;;
f35db108 10272
c915a581
JJ
10273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274 freebsd* | dragonfly*)
10275 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10276 hardcode_libdir_flag_spec='-R$libdir'
10277 hardcode_direct=yes
10278 hardcode_shlibpath_var=no
10279 ;;
f35db108 10280
c915a581
JJ
10281 hpux9*)
10282 if test "$GCC" = yes; then
10283 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'
10284 else
10285 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'
10286 fi
10287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288 hardcode_libdir_separator=:
10289 hardcode_direct=yes
f35db108 10290
c915a581
JJ
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10294 export_dynamic_flag_spec='${wl}-E'
10295 ;;
f35db108 10296
c915a581
JJ
10297 hpux10*)
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300 else
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302 fi
10303 if test "$with_gnu_ld" = no; then
10304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305 hardcode_libdir_flag_spec_ld='+b $libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308 hardcode_direct_absolute=yes
10309 export_dynamic_flag_spec='${wl}-E'
10310 # hardcode_minus_L: Not really in the search PATH,
10311 # but as the default location of the library.
10312 hardcode_minus_L=yes
10313 fi
10314 ;;
f35db108 10315
c915a581
JJ
10316 hpux11*)
10317 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10318 case $host_cpu in
10319 hppa*64*)
10320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 ;;
10322 ia64*)
10323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324 ;;
10325 *)
10326 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10327 ;;
10328 esac
10329 else
10330 case $host_cpu in
10331 hppa*64*)
10332 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 ;;
10334 ia64*)
10335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10336 ;;
10337 *)
f35db108 10338
c915a581
JJ
10339 # Older versions of the 11.00 compiler do not understand -b yet
10340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342$as_echo_n "checking if $CC understands -b... " >&6; }
10343if test "${lt_cv_prog_compiler__b+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
f35db108 10345else
c915a581
JJ
10346 lt_cv_prog_compiler__b=no
10347 save_LDFLAGS="$LDFLAGS"
10348 LDFLAGS="$LDFLAGS -b"
10349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351 # The linker can only warn and ignore the option if not recognized
10352 # So say no if there are warnings
10353 if test -s conftest.err; then
10354 # Append any errors to the config.log.
10355 cat conftest.err 1>&5
10356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358 if diff conftest.exp conftest.er2 >/dev/null; then
10359 lt_cv_prog_compiler__b=yes
10360 fi
10361 else
10362 lt_cv_prog_compiler__b=yes
10363 fi
10364 fi
10365 $RM -r conftest*
10366 LDFLAGS="$save_LDFLAGS"
f35db108 10367
f35db108 10368fi
c915a581
JJ
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370$as_echo "$lt_cv_prog_compiler__b" >&6; }
f35db108 10371
c915a581
JJ
10372if test x"$lt_cv_prog_compiler__b" = xyes; then
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374else
10375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10376fi
f35db108 10377
c915a581
JJ
10378 ;;
10379 esac
10380 fi
10381 if test "$with_gnu_ld" = no; then
10382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383 hardcode_libdir_separator=:
f35db108 10384
c915a581
JJ
10385 case $host_cpu in
10386 hppa*64*|ia64*)
10387 hardcode_direct=no
10388 hardcode_shlibpath_var=no
10389 ;;
10390 *)
10391 hardcode_direct=yes
10392 hardcode_direct_absolute=yes
10393 export_dynamic_flag_spec='${wl}-E'
f35db108 10394
c915a581
JJ
10395 # hardcode_minus_L: Not really in the search PATH,
10396 # but as the default location of the library.
10397 hardcode_minus_L=yes
10398 ;;
10399 esac
10400 fi
10401 ;;
f35db108 10402
c915a581
JJ
10403 irix5* | irix6* | nonstopux*)
10404 if test "$GCC" = yes; then
10405 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'
10406 # Try to use the -exported_symbol ld option, if it does not
10407 # work, assume that -exports_file does not work either and
10408 # implicitly export all symbols.
10409 save_LDFLAGS="$LDFLAGS"
10410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h. */
10413int foo(void) {}
10414_ACEOF
10415if ac_fn_c_try_link "$LINENO"; then :
10416 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'
f35db108 10417
c915a581
JJ
10418fi
10419rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LDFLAGS="$save_LDFLAGS"
10422 else
10423 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'
10424 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'
10425 fi
10426 archive_cmds_need_lc='no'
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator=:
10429 inherit_rpath=yes
10430 link_all_deplibs=yes
10431 ;;
f35db108 10432
c915a581
JJ
10433 netbsd*)
10434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10436 else
10437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10438 fi
10439 hardcode_libdir_flag_spec='-R$libdir'
10440 hardcode_direct=yes
10441 hardcode_shlibpath_var=no
10442 ;;
f35db108 10443
c915a581
JJ
10444 newsos6)
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_direct=yes
10447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_shlibpath_var=no
10450 ;;
f35db108 10451
c915a581
JJ
10452 *nto* | *qnx*)
10453 ;;
f35db108 10454
c915a581
JJ
10455 openbsd*)
10456 if test -f /usr/libexec/ld.so; then
10457 hardcode_direct=yes
10458 hardcode_shlibpath_var=no
10459 hardcode_direct_absolute=yes
10460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464 export_dynamic_flag_spec='${wl}-E'
10465 else
10466 case $host_os in
10467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-R$libdir'
10470 ;;
10471 *)
10472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10474 ;;
10475 esac
10476 fi
10477 else
10478 ld_shlibs=no
10479 fi
10480 ;;
f35db108 10481
c915a581
JJ
10482 os2*)
10483 hardcode_libdir_flag_spec='-L$libdir'
10484 hardcode_minus_L=yes
10485 allow_undefined_flag=unsupported
10486 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'
10487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10488 ;;
f35db108 10489
c915a581
JJ
10490 osf3*)
10491 if test "$GCC" = yes; then
10492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10493 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'
10494 else
10495 allow_undefined_flag=' -expect_unresolved \*'
10496 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'
10497 fi
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 hardcode_libdir_separator=:
10501 ;;
f35db108 10502
c915a581
JJ
10503 osf4* | osf5*) # as osf3* with the addition of -msym flag
10504 if test "$GCC" = yes; then
10505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506 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'
10507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10508 else
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 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~
10512 $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'
f35db108 10513
c915a581
JJ
10514 # Both c and cxx compiler support -rpath directly
10515 hardcode_libdir_flag_spec='-rpath $libdir'
10516 fi
10517 archive_cmds_need_lc='no'
10518 hardcode_libdir_separator=:
10519 ;;
f35db108 10520
c915a581
JJ
10521 solaris*)
10522 no_undefined_flag=' -z defs'
10523 if test "$GCC" = yes; then
10524 wlarc='${wl}'
10525 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10528 else
10529 case `$CC -V 2>&1` in
10530 *"Compilers 5.0"*)
10531 wlarc=''
10532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10535 ;;
10536 *)
10537 wlarc='${wl}'
10538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10541 ;;
10542 esac
10543 fi
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_shlibpath_var=no
10546 case $host_os in
10547 solaris2.[0-5] | solaris2.[0-5].*) ;;
10548 *)
10549 # The compiler driver will combine and reorder linker options,
10550 # but understands `-z linker_flag'. GCC discards it without `$wl',
10551 # but is careful enough not to reorder.
10552 # Supported since Solaris 2.6 (maybe 2.5.1?)
10553 if test "$GCC" = yes; then
10554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10555 else
10556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10557 fi
10558 ;;
10559 esac
10560 link_all_deplibs=yes
10561 ;;
f35db108 10562
c915a581
JJ
10563 sunos4*)
10564 if test "x$host_vendor" = xsequent; then
10565 # Use $CC to link under sequent, because it throws in some extra .o
10566 # files that make .init and .fini sections work.
10567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10568 else
10569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10570 fi
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_direct=yes
10573 hardcode_minus_L=yes
10574 hardcode_shlibpath_var=no
10575 ;;
f35db108 10576
c915a581
JJ
10577 sysv4)
10578 case $host_vendor in
10579 sni)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes # is this really true???
10582 ;;
10583 siemens)
10584 ## LD is ld it makes a PLAMLIB
10585 ## CC just makes a GrossModule.
10586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10587 reload_cmds='$CC -r -o $output$reload_objs'
10588 hardcode_direct=no
10589 ;;
10590 motorola)
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10593 ;;
10594 esac
10595 runpath_var='LD_RUN_PATH'
10596 hardcode_shlibpath_var=no
10597 ;;
f35db108 10598
c915a581
JJ
10599 sysv4.3*)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_shlibpath_var=no
10602 export_dynamic_flag_spec='-Bexport'
10603 ;;
f35db108 10604
c915a581
JJ
10605 sysv4*MP*)
10606 if test -d /usr/nec; then
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 runpath_var=LD_RUN_PATH
10610 hardcode_runpath_var=yes
10611 ld_shlibs=yes
10612 fi
10613 ;;
f35db108 10614
c915a581
JJ
10615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10616 no_undefined_flag='${wl}-z,text'
10617 archive_cmds_need_lc=no
10618 hardcode_shlibpath_var=no
10619 runpath_var='LD_RUN_PATH'
f35db108 10620
c915a581
JJ
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 else
10625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627 fi
10628 ;;
f35db108 10629
c915a581
JJ
10630 sysv5* | sco3.2v5* | sco5v6*)
10631 # Note: We can NOT use -z defs as we might desire, because we do not
10632 # link with -lc, and that would cause any symbols used from libc to
10633 # always be unresolved, which means just about no library would
10634 # ever link correctly. If we're not using GNU ld we use -z text
10635 # though, which does catch some bad symbols but isn't as heavy-handed
10636 # as -z defs.
10637 no_undefined_flag='${wl}-z,text'
10638 allow_undefined_flag='${wl}-z,nodefs'
10639 archive_cmds_need_lc=no
10640 hardcode_shlibpath_var=no
10641 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10642 hardcode_libdir_separator=':'
10643 link_all_deplibs=yes
10644 export_dynamic_flag_spec='${wl}-Bexport'
10645 runpath_var='LD_RUN_PATH'
f35db108 10646
c915a581
JJ
10647 if test "$GCC" = yes; then
10648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 else
10651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 fi
10654 ;;
f35db108 10655
c915a581
JJ
10656 uts4*)
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10660 ;;
f35db108 10661
c915a581
JJ
10662 *)
10663 ld_shlibs=no
10664 ;;
10665 esac
f35db108 10666
c915a581
JJ
10667 if test x$host_vendor = xsni; then
10668 case $host in
10669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10670 export_dynamic_flag_spec='${wl}-Blargedynsym'
10671 ;;
10672 esac
10673 fi
10674 fi
f35db108 10675
c915a581
JJ
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10677$as_echo "$ld_shlibs" >&6; }
10678test "$ld_shlibs" = no && can_build_shared=no
f35db108 10679
c915a581 10680with_gnu_ld=$with_gnu_ld
f35db108 10681
f35db108 10682
f35db108 10683
f35db108 10684
f35db108 10685
f35db108 10686
f35db108 10687
f35db108 10688
f35db108 10689
f35db108 10690
f35db108 10691
f35db108 10692
f35db108 10693
f35db108 10694
f35db108 10695
c915a581
JJ
10696#
10697# Do we need to explicitly link libc?
10698#
10699case "x$archive_cmds_need_lc" in
10700x|xyes)
10701 # Assume -lc should be added
10702 archive_cmds_need_lc=yes
10703
10704 if test "$enable_shared" = yes && test "$GCC" = yes; then
10705 case $archive_cmds in
10706 *'~'*)
10707 # FIXME: we may have to deal with multi-command sequences.
10708 ;;
10709 '$CC '*)
10710 # Test whether the compiler implicitly links with -lc since on some
10711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10712 # to ld, don't add -lc before -lgcc.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10714$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10715if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 $RM conftest*
10719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10720
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10722 (eval $ac_compile) 2>&5
f35db108
WM
10723 ac_status=$?
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c915a581
JJ
10725 test $ac_status = 0; } 2>conftest.err; then
10726 soname=conftest
10727 lib=conftest
10728 libobjs=conftest.$ac_objext
10729 deplibs=
10730 wl=$lt_prog_compiler_wl
10731 pic_flag=$lt_prog_compiler_pic
10732 compiler_flags=-v
10733 linker_flags=-v
10734 verstring=
10735 output_objdir=.
10736 libname=conftest
10737 lt_save_allow_undefined_flag=$allow_undefined_flag
10738 allow_undefined_flag=
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10741 ac_status=$?
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; }
10744 then
10745 lt_cv_archive_cmds_need_lc=no
10746 else
10747 lt_cv_archive_cmds_need_lc=yes
10748 fi
10749 allow_undefined_flag=$lt_save_allow_undefined_flag
10750 else
10751 cat conftest.err 1>&5
10752 fi
10753 $RM conftest*
10754
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10757$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10759 ;;
f35db108 10760 esac
f35db108 10761 fi
c915a581
JJ
10762 ;;
10763esac
f35db108
WM
10764
10765
f35db108 10766
f35db108 10767
f35db108 10768
f35db108 10769
f35db108 10770
f35db108 10771
f35db108 10772
f35db108 10773
f35db108 10774
f35db108
WM
10775
10776
f35db108 10777
f35db108 10778
f35db108 10779
f35db108
WM
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
f35db108
WM
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
f35db108 10809
f35db108 10810
f35db108 10811
f35db108 10812
f35db108
WM
10813
10814
10815
10816
f35db108 10817
f35db108 10818
f35db108 10819
f35db108 10820
f35db108 10821
f35db108 10822
f35db108 10823
f35db108 10824
f35db108 10825
f35db108 10826
f35db108 10827
f35db108 10828
f35db108 10829
f35db108 10830
f35db108 10831
f35db108 10832
f35db108 10833
f35db108 10834
f35db108 10835
f35db108 10836
f35db108
WM
10837
10838
10839
10840
10841
10842
f35db108 10843
f35db108 10844
f35db108
WM
10845
10846
f35db108 10847
f35db108
WM
10848
10849
f35db108
WM
10850
10851
f35db108 10852
f35db108
WM
10853
10854
10855
f35db108 10856
f35db108 10857
f35db108
WM
10858
10859
10860
10861
10862
10863
10864
f35db108 10865
f35db108 10866
f35db108 10867
f35db108 10868
f35db108 10869
f35db108 10870
f35db108 10871
f35db108 10872
f35db108 10873
f35db108 10874
f35db108 10875
f35db108 10876
f35db108 10877
f35db108 10878
f35db108 10879
f35db108 10880
f35db108 10881
f35db108 10882
f35db108 10883
f35db108 10884
f35db108 10885
f35db108 10886
f35db108 10887
f35db108 10888
f35db108 10889
a2479b3d 10890
f35db108
WM
10891
10892
f35db108 10893
f35db108 10894
f35db108 10895
f35db108 10896
f35db108 10897
f35db108 10898
f35db108 10899
f35db108 10900
f35db108 10901
f35db108 10902
f35db108 10903
f35db108 10904
f35db108 10905
f35db108 10906
f35db108 10907
f35db108 10908
f35db108 10909
f35db108 10910
f35db108 10911
f35db108 10912
f35db108 10913
f35db108 10914
f35db108 10915
f35db108 10916
f35db108 10917
f35db108 10918
f35db108 10919
f35db108 10920
c915a581
JJ
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10922$as_echo_n "checking dynamic linker characteristics... " >&6; }
f35db108 10923
c915a581
JJ
10924if test "$GCC" = yes; then
10925 case $host_os in
10926 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10927 *) lt_awk_arg="/^libraries:/" ;;
10928 esac
10929 case $host_os in
10930 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10931 *) lt_sed_strip_eq="s,=/,/,g" ;;
10932 esac
10933 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10934 case $lt_search_path_spec in
10935 *\;*)
10936 # if the path contains ";" then we assume it to be the separator
10937 # otherwise default to the standard path separator (i.e. ":") - it is
10938 # assumed that no part of a normal pathname contains ";" but that should
10939 # okay in the real world where ";" in dirpaths is itself problematic.
10940 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10941 ;;
10942 *)
10943 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10944 ;;
10945 esac
10946 # Ok, now we have the path, separated by spaces, we can step through it
10947 # and add multilib dir if necessary.
10948 lt_tmp_lt_search_path_spec=
10949 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10950 for lt_sys_path in $lt_search_path_spec; do
10951 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10953 else
10954 test -d "$lt_sys_path" && \
10955 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10956 fi
10957 done
10958 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10959BEGIN {RS=" "; FS="/|\n";} {
10960 lt_foo="";
10961 lt_count=0;
10962 for (lt_i = NF; lt_i > 0; lt_i--) {
10963 if ($lt_i != "" && $lt_i != ".") {
10964 if ($lt_i == "..") {
10965 lt_count++;
10966 } else {
10967 if (lt_count == 0) {
10968 lt_foo="/" $lt_i lt_foo;
10969 } else {
10970 lt_count--;
10971 }
10972 }
10973 }
10974 }
10975 if (lt_foo != "") { lt_freq[lt_foo]++; }
10976 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10977}'`
10978 # AWK program above erroneously prepends '/' to C:/dos/paths
10979 # for these hosts.
10980 case $host_os in
10981 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10982 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983 esac
10984 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10985else
10986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10987fi
10988library_names_spec=
10989libname_spec='lib$name'
10990soname_spec=
10991shrext_cmds=".so"
10992postinstall_cmds=
10993postuninstall_cmds=
10994finish_cmds=
10995finish_eval=
10996shlibpath_var=
10997shlibpath_overrides_runpath=unknown
10998version_type=none
10999dynamic_linker="$host_os ld.so"
11000sys_lib_dlsearch_path_spec="/lib /usr/lib"
11001need_lib_prefix=unknown
11002hardcode_into_libs=no
f35db108 11003
c915a581
JJ
11004# when you set need_version to no, make sure it does not cause -set_version
11005# flags to be left without arguments
11006need_version=unknown
f35db108 11007
c915a581
JJ
11008case $host_os in
11009aix3*)
11010 version_type=linux
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11012 shlibpath_var=LIBPATH
f35db108 11013
c915a581
JJ
11014 # AIX 3 has no versioning support, so we append a major version to the name.
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 ;;
f35db108 11017
c915a581
JJ
11018aix[4-9]*)
11019 version_type=linux
11020 need_lib_prefix=no
11021 need_version=no
11022 hardcode_into_libs=yes
11023 if test "$host_cpu" = ia64; then
11024 # AIX 5 supports IA64
11025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 else
11028 # With GCC up to 2.95.x, collect2 would create an import file
11029 # for dependence libraries. The import file would start with
11030 # the line `#! .'. This would cause the generated library to
11031 # depend on `.', always an invalid library. This was fixed in
11032 # development snapshots of GCC prior to 3.0.
11033 case $host_os in
11034 aix4 | aix4.[01] | aix4.[01].*)
11035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11036 echo ' yes '
11037 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11038 :
11039 else
11040 can_build_shared=no
11041 fi
11042 ;;
11043 esac
11044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11045 # soname into executable. Probably we can add versioning support to
11046 # collect2, so additional links can be useful in future.
11047 if test "$aix_use_runtimelinking" = yes; then
11048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11049 # instead of lib<name>.a to let people know that these are not
11050 # typical AIX shared libraries.
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 else
11053 # We preserve .a as extension for shared libraries through AIX4.2
11054 # and later when we are not doing run time linking.
11055 library_names_spec='${libname}${release}.a $libname.a'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 fi
11058 shlibpath_var=LIBPATH
11059 fi
11060 ;;
f35db108 11061
c915a581
JJ
11062amigaos*)
11063 case $host_cpu in
11064 powerpc)
11065 # Since July 2007 AmigaOS4 officially supports .so libraries.
11066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 ;;
11069 m68k)
11070 library_names_spec='$libname.ixlibrary $libname.a'
11071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11072 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'
11073 ;;
11074 esac
11075 ;;
f35db108 11076
c915a581
JJ
11077beos*)
11078 library_names_spec='${libname}${shared_ext}'
11079 dynamic_linker="$host_os ld.so"
11080 shlibpath_var=LIBRARY_PATH
11081 ;;
f35db108 11082
c915a581
JJ
11083bsdi[45]*)
11084 version_type=linux
11085 need_version=no
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11092 # the default ld.so.conf also contains /usr/contrib/lib and
11093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11094 # libtool to hard-code these into programs
11095 ;;
f35db108 11096
c915a581
JJ
11097cygwin* | mingw* | pw32* | cegcc*)
11098 version_type=windows
11099 shrext_cmds=".dll"
11100 need_version=no
11101 need_lib_prefix=no
f35db108 11102
c915a581
JJ
11103 case $GCC,$host_os in
11104 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11105 library_names_spec='$libname.dll.a'
11106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107 postinstall_cmds='base_file=`basename \${file}`~
11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11109 dldir=$destdir/`dirname \$dlpath`~
11110 test -d \$dldir || mkdir -p \$dldir~
11111 $install_prog $dir/$dlname \$dldir/$dlname~
11112 chmod a+x \$dldir/$dlname~
11113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11115 fi'
11116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11117 dlpath=$dir/\$dldll~
11118 $RM \$dlpath'
11119 shlibpath_overrides_runpath=yes
f35db108 11120
c915a581
JJ
11121 case $host_os in
11122 cygwin*)
11123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 11125
c915a581
JJ
11126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11127 ;;
11128 mingw* | cegcc*)
11129 # MinGW DLLs use traditional 'lib' prefix
11130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11131 ;;
11132 pw32*)
11133 # pw32 DLLs use 'pw' prefix rather than 'lib'
11134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11135 ;;
11136 esac
11137 ;;
f35db108 11138
c915a581
JJ
11139 *)
11140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11141 ;;
11142 esac
11143 dynamic_linker='Win32 ld.exe'
11144 # FIXME: first we should search . and the directory the executable is in
11145 shlibpath_var=PATH
11146 ;;
f35db108 11147
c915a581
JJ
11148darwin* | rhapsody*)
11149 dynamic_linker="$host_os dyld"
11150 version_type=darwin
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11154 soname_spec='${libname}${release}${major}$shared_ext'
11155 shlibpath_overrides_runpath=yes
11156 shlibpath_var=DYLD_LIBRARY_PATH
11157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
f35db108 11158
c915a581
JJ
11159 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11161 ;;
f35db108 11162
c915a581
JJ
11163dgux*)
11164 version_type=linux
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 ;;
f35db108 11171
c915a581
JJ
11172freebsd* | dragonfly*)
11173 # DragonFly does not have aout. When/if they implement a new
11174 # versioning mechanism, adjust this.
11175 if test -x /usr/bin/objformat; then
11176 objformat=`/usr/bin/objformat`
11177 else
11178 case $host_os in
11179 freebsd[23].*) objformat=aout ;;
11180 *) objformat=elf ;;
11181 esac
11182 fi
11183 version_type=freebsd-$objformat
11184 case $version_type in
11185 freebsd-elf*)
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11187 need_version=no
11188 need_lib_prefix=no
f35db108 11189 ;;
c915a581
JJ
11190 freebsd-*)
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11192 need_version=yes
f35db108 11193 ;;
c915a581
JJ
11194 esac
11195 shlibpath_var=LD_LIBRARY_PATH
11196 case $host_os in
11197 freebsd2.*)
11198 shlibpath_overrides_runpath=yes
11199 ;;
11200 freebsd3.[01]* | freebsdelf3.[01]*)
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 ;;
11204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11208 ;;
11209 *) # from 4.6 on, and DragonFly
11210 shlibpath_overrides_runpath=yes
11211 hardcode_into_libs=yes
11212 ;;
11213 esac
11214 ;;
f35db108 11215
c915a581
JJ
11216gnu*)
11217 version_type=linux
11218 need_lib_prefix=no
11219 need_version=no
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 hardcode_into_libs=yes
11224 ;;
f35db108 11225
c915a581
JJ
11226haiku*)
11227 version_type=linux
11228 need_lib_prefix=no
11229 need_version=no
11230 dynamic_linker="$host_os runtime_loader"
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 shlibpath_var=LIBRARY_PATH
11234 shlibpath_overrides_runpath=yes
11235 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11236 hardcode_into_libs=yes
11237 ;;
f35db108 11238
c915a581
JJ
11239hpux9* | hpux10* | hpux11*)
11240 # Give a soname corresponding to the major version so that dld.sl refuses to
11241 # link against other versions.
11242 version_type=sunos
11243 need_lib_prefix=no
11244 need_version=no
11245 case $host_cpu in
11246 ia64*)
11247 shrext_cmds='.so'
11248 hardcode_into_libs=yes
11249 dynamic_linker="$host_os dld.so"
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 if test "X$HPUX_IA64_MODE" = X32; then
11255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11256 else
11257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11258 fi
11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11260 ;;
11261 hppa*64*)
11262 shrext_cmds='.sl'
11263 hardcode_into_libs=yes
11264 dynamic_linker="$host_os dld.sl"
11265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11271 ;;
11272 *)
11273 shrext_cmds='.sl'
11274 dynamic_linker="$host_os dld.sl"
11275 shlibpath_var=SHLIB_PATH
11276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 ;;
11280 esac
11281 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11282 postinstall_cmds='chmod 555 $lib'
11283 # or fails outright, so override atomically:
11284 install_override_mode=555
11285 ;;
f35db108 11286
c915a581
JJ
11287interix[3-9]*)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 ;;
f35db108 11298
c915a581
JJ
11299irix5* | irix6* | nonstopux*)
11300 case $host_os in
11301 nonstopux*) version_type=nonstopux ;;
11302 *)
11303 if test "$lt_cv_prog_gnu_ld" = yes; then
11304 version_type=linux
11305 else
11306 version_type=irix
11307 fi ;;
11308 esac
11309 need_lib_prefix=no
11310 need_version=no
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11313 case $host_os in
11314 irix5* | nonstopux*)
11315 libsuff= shlibsuff=
11316 ;;
11317 *)
11318 case $LD in # libtool.m4 will add one of these switches to LD
11319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11320 libsuff= shlibsuff= libmagic=32-bit;;
11321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11322 libsuff=32 shlibsuff=N32 libmagic=N32;;
11323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11325 *) libsuff= shlibsuff= libmagic=never-match;;
11326 esac
11327 ;;
11328 esac
11329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11330 shlibpath_overrides_runpath=no
11331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11333 hardcode_into_libs=yes
11334 ;;
f35db108 11335
c915a581
JJ
11336# No shared lib support for Linux oldld, aout, or coff.
11337linux*oldld* | linux*aout* | linux*coff*)
11338 dynamic_linker=no
11339 ;;
f35db108 11340
c915a581
JJ
11341# This must be Linux ELF.
11342linux* | k*bsd*-gnu | kopensolaris*-gnu)
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=no
f35db108 11351
c915a581
JJ
11352 # Some binutils ld are patched to set DT_RUNPATH
11353 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355else
11356 lt_cv_shlibpath_overrides_runpath=no
11357 save_LDFLAGS=$LDFLAGS
11358 save_libdir=$libdir
11359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
f35db108 11363
c915a581
JJ
11364int
11365main ()
11366{
f35db108 11367
c915a581
JJ
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11374 lt_cv_shlibpath_overrides_runpath=yes
11375fi
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LDFLAGS=$save_LDFLAGS
11380 libdir=$save_libdir
f35db108 11381
c915a581 11382fi
f35db108 11383
c915a581 11384 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 11385
c915a581
JJ
11386 # This implies no fast_install, which is unacceptable.
11387 # Some rework will be needed to allow for fast_install
11388 # before this can be enabled.
11389 hardcode_into_libs=yes
f35db108 11390
c915a581
JJ
11391 # Append ld.so.conf contents to the search path
11392 if test -f /etc/ld.so.conf; then
11393 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' ' '`
11394 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11395 fi
f35db108 11396
c915a581
JJ
11397 # We used to test for /lib/ld.so.1 and disable shared libraries on
11398 # powerpc, because MkLinux only supported shared libraries with the
11399 # GNU dynamic linker. Since this was broken with cross compilers,
11400 # most powerpc-linux boxes support dynamic linking these days and
11401 # people can always --disable-shared, the test was removed, and we
11402 # assume the GNU/Linux dynamic linker is in use.
11403 dynamic_linker='GNU/Linux ld.so'
11404 ;;
f35db108 11405
c915a581
JJ
11406netbsd*)
11407 version_type=sunos
11408 need_lib_prefix=no
11409 need_version=no
11410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11413 dynamic_linker='NetBSD (a.out) ld.so'
11414 else
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 dynamic_linker='NetBSD ld.elf_so'
11418 fi
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11421 hardcode_into_libs=yes
f35db108
WM
11422 ;;
11423
c915a581
JJ
11424newsos6)
11425 version_type=linux
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=yes
11429 ;;
f35db108 11430
c915a581
JJ
11431*nto* | *qnx*)
11432 version_type=qnx
11433 need_lib_prefix=no
11434 need_version=no
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 hardcode_into_libs=yes
11440 dynamic_linker='ldqnx.so'
11441 ;;
f35db108 11442
c915a581
JJ
11443openbsd*)
11444 version_type=sunos
11445 sys_lib_dlsearch_path_spec="/usr/lib"
11446 need_lib_prefix=no
11447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11448 case $host_os in
11449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11450 *) need_version=no ;;
f35db108 11451 esac
c915a581
JJ
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11456 case $host_os in
11457 openbsd2.[89] | openbsd2.[89].*)
11458 shlibpath_overrides_runpath=no
11459 ;;
11460 *)
11461 shlibpath_overrides_runpath=yes
11462 ;;
11463 esac
11464 else
11465 shlibpath_overrides_runpath=yes
11466 fi
11467 ;;
11468
11469os2*)
11470 libname_spec='$name'
11471 shrext_cmds=".dll"
11472 need_lib_prefix=no
11473 library_names_spec='$libname${shared_ext} $libname.a'
11474 dynamic_linker='OS/2 ld.exe'
11475 shlibpath_var=LIBPATH
11476 ;;
11477
11478osf3* | osf4* | osf5*)
11479 version_type=osf
11480 need_lib_prefix=no
11481 need_version=no
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11487 ;;
11488
11489rdos*)
11490 dynamic_linker=no
f35db108
WM
11491 ;;
11492
11493solaris*)
c915a581
JJ
11494 version_type=linux
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11502 # ldd complains unless libraries are executable
11503 postinstall_cmds='chmod +x $lib'
11504 ;;
11505
11506sunos4*)
11507 version_type=sunos
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 if test "$with_gnu_ld" = yes; then
11513 need_lib_prefix=no
11514 fi
11515 need_version=yes
11516 ;;
11517
11518sysv4 | sysv4.3*)
11519 version_type=linux
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 case $host_vendor in
11524 sni)
11525 shlibpath_overrides_runpath=no
11526 need_lib_prefix=no
11527 runpath_var=LD_RUN_PATH
11528 ;;
11529 siemens)
11530 need_lib_prefix=no
11531 ;;
11532 motorola)
11533 need_lib_prefix=no
11534 need_version=no
11535 shlibpath_overrides_runpath=no
11536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
f35db108 11537 ;;
c915a581
JJ
11538 esac
11539 ;;
11540
11541sysv4*MP*)
11542 if test -d /usr/nec ;then
11543 version_type=linux
11544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11545 soname_spec='$libname${shared_ext}.$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 fi
11548 ;;
11549
11550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11551 version_type=freebsd-elf
11552 need_lib_prefix=no
11553 need_version=no
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558 hardcode_into_libs=yes
11559 if test "$with_gnu_ld" = yes; then
11560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11561 else
11562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11563 case $host_os in
11564 sco3.2v5*)
11565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11566 ;;
f35db108 11567 esac
c915a581
JJ
11568 fi
11569 sys_lib_dlsearch_path_spec='/usr/lib'
11570 ;;
f35db108 11571
c915a581
JJ
11572tpf*)
11573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11574 version_type=linux
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
f35db108 11581 ;;
f35db108 11582
c915a581
JJ
11583uts4*)
11584 version_type=linux
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 ;;
f35db108 11589
c915a581
JJ
11590*)
11591 dynamic_linker=no
11592 ;;
f35db108 11593esac
c915a581
JJ
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11595$as_echo "$dynamic_linker" >&6; }
11596test "$dynamic_linker" = no && can_build_shared=no
11597
11598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11599if test "$GCC" = yes; then
11600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108
WM
11601fi
11602
c915a581
JJ
11603if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11604 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11605fi
11606if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11607 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11608fi
f35db108
WM
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
f35db108
WM
11639
11640
c915a581
JJ
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11702$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11703hardcode_action=
11704if test -n "$hardcode_libdir_flag_spec" ||
11705 test -n "$runpath_var" ||
11706 test "X$hardcode_automatic" = "Xyes" ; then
11707
11708 # We can hardcode non-existent directories.
11709 if test "$hardcode_direct" != no &&
11710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11711 # have to relink, otherwise we might link with an installed library
11712 # when we should be linking with a yet-to-be-installed one
11713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11714 test "$hardcode_minus_L" != no; then
11715 # Linking always hardcodes the temporary library directory.
11716 hardcode_action=relink
11717 else
11718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11719 hardcode_action=immediate
11720 fi
11721else
11722 # We cannot hardcode anything, or else we can only hardcode existing
11723 # directories.
11724 hardcode_action=unsupported
11725fi
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11727$as_echo "$hardcode_action" >&6; }
11728
11729if test "$hardcode_action" = relink ||
11730 test "$inherit_rpath" = yes; then
11731 # Fast installation is not supported
11732 enable_fast_install=no
11733elif test "$shlibpath_overrides_runpath" = yes ||
11734 test "$enable_shared" = no; then
11735 # Fast installation is not necessary
11736 enable_fast_install=needless
11737fi
11738
11739
11740
11741
11742
11743
11744 if test "x$enable_dlopen" != xyes; then
11745 enable_dlopen=unknown
11746 enable_dlopen_self=unknown
11747 enable_dlopen_self_static=unknown
11748else
11749 lt_cv_dlopen=no
11750 lt_cv_dlopen_libs=
11751
11752 case $host_os in
11753 beos*)
11754 lt_cv_dlopen="load_add_on"
11755 lt_cv_dlopen_libs=
11756 lt_cv_dlopen_self=yes
11757 ;;
11758
11759 mingw* | pw32* | cegcc*)
11760 lt_cv_dlopen="LoadLibrary"
11761 lt_cv_dlopen_libs=
11762 ;;
11763
11764 cygwin*)
11765 lt_cv_dlopen="dlopen"
11766 lt_cv_dlopen_libs=
11767 ;;
11768
11769 darwin*)
11770 # if libdl is installed we need to link against it
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11772$as_echo_n "checking for dlopen in -ldl... " >&6; }
11773if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11775else
11776 ac_check_lib_save_LIBS=$LIBS
11777LIBS="-ldl $LIBS"
11778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779/* end confdefs.h. */
11780
11781/* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787char dlopen ();
11788int
11789main ()
11790{
11791return dlopen ();
11792 ;
11793 return 0;
11794}
11795_ACEOF
11796if ac_fn_c_try_link "$LINENO"; then :
11797 ac_cv_lib_dl_dlopen=yes
11798else
11799 ac_cv_lib_dl_dlopen=no
11800fi
11801rm -f core conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803LIBS=$ac_check_lib_save_LIBS
11804fi
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11807if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11809else
11810
11811 lt_cv_dlopen="dyld"
11812 lt_cv_dlopen_libs=
11813 lt_cv_dlopen_self=yes
11814
11815fi
11816
11817 ;;
11818
11819 *)
11820 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11821if test "x$ac_cv_func_shl_load" = x""yes; then :
11822 lt_cv_dlopen="shl_load"
11823else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11825$as_echo_n "checking for shl_load in -ldld... " >&6; }
11826if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828else
11829 ac_check_lib_save_LIBS=$LIBS
11830LIBS="-ldld $LIBS"
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h. */
11833
11834/* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837#ifdef __cplusplus
11838extern "C"
11839#endif
11840char shl_load ();
11841int
11842main ()
11843{
11844return shl_load ();
11845 ;
11846 return 0;
11847}
11848_ACEOF
11849if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_dld_shl_load=yes
11851else
11852 ac_cv_lib_dld_shl_load=no
11853fi
11854rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856LIBS=$ac_check_lib_save_LIBS
11857fi
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11859$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11860if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11862else
11863 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11864if test "x$ac_cv_func_dlopen" = x""yes; then :
11865 lt_cv_dlopen="dlopen"
11866else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11868$as_echo_n "checking for dlopen in -ldl... " >&6; }
11869if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871else
11872 ac_check_lib_save_LIBS=$LIBS
11873LIBS="-ldl $LIBS"
11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h. */
11876
11877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char dlopen ();
11884int
11885main ()
11886{
11887return dlopen ();
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dl_dlopen=yes
11894else
11895 ac_cv_lib_dl_dlopen=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899LIBS=$ac_check_lib_save_LIBS
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11903if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11905else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11908if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11910else
11911 ac_check_lib_save_LIBS=$LIBS
11912LIBS="-lsvld $LIBS"
11913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h. */
11915
11916/* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919#ifdef __cplusplus
11920extern "C"
11921#endif
11922char dlopen ();
11923int
11924main ()
11925{
11926return dlopen ();
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_lib_svld_dlopen=yes
11933else
11934 ac_cv_lib_svld_dlopen=no
11935fi
11936rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938LIBS=$ac_check_lib_save_LIBS
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11941$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11942if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11944else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11946$as_echo_n "checking for dld_link in -ldld... " >&6; }
11947if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949else
11950 ac_check_lib_save_LIBS=$LIBS
11951LIBS="-ldld $LIBS"
11952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h. */
11954
11955/* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char dld_link ();
11962int
11963main ()
11964{
11965return dld_link ();
11966 ;
11967 return 0;
11968}
11969_ACEOF
11970if ac_fn_c_try_link "$LINENO"; then :
11971 ac_cv_lib_dld_dld_link=yes
11972else
11973 ac_cv_lib_dld_dld_link=no
11974fi
11975rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977LIBS=$ac_check_lib_save_LIBS
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11980$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11981if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11983fi
11984
11985
11986fi
11987
11988
11989fi
11990
11991
11992fi
11993
11994
11995fi
11996
11997
11998fi
11999
12000 ;;
12001 esac
12002
12003 if test "x$lt_cv_dlopen" != xno; then
12004 enable_dlopen=yes
12005 else
12006 enable_dlopen=no
12007 fi
12008
12009 case $lt_cv_dlopen in
12010 dlopen)
12011 save_CPPFLAGS="$CPPFLAGS"
12012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12013
12014 save_LDFLAGS="$LDFLAGS"
12015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12016
12017 save_LIBS="$LIBS"
12018 LIBS="$lt_cv_dlopen_libs $LIBS"
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12021$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12022if test "${lt_cv_dlopen_self+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024else
12025 if test "$cross_compiling" = yes; then :
12026 lt_cv_dlopen_self=cross
12027else
12028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12029 lt_status=$lt_dlunknown
12030 cat > conftest.$ac_ext <<_LT_EOF
10189819 12031#line 12031 "configure"
c915a581
JJ
12032#include "confdefs.h"
12033
12034#if HAVE_DLFCN_H
12035#include <dlfcn.h>
12036#endif
12037
12038#include <stdio.h>
12039
12040#ifdef RTLD_GLOBAL
12041# define LT_DLGLOBAL RTLD_GLOBAL
12042#else
12043# ifdef DL_GLOBAL
12044# define LT_DLGLOBAL DL_GLOBAL
12045# else
12046# define LT_DLGLOBAL 0
12047# endif
12048#endif
12049
12050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12051 find out it does not work in some platform. */
12052#ifndef LT_DLLAZY_OR_NOW
12053# ifdef RTLD_LAZY
12054# define LT_DLLAZY_OR_NOW RTLD_LAZY
12055# else
12056# ifdef DL_LAZY
12057# define LT_DLLAZY_OR_NOW DL_LAZY
12058# else
12059# ifdef RTLD_NOW
12060# define LT_DLLAZY_OR_NOW RTLD_NOW
12061# else
12062# ifdef DL_NOW
12063# define LT_DLLAZY_OR_NOW DL_NOW
12064# else
12065# define LT_DLLAZY_OR_NOW 0
12066# endif
12067# endif
12068# endif
12069# endif
12070#endif
12071
12072/* When -fvisbility=hidden is used, assume the code has been annotated
12073 correspondingly for the symbols needed. */
12074#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12075void fnord () __attribute__((visibility("default")));
12076#endif
12077
12078void fnord () { int i=42; }
12079int main ()
12080{
12081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082 int status = $lt_dlunknown;
12083
12084 if (self)
12085 {
12086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12087 else
12088 {
12089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12090 else puts (dlerror ());
12091 }
12092 /* dlclose (self); */
12093 }
12094 else
12095 puts (dlerror ());
12096
12097 return status;
12098}
12099_LT_EOF
12100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12101 (eval $ac_link) 2>&5
12102 ac_status=$?
12103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12105 (./conftest; exit; ) >&5 2>/dev/null
12106 lt_status=$?
12107 case x$lt_status in
12108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12110 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12111 esac
12112 else :
12113 # compilation failed
12114 lt_cv_dlopen_self=no
12115 fi
12116fi
12117rm -fr conftest*
12118
12119
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12122$as_echo "$lt_cv_dlopen_self" >&6; }
12123
12124 if test "x$lt_cv_dlopen_self" = xyes; then
12125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12127$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12128if test "${lt_cv_dlopen_self_static+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130else
12131 if test "$cross_compiling" = yes; then :
12132 lt_cv_dlopen_self_static=cross
12133else
12134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135 lt_status=$lt_dlunknown
12136 cat > conftest.$ac_ext <<_LT_EOF
10189819 12137#line 12137 "configure"
c915a581
JJ
12138#include "confdefs.h"
12139
12140#if HAVE_DLFCN_H
12141#include <dlfcn.h>
12142#endif
12143
12144#include <stdio.h>
12145
12146#ifdef RTLD_GLOBAL
12147# define LT_DLGLOBAL RTLD_GLOBAL
12148#else
12149# ifdef DL_GLOBAL
12150# define LT_DLGLOBAL DL_GLOBAL
12151# else
12152# define LT_DLGLOBAL 0
12153# endif
12154#endif
12155
12156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157 find out it does not work in some platform. */
12158#ifndef LT_DLLAZY_OR_NOW
12159# ifdef RTLD_LAZY
12160# define LT_DLLAZY_OR_NOW RTLD_LAZY
12161# else
12162# ifdef DL_LAZY
12163# define LT_DLLAZY_OR_NOW DL_LAZY
12164# else
12165# ifdef RTLD_NOW
12166# define LT_DLLAZY_OR_NOW RTLD_NOW
12167# else
12168# ifdef DL_NOW
12169# define LT_DLLAZY_OR_NOW DL_NOW
12170# else
12171# define LT_DLLAZY_OR_NOW 0
12172# endif
12173# endif
12174# endif
12175# endif
12176#endif
12177
12178/* When -fvisbility=hidden is used, assume the code has been annotated
12179 correspondingly for the symbols needed. */
12180#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12181void fnord () __attribute__((visibility("default")));
12182#endif
12183
12184void fnord () { int i=42; }
12185int main ()
12186{
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12189
12190 if (self)
12191 {
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else
12194 {
12195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12196 else puts (dlerror ());
12197 }
12198 /* dlclose (self); */
12199 }
12200 else
12201 puts (dlerror ());
12202
12203 return status;
12204}
12205_LT_EOF
12206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207 (eval $ac_link) 2>&5
12208 ac_status=$?
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12211 (./conftest; exit; ) >&5 2>/dev/null
12212 lt_status=$?
12213 case x$lt_status in
12214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12217 esac
12218 else :
12219 # compilation failed
12220 lt_cv_dlopen_self_static=no
12221 fi
12222fi
12223rm -fr conftest*
12224
12225
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12228$as_echo "$lt_cv_dlopen_self_static" >&6; }
12229 fi
12230
12231 CPPFLAGS="$save_CPPFLAGS"
12232 LDFLAGS="$save_LDFLAGS"
12233 LIBS="$save_LIBS"
12234 ;;
12235 esac
12236
12237 case $lt_cv_dlopen_self in
12238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12239 *) enable_dlopen_self=unknown ;;
12240 esac
12241
12242 case $lt_cv_dlopen_self_static in
12243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12244 *) enable_dlopen_self_static=unknown ;;
12245 esac
12246fi
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264striplib=
12265old_striplib=
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12267$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12268if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272$as_echo "yes" >&6; }
12273else
12274# FIXME - insert some real tests, host_os isn't really good enough
12275 case $host_os in
12276 darwin*)
12277 if test -n "$STRIP" ; then
12278 striplib="$STRIP -x"
12279 old_striplib="$STRIP -S"
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281$as_echo "yes" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
12285 fi
12286 ;;
12287 *)
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290 ;;
12291 esac
12292fi
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305 # Report which library types will actually be built
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12307$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12309$as_echo "$can_build_shared" >&6; }
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12312$as_echo_n "checking whether to build shared libraries... " >&6; }
12313 test "$can_build_shared" = "no" && enable_shared=no
12314
12315 # On AIX, shared libraries and static libraries use the same namespace, and
12316 # are all built from PIC.
12317 case $host_os in
12318 aix3*)
12319 test "$enable_shared" = yes && enable_static=no
12320 if test -n "$RANLIB"; then
12321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12322 postinstall_cmds='$RANLIB $lib'
12323 fi
12324 ;;
12325
12326 aix[4-9]*)
12327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12328 test "$enable_shared" = yes && enable_static=no
12329 fi
12330 ;;
12331 esac
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12333$as_echo "$enable_shared" >&6; }
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12336$as_echo_n "checking whether to build static libraries... " >&6; }
12337 # Make sure either enable_shared or enable_static is yes.
12338 test "$enable_shared" = yes || enable_static=yes
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12340$as_echo "$enable_static" >&6; }
12341
12342
12343
12344
12345fi
12346ac_ext=c
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352CC="$lt_save_CC"
12353
12354 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12356 (test "X$CXX" != "Xg++"))) ; then
12357 ac_ext=cpp
12358ac_cpp='$CXXCPP $CPPFLAGS'
12359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12363$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12364if test -z "$CXXCPP"; then
12365 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 # Double quotes because CXXCPP needs to be expanded
12369 for CXXCPP in "$CXX -E" "/lib/cpp"
12370 do
12371 ac_preproc_ok=false
12372for ac_cxx_preproc_warn_flag in '' yes
12373do
12374 # Use a header file that comes with gcc, so configuring glibc
12375 # with a fresh cross-compiler works.
12376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377 # <limits.h> exists even on freestanding compilers.
12378 # On the NeXT, cc -E runs the code through the compiler's parser,
12379 # not just through cpp. "Syntax error" is here to catch this case.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h. */
12382#ifdef __STDC__
12383# include <limits.h>
12384#else
12385# include <assert.h>
12386#endif
12387 Syntax error
12388_ACEOF
12389if ac_fn_cxx_try_cpp "$LINENO"; then :
12390
12391else
12392 # Broken: fails on valid input.
12393continue
12394fi
12395rm -f conftest.err conftest.$ac_ext
12396
12397 # OK, works on sane cases. Now check whether nonexistent headers
12398 # can be detected and how.
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h. */
12401#include <ac_nonexistent.h>
12402_ACEOF
12403if ac_fn_cxx_try_cpp "$LINENO"; then :
12404 # Broken: success on invalid input.
12405continue
12406else
12407 # Passes both tests.
12408ac_preproc_ok=:
12409break
12410fi
12411rm -f conftest.err conftest.$ac_ext
12412
12413done
12414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12415rm -f conftest.err conftest.$ac_ext
12416if $ac_preproc_ok; then :
12417 break
12418fi
12419
12420 done
12421 ac_cv_prog_CXXCPP=$CXXCPP
12422
12423fi
12424 CXXCPP=$ac_cv_prog_CXXCPP
12425else
12426 ac_cv_prog_CXXCPP=$CXXCPP
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12429$as_echo "$CXXCPP" >&6; }
12430ac_preproc_ok=false
12431for ac_cxx_preproc_warn_flag in '' yes
12432do
12433 # Use a header file that comes with gcc, so configuring glibc
12434 # with a fresh cross-compiler works.
12435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12436 # <limits.h> exists even on freestanding compilers.
12437 # On the NeXT, cc -E runs the code through the compiler's parser,
12438 # not just through cpp. "Syntax error" is here to catch this case.
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h. */
12441#ifdef __STDC__
12442# include <limits.h>
12443#else
12444# include <assert.h>
12445#endif
12446 Syntax error
12447_ACEOF
12448if ac_fn_cxx_try_cpp "$LINENO"; then :
12449
12450else
12451 # Broken: fails on valid input.
12452continue
12453fi
12454rm -f conftest.err conftest.$ac_ext
12455
12456 # OK, works on sane cases. Now check whether nonexistent headers
12457 # can be detected and how.
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h. */
12460#include <ac_nonexistent.h>
12461_ACEOF
12462if ac_fn_cxx_try_cpp "$LINENO"; then :
12463 # Broken: success on invalid input.
12464continue
12465else
12466 # Passes both tests.
12467ac_preproc_ok=:
12468break
12469fi
12470rm -f conftest.err conftest.$ac_ext
12471
12472done
12473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12474rm -f conftest.err conftest.$ac_ext
12475if $ac_preproc_ok; then :
12476
12477else
12478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12480as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12481See \`config.log' for more details." "$LINENO" 5; }
12482fi
12483
12484ac_ext=c
12485ac_cpp='$CPP $CPPFLAGS'
12486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12488ac_compiler_gnu=$ac_cv_c_compiler_gnu
12489
12490else
12491 _lt_caught_CXX_error=yes
12492fi
12493
12494ac_ext=cpp
12495ac_cpp='$CXXCPP $CPPFLAGS'
12496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12499
12500archive_cmds_need_lc_CXX=no
12501allow_undefined_flag_CXX=
12502always_export_symbols_CXX=no
12503archive_expsym_cmds_CXX=
12504compiler_needs_object_CXX=no
12505export_dynamic_flag_spec_CXX=
12506hardcode_direct_CXX=no
12507hardcode_direct_absolute_CXX=no
12508hardcode_libdir_flag_spec_CXX=
12509hardcode_libdir_flag_spec_ld_CXX=
12510hardcode_libdir_separator_CXX=
12511hardcode_minus_L_CXX=no
12512hardcode_shlibpath_var_CXX=unsupported
12513hardcode_automatic_CXX=no
12514inherit_rpath_CXX=no
12515module_cmds_CXX=
12516module_expsym_cmds_CXX=
12517link_all_deplibs_CXX=unknown
12518old_archive_cmds_CXX=$old_archive_cmds
12519reload_flag_CXX=$reload_flag
12520reload_cmds_CXX=$reload_cmds
12521no_undefined_flag_CXX=
12522whole_archive_flag_spec_CXX=
12523enable_shared_with_static_runtimes_CXX=no
12524
12525# Source file extension for C++ test sources.
12526ac_ext=cpp
12527
12528# Object file extension for compiled C++ test sources.
12529objext=o
12530objext_CXX=$objext
12531
12532# No sense in running all these tests if we already determined that
12533# the CXX compiler isn't working. Some variables (like enable_shared)
12534# are currently assumed to apply to all compilers on this platform,
12535# and will be corrupted by setting them based on a non-working compiler.
12536if test "$_lt_caught_CXX_error" != yes; then
12537 # Code to be used in simple compile tests
12538 lt_simple_compile_test_code="int some_variable = 0;"
12539
12540 # Code to be used in simple link tests
12541 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12542
12543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12544
12545
12546
12547
12548
12549
12550# If no C compiler was specified, use CC.
12551LTCC=${LTCC-"$CC"}
12552
12553# If no C compiler flags were specified, use CFLAGS.
12554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12555
12556# Allow CC to be a program name with arguments.
12557compiler=$CC
12558
12559
12560 # save warnings/boilerplate of simple test code
12561 ac_outfile=conftest.$ac_objext
12562echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12564_lt_compiler_boilerplate=`cat conftest.err`
12565$RM conftest*
12566
12567 ac_outfile=conftest.$ac_objext
12568echo "$lt_simple_link_test_code" >conftest.$ac_ext
12569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12570_lt_linker_boilerplate=`cat conftest.err`
12571$RM -r conftest*
12572
12573
12574 # Allow CC to be a program name with arguments.
12575 lt_save_CC=$CC
12576 lt_save_LD=$LD
12577 lt_save_GCC=$GCC
12578 GCC=$GXX
12579 lt_save_with_gnu_ld=$with_gnu_ld
12580 lt_save_path_LD=$lt_cv_path_LD
12581 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12582 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12583 else
12584 $as_unset lt_cv_prog_gnu_ld
12585 fi
12586 if test -n "${lt_cv_path_LDCXX+set}"; then
12587 lt_cv_path_LD=$lt_cv_path_LDCXX
12588 else
12589 $as_unset lt_cv_path_LD
12590 fi
12591 test -z "${LDCXX+set}" || LD=$LDCXX
12592 CC=${CXX-"c++"}
12593 compiler=$CC
12594 compiler_CXX=$CC
12595 for cc_temp in $compiler""; do
12596 case $cc_temp in
12597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12599 \-*) ;;
12600 *) break;;
12601 esac
12602done
12603cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12604
12605
12606 if test -n "$compiler"; then
12607 # We don't want -fno-exception when compiling C++ code, so set the
12608 # no_builtin_flag separately
12609 if test "$GXX" = yes; then
12610 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12611 else
12612 lt_prog_compiler_no_builtin_flag_CXX=
12613 fi
12614
12615 if test "$GXX" = yes; then
12616 # Set up default GNU C++ configuration
12617
12618
12619
12620# Check whether --with-gnu-ld was given.
12621if test "${with_gnu_ld+set}" = set; then :
12622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12623else
12624 with_gnu_ld=no
12625fi
12626
12627ac_prog=ld
12628if test "$GCC" = yes; then
12629 # Check if gcc -print-prog-name=ld gives a path.
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12631$as_echo_n "checking for ld used by $CC... " >&6; }
12632 case $host in
12633 *-*-mingw*)
12634 # gcc leaves a trailing carriage return which upsets mingw
12635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12636 *)
12637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12638 esac
12639 case $ac_prog in
12640 # Accept absolute paths.
12641 [\\/]* | ?:[\\/]*)
12642 re_direlt='/[^/][^/]*/\.\./'
12643 # Canonicalize the pathname of ld
12644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12647 done
12648 test -z "$LD" && LD="$ac_prog"
12649 ;;
12650 "")
12651 # If it fails, then pretend we aren't using GCC.
12652 ac_prog=ld
12653 ;;
12654 *)
12655 # If it is relative, then search for the first ld in PATH.
12656 with_gnu_ld=unknown
12657 ;;
12658 esac
12659elif test "$with_gnu_ld" = yes; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12661$as_echo_n "checking for GNU ld... " >&6; }
12662else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12664$as_echo_n "checking for non-GNU ld... " >&6; }
12665fi
12666if test "${lt_cv_path_LD+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668else
12669 if test -z "$LD"; then
12670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12671 for ac_dir in $PATH; do
12672 IFS="$lt_save_ifs"
12673 test -z "$ac_dir" && ac_dir=.
12674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12675 lt_cv_path_LD="$ac_dir/$ac_prog"
12676 # Check to see if the program is GNU ld. I'd rather use --version,
12677 # but apparently some variants of GNU ld only accept -v.
12678 # Break only if it was the GNU/non-GNU ld that we prefer.
12679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12680 *GNU* | *'with BFD'*)
12681 test "$with_gnu_ld" != no && break
12682 ;;
12683 *)
12684 test "$with_gnu_ld" != yes && break
12685 ;;
12686 esac
12687 fi
12688 done
12689 IFS="$lt_save_ifs"
12690else
12691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12692fi
12693fi
12694
12695LD="$lt_cv_path_LD"
12696if test -n "$LD"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12698$as_echo "$LD" >&6; }
12699else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; }
12702fi
12703test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12706if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708else
12709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12710case `$LD -v 2>&1 </dev/null` in
12711*GNU* | *'with BFD'*)
12712 lt_cv_prog_gnu_ld=yes
12713 ;;
12714*)
12715 lt_cv_prog_gnu_ld=no
12716 ;;
12717esac
12718fi
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12720$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12721with_gnu_ld=$lt_cv_prog_gnu_ld
12722
12723
12724
12725
12726
12727
12728
12729 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12730 # archiving commands below assume that GNU ld is being used.
12731 if test "$with_gnu_ld" = yes; then
a699d672
L
12732 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
c915a581
JJ
12734
12735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12737
12738 # If archive_cmds runs LD, not CC, wlarc should be empty
12739 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12740 # investigate it a little bit more. (MM)
12741 wlarc='${wl}'
12742
12743 # ancient GNU ld didn't support --whole-archive et. al.
12744 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12745 $GREP 'no-whole-archive' > /dev/null; then
12746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12747 else
12748 whole_archive_flag_spec_CXX=
12749 fi
12750 else
12751 with_gnu_ld=no
12752 wlarc=
12753
12754 # A generic and very simple default shared library creation
12755 # command for GNU C++ for the case where it uses the native
12756 # linker, instead of GNU ld. If possible, this setting should
12757 # overridden to take advantage of the native linker features on
12758 # the platform it is being used on.
12759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12760 fi
12761
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12766
12767 else
12768 GXX=no
12769 with_gnu_ld=no
12770 wlarc=
12771 fi
12772
12773 # PORTME: fill in a description of your system's C++ link characteristics
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12776 ld_shlibs_CXX=yes
12777 case $host_os in
12778 aix3*)
12779 # FIXME: insert proper C++ library support
12780 ld_shlibs_CXX=no
12781 ;;
12782 aix[4-9]*)
12783 if test "$host_cpu" = ia64; then
12784 # On IA64, the linker does run time linking by default, so we don't
12785 # have to do anything special.
12786 aix_use_runtimelinking=no
12787 exp_sym_flag='-Bexport'
12788 no_entry_flag=""
12789 else
12790 aix_use_runtimelinking=no
12791
12792 # Test if we are trying to use run time linking or normal
12793 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12794 # need to do runtime linking.
12795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12796 for ld_flag in $LDFLAGS; do
12797 case $ld_flag in
12798 *-brtl*)
12799 aix_use_runtimelinking=yes
12800 break
12801 ;;
12802 esac
12803 done
12804 ;;
12805 esac
12806
12807 exp_sym_flag='-bexport'
12808 no_entry_flag='-bnoentry'
12809 fi
12810
12811 # When large executables or shared objects are built, AIX ld can
12812 # have problems creating the table of contents. If linking a library
12813 # or program results in "error TOC overflow" add -mminimal-toc to
12814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12816
12817 archive_cmds_CXX=''
12818 hardcode_direct_CXX=yes
12819 hardcode_direct_absolute_CXX=yes
12820 hardcode_libdir_separator_CXX=':'
12821 link_all_deplibs_CXX=yes
12822 file_list_spec_CXX='${wl}-f,'
12823
12824 if test "$GXX" = yes; then
12825 case $host_os in aix4.[012]|aix4.[012].*)
12826 # We only want to do this on AIX 4.2 and lower, the check
12827 # below for broken collect2 doesn't work under 4.3+
12828 collect2name=`${CC} -print-prog-name=collect2`
12829 if test -f "$collect2name" &&
12830 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12831 then
12832 # We have reworked collect2
12833 :
12834 else
12835 # We have old collect2
12836 hardcode_direct_CXX=unsupported
12837 # It fails to find uninstalled libraries when the uninstalled
12838 # path is not listed in the libpath. Setting hardcode_minus_L
12839 # to unsupported forces relinking
12840 hardcode_minus_L_CXX=yes
12841 hardcode_libdir_flag_spec_CXX='-L$libdir'
12842 hardcode_libdir_separator_CXX=
12843 fi
12844 esac
12845 shared_flag='-shared'
12846 if test "$aix_use_runtimelinking" = yes; then
12847 shared_flag="$shared_flag "'${wl}-G'
12848 fi
12849 else
12850 # not using gcc
12851 if test "$host_cpu" = ia64; then
12852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12853 # chokes on -Wl,-G. The following line is correct:
12854 shared_flag='-G'
12855 else
12856 if test "$aix_use_runtimelinking" = yes; then
12857 shared_flag='${wl}-G'
12858 else
12859 shared_flag='${wl}-bM:SRE'
12860 fi
12861 fi
12862 fi
12863
12864 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12865 # It seems that -bexpall does not export symbols beginning with
12866 # underscore (_), so it is better to generate a list of symbols to
12867 # export.
12868 always_export_symbols_CXX=yes
12869 if test "$aix_use_runtimelinking" = yes; then
12870 # Warning - without using the other runtime loading flags (-brtl),
12871 # -berok will link without error, but may produce a broken library.
12872 allow_undefined_flag_CXX='-berok'
12873 # Determine the default libpath from the value encoded in an empty
12874 # executable.
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h. */
12877
12878int
12879main ()
12880{
12881
12882 ;
12883 return 0;
12884}
12885_ACEOF
12886if ac_fn_cxx_try_link "$LINENO"; then :
12887
12888lt_aix_libpath_sed='
12889 /Import File Strings/,/^$/ {
12890 /^0/ {
12891 s/^0 *\(.*\)$/\1/
12892 p
12893 }
12894 }'
12895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896# Check for a 64-bit object if we didn't find anything.
12897if test -z "$aix_libpath"; then
12898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12899fi
12900fi
12901rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12904
12905 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12906
12907 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"
12908 else
12909 if test "$host_cpu" = ia64; then
12910 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12911 allow_undefined_flag_CXX="-z nodefs"
12912 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"
12913 else
12914 # Determine the default libpath from the value encoded in an
12915 # empty executable.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918
12919int
12920main ()
12921{
12922
12923 ;
12924 return 0;
12925}
12926_ACEOF
12927if ac_fn_cxx_try_link "$LINENO"; then :
12928
12929lt_aix_libpath_sed='
12930 /Import File Strings/,/^$/ {
12931 /^0/ {
12932 s/^0 *\(.*\)$/\1/
12933 p
12934 }
12935 }'
12936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937# Check for a 64-bit object if we didn't find anything.
12938if test -z "$aix_libpath"; then
12939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940fi
12941fi
12942rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12945
12946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12947 # Warning - without using the other run time loading flags,
12948 # -berok will link without error, but may produce a broken library.
12949 no_undefined_flag_CXX=' ${wl}-bernotok'
12950 allow_undefined_flag_CXX=' ${wl}-berok'
12951 if test "$with_gnu_ld" = yes; then
12952 # We only use this code for GNU lds that support --whole-archive.
12953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954 else
12955 # Exported symbols can be pulled into shared objects from archives
12956 whole_archive_flag_spec_CXX='$convenience'
12957 fi
12958 archive_cmds_need_lc_CXX=yes
12959 # This is similar to how AIX traditionally builds its shared
12960 # libraries.
12961 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'
12962 fi
12963 fi
12964 ;;
12965
12966 beos*)
12967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 allow_undefined_flag_CXX=unsupported
12969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12970 # support --undefined. This deserves some investigation. FIXME
12971 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972 else
12973 ld_shlibs_CXX=no
12974 fi
12975 ;;
12976
12977 chorus*)
12978 case $cc_basename in
12979 *)
12980 # FIXME: insert proper C++ library support
12981 ld_shlibs_CXX=no
12982 ;;
12983 esac
12984 ;;
12985
12986 cygwin* | mingw* | pw32* | cegcc*)
12987 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12988 # as there is no search path for DLLs.
12989 hardcode_libdir_flag_spec_CXX='-L$libdir'
12990 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12991 allow_undefined_flag_CXX=unsupported
12992 always_export_symbols_CXX=no
12993 enable_shared_with_static_runtimes_CXX=yes
12994
12995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12996 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'
12997 # If the export-symbols file already is a .def file (1st line
12998 # is EXPORTS), use it as is; otherwise, prepend...
12999 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13000 cp $export_symbols $output_objdir/$soname.def;
13001 else
13002 echo EXPORTS > $output_objdir/$soname.def;
13003 cat $export_symbols >> $output_objdir/$soname.def;
13004 fi~
13005 $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'
13006 else
13007 ld_shlibs_CXX=no
13008 fi
13009 ;;
13010 darwin* | rhapsody*)
13011
13012
13013 archive_cmds_need_lc_CXX=no
13014 hardcode_direct_CXX=no
13015 hardcode_automatic_CXX=yes
13016 hardcode_shlibpath_var_CXX=unsupported
13017 if test "$lt_cv_ld_force_load" = "yes"; then
13018 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\"`'
13019 else
13020 whole_archive_flag_spec_CXX=''
13021 fi
13022 link_all_deplibs_CXX=yes
13023 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13024 case $cc_basename in
13025 ifort*) _lt_dar_can_shared=yes ;;
13026 *) _lt_dar_can_shared=$GCC ;;
13027 esac
13028 if test "$_lt_dar_can_shared" = "yes"; then
13029 output_verbose_link_cmd=func_echo_all
13030 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}"
13031 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13032 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}"
13033 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}"
13034 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13035 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}"
13036 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}"
13037 fi
13038
13039 else
13040 ld_shlibs_CXX=no
13041 fi
13042
13043 ;;
13044
13045 dgux*)
13046 case $cc_basename in
13047 ec++*)
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13050 ;;
13051 ghcx*)
13052 # Green Hills C++ Compiler
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13055 ;;
13056 *)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 esac
13061 ;;
13062
13063 freebsd2.*)
13064 # C++ shared libraries reported to be fairly broken before
13065 # switch to ELF
13066 ld_shlibs_CXX=no
13067 ;;
13068
13069 freebsd-elf*)
13070 archive_cmds_need_lc_CXX=no
13071 ;;
13072
13073 freebsd* | dragonfly*)
13074 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13075 # conventions
13076 ld_shlibs_CXX=yes
13077 ;;
13078
13079 gnu*)
13080 ;;
13081
13082 haiku*)
13083 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084 link_all_deplibs_CXX=yes
13085 ;;
13086
13087 hpux9*)
13088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13089 hardcode_libdir_separator_CXX=:
13090 export_dynamic_flag_spec_CXX='${wl}-E'
13091 hardcode_direct_CXX=yes
13092 hardcode_minus_L_CXX=yes # Not in the search PATH,
13093 # but as the default
13094 # location of the library.
13095
13096 case $cc_basename in
13097 CC*)
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13100 ;;
13101 aCC*)
13102 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'
13103 # Commands to make compiler produce verbose output that lists
13104 # what "hidden" libraries, object files and flags are used when
13105 # linking a shared library.
13106 #
13107 # There doesn't appear to be a way to prevent this compiler from
13108 # explicitly linking system object files so we need to strip them
13109 # from the output so that they don't get included in the library
13110 # dependencies.
13111 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"'
13112 ;;
13113 *)
13114 if test "$GXX" = yes; then
13115 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'
13116 else
13117 # FIXME: insert proper C++ library support
13118 ld_shlibs_CXX=no
13119 fi
13120 ;;
13121 esac
13122 ;;
13123
13124 hpux10*|hpux11*)
13125 if test $with_gnu_ld = no; then
13126 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13127 hardcode_libdir_separator_CXX=:
13128
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13131 ;;
13132 *)
13133 export_dynamic_flag_spec_CXX='${wl}-E'
13134 ;;
13135 esac
13136 fi
13137 case $host_cpu in
13138 hppa*64*|ia64*)
13139 hardcode_direct_CXX=no
13140 hardcode_shlibpath_var_CXX=no
13141 ;;
13142 *)
13143 hardcode_direct_CXX=yes
13144 hardcode_direct_absolute_CXX=yes
13145 hardcode_minus_L_CXX=yes # Not in the search PATH,
13146 # but as the default
13147 # location of the library.
13148 ;;
13149 esac
13150
13151 case $cc_basename in
13152 CC*)
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13155 ;;
13156 aCC*)
13157 case $host_cpu in
13158 hppa*64*)
13159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160 ;;
13161 ia64*)
13162 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13163 ;;
13164 *)
13165 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13166 ;;
13167 esac
13168 # Commands to make compiler produce verbose output that lists
13169 # what "hidden" libraries, object files and flags are used when
13170 # linking a shared library.
13171 #
13172 # There doesn't appear to be a way to prevent this compiler from
13173 # explicitly linking system object files so we need to strip them
13174 # from the output so that they don't get included in the library
13175 # dependencies.
13176 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"'
13177 ;;
13178 *)
13179 if test "$GXX" = yes; then
13180 if test $with_gnu_ld = no; then
13181 case $host_cpu in
13182 hppa*64*)
13183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13184 ;;
13185 ia64*)
13186 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13187 ;;
13188 *)
13189 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'
13190 ;;
13191 esac
13192 fi
13193 else
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13196 fi
13197 ;;
13198 esac
13199 ;;
13200
13201 interix[3-9]*)
13202 hardcode_direct_CXX=no
13203 hardcode_shlibpath_var_CXX=no
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 export_dynamic_flag_spec_CXX='${wl}-E'
13206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13207 # Instead, shared libraries are loaded at an image base (0x10000000 by
13208 # default) and relocated if they conflict, which is a slow very memory
13209 # consuming and fragmenting process. To avoid this, we pick a random,
13210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13212 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'
13213 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'
13214 ;;
13215 irix5* | irix6*)
13216 case $cc_basename in
13217 CC*)
13218 # SGI C++
13219 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'
13220
13221 # Archives containing C++ object files must be created using
13222 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13223 # necessary to make sure instantiated templates are included
13224 # in the archive.
13225 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13226 ;;
13227 *)
13228 if test "$GXX" = yes; then
13229 if test "$with_gnu_ld" = no; then
13230 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'
13231 else
13232 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'
13233 fi
13234 fi
13235 link_all_deplibs_CXX=yes
13236 ;;
13237 esac
13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13239 hardcode_libdir_separator_CXX=:
13240 inherit_rpath_CXX=yes
13241 ;;
13242
13243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13244 case $cc_basename in
13245 KCC*)
13246 # Kuck and Associates, Inc. (KAI) C++ Compiler
13247
13248 # KCC will only create a shared library if the output file
13249 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13250 # to its proper name (with version) after linking.
13251 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'
13252 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'
13253 # Commands to make compiler produce verbose output that lists
13254 # what "hidden" libraries, object files and flags are used when
13255 # linking a shared library.
13256 #
13257 # There doesn't appear to be a way to prevent this compiler from
13258 # explicitly linking system object files so we need to strip them
13259 # from the output so that they don't get included in the library
13260 # dependencies.
13261 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"'
13262
13263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13265
13266 # Archives containing C++ object files must be created using
13267 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13268 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13269 ;;
13270 icpc* | ecpc* )
13271 # Intel C++
13272 with_gnu_ld=yes
13273 # version 8.0 and above of icpc choke on multiply defined symbols
13274 # if we add $predep_objects and $postdep_objects, however 7.1 and
13275 # earlier do not add the objects themselves.
13276 case `$CC -V 2>&1` in
13277 *"Version 7."*)
13278 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 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'
13280 ;;
13281 *) # Version 8.0 or newer
13282 tmp_idyn=
13283 case $host_cpu in
13284 ia64*) tmp_idyn=' -i_dynamic';;
13285 esac
13286 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287 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'
13288 ;;
13289 esac
13290 archive_cmds_need_lc_CXX=no
13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13293 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13294 ;;
13295 pgCC* | pgcpp*)
13296 # Portland Group C++ compiler
13297 case `$CC -V` in
13298 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13299 prelink_cmds_CXX='tpldir=Template.dir~
13300 rm -rf $tpldir~
13301 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13302 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13303 old_archive_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13306 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13307 $RANLIB $oldlib'
13308 archive_cmds_CXX='tpldir=Template.dir~
13309 rm -rf $tpldir~
13310 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13311 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13312 archive_expsym_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $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'
13316 ;;
13317 *) # Version 6 and above use weak symbols
13318 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13319 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'
13320 ;;
13321 esac
13322
13323 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13325 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'
13326 ;;
13327 cxx*)
13328 # Compaq C++
13329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 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'
13331
13332 runpath_var=LD_RUN_PATH
13333 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334 hardcode_libdir_separator_CXX=:
13335
13336 # Commands to make compiler produce verbose output that lists
13337 # what "hidden" libraries, object files and flags are used when
13338 # linking a shared library.
13339 #
13340 # There doesn't appear to be a way to prevent this compiler from
13341 # explicitly linking system object files so we need to strip them
13342 # from the output so that they don't get included in the library
13343 # dependencies.
13344 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'
13345 ;;
13346 xl* | mpixl* | bgxl*)
13347 # IBM XL 8.0 on PPC, with GNU ld
13348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13350 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351 if test "x$supports_anon_versioning" = xyes; then
13352 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13354 echo "local: *; };" >> $output_objdir/$libname.ver~
13355 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13356 fi
13357 ;;
13358 *)
13359 case `$CC -V 2>&1 | sed 5q` in
13360 *Sun\ C*)
13361 # Sun C++ 5.9
13362 no_undefined_flag_CXX=' -zdefs'
13363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13364 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'
13365 hardcode_libdir_flag_spec_CXX='-R$libdir'
13366 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'
13367 compiler_needs_object_CXX=yes
13368
13369 # Not sure whether something based on
13370 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13371 # would be better.
13372 output_verbose_link_cmd='func_echo_all'
13373
13374 # Archives containing C++ object files must be created using
13375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13376 # necessary to make sure instantiated templates are included
13377 # in the archive.
13378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13379 ;;
13380 esac
13381 ;;
13382 esac
13383 ;;
13384
13385 lynxos*)
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13388 ;;
13389
13390 m88k*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394
13395 mvs*)
13396 case $cc_basename in
13397 cxx*)
13398 # FIXME: insert proper C++ library support
13399 ld_shlibs_CXX=no
13400 ;;
13401 *)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13404 ;;
13405 esac
13406 ;;
13407
13408 netbsd*)
13409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13410 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13411 wlarc=
13412 hardcode_libdir_flag_spec_CXX='-R$libdir'
13413 hardcode_direct_CXX=yes
13414 hardcode_shlibpath_var_CXX=no
13415 fi
13416 # Workaround some broken pre-1.5 toolchains
13417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13418 ;;
13419
13420 *nto* | *qnx*)
13421 ld_shlibs_CXX=yes
13422 ;;
13423
13424 openbsd2*)
13425 # C++ shared libraries are fairly broken
13426 ld_shlibs_CXX=no
13427 ;;
13428
13429 openbsd*)
13430 if test -f /usr/libexec/ld.so; then
13431 hardcode_direct_CXX=yes
13432 hardcode_shlibpath_var_CXX=no
13433 hardcode_direct_absolute_CXX=yes
13434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13437 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13438 export_dynamic_flag_spec_CXX='${wl}-E'
13439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13440 fi
13441 output_verbose_link_cmd=func_echo_all
13442 else
13443 ld_shlibs_CXX=no
13444 fi
13445 ;;
13446
13447 osf3* | osf4* | osf5*)
13448 case $cc_basename in
13449 KCC*)
13450 # Kuck and Associates, Inc. (KAI) C++ Compiler
13451
13452 # KCC will only create a shared library if the output file
13453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13454 # to its proper name (with version) after linking.
13455 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'
13456
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 hardcode_libdir_separator_CXX=:
13459
13460 # Archives containing C++ object files must be created using
13461 # the KAI C++ compiler.
13462 case $host in
13463 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13464 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13465 esac
13466 ;;
13467 RCC*)
13468 # Rational C++ 2.4.1
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13471 ;;
13472 cxx*)
13473 case $host in
13474 osf3*)
13475 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13476 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'
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13478 ;;
13479 *)
13480 allow_undefined_flag_CXX=' -expect_unresolved \*'
13481 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'
13482 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13483 echo "-hidden">> $lib.exp~
13484 $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~
13485 $RM $lib.exp'
13486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13487 ;;
13488 esac
13489
13490 hardcode_libdir_separator_CXX=:
13491
13492 # Commands to make compiler produce verbose output that lists
13493 # what "hidden" libraries, object files and flags are used when
13494 # linking a shared library.
13495 #
13496 # There doesn't appear to be a way to prevent this compiler from
13497 # explicitly linking system object files so we need to strip them
13498 # from the output so that they don't get included in the library
13499 # dependencies.
13500 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"'
13501 ;;
13502 *)
13503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13505 case $host in
13506 osf3*)
13507 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'
13508 ;;
13509 *)
13510 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'
13511 ;;
13512 esac
13513
13514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13515 hardcode_libdir_separator_CXX=:
13516
13517 # Commands to make compiler produce verbose output that lists
13518 # what "hidden" libraries, object files and flags are used when
13519 # linking a shared library.
13520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13521
13522 else
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13525 fi
13526 ;;
13527 esac
13528 ;;
13529
13530 psos*)
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13533 ;;
13534
13535 sunos4*)
13536 case $cc_basename in
13537 CC*)
13538 # Sun C++ 4.x
13539 # FIXME: insert proper C++ library support
13540 ld_shlibs_CXX=no
13541 ;;
13542 lcc*)
13543 # Lucid
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 ;;
13547 *)
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551 esac
13552 ;;
13553
13554 solaris*)
13555 case $cc_basename in
13556 CC*)
13557 # Sun C++ 4.2, 5.x and Centerline C++
13558 archive_cmds_need_lc_CXX=yes
13559 no_undefined_flag_CXX=' -zdefs'
13560 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13561 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13562 $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'
13563
13564 hardcode_libdir_flag_spec_CXX='-R$libdir'
13565 hardcode_shlibpath_var_CXX=no
13566 case $host_os in
13567 solaris2.[0-5] | solaris2.[0-5].*) ;;
13568 *)
13569 # The compiler driver will combine and reorder linker options,
13570 # but understands `-z linker_flag'.
13571 # Supported since Solaris 2.6 (maybe 2.5.1?)
13572 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13573 ;;
13574 esac
13575 link_all_deplibs_CXX=yes
13576
13577 output_verbose_link_cmd='func_echo_all'
13578
13579 # Archives containing C++ object files must be created using
13580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13581 # necessary to make sure instantiated templates are included
13582 # in the archive.
13583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13584 ;;
13585 gcx*)
13586 # Green Hills C++ Compiler
13587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13588
13589 # The C++ compiler must be used to create the archive.
13590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13591 ;;
13592 *)
13593 # GNU C++ compiler with Solaris linker
13594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13596 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13598 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13600
13601 # Commands to make compiler produce verbose output that lists
13602 # what "hidden" libraries, object files and flags are used when
13603 # linking a shared library.
13604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13605 else
13606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13607 # platform.
13608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13611
13612 # Commands to make compiler produce verbose output that lists
13613 # what "hidden" libraries, object files and flags are used when
13614 # linking a shared library.
13615 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13616 fi
13617
13618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13619 case $host_os in
13620 solaris2.[0-5] | solaris2.[0-5].*) ;;
13621 *)
13622 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13623 ;;
13624 esac
13625 fi
13626 ;;
13627 esac
13628 ;;
13629
13630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13631 no_undefined_flag_CXX='${wl}-z,text'
13632 archive_cmds_need_lc_CXX=no
13633 hardcode_shlibpath_var_CXX=no
13634 runpath_var='LD_RUN_PATH'
13635
13636 case $cc_basename in
13637 CC*)
13638 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 ;;
13641 *)
13642 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 ;;
13645 esac
13646 ;;
13647
13648 sysv5* | sco3.2v5* | sco5v6*)
13649 # Note: We can NOT use -z defs as we might desire, because we do not
13650 # link with -lc, and that would cause any symbols used from libc to
13651 # always be unresolved, which means just about no library would
13652 # ever link correctly. If we're not using GNU ld we use -z text
13653 # though, which does catch some bad symbols but isn't as heavy-handed
13654 # as -z defs.
13655 no_undefined_flag_CXX='${wl}-z,text'
13656 allow_undefined_flag_CXX='${wl}-z,nodefs'
13657 archive_cmds_need_lc_CXX=no
13658 hardcode_shlibpath_var_CXX=no
13659 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13660 hardcode_libdir_separator_CXX=':'
13661 link_all_deplibs_CXX=yes
13662 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13663 runpath_var='LD_RUN_PATH'
13664
13665 case $cc_basename in
13666 CC*)
13667 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13670 '"$old_archive_cmds_CXX"
13671 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13672 '"$reload_cmds_CXX"
13673 ;;
13674 *)
13675 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 ;;
13678 esac
13679 ;;
13680
13681 tandem*)
13682 case $cc_basename in
13683 NCC*)
13684 # NonStop-UX NCC 3.20
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688 *)
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 ;;
13692 esac
13693 ;;
13694
13695 vxworks*)
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 ;;
13699
13700 *)
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704 esac
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13707$as_echo "$ld_shlibs_CXX" >&6; }
13708 test "$ld_shlibs_CXX" = no && can_build_shared=no
13709
13710 GCC_CXX="$GXX"
13711 LD_CXX="$LD"
13712
13713 ## CAVEAT EMPTOR:
13714 ## There is no encapsulation within the following macros, do not change
13715 ## the running order or otherwise move them around unless you know exactly
13716 ## what you are doing...
13717 # Dependencies to place before and after the object being linked:
13718predep_objects_CXX=
13719postdep_objects_CXX=
13720predeps_CXX=
13721postdeps_CXX=
13722compiler_lib_search_path_CXX=
13723
13724cat > conftest.$ac_ext <<_LT_EOF
13725class Foo
13726{
13727public:
13728 Foo (void) { a = 0; }
13729private:
13730 int a;
13731};
13732_LT_EOF
13733
13734if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 # Parse the compiler output and extract the necessary
13740 # objects, libraries and library flags.
13741
13742 # Sentinel used to keep track of whether or not we are before
13743 # the conftest object file.
13744 pre_test_object_deps_done=no
13745
13746 for p in `eval "$output_verbose_link_cmd"`; do
13747 case $p in
13748
13749 -L* | -R* | -l*)
13750 # Some compilers place space between "-{L,R}" and the path.
13751 # Remove the space.
13752 if test $p = "-L" ||
13753 test $p = "-R"; then
13754 prev=$p
13755 continue
13756 else
13757 prev=
13758 fi
13759
13760 if test "$pre_test_object_deps_done" = no; then
13761 case $p in
13762 -L* | -R*)
13763 # Internal compiler library paths should come after those
13764 # provided the user. The postdeps already come after the
13765 # user supplied libs so there is no need to process them.
13766 if test -z "$compiler_lib_search_path_CXX"; then
13767 compiler_lib_search_path_CXX="${prev}${p}"
13768 else
13769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13770 fi
13771 ;;
13772 # The "-l" case would never come before the object being
13773 # linked, so don't bother handling this case.
13774 esac
13775 else
13776 if test -z "$postdeps_CXX"; then
13777 postdeps_CXX="${prev}${p}"
13778 else
13779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13780 fi
13781 fi
13782 ;;
13783
13784 *.$objext)
13785 # This assumes that the test object file only shows up
13786 # once in the compiler output.
13787 if test "$p" = "conftest.$objext"; then
13788 pre_test_object_deps_done=yes
13789 continue
13790 fi
13791
13792 if test "$pre_test_object_deps_done" = no; then
13793 if test -z "$predep_objects_CXX"; then
13794 predep_objects_CXX="$p"
13795 else
13796 predep_objects_CXX="$predep_objects_CXX $p"
13797 fi
13798 else
13799 if test -z "$postdep_objects_CXX"; then
13800 postdep_objects_CXX="$p"
13801 else
13802 postdep_objects_CXX="$postdep_objects_CXX $p"
13803 fi
13804 fi
13805 ;;
13806
13807 *) ;; # Ignore the rest.
13808
13809 esac
13810 done
13811
13812 # Clean up.
13813 rm -f a.out a.exe
13814else
13815 echo "libtool.m4: error: problem compiling CXX test program"
13816fi
13817
13818$RM -f confest.$objext
13819
13820# PORTME: override above test on systems where it is broken
13821case $host_os in
13822interix[3-9]*)
13823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824 # hack all around it, let's just trust "g++" to DTRT.
13825 predep_objects_CXX=
13826 postdep_objects_CXX=
13827 postdeps_CXX=
13828 ;;
13829
13830linux*)
13831 case `$CC -V 2>&1 | sed 5q` in
13832 *Sun\ C*)
13833 # Sun C++ 5.9
13834
13835 # The more standards-conforming stlport4 library is
13836 # incompatible with the Cstd library. Avoid specifying
13837 # it if it's in CXXFLAGS. Ignore libCrun as
13838 # -library=stlport4 depends on it.
13839 case " $CXX $CXXFLAGS " in
13840 *" -library=stlport4 "*)
13841 solaris_use_stlport4=yes
13842 ;;
13843 esac
13844
13845 if test "$solaris_use_stlport4" != yes; then
13846 postdeps_CXX='-library=Cstd -library=Crun'
13847 fi
13848 ;;
13849 esac
13850 ;;
13851
13852solaris*)
13853 case $cc_basename in
13854 CC*)
13855 # The more standards-conforming stlport4 library is
13856 # incompatible with the Cstd library. Avoid specifying
13857 # it if it's in CXXFLAGS. Ignore libCrun as
13858 # -library=stlport4 depends on it.
13859 case " $CXX $CXXFLAGS " in
13860 *" -library=stlport4 "*)
13861 solaris_use_stlport4=yes
13862 ;;
13863 esac
13864
13865 # Adding this requires a known-good setup of shared libraries for
13866 # Sun compiler versions before 5.6, else PIC objects from an old
13867 # archive will be linked into the output, leading to subtle bugs.
13868 if test "$solaris_use_stlport4" != yes; then
13869 postdeps_CXX='-library=Cstd -library=Crun'
13870 fi
13871 ;;
13872 esac
13873 ;;
13874esac
13875
13876
13877case " $postdeps_CXX " in
13878*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879esac
13880 compiler_lib_search_dirs_CXX=
13881if test -n "${compiler_lib_search_path_CXX}"; then
13882 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13883fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915 lt_prog_compiler_wl_CXX=
13916lt_prog_compiler_pic_CXX=
13917lt_prog_compiler_static_CXX=
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13920$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13921
13922 # C++ specific cases for pic, static, wl, etc.
13923 if test "$GXX" = yes; then
13924 lt_prog_compiler_wl_CXX='-Wl,'
13925 lt_prog_compiler_static_CXX='-static'
f35db108
WM
13926
13927 case $host_os in
13928 aix*)
13929 # All AIX code is PIC.
13930 if test "$host_cpu" = ia64; then
13931 # AIX 5 now supports IA64 processor
13932 lt_prog_compiler_static_CXX='-Bstatic'
13933 fi
a2479b3d 13934 lt_prog_compiler_pic_CXX='-fPIC'
f35db108
WM
13935 ;;
13936
c915a581
JJ
13937 amigaos*)
13938 case $host_cpu in
13939 powerpc)
13940 # see comment about AmigaOS4 .so support
13941 lt_prog_compiler_pic_CXX='-fPIC'
13942 ;;
13943 m68k)
13944 # FIXME: we need at least 68020 code to build shared libraries, but
13945 # adding the `-m68020' flag to GCC prevents building anything better,
13946 # like `-m68040'.
13947 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13948 ;;
13949 esac
13950 ;;
13951
13952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13953 # PIC is the default for these OSes.
13954 ;;
13955 mingw* | cygwin* | os2* | pw32* | cegcc*)
13956 # This hack is so that the source file can tell whether it is being
13957 # built for inclusion in a dll (and should export symbols for example).
13958 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13959 # (--disable-auto-import) libraries
13960 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13961 ;;
13962 darwin* | rhapsody*)
13963 # PIC is the default on this platform
13964 # Common symbols not allowed in MH_DYLIB files
13965 lt_prog_compiler_pic_CXX='-fno-common'
13966 ;;
13967 *djgpp*)
13968 # DJGPP does not support shared libraries at all
13969 lt_prog_compiler_pic_CXX=
13970 ;;
13971 haiku*)
13972 # PIC is the default for Haiku.
13973 # The "-static" flag exists, but is broken.
13974 lt_prog_compiler_static_CXX=
13975 ;;
13976 interix[3-9]*)
13977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13978 # Instead, we relocate shared libraries at runtime.
13979 ;;
13980 sysv4*MP*)
13981 if test -d /usr/nec; then
13982 lt_prog_compiler_pic_CXX=-Kconform_pic
13983 fi
13984 ;;
13985 hpux*)
13986 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13987 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13988 # sets the default TLS model and affects inlining.
13989 case $host_cpu in
13990 hppa*64*)
13991 ;;
13992 *)
13993 lt_prog_compiler_pic_CXX='-fPIC'
13994 ;;
13995 esac
13996 ;;
13997 *qnx* | *nto*)
13998 # QNX uses GNU C++, but need to define -shared option too, otherwise
13999 # it will coredump.
14000 lt_prog_compiler_pic_CXX='-fPIC -shared'
14001 ;;
14002 *)
14003 lt_prog_compiler_pic_CXX='-fPIC'
14004 ;;
14005 esac
14006 else
14007 case $host_os in
14008 aix[4-9]*)
14009 # All AIX code is PIC.
14010 if test "$host_cpu" = ia64; then
14011 # AIX 5 now supports IA64 processor
14012 lt_prog_compiler_static_CXX='-Bstatic'
14013 else
14014 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14015 fi
14016 ;;
14017 chorus*)
14018 case $cc_basename in
14019 cxch68*)
14020 # Green Hills C++ Compiler
14021 # _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"
14022 ;;
14023 esac
14024 ;;
14025 dgux*)
14026 case $cc_basename in
14027 ec++*)
14028 lt_prog_compiler_pic_CXX='-KPIC'
14029 ;;
14030 ghcx*)
14031 # Green Hills C++ Compiler
14032 lt_prog_compiler_pic_CXX='-pic'
14033 ;;
14034 *)
14035 ;;
14036 esac
14037 ;;
14038 freebsd* | dragonfly*)
14039 # FreeBSD uses GNU C++
14040 ;;
14041 hpux9* | hpux10* | hpux11*)
14042 case $cc_basename in
14043 CC*)
14044 lt_prog_compiler_wl_CXX='-Wl,'
14045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14046 if test "$host_cpu" != ia64; then
14047 lt_prog_compiler_pic_CXX='+Z'
14048 fi
14049 ;;
14050 aCC*)
14051 lt_prog_compiler_wl_CXX='-Wl,'
14052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14053 case $host_cpu in
14054 hppa*64*|ia64*)
14055 # +Z the default
14056 ;;
14057 *)
14058 lt_prog_compiler_pic_CXX='+Z'
14059 ;;
14060 esac
14061 ;;
14062 *)
14063 ;;
14064 esac
14065 ;;
14066 interix*)
14067 # This is c89, which is MS Visual C++ (no shared libs)
14068 # Anyone wants to do a port?
14069 ;;
14070 irix5* | irix6* | nonstopux*)
14071 case $cc_basename in
14072 CC*)
14073 lt_prog_compiler_wl_CXX='-Wl,'
14074 lt_prog_compiler_static_CXX='-non_shared'
14075 # CC pic flag -KPIC is the default.
14076 ;;
14077 *)
14078 ;;
14079 esac
14080 ;;
14081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14082 case $cc_basename in
14083 KCC*)
14084 # KAI C++ Compiler
14085 lt_prog_compiler_wl_CXX='--backend -Wl,'
14086 lt_prog_compiler_pic_CXX='-fPIC'
14087 ;;
14088 ecpc* )
14089 # old Intel C++ for x86_64 which still supported -KPIC.
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 lt_prog_compiler_pic_CXX='-KPIC'
14092 lt_prog_compiler_static_CXX='-static'
14093 ;;
14094 icpc* )
14095 # Intel C++, used to be incompatible with GCC.
14096 # ICC 10 doesn't accept -KPIC any more.
14097 lt_prog_compiler_wl_CXX='-Wl,'
14098 lt_prog_compiler_pic_CXX='-fPIC'
14099 lt_prog_compiler_static_CXX='-static'
14100 ;;
14101 pgCC* | pgcpp*)
14102 # Portland Group C++ compiler
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_pic_CXX='-fpic'
14105 lt_prog_compiler_static_CXX='-Bstatic'
14106 ;;
14107 cxx*)
14108 # Compaq C++
14109 # Make sure the PIC flag is empty. It appears that all Alpha
14110 # Linux and Compaq Tru64 Unix objects are PIC.
14111 lt_prog_compiler_pic_CXX=
14112 lt_prog_compiler_static_CXX='-non_shared'
14113 ;;
14114 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14115 # IBM XL 8.0, 9.0 on PPC and BlueGene
14116 lt_prog_compiler_wl_CXX='-Wl,'
14117 lt_prog_compiler_pic_CXX='-qpic'
14118 lt_prog_compiler_static_CXX='-qstaticlink'
14119 ;;
14120 *)
14121 case `$CC -V 2>&1 | sed 5q` in
14122 *Sun\ C*)
14123 # Sun C++ 5.9
14124 lt_prog_compiler_pic_CXX='-KPIC'
14125 lt_prog_compiler_static_CXX='-Bstatic'
14126 lt_prog_compiler_wl_CXX='-Qoption ld '
14127 ;;
14128 esac
14129 ;;
14130 esac
14131 ;;
14132 lynxos*)
14133 ;;
14134 m88k*)
14135 ;;
14136 mvs*)
14137 case $cc_basename in
14138 cxx*)
14139 lt_prog_compiler_pic_CXX='-W c,exportall'
14140 ;;
14141 *)
14142 ;;
14143 esac
14144 ;;
14145 netbsd*)
14146 ;;
14147 *qnx* | *nto*)
14148 # QNX uses GNU C++, but need to define -shared option too, otherwise
14149 # it will coredump.
14150 lt_prog_compiler_pic_CXX='-fPIC -shared'
14151 ;;
14152 osf3* | osf4* | osf5*)
14153 case $cc_basename in
14154 KCC*)
14155 lt_prog_compiler_wl_CXX='--backend -Wl,'
14156 ;;
14157 RCC*)
14158 # Rational C++ 2.4.1
14159 lt_prog_compiler_pic_CXX='-pic'
14160 ;;
14161 cxx*)
14162 # Digital/Compaq C++
14163 lt_prog_compiler_wl_CXX='-Wl,'
14164 # Make sure the PIC flag is empty. It appears that all Alpha
14165 # Linux and Compaq Tru64 Unix objects are PIC.
14166 lt_prog_compiler_pic_CXX=
14167 lt_prog_compiler_static_CXX='-non_shared'
14168 ;;
14169 *)
14170 ;;
14171 esac
14172 ;;
14173 psos*)
14174 ;;
14175 solaris*)
14176 case $cc_basename in
14177 CC*)
14178 # Sun C++ 4.2, 5.x and Centerline C++
14179 lt_prog_compiler_pic_CXX='-KPIC'
14180 lt_prog_compiler_static_CXX='-Bstatic'
14181 lt_prog_compiler_wl_CXX='-Qoption ld '
14182 ;;
14183 gcx*)
14184 # Green Hills C++ Compiler
14185 lt_prog_compiler_pic_CXX='-PIC'
14186 ;;
14187 *)
14188 ;;
14189 esac
14190 ;;
14191 sunos4*)
14192 case $cc_basename in
14193 CC*)
14194 # Sun C++ 4.x
14195 lt_prog_compiler_pic_CXX='-pic'
14196 lt_prog_compiler_static_CXX='-Bstatic'
14197 ;;
14198 lcc*)
14199 # Lucid
14200 lt_prog_compiler_pic_CXX='-pic'
14201 ;;
14202 *)
14203 ;;
14204 esac
14205 ;;
14206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14207 case $cc_basename in
14208 CC*)
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_pic_CXX='-KPIC'
14211 lt_prog_compiler_static_CXX='-Bstatic'
14212 ;;
14213 esac
14214 ;;
14215 tandem*)
14216 case $cc_basename in
14217 NCC*)
14218 # NonStop-UX NCC 3.20
14219 lt_prog_compiler_pic_CXX='-KPIC'
14220 ;;
14221 *)
14222 ;;
14223 esac
14224 ;;
14225 vxworks*)
14226 ;;
14227 *)
14228 lt_prog_compiler_can_build_shared_CXX=no
14229 ;;
14230 esac
14231 fi
14232
14233case $host_os in
14234 # For platforms which do not support PIC, -DPIC is meaningless:
14235 *djgpp*)
14236 lt_prog_compiler_pic_CXX=
14237 ;;
14238 *)
14239 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14240 ;;
14241esac
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14243$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14244
14245
14246
14247#
14248# Check to make sure the PIC flag actually works.
14249#
14250if test -n "$lt_prog_compiler_pic_CXX"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14252$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14253if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255else
14256 lt_cv_prog_compiler_pic_works_CXX=no
14257 ac_outfile=conftest.$ac_objext
14258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14259 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14260 # Insert the option either (1) after the last *FLAGS variable, or
14261 # (2) before a word containing "conftest.", or (3) at the end.
14262 # Note that $ac_compile itself does not contain backslashes and begins
14263 # with a dollar sign (not a hyphen), so the echo should work correctly.
14264 # The option is referenced via a variable to avoid confusing sed.
14265 lt_compile=`echo "$ac_compile" | $SED \
14266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14268 -e 's:$: $lt_compiler_flag:'`
14269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14270 (eval "$lt_compile" 2>conftest.err)
14271 ac_status=$?
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 if (exit $ac_status) && test -s "$ac_outfile"; then
14275 # The compiler can only warn and ignore the option if not recognized
14276 # So say no if there are warnings other than the usual output.
14277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14280 lt_cv_prog_compiler_pic_works_CXX=yes
14281 fi
14282 fi
14283 $RM conftest*
14284
14285fi
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14287$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14288
14289if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14290 case $lt_prog_compiler_pic_CXX in
14291 "" | " "*) ;;
14292 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14293 esac
14294else
14295 lt_prog_compiler_pic_CXX=
14296 lt_prog_compiler_can_build_shared_CXX=no
14297fi
14298
14299fi
14300
14301
14302
14303#
14304# Check to make sure the static flag actually works.
14305#
14306wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14308$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14309if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311else
14312 lt_cv_prog_compiler_static_works_CXX=no
14313 save_LDFLAGS="$LDFLAGS"
14314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14317 # The linker can only warn and ignore the option if not recognized
14318 # So say no if there are warnings
14319 if test -s conftest.err; then
14320 # Append any errors to the config.log.
14321 cat conftest.err 1>&5
14322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324 if diff conftest.exp conftest.er2 >/dev/null; then
14325 lt_cv_prog_compiler_static_works_CXX=yes
14326 fi
14327 else
14328 lt_cv_prog_compiler_static_works_CXX=yes
14329 fi
14330 fi
14331 $RM -r conftest*
14332 LDFLAGS="$save_LDFLAGS"
14333
14334fi
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14336$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14337
14338if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14339 :
14340else
14341 lt_prog_compiler_static_CXX=
14342fi
14343
14344
14345
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14348$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14349if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351else
14352 lt_cv_prog_compiler_c_o_CXX=no
14353 $RM -r conftest 2>/dev/null
14354 mkdir conftest
14355 cd conftest
14356 mkdir out
14357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14358
14359 lt_compiler_flag="-o out/conftest2.$ac_objext"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 lt_compile=`echo "$ac_compile" | $SED \
14365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367 -e 's:$: $lt_compiler_flag:'`
14368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14369 (eval "$lt_compile" 2>out/conftest.err)
14370 ac_status=$?
14371 cat out/conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14374 then
14375 # The compiler can only warn and ignore the option if not recognized
14376 # So say no if there are warnings
14377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_c_o_CXX=yes
14381 fi
14382 fi
14383 chmod u+w . 2>&5
14384 $RM conftest*
14385 # SGI C++ compiler will create directory out/ii_files/ for
14386 # template instantiation
14387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14388 $RM out/* && rmdir out
14389 cd ..
14390 $RM -r conftest
14391 $RM conftest*
14392
14393fi
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14395$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14396
14397
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14401if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403else
14404 lt_cv_prog_compiler_c_o_CXX=no
14405 $RM -r conftest 2>/dev/null
14406 mkdir conftest
14407 cd conftest
14408 mkdir out
14409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14410
14411 lt_compiler_flag="-o out/conftest2.$ac_objext"
14412 # Insert the option either (1) after the last *FLAGS variable, or
14413 # (2) before a word containing "conftest.", or (3) at the end.
14414 # Note that $ac_compile itself does not contain backslashes and begins
14415 # with a dollar sign (not a hyphen), so the echo should work correctly.
14416 lt_compile=`echo "$ac_compile" | $SED \
14417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419 -e 's:$: $lt_compiler_flag:'`
14420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14421 (eval "$lt_compile" 2>out/conftest.err)
14422 ac_status=$?
14423 cat out/conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14426 then
14427 # The compiler can only warn and ignore the option if not recognized
14428 # So say no if there are warnings
14429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_c_o_CXX=yes
14433 fi
14434 fi
14435 chmod u+w . 2>&5
14436 $RM conftest*
14437 # SGI C++ compiler will create directory out/ii_files/ for
14438 # template instantiation
14439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14440 $RM out/* && rmdir out
14441 cd ..
14442 $RM -r conftest
14443 $RM conftest*
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14447$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14448
14449
14450
14451
14452hard_links="nottested"
14453if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14454 # do not overwrite the value of need_locks provided by the user
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14456$as_echo_n "checking if we can lock with hard links... " >&6; }
14457 hard_links=yes
14458 $RM conftest*
14459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14460 touch conftest.a
14461 ln conftest.a conftest.b 2>&5 || hard_links=no
14462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14464$as_echo "$hard_links" >&6; }
14465 if test "$hard_links" = no; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14467$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14468 need_locks=warn
14469 fi
14470else
14471 need_locks=no
14472fi
14473
14474
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14477$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14478
14479 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14480 case $host_os in
14481 aix[4-9]*)
14482 # If we're using GNU nm, then we don't want the "-C" option.
14483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14484 # Also, AIX nm treats weak defined symbols like other global defined
14485 # symbols, whereas GNU nm marks them as "W".
14486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14487 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'
14488 else
bf93d543 14489 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
c915a581
JJ
14490 fi
14491 ;;
14492 pw32*)
14493 export_symbols_cmds_CXX="$ltdll_cmds"
14494 ;;
14495 cygwin* | mingw* | cegcc*)
14496 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'
14497 ;;
14498 *)
14499 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14500 ;;
14501 esac
14502 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14505$as_echo "$ld_shlibs_CXX" >&6; }
14506test "$ld_shlibs_CXX" = no && can_build_shared=no
14507
14508with_gnu_ld_CXX=$with_gnu_ld
14509
14510
14511
14512
14513
14514
14515#
14516# Do we need to explicitly link libc?
14517#
14518case "x$archive_cmds_need_lc_CXX" in
14519x|xyes)
14520 # Assume -lc should be added
14521 archive_cmds_need_lc_CXX=yes
14522
14523 if test "$enable_shared" = yes && test "$GCC" = yes; then
14524 case $archive_cmds_CXX in
14525 *'~'*)
14526 # FIXME: we may have to deal with multi-command sequences.
14527 ;;
14528 '$CC '*)
14529 # Test whether the compiler implicitly links with -lc since on some
14530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14531 # to ld, don't add -lc before -lgcc.
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14533$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14534if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
14536else
14537 $RM conftest*
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14539
14540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14541 (eval $ac_compile) 2>&5
14542 ac_status=$?
14543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544 test $ac_status = 0; } 2>conftest.err; then
14545 soname=conftest
14546 lib=conftest
14547 libobjs=conftest.$ac_objext
14548 deplibs=
14549 wl=$lt_prog_compiler_wl_CXX
14550 pic_flag=$lt_prog_compiler_pic_CXX
14551 compiler_flags=-v
14552 linker_flags=-v
14553 verstring=
14554 output_objdir=.
14555 libname=conftest
14556 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14557 allow_undefined_flag_CXX=
14558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14559 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14560 ac_status=$?
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; }
14563 then
14564 lt_cv_archive_cmds_need_lc_CXX=no
14565 else
14566 lt_cv_archive_cmds_need_lc_CXX=yes
14567 fi
14568 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14569 else
14570 cat conftest.err 1>&5
14571 fi
14572 $RM conftest*
14573
14574fi
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14576$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14577 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14578 ;;
14579 esac
14580 fi
14581 ;;
14582esac
14583
f35db108 14584
c915a581
JJ
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14648$as_echo_n "checking dynamic linker characteristics... " >&6; }
14649
14650library_names_spec=
14651libname_spec='lib$name'
14652soname_spec=
14653shrext_cmds=".so"
14654postinstall_cmds=
14655postuninstall_cmds=
14656finish_cmds=
14657finish_eval=
14658shlibpath_var=
14659shlibpath_overrides_runpath=unknown
14660version_type=none
14661dynamic_linker="$host_os ld.so"
14662sys_lib_dlsearch_path_spec="/lib /usr/lib"
14663need_lib_prefix=unknown
14664hardcode_into_libs=no
14665
14666# when you set need_version to no, make sure it does not cause -set_version
14667# flags to be left without arguments
14668need_version=unknown
14669
14670case $host_os in
14671aix3*)
14672 version_type=linux
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14674 shlibpath_var=LIBPATH
14675
14676 # AIX 3 has no versioning support, so we append a major version to the name.
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 ;;
14679
14680aix[4-9]*)
14681 version_type=linux
14682 need_lib_prefix=no
14683 need_version=no
14684 hardcode_into_libs=yes
14685 if test "$host_cpu" = ia64; then
14686 # AIX 5 supports IA64
14687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 else
14690 # With GCC up to 2.95.x, collect2 would create an import file
14691 # for dependence libraries. The import file would start with
14692 # the line `#! .'. This would cause the generated library to
14693 # depend on `.', always an invalid library. This was fixed in
14694 # development snapshots of GCC prior to 3.0.
14695 case $host_os in
14696 aix4 | aix4.[01] | aix4.[01].*)
14697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14698 echo ' yes '
14699 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14700 :
14701 else
14702 can_build_shared=no
f35db108
WM
14703 fi
14704 ;;
c915a581
JJ
14705 esac
14706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14707 # soname into executable. Probably we can add versioning support to
14708 # collect2, so additional links can be useful in future.
14709 if test "$aix_use_runtimelinking" = yes; then
14710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14711 # instead of lib<name>.a to let people know that these are not
14712 # typical AIX shared libraries.
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 else
14715 # We preserve .a as extension for shared libraries through AIX4.2
14716 # and later when we are not doing run time linking.
14717 library_names_spec='${libname}${release}.a $libname.a'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 fi
14720 shlibpath_var=LIBPATH
14721 fi
14722 ;;
14723
14724amigaos*)
14725 case $host_cpu in
14726 powerpc)
14727 # Since July 2007 AmigaOS4 officially supports .so libraries.
14728 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 ;;
14731 m68k)
14732 library_names_spec='$libname.ixlibrary $libname.a'
14733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14734 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'
14735 ;;
14736 esac
14737 ;;
14738
14739beos*)
14740 library_names_spec='${libname}${shared_ext}'
14741 dynamic_linker="$host_os ld.so"
14742 shlibpath_var=LIBRARY_PATH
14743 ;;
14744
14745bsdi[45]*)
14746 version_type=linux
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14753 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14754 # the default ld.so.conf also contains /usr/contrib/lib and
14755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14756 # libtool to hard-code these into programs
14757 ;;
14758
14759cygwin* | mingw* | pw32* | cegcc*)
14760 version_type=windows
14761 shrext_cmds=".dll"
14762 need_version=no
14763 need_lib_prefix=no
14764
14765 case $GCC,$host_os in
14766 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14767 library_names_spec='$libname.dll.a'
14768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14769 postinstall_cmds='base_file=`basename \${file}`~
14770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14771 dldir=$destdir/`dirname \$dlpath`~
14772 test -d \$dldir || mkdir -p \$dldir~
14773 $install_prog $dir/$dlname \$dldir/$dlname~
14774 chmod a+x \$dldir/$dlname~
14775 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14776 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14777 fi'
14778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779 dlpath=$dir/\$dldll~
14780 $RM \$dlpath'
14781 shlibpath_overrides_runpath=yes
14782
14783 case $host_os in
14784 cygwin*)
14785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787
f35db108 14788 ;;
c915a581
JJ
14789 mingw* | cegcc*)
14790 # MinGW DLLs use traditional 'lib' prefix
14791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108 14792 ;;
c915a581
JJ
14793 pw32*)
14794 # pw32 DLLs use 'pw' prefix rather than 'lib'
14795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
f35db108
WM
14796 ;;
14797 esac
c915a581
JJ
14798 ;;
14799
14800 *)
14801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14802 ;;
14803 esac
14804 dynamic_linker='Win32 ld.exe'
14805 # FIXME: first we should search . and the directory the executable is in
14806 shlibpath_var=PATH
14807 ;;
14808
14809darwin* | rhapsody*)
14810 dynamic_linker="$host_os dyld"
14811 version_type=darwin
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14815 soname_spec='${libname}${release}${major}$shared_ext'
14816 shlibpath_overrides_runpath=yes
14817 shlibpath_var=DYLD_LIBRARY_PATH
14818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14819
14820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14821 ;;
14822
14823dgux*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 ;;
14831
14832freebsd* | dragonfly*)
14833 # DragonFly does not have aout. When/if they implement a new
14834 # versioning mechanism, adjust this.
14835 if test -x /usr/bin/objformat; then
14836 objformat=`/usr/bin/objformat`
14837 else
14838 case $host_os in
14839 freebsd[23].*) objformat=aout ;;
14840 *) objformat=elf ;;
f35db108
WM
14841 esac
14842 fi
c915a581
JJ
14843 version_type=freebsd-$objformat
14844 case $version_type in
14845 freebsd-elf*)
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14847 need_version=no
14848 need_lib_prefix=no
14849 ;;
14850 freebsd-*)
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14852 need_version=yes
14853 ;;
14854 esac
14855 shlibpath_var=LD_LIBRARY_PATH
14856 case $host_os in
14857 freebsd2.*)
14858 shlibpath_overrides_runpath=yes
14859 ;;
14860 freebsd3.[01]* | freebsdelf3.[01]*)
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14863 ;;
14864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14868 ;;
14869 *) # from 4.6 on, and DragonFly
14870 shlibpath_overrides_runpath=yes
14871 hardcode_into_libs=yes
14872 ;;
14873 esac
14874 ;;
f35db108 14875
c915a581
JJ
14876gnu*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 hardcode_into_libs=yes
14884 ;;
14885
14886haiku*)
14887 version_type=linux
14888 need_lib_prefix=no
14889 need_version=no
14890 dynamic_linker="$host_os runtime_loader"
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14896 hardcode_into_libs=yes
14897 ;;
14898
14899hpux9* | hpux10* | hpux11*)
14900 # Give a soname corresponding to the major version so that dld.sl refuses to
14901 # link against other versions.
14902 version_type=sunos
14903 need_lib_prefix=no
14904 need_version=no
14905 case $host_cpu in
14906 ia64*)
14907 shrext_cmds='.so'
14908 hardcode_into_libs=yes
14909 dynamic_linker="$host_os dld.so"
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 if test "X$HPUX_IA64_MODE" = X32; then
14915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14916 else
14917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14918 fi
14919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14920 ;;
14921 hppa*64*)
14922 shrext_cmds='.sl'
14923 hardcode_into_libs=yes
14924 dynamic_linker="$host_os dld.sl"
14925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
f35db108
WM
14931 ;;
14932 *)
c915a581
JJ
14933 shrext_cmds='.sl'
14934 dynamic_linker="$host_os dld.sl"
14935 shlibpath_var=SHLIB_PATH
14936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
f35db108 14939 ;;
c915a581
JJ
14940 esac
14941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14942 postinstall_cmds='chmod 555 $lib'
14943 # or fails outright, so override atomically:
14944 install_override_mode=555
14945 ;;
a2479b3d 14946
c915a581
JJ
14947interix[3-9]*)
14948 version_type=linux
14949 need_lib_prefix=no
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=no
14956 hardcode_into_libs=yes
14957 ;;
f35db108 14958
c915a581
JJ
14959irix5* | irix6* | nonstopux*)
14960 case $host_os in
14961 nonstopux*) version_type=nonstopux ;;
14962 *)
14963 if test "$lt_cv_prog_gnu_ld" = yes; then
14964 version_type=linux
14965 else
14966 version_type=irix
14967 fi ;;
14968 esac
14969 need_lib_prefix=no
14970 need_version=no
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14973 case $host_os in
14974 irix5* | nonstopux*)
14975 libsuff= shlibsuff=
14976 ;;
14977 *)
14978 case $LD in # libtool.m4 will add one of these switches to LD
14979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14980 libsuff= shlibsuff= libmagic=32-bit;;
14981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14982 libsuff=32 shlibsuff=N32 libmagic=N32;;
14983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14985 *) libsuff= shlibsuff= libmagic=never-match;;
14986 esac
14987 ;;
14988 esac
14989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14990 shlibpath_overrides_runpath=no
14991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14993 hardcode_into_libs=yes
14994 ;;
f35db108 14995
c915a581
JJ
14996# No shared lib support for Linux oldld, aout, or coff.
14997linux*oldld* | linux*aout* | linux*coff*)
14998 dynamic_linker=no
14999 ;;
15000
15001# This must be Linux ELF.
15002linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=no
15011
15012 # Some binutils ld are patched to set DT_RUNPATH
15013 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
f35db108
WM
15014 $as_echo_n "(cached) " >&6
15015else
c915a581
JJ
15016 lt_cv_shlibpath_overrides_runpath=no
15017 save_LDFLAGS=$LDFLAGS
15018 save_libdir=$libdir
15019 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15020 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h. */
15023
15024int
15025main ()
15026{
f35db108 15027
c915a581
JJ
15028 ;
15029 return 0;
15030}
15031_ACEOF
15032if ac_fn_cxx_try_link "$LINENO"; then :
15033 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15034 lt_cv_shlibpath_overrides_runpath=yes
15035fi
f35db108 15036fi
c915a581
JJ
15037rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LDFLAGS=$save_LDFLAGS
15040 libdir=$save_libdir
f35db108 15041
f35db108
WM
15042fi
15043
c915a581 15044 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
f35db108 15045
c915a581
JJ
15046 # This implies no fast_install, which is unacceptable.
15047 # Some rework will be needed to allow for fast_install
15048 # before this can be enabled.
15049 hardcode_into_libs=yes
f35db108 15050
c915a581
JJ
15051 # Append ld.so.conf contents to the search path
15052 if test -f /etc/ld.so.conf; then
15053 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' ' '`
15054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15055 fi
f35db108 15056
c915a581
JJ
15057 # We used to test for /lib/ld.so.1 and disable shared libraries on
15058 # powerpc, because MkLinux only supported shared libraries with the
15059 # GNU dynamic linker. Since this was broken with cross compilers,
15060 # most powerpc-linux boxes support dynamic linking these days and
15061 # people can always --disable-shared, the test was removed, and we
15062 # assume the GNU/Linux dynamic linker is in use.
15063 dynamic_linker='GNU/Linux ld.so'
15064 ;;
f35db108 15065
c915a581
JJ
15066netbsd*)
15067 version_type=sunos
15068 need_lib_prefix=no
15069 need_version=no
15070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073 dynamic_linker='NetBSD (a.out) ld.so'
15074 else
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 dynamic_linker='NetBSD ld.elf_so'
15078 fi
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15082 ;;
f35db108 15083
c915a581
JJ
15084newsos6)
15085 version_type=linux
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15089 ;;
15090
15091*nto* | *qnx*)
15092 version_type=qnx
15093 need_lib_prefix=no
15094 need_version=no
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=no
15099 hardcode_into_libs=yes
15100 dynamic_linker='ldqnx.so'
15101 ;;
15102
15103openbsd*)
15104 version_type=sunos
15105 sys_lib_dlsearch_path_spec="/usr/lib"
15106 need_lib_prefix=no
15107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15108 case $host_os in
15109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15110 *) need_version=no ;;
15111 esac
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15116 case $host_os in
15117 openbsd2.[89] | openbsd2.[89].*)
15118 shlibpath_overrides_runpath=no
15119 ;;
15120 *)
15121 shlibpath_overrides_runpath=yes
15122 ;;
15123 esac
15124 else
15125 shlibpath_overrides_runpath=yes
15126 fi
15127 ;;
f35db108 15128
c915a581
JJ
15129os2*)
15130 libname_spec='$name'
15131 shrext_cmds=".dll"
15132 need_lib_prefix=no
15133 library_names_spec='$libname${shared_ext} $libname.a'
15134 dynamic_linker='OS/2 ld.exe'
15135 shlibpath_var=LIBPATH
15136 ;;
f35db108 15137
c915a581
JJ
15138osf3* | osf4* | osf5*)
15139 version_type=osf
15140 need_lib_prefix=no
15141 need_version=no
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15147 ;;
f35db108 15148
c915a581
JJ
15149rdos*)
15150 dynamic_linker=no
15151 ;;
f35db108 15152
c915a581
JJ
15153solaris*)
15154 version_type=linux
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 hardcode_into_libs=yes
15162 # ldd complains unless libraries are executable
15163 postinstall_cmds='chmod +x $lib'
15164 ;;
f35db108 15165
c915a581
JJ
15166sunos4*)
15167 version_type=sunos
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes
15172 if test "$with_gnu_ld" = yes; then
15173 need_lib_prefix=no
15174 fi
15175 need_version=yes
15176 ;;
f35db108 15177
c915a581
JJ
15178sysv4 | sysv4.3*)
15179 version_type=linux
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 case $host_vendor in
15184 sni)
15185 shlibpath_overrides_runpath=no
15186 need_lib_prefix=no
15187 runpath_var=LD_RUN_PATH
15188 ;;
15189 siemens)
15190 need_lib_prefix=no
15191 ;;
15192 motorola)
15193 need_lib_prefix=no
15194 need_version=no
15195 shlibpath_overrides_runpath=no
15196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15197 ;;
15198 esac
15199 ;;
15200
15201sysv4*MP*)
15202 if test -d /usr/nec ;then
15203 version_type=linux
15204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205 soname_spec='$libname${shared_ext}.$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 fi
15208 ;;
f35db108 15209
c915a581
JJ
15210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211 version_type=freebsd-elf
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 if test "$with_gnu_ld" = yes; then
15220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15221 else
15222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223 case $host_os in
15224 sco3.2v5*)
15225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15226 ;;
15227 esac
15228 fi
15229 sys_lib_dlsearch_path_spec='/usr/lib'
15230 ;;
f35db108 15231
c915a581
JJ
15232tpf*)
15233 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15234 version_type=linux
15235 need_lib_prefix=no
15236 need_version=no
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=no
15240 hardcode_into_libs=yes
15241 ;;
f35db108 15242
c915a581
JJ
15243uts4*)
15244 version_type=linux
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 ;;
f35db108 15249
c915a581
JJ
15250*)
15251 dynamic_linker=no
15252 ;;
15253esac
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15255$as_echo "$dynamic_linker" >&6; }
15256test "$dynamic_linker" = no && can_build_shared=no
f35db108 15257
c915a581
JJ
15258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15259if test "$GCC" = yes; then
15260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f35db108 15261fi
f35db108 15262
c915a581
JJ
15263if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15265fi
15266if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15268fi
f35db108
WM
15269
15270
f35db108
WM
15271
15272
15273
f35db108 15274
f35db108 15275
f35db108 15276
f35db108
WM
15277
15278
15279
15280
15281
15282
f35db108 15283
f35db108 15284
f35db108 15285
f35db108
WM
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
c915a581
JJ
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15308$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15309hardcode_action_CXX=
15310if test -n "$hardcode_libdir_flag_spec_CXX" ||
15311 test -n "$runpath_var_CXX" ||
15312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
f35db108 15313
c915a581
JJ
15314 # We can hardcode non-existent directories.
15315 if test "$hardcode_direct_CXX" != no &&
15316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15317 # have to relink, otherwise we might link with an installed library
15318 # when we should be linking with a yet-to-be-installed one
15319 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15320 test "$hardcode_minus_L_CXX" != no; then
15321 # Linking always hardcodes the temporary library directory.
15322 hardcode_action_CXX=relink
15323 else
15324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15325 hardcode_action_CXX=immediate
15326 fi
15327else
15328 # We cannot hardcode anything, or else we can only hardcode existing
15329 # directories.
15330 hardcode_action_CXX=unsupported
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15333$as_echo "$hardcode_action_CXX" >&6; }
f35db108 15334
c915a581
JJ
15335if test "$hardcode_action_CXX" = relink ||
15336 test "$inherit_rpath_CXX" = yes; then
15337 # Fast installation is not supported
15338 enable_fast_install=no
15339elif test "$shlibpath_overrides_runpath" = yes ||
15340 test "$enable_shared" = no; then
15341 # Fast installation is not necessary
15342 enable_fast_install=needless
15343fi
f35db108
WM
15344
15345
15346
15347
15348
15349
15350
c915a581 15351 fi # test -n "$compiler"
f35db108 15352
c915a581
JJ
15353 CC=$lt_save_CC
15354 LDCXX=$LD
15355 LD=$lt_save_LD
15356 GCC=$lt_save_GCC
15357 with_gnu_ld=$lt_save_with_gnu_ld
15358 lt_cv_path_LDCXX=$lt_cv_path_LD
15359 lt_cv_path_LD=$lt_save_path_LD
15360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15362fi # test "$_lt_caught_CXX_error" != yes
f35db108 15363
c915a581
JJ
15364ac_ext=c
15365ac_cpp='$CPP $CPPFLAGS'
15366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368ac_compiler_gnu=$ac_cv_c_compiler_gnu
f35db108
WM
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
c915a581 15382 ac_config_commands="$ac_config_commands libtool"
f35db108
WM
15383
15384
15385
15386
c915a581 15387# Only expand once:
f35db108
WM
15388
15389
15390
c915a581
JJ
15391for ac_prog in gawk mawk nawk awk
15392do
15393 # Extract the first word of "$ac_prog", so it can be a program name with args.
15394set dummy $ac_prog; ac_word=$2
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396$as_echo_n "checking for $ac_word... " >&6; }
15397if test "${ac_cv_prog_AWK+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15399else
15400 if test -n "$AWK"; then
15401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15402else
15403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404for as_dir in $PATH
15405do
15406 IFS=$as_save_IFS
15407 test -z "$as_dir" && as_dir=.
15408 for ac_exec_ext in '' $ac_executable_extensions; do
15409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15410 ac_cv_prog_AWK="$ac_prog"
15411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412 break 2
15413 fi
15414done
15415 done
15416IFS=$as_save_IFS
f35db108 15417
c915a581
JJ
15418fi
15419fi
15420AWK=$ac_cv_prog_AWK
15421if test -n "$AWK"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15423$as_echo "$AWK" >&6; }
15424else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427fi
f35db108
WM
15428
15429
c915a581
JJ
15430 test -n "$AWK" && break
15431done
f35db108 15432
c915a581
JJ
15433case "$AWK" in
15434"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15435esac
f35db108
WM
15436
15437
15438
a2479b3d 15439
c915a581
JJ
15440# The cast to long int works around a bug in the HP C Compiler
15441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15443# This bug is HP SR number 8606223364.
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15445$as_echo_n "checking size of void *... " >&6; }
15446if test "${ac_cv_sizeof_void_p+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448else
15449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
a2479b3d 15450
c915a581
JJ
15451else
15452 if test "$ac_cv_type_void_p" = yes; then
15453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15455{ as_fn_set_status 77
15456as_fn_error "cannot compute sizeof (void *)
15457See \`config.log' for more details." "$LINENO" 5; }; }
15458 else
15459 ac_cv_sizeof_void_p=0
15460 fi
15461fi
f35db108 15462
c915a581
JJ
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15465$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
15466
15467
f35db108 15468
c915a581
JJ
15469cat >>confdefs.h <<_ACEOF
15470#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15471_ACEOF
f35db108 15472
f35db108 15473
f35db108 15474
c915a581
JJ
15475if test "${multilib}" = "yes"; then
15476 multilib_arg="--enable-multilib"
15477else
15478 multilib_arg=
15479fi
f35db108 15480
c915a581
JJ
15481# Get target configury.
15482unset TSAN_SUPPORTED
15483unset LSAN_SUPPORTED
15484. ${srcdir}/configure.tgt
15485 if test "x$TSAN_SUPPORTED" = "xyes"; then
15486 TSAN_SUPPORTED_TRUE=
15487 TSAN_SUPPORTED_FALSE='#'
15488else
15489 TSAN_SUPPORTED_TRUE='#'
15490 TSAN_SUPPORTED_FALSE=
15491fi
f35db108 15492
c915a581
JJ
15493 if test "x$LSAN_SUPPORTED" = "xyes"; then
15494 LSAN_SUPPORTED_TRUE=
15495 LSAN_SUPPORTED_FALSE='#'
15496else
15497 LSAN_SUPPORTED_TRUE='#'
15498 LSAN_SUPPORTED_FALSE=
15499fi
f35db108 15500
f35db108 15501
c915a581
JJ
15502# Check for functions needed.
15503for ac_func in clock_getres clock_gettime clock_settime
15504do :
15505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15507eval as_val=\$$as_ac_var
15508 if test "x$as_val" = x""yes; then :
15509 cat >>confdefs.h <<_ACEOF
15510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511_ACEOF
f35db108 15512
c915a581
JJ
15513fi
15514done
f35db108 15515
f35db108 15516
c915a581 15517# Common libraries that we need to link against for all sanitizer libs.
bf93d543 15518link_sanitizer_common='-lpthread -lm'
692b1131
MO
15519
15520# At least for glibc, shm_open is in librt. But don't pull that
15521# in if it still doesn't give us the function we want. This
15522# test is copied from libgomp.
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15524$as_echo_n "checking for shm_open in -lrt... " >&6; }
15525if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
15526 $as_echo_n "(cached) " >&6
15527else
15528 ac_check_lib_save_LIBS=$LIBS
15529LIBS="-lrt $LIBS"
15530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531/* end confdefs.h. */
15532
15533/* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15536#ifdef __cplusplus
15537extern "C"
15538#endif
15539char shm_open ();
15540int
15541main ()
15542{
15543return shm_open ();
15544 ;
15545 return 0;
15546}
15547_ACEOF
15548if ac_fn_c_try_link "$LINENO"; then :
15549 ac_cv_lib_rt_shm_open=yes
15550else
15551 ac_cv_lib_rt_shm_open=no
15552fi
15553rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555LIBS=$ac_check_lib_save_LIBS
15556fi
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15558$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15559if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
15560 link_sanitizer_common="-lrt $link_sanitizer_common"
15561fi
15562
f35db108 15563
bf93d543
AT
15564# Do a configure time check for -ldl
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15566$as_echo_n "checking for dlsym in -ldl... " >&6; }
15567if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569else
15570 ac_check_lib_save_LIBS=$LIBS
15571LIBS="-ldl $LIBS"
15572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h. */
15574
15575/* Override any GCC internal prototype to avoid an error.
15576 Use char because int might match the return type of a GCC
15577 builtin and then its argument prototype would still apply. */
15578#ifdef __cplusplus
15579extern "C"
15580#endif
15581char dlsym ();
15582int
15583main ()
15584{
15585return dlsym ();
15586 ;
15587 return 0;
15588}
15589_ACEOF
15590if ac_fn_c_try_link "$LINENO"; then :
15591 ac_cv_lib_dl_dlsym=yes
15592else
15593 ac_cv_lib_dl_dlsym=no
15594fi
15595rm -f core conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15597LIBS=$ac_check_lib_save_LIBS
15598fi
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15600$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15601if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15602 link_sanitizer_common="-ldl $link_sanitizer_common"
15603fi
15604
15605
c915a581
JJ
15606# Set up the set of additional libraries that we need to link against for libasan.
15607link_libasan=$link_sanitizer_common
f35db108 15608
f35db108 15609
c915a581
JJ
15610# Set up the set of additional libraries that we need to link against for libtsan.
15611link_libtsan=$link_sanitizer_common
f35db108 15612
f35db108 15613
c915a581
JJ
15614# Set up the set of additional libraries that we need to link against for libubsan.
15615link_libubsan=$link_sanitizer_common
f35db108 15616
f35db108 15617
c915a581
JJ
15618# Set up the set of additional libraries that we need to link against for liblsan.
15619link_liblsan=$link_sanitizer_common
f35db108 15620
f35db108 15621
692b1131
MO
15622
15623# At least for glibc, clock_gettime is in librt. But don't pull that
15624# in if it still doesn't give us the function we want. This
15625# test is copied from libgomp.
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15627$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15628if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15629 $as_echo_n "(cached) " >&6
15630else
15631 ac_check_lib_save_LIBS=$LIBS
15632LIBS="-lrt $LIBS"
15633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h. */
15635
15636/* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639#ifdef __cplusplus
15640extern "C"
15641#endif
15642char clock_gettime ();
15643int
15644main ()
15645{
15646return clock_gettime ();
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651if ac_fn_c_try_link "$LINENO"; then :
15652 ac_cv_lib_rt_clock_gettime=yes
15653else
15654 ac_cv_lib_rt_clock_gettime=no
15655fi
15656rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15658LIBS=$ac_check_lib_save_LIBS
15659fi
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15661$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15662if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15663 link_libasan="-lrt $link_libasan"
15664link_libtsan="-lrt $link_libtsan"
15665# Other sanitizers do not override clock_* API
15666
15667fi
15668
15669
c915a581 15670case "$host" in
692b1131
MO
15671 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15672 *) MAC_INTERPOSE=false ;;
c915a581
JJ
15673esac
15674 if $MAC_INTERPOSE; then
15675 USING_MAC_INTERPOSE_TRUE=
15676 USING_MAC_INTERPOSE_FALSE='#'
15677else
15678 USING_MAC_INTERPOSE_TRUE='#'
15679 USING_MAC_INTERPOSE_FALSE=
15680fi
f35db108 15681
c915a581
JJ
15682
15683backtrace_supported=yes
15684
4a7eaf5f
YG
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15686$as_echo_n "checking for necessary platform features... " >&6; }
15687case "$target" in
15688 *-*-linux*)
15689 # Some old Linux distributions miss required syscalls.
15690 sanitizer_supported=no
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h. */
15693#include <sys/syscall.h>
15694int
15695main ()
15696{
15697
15698 syscall (__NR_gettid);
15699 syscall (__NR_futex);
15700 syscall (__NR_exit_group);
15701
15702 ;
15703 return 0;
15704}
15705_ACEOF
15706if ac_fn_c_try_compile "$LINENO"; then :
15707 sanitizer_supported=yes
15708fi
15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 ;;
15711 *)
15712 sanitizer_supported=yes
15713 ;;
15714esac
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15716$as_echo "$sanitizer_supported" >&6; }
15717 if test "$sanitizer_supported" = yes; then
15718 SANITIZER_SUPPORTED_TRUE=
15719 SANITIZER_SUPPORTED_FALSE='#'
15720else
15721 SANITIZER_SUPPORTED_TRUE='#'
15722 SANITIZER_SUPPORTED_FALSE=
15723fi
15724
15725
c915a581
JJ
15726# Test for __sync support.
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15728$as_echo_n "checking __sync extensions... " >&6; }
15729if test "${libsanitizer_cv_sys_sync+set}" = set; then :
f35db108
WM
15730 $as_echo_n "(cached) " >&6
15731else
c915a581
JJ
15732 if test -n "${with_target_subdir}"; then
15733 libsanitizer_cv_sys_sync=yes
15734 else
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 15736/* end confdefs.h. */
c915a581 15737int i;
f35db108
WM
15738int
15739main ()
15740{
c915a581
JJ
15741__sync_bool_compare_and_swap (&i, i, i);
15742 __sync_lock_test_and_set (&i, 1);
15743 __sync_lock_release (&i);
f35db108
WM
15744 ;
15745 return 0;
15746}
15747_ACEOF
c915a581
JJ
15748if ac_fn_c_try_link "$LINENO"; then :
15749 libsanitizer_cv_sys_sync=yes
15750else
15751 libsanitizer_cv_sys_sync=no
f35db108
WM
15752fi
15753rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
c915a581 15755 fi
f35db108 15756fi
c915a581
JJ
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15758$as_echo "$libsanitizer_cv_sys_sync" >&6; }
15759if test "$libsanitizer_cv_sys_sync" = "yes"; then
f35db108 15760
c915a581 15761$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
f35db108 15762
f35db108
WM
15763fi
15764
c915a581
JJ
15765# Test for __atomic support.
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15767$as_echo_n "checking __atomic extensions... " >&6; }
15768if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15769 $as_echo_n "(cached) " >&6
15770else
15771 if test -n "${with_target_subdir}"; then
15772 libsanitizer_cv_sys_atomic=yes
15773 else
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h. */
15776int i;
15777int
15778main ()
15779{
15780__atomic_load_n (&i, __ATOMIC_ACQUIRE);
15781 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786if ac_fn_c_try_link "$LINENO"; then :
15787 libsanitizer_cv_sys_atomic=yes
15788else
15789 libsanitizer_cv_sys_atomic=no
f35db108 15790fi
c915a581
JJ
15791rm -f core conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 fi
f35db108 15794fi
c915a581
JJ
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15796$as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15797if test "$libsanitizer_cv_sys_atomic" = "yes"; then
f35db108 15798
c915a581 15799$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
f35db108 15800
c915a581 15801fi
f35db108 15802
c915a581
JJ
15803# The library needs to be able to read the executable itself. Compile
15804# a file to determine the executable format. The awk script
15805# filetype.awk prints out the file type.
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15807$as_echo_n "checking output filetype... " >&6; }
15808if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15809 $as_echo_n "(cached) " >&6
15810else
15811 filetype=
15812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h. */
15814int i;
15815int
15816main ()
15817{
15818int j;
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823if ac_fn_c_try_compile "$LINENO"; then :
15824 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15825else
15826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828as_fn_error "compiler failed
15829See \`config.log' for more details." "$LINENO" 5; }
15830fi
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832libsanitizer_cv_sys_filetype=$filetype
15833fi
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15835$as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15836
15837# Match the file type to decide what files to compile.
15838FORMAT_FILE=
15839case "$libsanitizer_cv_sys_filetype" in
15840elf*) FORMAT_FILE="elf.lo" ;;
15841*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15842$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15843 FORMAT_FILE="unknown.lo"
15844 backtrace_supported=no
15845 ;;
15846esac
f35db108
WM
15847
15848
c915a581
JJ
15849# ELF defines.
15850elfsize=
15851case "$libsanitizer_cv_sys_filetype" in
15852elf32) elfsize=32 ;;
15853elf64) elfsize=64 ;;
15854esac
f35db108 15855
c915a581
JJ
15856cat >>confdefs.h <<_ACEOF
15857#define BACKTRACE_ELF_SIZE $elfsize
15858_ACEOF
f35db108
WM
15859
15860
c915a581
JJ
15861BACKTRACE_SUPPORTED=0
15862if test "$backtrace_supported" = "yes"; then
15863 BACKTRACE_SUPPORTED=1
15864fi
f35db108
WM
15865
15866
15867
15868
c915a581 15869inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
f35db108 15870
c915a581
JJ
15871acx_cv_header_stdint=stddef.h
15872acx_cv_header_stdint_kind="(already complete)"
15873for i in stdint.h $inttype_headers; do
15874 unset ac_cv_type_uintptr_t
15875 unset ac_cv_type_uintmax_t
15876 unset ac_cv_type_int_least32_t
15877 unset ac_cv_type_int_fast32_t
15878 unset ac_cv_type_uint64_t
15879 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15880 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15881#include <$i>
15882"
15883if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15884 acx_cv_header_stdint=$i
15885else
15886 continue
15887fi
f35db108 15888
c915a581
JJ
15889 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15890#include <$i>
15891"
15892if test "x$ac_cv_type_uintptr_t" = x""yes; then :
f35db108 15893
c915a581
JJ
15894else
15895 acx_cv_header_stdint_kind="(mostly complete)"
15896fi
f35db108 15897
c915a581
JJ
15898 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15899#include <$i>
15900"
15901if test "x$ac_cv_type_int_least32_t" = x""yes; then :
f35db108 15902
c915a581
JJ
15903else
15904 acx_cv_header_stdint_kind="(mostly complete)"
15905fi
f35db108 15906
c915a581
JJ
15907 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15908#include <$i>
15909"
15910if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f35db108 15911
c915a581
JJ
15912else
15913 acx_cv_header_stdint_kind="(mostly complete)"
15914fi
f35db108 15915
c915a581
JJ
15916 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15917#include <$i>
15918"
15919if test "x$ac_cv_type_uint64_t" = x""yes; then :
f35db108 15920
c915a581
JJ
15921else
15922 acx_cv_header_stdint_kind="(lacks uint64_t)"
15923fi
f35db108 15924
c915a581
JJ
15925 break
15926done
15927if test "$acx_cv_header_stdint" = stddef.h; then
15928 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15929 for i in stdint.h $inttype_headers; do
15930 unset ac_cv_type_uintptr_t
15931 unset ac_cv_type_uint32_t
15932 unset ac_cv_type_uint64_t
15933 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15934 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15935#include <$i>
15936"
15937if test "x$ac_cv_type_uint32_t" = x""yes; then :
15938 acx_cv_header_stdint=$i
15939else
15940 continue
15941fi
f35db108 15942
c915a581
JJ
15943 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15944#include <$i>
15945"
15946if test "x$ac_cv_type_uint64_t" = x""yes; then :
f35db108 15947
c915a581 15948fi
f35db108 15949
c915a581
JJ
15950 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15951#include <$i>
15952"
15953if test "x$ac_cv_type_uintptr_t" = x""yes; then :
f35db108 15954
c915a581 15955fi
f35db108 15956
c915a581
JJ
15957 break
15958 done
15959fi
15960if test "$acx_cv_header_stdint" = stddef.h; then
15961 acx_cv_header_stdint_kind="(u_intXX_t style)"
15962 for i in sys/types.h $inttype_headers; do
15963 unset ac_cv_type_u_int32_t
15964 unset ac_cv_type_u_int64_t
15965 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15966 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15967#include <$i>
15968"
15969if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15970 acx_cv_header_stdint=$i
15971else
15972 continue
15973fi
f35db108 15974
c915a581
JJ
15975 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15976#include <$i>
15977"
15978if test "x$ac_cv_type_u_int64_t" = x""yes; then :
f35db108 15979
c915a581 15980fi
f35db108 15981
c915a581
JJ
15982 break
15983 done
15984fi
15985if test "$acx_cv_header_stdint" = stddef.h; then
15986 acx_cv_header_stdint_kind="(using manual detection)"
15987fi
f35db108 15988
c915a581
JJ
15989test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15990test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15991test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15992test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15993test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
f35db108 15994
c915a581 15995# ----------------- Summarize what we found so far
f35db108 15996
c915a581
JJ
15997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15998$as_echo_n "checking what to include in gstdint.h... " >&6; }
f35db108 15999
c915a581
JJ
16000case `$as_basename -- gstdint.h ||
16001$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16002 Xgstdint.h : 'X\(//\)$' \| \
16003 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16004$as_echo X/gstdint.h |
16005 sed '/^.*\/\([^/][^/]*\)\/*$/{
16006 s//\1/
16007 q
16008 }
16009 /^X\/\(\/\/\)$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\/\(\/\).*/{
16014 s//\1/
16015 q
16016 }
16017 s/.*/./; q'` in
16018 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16019$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16020 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16021$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16022 *) ;;
16023esac
f35db108 16024
c915a581
JJ
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16026$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
f35db108 16027
c915a581 16028# ----------------- done included file, check C basic types --------
f35db108 16029
c915a581
JJ
16030# Lacking an uintptr_t? Test size of void *
16031case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16032 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16035# This bug is HP SR number 8606223364.
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16037$as_echo_n "checking size of void *... " >&6; }
16038if test "${ac_cv_sizeof_void_p+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040else
16041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
f35db108 16042
f35db108 16043else
c915a581
JJ
16044 if test "$ac_cv_type_void_p" = yes; then
16045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16047{ as_fn_set_status 77
16048as_fn_error "cannot compute sizeof (void *)
16049See \`config.log' for more details." "$LINENO" 5; }; }
16050 else
16051 ac_cv_sizeof_void_p=0
16052 fi
f35db108 16053fi
f35db108 16054
f35db108 16055fi
c915a581
JJ
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16057$as_echo "$ac_cv_sizeof_void_p" >&6; }
f35db108
WM
16058
16059
16060
c915a581
JJ
16061cat >>confdefs.h <<_ACEOF
16062#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16063_ACEOF
f35db108 16064
c915a581
JJ
16065 ;;
16066esac
f35db108 16067
c915a581
JJ
16068# Lacking an uint64_t? Test size of long
16069case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16070 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073# This bug is HP SR number 8606223364.
16074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16075$as_echo_n "checking size of long... " >&6; }
16076if test "${ac_cv_sizeof_long+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16078else
16079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
f35db108 16080
c915a581
JJ
16081else
16082 if test "$ac_cv_type_long" = yes; then
16083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16085{ as_fn_set_status 77
16086as_fn_error "cannot compute sizeof (long)
16087See \`config.log' for more details." "$LINENO" 5; }; }
16088 else
16089 ac_cv_sizeof_long=0
16090 fi
16091fi
f35db108 16092
c915a581
JJ
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16095$as_echo "$ac_cv_sizeof_long" >&6; }
f35db108
WM
16096
16097
16098
c915a581
JJ
16099cat >>confdefs.h <<_ACEOF
16100#define SIZEOF_LONG $ac_cv_sizeof_long
16101_ACEOF
f35db108 16102
c915a581
JJ
16103 ;;
16104esac
f35db108 16105
c915a581
JJ
16106if test $acx_cv_header_stdint = stddef.h; then
16107 # Lacking a good header? Test size of everything and deduce all types.
16108 # The cast to long int works around a bug in the HP C Compiler
16109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16111# This bug is HP SR number 8606223364.
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16113$as_echo_n "checking size of int... " >&6; }
16114if test "${ac_cv_sizeof_int+set}" = set; then :
16115 $as_echo_n "(cached) " >&6
16116else
16117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
f35db108 16118
c915a581
JJ
16119else
16120 if test "$ac_cv_type_int" = yes; then
16121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16123{ as_fn_set_status 77
16124as_fn_error "cannot compute sizeof (int)
16125See \`config.log' for more details." "$LINENO" 5; }; }
16126 else
16127 ac_cv_sizeof_int=0
16128 fi
16129fi
f35db108 16130
c915a581
JJ
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16133$as_echo "$ac_cv_sizeof_int" >&6; }
f35db108
WM
16134
16135
f35db108 16136
c915a581
JJ
16137cat >>confdefs.h <<_ACEOF
16138#define SIZEOF_INT $ac_cv_sizeof_int
16139_ACEOF
f35db108
WM
16140
16141
c915a581
JJ
16142 # The cast to long int works around a bug in the HP C Compiler
16143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145# This bug is HP SR number 8606223364.
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16147$as_echo_n "checking size of short... " >&6; }
16148if test "${ac_cv_sizeof_short+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16150else
16151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
f35db108 16152
c915a581
JJ
16153else
16154 if test "$ac_cv_type_short" = yes; then
16155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16157{ as_fn_set_status 77
16158as_fn_error "cannot compute sizeof (short)
16159See \`config.log' for more details." "$LINENO" 5; }; }
16160 else
16161 ac_cv_sizeof_short=0
16162 fi
16163fi
f35db108 16164
c915a581
JJ
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16167$as_echo "$ac_cv_sizeof_short" >&6; }
f35db108
WM
16168
16169
16170
c915a581
JJ
16171cat >>confdefs.h <<_ACEOF
16172#define SIZEOF_SHORT $ac_cv_sizeof_short
16173_ACEOF
f35db108
WM
16174
16175
c915a581 16176 # The cast to long int works around a bug in the HP C Compiler
64548f3b
JJ
16177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16179# This bug is HP SR number 8606223364.
c915a581
JJ
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16181$as_echo_n "checking size of char... " >&6; }
16182if test "${ac_cv_sizeof_char+set}" = set; then :
64548f3b
JJ
16183 $as_echo_n "(cached) " >&6
16184else
c915a581 16185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
64548f3b
JJ
16186
16187else
c915a581 16188 if test "$ac_cv_type_char" = yes; then
64548f3b
JJ
16189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16191{ as_fn_set_status 77
c915a581 16192as_fn_error "cannot compute sizeof (char)
64548f3b
JJ
16193See \`config.log' for more details." "$LINENO" 5; }; }
16194 else
c915a581 16195 ac_cv_sizeof_char=0
64548f3b
JJ
16196 fi
16197fi
16198
16199fi
c915a581
JJ
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16201$as_echo "$ac_cv_sizeof_char" >&6; }
16202
16203
16204
16205cat >>confdefs.h <<_ACEOF
16206#define SIZEOF_CHAR $ac_cv_sizeof_char
16207_ACEOF
16208
16209
16210
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16212$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16213 case "$ac_cv_sizeof_char" in
16214 1) acx_cv_type_int8_t=char ;;
16215 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16216 esac
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16218$as_echo "$acx_cv_type_int8_t" >&6; }
16219
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16221$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16222 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16223 2:*) acx_cv_type_int16_t=int ;;
16224 *:2) acx_cv_type_int16_t=short ;;
16225 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16226 esac
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16228$as_echo "$acx_cv_type_int16_t" >&6; }
16229
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16231$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16232 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16233 4:*) acx_cv_type_int32_t=int ;;
16234 *:4) acx_cv_type_int32_t=long ;;
16235 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16236 esac
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16238$as_echo "$acx_cv_type_int32_t" >&6; }
16239fi
16240
16241# These tests are here to make the output prettier
16242
16243if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16244 case "$ac_cv_sizeof_long" in
16245 8) acx_cv_type_int64_t=long ;;
16246 esac
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16248$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16250$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16251fi
16252
16253# Now we can use the above types
16254
16255if test "$ac_cv_type_uintptr_t" != yes; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16257$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16258 case $ac_cv_sizeof_void_p in
16259 2) acx_cv_type_intptr_t=int16_t ;;
16260 4) acx_cv_type_intptr_t=int32_t ;;
16261 8) acx_cv_type_intptr_t=int64_t ;;
16262 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16263 esac
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16265$as_echo "$acx_cv_type_intptr_t" >&6; }
16266fi
16267
16268# ----------------- done all checks, emit header -------------
16269ac_config_commands="$ac_config_commands gstdint.h"
16270
16271
16272
16273
b5f58ba3 16274for ac_header in sys/mman.h alloca.h
c915a581 16275do :
b5f58ba3
JJ
16276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16278eval as_val=\$$as_ac_Header
16279 if test "x$as_val" = x""yes; then :
c915a581 16280 cat >>confdefs.h <<_ACEOF
b5f58ba3 16281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
c915a581
JJ
16282_ACEOF
16283
16284fi
16285
16286done
16287
16288if test "$ac_cv_header_sys_mman_h" = "no"; then
16289 have_mmap=no
16290else
16291 if test -n "${with_target_subdir}"; then
16292 # When built as a GCC target library, we can't do a link test. We
16293 # simply assume that if we have mman.h, we have mmap.
16294 have_mmap=yes
16295 else
16296 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16297if test "x$ac_cv_func_mmap" = x""yes; then :
16298 have_mmap=yes
16299else
16300 have_mmap=no
16301fi
16302
16303 fi
16304fi
16305if test "$have_mmap" = "no"; then
16306 VIEW_FILE=read.lo
16307 ALLOC_FILE=alloc.lo
16308else
16309 VIEW_FILE=mmapio.lo
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h. */
64548f3b 16312
c915a581
JJ
16313#include <sys/mman.h>
16314#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16315 #error no MAP_ANONYMOUS
16316#endif
64548f3b 16317
64548f3b 16318_ACEOF
c915a581
JJ
16319if ac_fn_c_try_cpp "$LINENO"; then :
16320 ALLOC_FILE=mmap.lo
16321else
16322 ALLOC_FILE=alloc.lo
16323fi
16324rm -f conftest.err conftest.$ac_ext
16325fi
64548f3b
JJ
16326
16327
16328
c915a581
JJ
16329BACKTRACE_USES_MALLOC=0
16330if test "$ALLOC_FILE" = "alloc.lo"; then
16331 BACKTRACE_USES_MALLOC=1
2a6346c4 16332fi
64548f3b 16333
cd0be65c 16334
c915a581
JJ
16335# Don't care about thread support
16336BACKTRACE_SUPPORTS_THREADS=0
9065ada9 16337
f35db108 16338
c915a581
JJ
16339# Check for dl_iterate_phdr.
16340for ac_header in link.h
35814b03 16341do :
c915a581
JJ
16342 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16343if test "x$ac_cv_header_link_h" = x""yes; then :
35814b03 16344 cat >>confdefs.h <<_ACEOF
c915a581 16345#define HAVE_LINK_H 1
35814b03
JJ
16346_ACEOF
16347
16348fi
35814b03 16349
c915a581 16350done
35814b03 16351
c915a581
JJ
16352if test "$ac_cv_header_link_h" = "no"; then
16353 have_dl_iterate_phdr=no
16354else
16355 # When built as a GCC target library, we can't do a link test.
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h. */
16358#include <link.h>
35814b03 16359
c915a581
JJ
16360_ACEOF
16361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16362 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16363 have_dl_iterate_phdr=yes
16364else
16365 have_dl_iterate_phdr=no
16366fi
16367rm -f conftest*
35814b03 16368
c915a581
JJ
16369 case "${host}" in
16370 *-*-solaris2.10*)
16371 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16372 # header file but is only in -ldl.
16373 have_dl_iterate_phdr=no ;;
16374 esac
16375fi
16376if test "$have_dl_iterate_phdr" = "yes"; then
35814b03 16377
c915a581 16378$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
35814b03 16379
c915a581 16380fi
35814b03 16381
c915a581
JJ
16382# Check for the fcntl function.
16383if test -n "${with_target_subdir}"; then
16384 case "${host}" in
16385 *-*-mingw*) have_fcntl=no ;;
16386 *) have_fcntl=yes ;;
16387 esac
16388else
16389 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16390if test "x$ac_cv_func_fcntl" = x""yes; then :
16391 have_fcntl=yes
16392else
16393 have_fcntl=no
16394fi
35814b03 16395
c915a581
JJ
16396fi
16397if test "$have_fcntl" = "yes"; then
35814b03 16398
c915a581 16399$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
35814b03 16400
c915a581 16401fi
35814b03 16402
c915a581
JJ
16403ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16404if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16405 ac_have_decl=1
35814b03 16406else
c915a581
JJ
16407 ac_have_decl=0
16408fi
35814b03 16409
c915a581
JJ
16410cat >>confdefs.h <<_ACEOF
16411#define HAVE_DECL_STRNLEN $ac_have_decl
35814b03 16412_ACEOF
c915a581
JJ
16413
16414
16415# Check for getexecname function.
16416if test -n "${with_target_subdir}"; then
16417 case "${host}" in
16418 *-*-solaris2*) have_getexecname=yes ;;
16419 *) have_getexecname=no ;;
16420 esac
35814b03 16421else
c915a581
JJ
16422 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16423if test "x$ac_cv_func_getexecname" = x""yes; then :
16424 have_getexecname=yes
16425else
16426 have_getexecname=no
35814b03 16427fi
35814b03
JJ
16428
16429fi
c915a581
JJ
16430if test "$have_getexecname" = "yes"; then
16431
16432$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
35814b03
JJ
16433
16434fi
16435
d041a6fc
YG
16436# Check for rpc/xdr.h
16437for ac_header in rpc/xdr.h
16438do :
16439 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16440if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then :
16441 cat >>confdefs.h <<_ACEOF
16442#define HAVE_RPC_XDR_H 1
16443_ACEOF
16444
16445fi
16446
16447done
16448
16449if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16450 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16451else
16452 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16453fi
16454
16455# Check for tirpc/rpc/xdr.h
16456for ac_header in tirpc/rpc/xdr.h
16457do :
16458 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16459if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then :
16460 cat >>confdefs.h <<_ACEOF
16461#define HAVE_TIRPC_RPC_XDR_H 1
16462_ACEOF
16463
16464fi
16465
16466done
16467
16468if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16469 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16470else
16471 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16472fi
16473
16474RPC_DEFS=$rpc_defs
16475
16476
c915a581
JJ
16477 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16478 LIBBACKTRACE_SUPPORTED_TRUE=
16479 LIBBACKTRACE_SUPPORTED_FALSE='#'
f246eadc 16480else
c915a581
JJ
16481 LIBBACKTRACE_SUPPORTED_TRUE='#'
16482 LIBBACKTRACE_SUPPORTED_FALSE=
f246eadc
JH
16483fi
16484
16485
f35db108 16486
c915a581
JJ
16487ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16488
16489ac_config_headers="$ac_config_headers config.h"
f35db108 16490
c915a581
JJ
16491
16492ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
f35db108
WM
16493
16494
64548f3b 16495if test "x$TSAN_SUPPORTED" = "xyes"; then
cd0be65c
WM
16496 ac_config_files="$ac_config_files tsan/Makefile"
16497
16498fi
16499
b0edd457
VK
16500
16501
10189819 16502
f35db108
WM
16503cat >confcache <<\_ACEOF
16504# This file is a shell script that caches the results of configure
16505# tests run on this system so they can be shared between configure
16506# scripts and configure runs, see configure's option --config-cache.
16507# It is not useful on other systems. If it contains results you don't
16508# want to keep, you may remove or edit it.
16509#
16510# config.status only pays attention to the cache file if you give it
16511# the --recheck option to rerun configure.
16512#
16513# `ac_cv_env_foo' variables (set or unset) will be overridden when
16514# loading this file, other *unset* `ac_cv_foo' will be assigned the
16515# following values.
16516
16517_ACEOF
16518
16519# The following way of writing the cache mishandles newlines in values,
16520# but we know of no workaround that is simple, portable, and efficient.
16521# So, we kill variables containing newlines.
16522# Ultrix sh set writes to stderr and can't be redirected directly,
16523# and sets the high bit in the cache file unless we assign to the vars.
16524(
16525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16526 eval ac_val=\$$ac_var
16527 case $ac_val in #(
16528 *${as_nl}*)
16529 case $ac_var in #(
16530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16532 esac
16533 case $ac_var in #(
16534 _ | IFS | as_nl) ;; #(
16535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16536 *) { eval $ac_var=; unset $ac_var;} ;;
16537 esac ;;
16538 esac
16539 done
16540
16541 (set) 2>&1 |
16542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16543 *${as_nl}ac_space=\ *)
16544 # `set' does not quote correctly, so add quotes: double-quote
16545 # substitution turns \\\\ into \\, and sed turns \\ into \.
16546 sed -n \
16547 "s/'/'\\\\''/g;
16548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16549 ;; #(
16550 *)
16551 # `set' quotes correctly as required by POSIX, so do not add quotes.
16552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16553 ;;
16554 esac |
16555 sort
16556) |
16557 sed '
16558 /^ac_cv_env_/b end
16559 t clear
16560 :clear
16561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16562 t end
16563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16564 :end' >>confcache
16565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16566 if test -w "$cache_file"; then
a2479b3d 16567 test "x$cache_file" != "x/dev/null" &&
f35db108
WM
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16569$as_echo "$as_me: updating cache $cache_file" >&6;}
a2479b3d 16570 cat confcache >$cache_file
f35db108
WM
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16573$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16574 fi
16575fi
16576rm -f confcache
16577
16578test "x$prefix" = xNONE && prefix=$ac_default_prefix
16579# Let make expand exec_prefix.
16580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16581
c915a581 16582DEFS=-DHAVE_CONFIG_H
f35db108
WM
16583
16584ac_libobjs=
16585ac_ltlibobjs=
f35db108
WM
16586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16587 # 1. Remove the extension, and $U if already installed.
16588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16591 # will be set to the directory where LIBOBJS objects are built.
16592 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16593 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16594done
16595LIBOBJS=$ac_libobjs
16596
16597LTLIBOBJS=$ac_ltlibobjs
16598
16599
c915a581
JJ
16600if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16601 as_fn_error "conditional \"AMDEP\" was never defined.
16602Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603fi
16604if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16605 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16606Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607fi
f35db108
WM
16608 if test -n "$EXEEXT"; then
16609 am__EXEEXT_TRUE=
16610 am__EXEEXT_FALSE='#'
16611else
16612 am__EXEEXT_TRUE='#'
16613 am__EXEEXT_FALSE=
16614fi
16615
2b723e21
TT
16616if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16617 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16618Usually this means the macro was only invoked conditionally." "$LINENO" 5
16619fi
f35db108 16620if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
a2479b3d 16621 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
f35db108
WM
16622Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623fi
16624if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
a2479b3d 16625 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
f35db108
WM
16626Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627fi
64548f3b
JJ
16628if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16629 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
cd0be65c
WM
16630Usually this means the macro was only invoked conditionally." "$LINENO" 5
16631fi
9065ada9
JJ
16632if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16633 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16634Usually this means the macro was only invoked conditionally." "$LINENO" 5
16635fi
8c4d267c
KS
16636if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16637 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
f246eadc
JH
16638Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639fi
4a7eaf5f
YG
16640if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16641 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16642Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643fi
c915a581
JJ
16644if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16645 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16646Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647fi
f35db108 16648
a2479b3d 16649: ${CONFIG_STATUS=./config.status}
f35db108
WM
16650ac_write_fail=0
16651ac_clean_files_save=$ac_clean_files
16652ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16653{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16654$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16655as_write_fail=0
16656cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16657#! $SHELL
16658# Generated by $as_me.
16659# Run this file to recreate the current configuration.
16660# Compiler output produced by configure, useful for debugging
16661# configure, is in config.log if it exists.
16662
16663debug=false
16664ac_cs_recheck=false
16665ac_cs_silent=false
16666
16667SHELL=\${CONFIG_SHELL-$SHELL}
16668export SHELL
16669_ASEOF
16670cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16671## -------------------- ##
16672## M4sh Initialization. ##
16673## -------------------- ##
16674
16675# Be more Bourne compatible
16676DUALCASE=1; export DUALCASE # for MKS sh
16677if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16678 emulate sh
16679 NULLCMD=:
16680 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16681 # is contrary to our usage. Disable this feature.
16682 alias -g '${1+"$@"}'='"$@"'
16683 setopt NO_GLOB_SUBST
16684else
16685 case `(set -o) 2>/dev/null` in #(
16686 *posix*) :
16687 set -o posix ;; #(
16688 *) :
16689 ;;
16690esac
16691fi
16692
16693
16694as_nl='
16695'
16696export as_nl
16697# Printing a long string crashes Solaris 7 /usr/bin/printf.
16698as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16699as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16700as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16701# Prefer a ksh shell builtin over an external printf program on Solaris,
16702# but without wasting forks for bash or zsh.
16703if test -z "$BASH_VERSION$ZSH_VERSION" \
16704 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16705 as_echo='print -r --'
16706 as_echo_n='print -rn --'
16707elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16708 as_echo='printf %s\n'
16709 as_echo_n='printf %s'
16710else
16711 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16712 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16713 as_echo_n='/usr/ucb/echo -n'
16714 else
16715 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16716 as_echo_n_body='eval
16717 arg=$1;
16718 case $arg in #(
16719 *"$as_nl"*)
16720 expr "X$arg" : "X\\(.*\\)$as_nl";
16721 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16722 esac;
16723 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16724 '
16725 export as_echo_n_body
16726 as_echo_n='sh -c $as_echo_n_body as_echo'
16727 fi
16728 export as_echo_body
16729 as_echo='sh -c $as_echo_body as_echo'
16730fi
16731
16732# The user is always right.
16733if test "${PATH_SEPARATOR+set}" != set; then
16734 PATH_SEPARATOR=:
16735 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16736 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16737 PATH_SEPARATOR=';'
16738 }
16739fi
16740
16741
16742# IFS
16743# We need space, tab and new line, in precisely that order. Quoting is
16744# there to prevent editors from complaining about space-tab.
16745# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16746# splitting by setting IFS to empty value.)
16747IFS=" "" $as_nl"
16748
16749# Find who we are. Look in the path if we contain no directory separator.
f35db108
WM
16750case $0 in #((
16751 *[\\/]* ) as_myself=$0 ;;
16752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16753for as_dir in $PATH
16754do
16755 IFS=$as_save_IFS
16756 test -z "$as_dir" && as_dir=.
16757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16758 done
16759IFS=$as_save_IFS
16760
16761 ;;
16762esac
16763# We did not find ourselves, most probably we were run as `sh COMMAND'
16764# in which case we are not to be found in the path.
16765if test "x$as_myself" = x; then
16766 as_myself=$0
16767fi
16768if test ! -f "$as_myself"; then
16769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16770 exit 1
16771fi
16772
16773# Unset variables that we do not need and which cause bugs (e.g. in
16774# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16775# suppresses any "Segmentation fault" message there. '((' could
16776# trigger a bug in pdksh 5.2.14.
16777for as_var in BASH_ENV ENV MAIL MAILPATH
16778do eval test x\${$as_var+set} = xset \
16779 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16780done
16781PS1='$ '
16782PS2='> '
16783PS4='+ '
16784
16785# NLS nuisances.
16786LC_ALL=C
16787export LC_ALL
16788LANGUAGE=C
16789export LANGUAGE
16790
16791# CDPATH.
16792(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16793
16794
a2479b3d
L
16795# as_fn_error ERROR [LINENO LOG_FD]
16796# ---------------------------------
f35db108
WM
16797# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16798# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
a2479b3d 16799# script with status $?, using 1 if that was 0.
f35db108
WM
16800as_fn_error ()
16801{
a2479b3d
L
16802 as_status=$?; test $as_status -eq 0 && as_status=1
16803 if test "$3"; then
16804 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
f35db108 16806 fi
a2479b3d 16807 $as_echo "$as_me: error: $1" >&2
f35db108
WM
16808 as_fn_exit $as_status
16809} # as_fn_error
16810
16811
16812# as_fn_set_status STATUS
16813# -----------------------
16814# Set $? to STATUS, without forking.
16815as_fn_set_status ()
16816{
16817 return $1
16818} # as_fn_set_status
16819
16820# as_fn_exit STATUS
16821# -----------------
16822# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16823as_fn_exit ()
16824{
16825 set +e
16826 as_fn_set_status $1
16827 exit $1
16828} # as_fn_exit
16829
16830# as_fn_unset VAR
16831# ---------------
16832# Portably unset VAR.
16833as_fn_unset ()
16834{
16835 { eval $1=; unset $1;}
16836}
16837as_unset=as_fn_unset
16838# as_fn_append VAR VALUE
16839# ----------------------
16840# Append the text in VALUE to the end of the definition contained in VAR. Take
16841# advantage of any shell optimizations that allow amortized linear growth over
16842# repeated appends, instead of the typical quadratic growth present in naive
16843# implementations.
16844if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16845 eval 'as_fn_append ()
16846 {
16847 eval $1+=\$2
16848 }'
16849else
16850 as_fn_append ()
16851 {
16852 eval $1=\$$1\$2
16853 }
16854fi # as_fn_append
16855
16856# as_fn_arith ARG...
16857# ------------------
16858# Perform arithmetic evaluation on the ARGs, and store the result in the
16859# global $as_val. Take advantage of shells that can avoid forks. The arguments
16860# must be portable across $(()) and expr.
16861if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16862 eval 'as_fn_arith ()
16863 {
16864 as_val=$(( $* ))
16865 }'
16866else
16867 as_fn_arith ()
16868 {
16869 as_val=`expr "$@" || test $? -eq 1`
16870 }
16871fi # as_fn_arith
16872
16873
16874if expr a : '\(a\)' >/dev/null 2>&1 &&
16875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16876 as_expr=expr
16877else
16878 as_expr=false
16879fi
16880
16881if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16882 as_basename=basename
16883else
16884 as_basename=false
16885fi
16886
16887if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16888 as_dirname=dirname
16889else
16890 as_dirname=false
16891fi
16892
16893as_me=`$as_basename -- "$0" ||
16894$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16895 X"$0" : 'X\(//\)$' \| \
16896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16897$as_echo X/"$0" |
16898 sed '/^.*\/\([^/][^/]*\)\/*$/{
16899 s//\1/
16900 q
16901 }
16902 /^X\/\(\/\/\)$/{
16903 s//\1/
16904 q
16905 }
16906 /^X\/\(\/\).*/{
16907 s//\1/
16908 q
16909 }
16910 s/.*/./; q'`
16911
16912# Avoid depending upon Character Ranges.
16913as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16914as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16915as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16916as_cr_digits='0123456789'
16917as_cr_alnum=$as_cr_Letters$as_cr_digits
16918
16919ECHO_C= ECHO_N= ECHO_T=
16920case `echo -n x` in #(((((
16921-n*)
16922 case `echo 'xy\c'` in
16923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16924 xy) ECHO_C='\c';;
16925 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16926 ECHO_T=' ';;
16927 esac;;
16928*)
16929 ECHO_N='-n';;
16930esac
16931
16932rm -f conf$$ conf$$.exe conf$$.file
16933if test -d conf$$.dir; then
16934 rm -f conf$$.dir/conf$$.file
16935else
16936 rm -f conf$$.dir
16937 mkdir conf$$.dir 2>/dev/null
16938fi
16939if (echo >conf$$.file) 2>/dev/null; then
16940 if ln -s conf$$.file conf$$ 2>/dev/null; then
16941 as_ln_s='ln -s'
16942 # ... but there are two gotchas:
16943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16945 # In both cases, we have to default to `cp -p'.
16946 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16947 as_ln_s='cp -p'
16948 elif ln conf$$.file conf$$ 2>/dev/null; then
16949 as_ln_s=ln
16950 else
16951 as_ln_s='cp -p'
16952 fi
16953else
16954 as_ln_s='cp -p'
16955fi
16956rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16957rmdir conf$$.dir 2>/dev/null
16958
16959
16960# as_fn_mkdir_p
16961# -------------
16962# Create "$as_dir" as a directory, including parents if necessary.
16963as_fn_mkdir_p ()
16964{
16965
16966 case $as_dir in #(
16967 -*) as_dir=./$as_dir;;
16968 esac
16969 test -d "$as_dir" || eval $as_mkdir_p || {
16970 as_dirs=
16971 while :; do
16972 case $as_dir in #(
16973 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16974 *) as_qdir=$as_dir;;
16975 esac
16976 as_dirs="'$as_qdir' $as_dirs"
16977 as_dir=`$as_dirname -- "$as_dir" ||
16978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16979 X"$as_dir" : 'X\(//\)[^/]' \| \
16980 X"$as_dir" : 'X\(//\)$' \| \
16981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16982$as_echo X"$as_dir" |
16983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16984 s//\1/
16985 q
16986 }
16987 /^X\(\/\/\)[^/].*/{
16988 s//\1/
16989 q
16990 }
16991 /^X\(\/\/\)$/{
16992 s//\1/
16993 q
16994 }
16995 /^X\(\/\).*/{
16996 s//\1/
16997 q
16998 }
16999 s/.*/./; q'`
17000 test -d "$as_dir" && break
17001 done
17002 test -z "$as_dirs" || eval "mkdir $as_dirs"
a2479b3d 17003 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
f35db108
WM
17004
17005
17006} # as_fn_mkdir_p
17007if mkdir -p . 2>/dev/null; then
17008 as_mkdir_p='mkdir -p "$as_dir"'
17009else
17010 test -d ./-p && rmdir ./-p
17011 as_mkdir_p=false
17012fi
17013
17014if test -x / >/dev/null 2>&1; then
17015 as_test_x='test -x'
17016else
17017 if ls -dL / >/dev/null 2>&1; then
17018 as_ls_L_option=L
17019 else
17020 as_ls_L_option=
17021 fi
17022 as_test_x='
17023 eval sh -c '\''
17024 if test -d "$1"; then
17025 test -d "$1/.";
17026 else
17027 case $1 in #(
17028 -*)set "./$1";;
17029 esac;
17030 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17031 ???[sx]*):;;*)false;;esac;fi
17032 '\'' sh
17033 '
17034fi
17035as_executable_p=$as_test_x
17036
17037# Sed expression to map a string onto a valid CPP name.
17038as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17039
17040# Sed expression to map a string onto a valid variable name.
17041as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17042
17043
17044exec 6>&1
17045## ----------------------------------- ##
17046## Main body of $CONFIG_STATUS script. ##
17047## ----------------------------------- ##
17048_ASEOF
17049test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17050
17051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17052# Save the log message, to keep $0 and so on meaningful, and to
17053# report actual input values of CONFIG_FILES etc. instead of their
17054# values after options handling.
17055ac_log="
17056This file was extended by package-unused $as_me version-unused, which was
a2479b3d 17057generated by GNU Autoconf 2.64. Invocation command line was
f35db108
WM
17058
17059 CONFIG_FILES = $CONFIG_FILES
17060 CONFIG_HEADERS = $CONFIG_HEADERS
17061 CONFIG_LINKS = $CONFIG_LINKS
17062 CONFIG_COMMANDS = $CONFIG_COMMANDS
17063 $ $0 $@
17064
17065on `(hostname || uname -n) 2>/dev/null | sed 1q`
17066"
17067
17068_ACEOF
17069
17070case $ac_config_files in *"
17071"*) set x $ac_config_files; shift; ac_config_files=$*;;
17072esac
17073
c915a581
JJ
17074case $ac_config_headers in *"
17075"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17076esac
f35db108
WM
17077
17078
17079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17080# Files that config.status was made for.
17081config_files="$ac_config_files"
c915a581 17082config_headers="$ac_config_headers"
f35db108
WM
17083config_commands="$ac_config_commands"
17084
17085_ACEOF
17086
17087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17088ac_cs_usage="\
17089\`$as_me' instantiates files and other configuration actions
17090from templates according to the current configuration. Unless the files
17091and actions are specified as TAGs, all are instantiated by default.
17092
17093Usage: $0 [OPTION]... [TAG]...
17094
17095 -h, --help print this help, then exit
17096 -V, --version print version number and configuration settings, then exit
f35db108
WM
17097 -q, --quiet, --silent
17098 do not print progress messages
17099 -d, --debug don't remove temporary files
17100 --recheck update $as_me by reconfiguring in the same conditions
17101 --file=FILE[:TEMPLATE]
17102 instantiate the configuration file FILE
c915a581
JJ
17103 --header=FILE[:TEMPLATE]
17104 instantiate the configuration header FILE
f35db108
WM
17105
17106Configuration files:
17107$config_files
17108
c915a581
JJ
17109Configuration headers:
17110$config_headers
17111
f35db108
WM
17112Configuration commands:
17113$config_commands
17114
17115Report bugs to <libsanitizer>."
17116
17117_ACEOF
17118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f35db108
WM
17119ac_cs_version="\\
17120package-unused config.status version-unused
a2479b3d
L
17121configured by $0, generated by GNU Autoconf 2.64,
17122 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f35db108 17123
a2479b3d 17124Copyright (C) 2009 Free Software Foundation, Inc.
f35db108
WM
17125This config.status script is free software; the Free Software Foundation
17126gives unlimited permission to copy, distribute and modify it."
17127
17128ac_pwd='$ac_pwd'
17129srcdir='$srcdir'
17130INSTALL='$INSTALL'
17131MKDIR_P='$MKDIR_P'
17132AWK='$AWK'
17133test -n "\$AWK" || AWK=awk
17134_ACEOF
17135
17136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17137# The default lists apply if the user does not specify any file.
17138ac_need_defaults=:
17139while test $# != 0
17140do
17141 case $1 in
a2479b3d 17142 --*=*)
f35db108
WM
17143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17145 ac_shift=:
17146 ;;
f35db108
WM
17147 *)
17148 ac_option=$1
17149 ac_optarg=$2
17150 ac_shift=shift
17151 ;;
17152 esac
17153
17154 case $ac_option in
17155 # Handling of the options.
17156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17157 ac_cs_recheck=: ;;
17158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17159 $as_echo "$ac_cs_version"; exit ;;
f35db108
WM
17160 --debug | --debu | --deb | --de | --d | -d )
17161 debug=: ;;
17162 --file | --fil | --fi | --f )
17163 $ac_shift
17164 case $ac_optarg in
17165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f35db108
WM
17166 esac
17167 as_fn_append CONFIG_FILES " '$ac_optarg'"
17168 ac_need_defaults=false;;
c915a581
JJ
17169 --header | --heade | --head | --hea )
17170 $ac_shift
17171 case $ac_optarg in
17172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17173 esac
17174 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17175 ac_need_defaults=false;;
17176 --he | --h)
17177 # Conflict between --help and --header
17178 as_fn_error "ambiguous option: \`$1'
17179Try \`$0 --help' for more information.";;
17180 --help | --hel | -h )
f35db108
WM
17181 $as_echo "$ac_cs_usage"; exit ;;
17182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17184 ac_cs_silent=: ;;
17185
17186 # This is an error.
a2479b3d 17187 -*) as_fn_error "unrecognized option: \`$1'
f35db108
WM
17188Try \`$0 --help' for more information." ;;
17189
17190 *) as_fn_append ac_config_targets " $1"
17191 ac_need_defaults=false ;;
17192
17193 esac
17194 shift
17195done
17196
17197ac_configure_extra_args=
17198
17199if $ac_cs_silent; then
17200 exec 6>/dev/null
17201 ac_configure_extra_args="$ac_configure_extra_args --silent"
17202fi
17203
17204_ACEOF
17205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17206if \$ac_cs_recheck; then
17207 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17208 shift
17209 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17210 CONFIG_SHELL='$SHELL'
17211 export CONFIG_SHELL
17212 exec "\$@"
17213fi
17214
17215_ACEOF
17216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17217exec 5>>config.log
17218{
17219 echo
17220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17221## Running $as_me. ##
17222_ASBOX
17223 $as_echo "$ac_log"
17224} >&5
17225
17226_ACEOF
17227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228#
17229# INIT-COMMANDS
17230#
2a6346c4
L
17231
17232srcdir="$srcdir"
17233host="$host"
17234target="$target"
17235with_multisubdir="$with_multisubdir"
17236with_multisrctop="$with_multisrctop"
17237with_target_subdir="$with_target_subdir"
17238ac_configure_args="${multilib_arg} ${ac_configure_args}"
17239multi_basedir="$multi_basedir"
17240CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17241CC="$CC"
17242CXX="$CXX"
17243GFORTRAN="$GFORTRAN"
94213c10 17244AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
f35db108
WM
17245
17246
17247# The HP-UX ksh and POSIX shell print the target directory to stdout
17248# if CDPATH is set.
17249(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17250
17251sed_quote_subst='$sed_quote_subst'
17252double_quote_subst='$double_quote_subst'
17253delay_variable_subst='$delay_variable_subst'
17254macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17255macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17256enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17257enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17258pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17259enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17260SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17261ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17262host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17263host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17264host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17265build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17266build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17267build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17268SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17269Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17270GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17271EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17272FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17273LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17274NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17275LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17276max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17277ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17278exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17279lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17280lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17281lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17282reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17283reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17284OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17285deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17286file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17287AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17288AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17289STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17290RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17291old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17292old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17293old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17294lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17295CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17296CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17297compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17298GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17299lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17300lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17301lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17302lt_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
17303objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17304MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17305lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
f35db108 17306lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
a2479b3d 17307lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17308lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17309lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17310need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17311DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17312NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17313LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17314OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17315OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17316libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17317shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17318extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17319archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17320enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17321export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17322whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17323compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17324old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17325old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17326archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17327archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17328module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17329module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17330with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17331allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17332no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17333hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
a2479b3d 17334hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17335hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17336hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17337hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17338hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17339hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17340hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17341inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17342link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
a2479b3d 17343fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17344always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17345export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17346exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17347include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17348prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17349file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17350variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17351need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17352need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17353version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17354runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17355shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17356shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17357libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17358library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17359soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17360install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17361postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17362postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17363finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17364finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17365hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17366sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17367sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17368hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17369enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17370enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17371enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17372old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17373striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17374compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17375predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17376postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17377predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17378postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17379compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17380LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17381reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17382reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17383old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17384compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17385GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17386lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
f35db108 17387lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17388lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17389lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17390lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17391archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17392enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17393export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17394whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17395compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17396old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17397old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17398archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17399archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17400module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17401module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17402with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17403allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17404no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17405hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17406hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17407hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17408hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17409hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17410hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17411hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17412hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17413inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17414link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 17415fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17416always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17417export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17418exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17419include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17420prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
17421file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17422hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17423compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17424predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17425postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17426predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17427postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17428compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17429
17430LTCC='$LTCC'
17431LTCFLAGS='$LTCFLAGS'
17432compiler='$compiler_DEFAULT'
17433
17434# A function that is used when there is no print builtin or printf.
17435func_fallback_echo ()
17436{
17437 eval 'cat <<_LTECHO_EOF
17438\$1
17439_LTECHO_EOF'
17440}
17441
17442# Quote evaled strings.
17443for var in SHELL \
17444ECHO \
f35db108
WM
17445SED \
17446GREP \
17447EGREP \
17448FGREP \
17449LD \
17450NM \
17451LN_S \
17452lt_SP2NL \
17453lt_NL2SP \
17454reload_flag \
17455OBJDUMP \
17456deplibs_check_method \
17457file_magic_cmd \
f35db108
WM
17458AR \
17459AR_FLAGS \
f35db108
WM
17460STRIP \
17461RANLIB \
17462CC \
17463CFLAGS \
17464compiler \
17465lt_cv_sys_global_symbol_pipe \
17466lt_cv_sys_global_symbol_to_cdecl \
17467lt_cv_sys_global_symbol_to_c_name_address \
17468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
f35db108 17469lt_prog_compiler_no_builtin_flag \
f35db108 17470lt_prog_compiler_wl \
a2479b3d 17471lt_prog_compiler_pic \
f35db108
WM
17472lt_prog_compiler_static \
17473lt_cv_prog_compiler_c_o \
17474need_locks \
f35db108
WM
17475DSYMUTIL \
17476NMEDIT \
17477LIPO \
17478OTOOL \
17479OTOOL64 \
17480shrext_cmds \
17481export_dynamic_flag_spec \
17482whole_archive_flag_spec \
17483compiler_needs_object \
17484with_gnu_ld \
17485allow_undefined_flag \
17486no_undefined_flag \
17487hardcode_libdir_flag_spec \
a2479b3d 17488hardcode_libdir_flag_spec_ld \
f35db108 17489hardcode_libdir_separator \
a2479b3d 17490fix_srcfile_path \
f35db108
WM
17491exclude_expsyms \
17492include_expsyms \
17493file_list_spec \
17494variables_saved_for_relink \
17495libname_spec \
17496library_names_spec \
17497soname_spec \
17498install_override_mode \
17499finish_eval \
17500old_striplib \
17501striplib \
17502compiler_lib_search_dirs \
17503predep_objects \
17504postdep_objects \
17505predeps \
17506postdeps \
17507compiler_lib_search_path \
17508LD_CXX \
17509reload_flag_CXX \
17510compiler_CXX \
17511lt_prog_compiler_no_builtin_flag_CXX \
f35db108 17512lt_prog_compiler_wl_CXX \
a2479b3d 17513lt_prog_compiler_pic_CXX \
f35db108
WM
17514lt_prog_compiler_static_CXX \
17515lt_cv_prog_compiler_c_o_CXX \
17516export_dynamic_flag_spec_CXX \
17517whole_archive_flag_spec_CXX \
17518compiler_needs_object_CXX \
17519with_gnu_ld_CXX \
17520allow_undefined_flag_CXX \
17521no_undefined_flag_CXX \
17522hardcode_libdir_flag_spec_CXX \
a2479b3d 17523hardcode_libdir_flag_spec_ld_CXX \
f35db108 17524hardcode_libdir_separator_CXX \
a2479b3d 17525fix_srcfile_path_CXX \
f35db108
WM
17526exclude_expsyms_CXX \
17527include_expsyms_CXX \
17528file_list_spec_CXX \
17529compiler_lib_search_dirs_CXX \
17530predep_objects_CXX \
17531postdep_objects_CXX \
17532predeps_CXX \
17533postdeps_CXX \
17534compiler_lib_search_path_CXX; do
17535 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17536 *[\\\\\\\`\\"\\\$]*)
17537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17538 ;;
17539 *)
17540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17541 ;;
17542 esac
17543done
17544
17545# Double-quote double-evaled strings.
17546for var in reload_cmds \
17547old_postinstall_cmds \
17548old_postuninstall_cmds \
17549old_archive_cmds \
17550extract_expsyms_cmds \
17551old_archive_from_new_cmds \
17552old_archive_from_expsyms_cmds \
17553archive_cmds \
17554archive_expsym_cmds \
17555module_cmds \
17556module_expsym_cmds \
17557export_symbols_cmds \
17558prelink_cmds \
f35db108
WM
17559postinstall_cmds \
17560postuninstall_cmds \
17561finish_cmds \
17562sys_lib_search_path_spec \
17563sys_lib_dlsearch_path_spec \
17564reload_cmds_CXX \
17565old_archive_cmds_CXX \
17566old_archive_from_new_cmds_CXX \
17567old_archive_from_expsyms_cmds_CXX \
17568archive_cmds_CXX \
17569archive_expsym_cmds_CXX \
17570module_cmds_CXX \
17571module_expsym_cmds_CXX \
17572export_symbols_cmds_CXX \
a2479b3d 17573prelink_cmds_CXX; do
f35db108
WM
17574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17575 *[\\\\\\\`\\"\\\$]*)
17576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17577 ;;
17578 *)
17579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17580 ;;
17581 esac
17582done
17583
17584ac_aux_dir='$ac_aux_dir'
17585xsi_shell='$xsi_shell'
17586lt_shell_append='$lt_shell_append'
17587
17588# See if we are running on zsh, and set the options which allow our
17589# commands through without removal of \ escapes INIT.
17590if test -n "\${ZSH_VERSION+set}" ; then
17591 setopt NO_GLOB_SUBST
17592fi
17593
17594
17595 PACKAGE='$PACKAGE'
17596 VERSION='$VERSION'
17597 TIMESTAMP='$TIMESTAMP'
17598 RM='$RM'
17599 ofile='$ofile'
17600
17601
17602
17603
17604
17605
c915a581
JJ
17606GCC="$GCC"
17607CC="$CC"
17608acx_cv_header_stdint="$acx_cv_header_stdint"
17609acx_cv_type_int8_t="$acx_cv_type_int8_t"
17610acx_cv_type_int16_t="$acx_cv_type_int16_t"
17611acx_cv_type_int32_t="$acx_cv_type_int32_t"
17612acx_cv_type_int64_t="$acx_cv_type_int64_t"
17613acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17614ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17615ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17616ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17617ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17618ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17619ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17620ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17621ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17622
17623
f35db108
WM
17624_ACEOF
17625
17626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17627
17628# Handling of arguments.
17629for ac_config_target in $ac_config_targets
17630do
17631 case $ac_config_target in
c915a581 17632 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
94213c10 17633 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
f35db108 17634 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
c915a581 17635 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
f35db108 17636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35814b03 17637 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
c915a581
JJ
17638 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
f35db108
WM
17640 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17641 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
c915a581 17642 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
ef1b3fda 17643 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
f35db108 17644 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
de5a5fa1 17645 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
cd0be65c 17646 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
f35db108 17647
a2479b3d 17648 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f35db108
WM
17649 esac
17650done
17651
17652
17653# If the user did not use the arguments to specify the items to instantiate,
17654# then the envvar interface is used. Set only those that are not.
17655# We use the long form for the default assignment because of an extremely
17656# bizarre bug on SunOS 4.1.3.
17657if $ac_need_defaults; then
17658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
c915a581 17659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f35db108
WM
17660 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17661fi
17662
17663# Have a temporary directory for convenience. Make it in the build tree
17664# simply because there is no reason against having it here, and in addition,
17665# creating and moving files from /tmp can sometimes cause problems.
17666# Hook for its removal unless debugging.
17667# Note that there is a small window in which the directory will not be cleaned:
17668# after its creation but before its name has been assigned to `$tmp'.
17669$debug ||
17670{
a2479b3d 17671 tmp=
f35db108 17672 trap 'exit_status=$?
a2479b3d 17673 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
f35db108
WM
17674' 0
17675 trap 'as_fn_exit 1' 1 2 13 15
17676}
17677# Create a (secure) tmp directory for tmp files.
17678
17679{
17680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
a2479b3d 17681 test -n "$tmp" && test -d "$tmp"
f35db108
WM
17682} ||
17683{
17684 tmp=./conf$$-$RANDOM
17685 (umask 077 && mkdir "$tmp")
a2479b3d 17686} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
f35db108
WM
17687
17688# Set up the scripts for CONFIG_FILES section.
17689# No need to generate them if there are no CONFIG_FILES.
17690# This happens for instance with `./config.status config.h'.
17691if test -n "$CONFIG_FILES"; then
17692
17693
17694ac_cr=`echo X | tr X '\015'`
17695# On cygwin, bash can eat \r inside `` if the user requested igncr.
17696# But we know of no other shell where ac_cr would be empty at this
17697# point, so we can use a bashism as a fallback.
17698if test "x$ac_cr" = x; then
17699 eval ac_cr=\$\'\\r\'
17700fi
17701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
a2479b3d 17703 ac_cs_awk_cr='\r'
f35db108
WM
17704else
17705 ac_cs_awk_cr=$ac_cr
17706fi
17707
a2479b3d 17708echo 'BEGIN {' >"$tmp/subs1.awk" &&
f35db108
WM
17709_ACEOF
17710
17711
17712{
17713 echo "cat >conf$$subs.awk <<_ACEOF" &&
17714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17715 echo "_ACEOF"
17716} >conf$$subs.sh ||
a2479b3d
L
17717 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17718ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
f35db108
WM
17719ac_delim='%!_!# '
17720for ac_last_try in false false false false false :; do
17721 . ./conf$$subs.sh ||
a2479b3d 17722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
17723
17724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17725 if test $ac_delim_n = $ac_delim_num; then
17726 break
17727 elif $ac_last_try; then
a2479b3d 17728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
17729 else
17730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17731 fi
17732done
17733rm -f conf$$subs.sh
17734
17735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a2479b3d 17736cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
f35db108
WM
17737_ACEOF
17738sed -n '
17739h
17740s/^/S["/; s/!.*/"]=/
17741p
17742g
17743s/^[^!]*!//
17744:repl
17745t repl
17746s/'"$ac_delim"'$//
17747t delim
17748:nl
17749h
a2479b3d 17750s/\(.\{148\}\).*/\1/
f35db108
WM
17751t more1
17752s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17753p
17754n
17755b repl
17756:more1
17757s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17758p
17759g
17760s/.\{148\}//
17761t nl
17762:delim
17763h
a2479b3d 17764s/\(.\{148\}\).*/\1/
f35db108
WM
17765t more2
17766s/["\\]/\\&/g; s/^/"/; s/$/"/
17767p
17768b
17769:more2
17770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17771p
17772g
17773s/.\{148\}//
17774t delim
17775' <conf$$subs.awk | sed '
17776/^[^""]/{
17777 N
17778 s/\n//
17779}
17780' >>$CONFIG_STATUS || ac_write_fail=1
17781rm -f conf$$subs.awk
17782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17783_ACAWK
a2479b3d 17784cat >>"\$tmp/subs1.awk" <<_ACAWK &&
f35db108
WM
17785 for (key in S) S_is_set[key] = 1
17786 FS = "\a"
17787
17788}
17789{
17790 line = $ 0
17791 nfields = split(line, field, "@")
17792 substed = 0
17793 len = length(field[1])
17794 for (i = 2; i < nfields; i++) {
17795 key = field[i]
17796 keylen = length(key)
17797 if (S_is_set[key]) {
17798 value = S[key]
17799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17800 len += length(value) + length(field[++i])
17801 substed = 1
17802 } else
17803 len += 1 + keylen
17804 }
17805
17806 print line
17807}
17808
17809_ACAWK
17810_ACEOF
17811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17812if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17814else
17815 cat
a2479b3d
L
17816fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17817 || as_fn_error "could not setup config files machinery" "$LINENO" 5
f35db108
WM
17818_ACEOF
17819
a2479b3d
L
17820# VPATH may cause trouble with some makes, so we remove $(srcdir),
17821# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
f35db108
WM
17822# trailing colons and then remove the whole line if VPATH becomes empty
17823# (actually we leave an empty line to preserve line numbers).
17824if test "x$srcdir" = x.; then
a2479b3d
L
17825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17826s/:*\$(srcdir):*/:/
17827s/:*\${srcdir}:*/:/
17828s/:*@srcdir@:*/:/
17829s/^\([^=]*=[ ]*\):*/\1/
f35db108 17830s/:*$//
f35db108
WM
17831s/^[^=]*=[ ]*$//
17832}'
17833fi
17834
17835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17836fi # test -n "$CONFIG_FILES"
17837
c915a581
JJ
17838# Set up the scripts for CONFIG_HEADERS section.
17839# No need to generate them if there are no CONFIG_HEADERS.
17840# This happens for instance with `./config.status Makefile'.
17841if test -n "$CONFIG_HEADERS"; then
17842cat >"$tmp/defines.awk" <<\_ACAWK ||
17843BEGIN {
17844_ACEOF
17845
17846# Transform confdefs.h into an awk script `defines.awk', embedded as
17847# here-document in config.status, that substitutes the proper values into
17848# config.h.in to produce config.h.
17849
17850# Create a delimiter string that does not exist in confdefs.h, to ease
17851# handling of long lines.
17852ac_delim='%!_!# '
17853for ac_last_try in false false :; do
17854 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17855 if test -z "$ac_t"; then
17856 break
17857 elif $ac_last_try; then
17858 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17859 else
17860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17861 fi
17862done
17863
17864# For the awk script, D is an array of macro values keyed by name,
17865# likewise P contains macro parameters if any. Preserve backslash
17866# newline sequences.
17867
17868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17869sed -n '
17870s/.\{148\}/&'"$ac_delim"'/g
17871t rset
17872:rset
17873s/^[ ]*#[ ]*define[ ][ ]*/ /
17874t def
17875d
17876:def
17877s/\\$//
17878t bsnl
17879s/["\\]/\\&/g
17880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17881D["\1"]=" \3"/p
17882s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17883d
17884:bsnl
17885s/["\\]/\\&/g
17886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17887D["\1"]=" \3\\\\\\n"\\/p
17888t cont
17889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17890t cont
17891d
17892:cont
17893n
17894s/.\{148\}/&'"$ac_delim"'/g
17895t clear
17896:clear
17897s/\\$//
17898t bsnlc
17899s/["\\]/\\&/g; s/^/"/; s/$/"/p
17900d
17901:bsnlc
17902s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17903b cont
17904' <confdefs.h | sed '
17905s/'"$ac_delim"'/"\\\
17906"/g' >>$CONFIG_STATUS || ac_write_fail=1
17907
17908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17909 for (key in D) D_is_set[key] = 1
17910 FS = "\a"
17911}
17912/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17913 line = \$ 0
17914 split(line, arg, " ")
17915 if (arg[1] == "#") {
17916 defundef = arg[2]
17917 mac1 = arg[3]
17918 } else {
17919 defundef = substr(arg[1], 2)
17920 mac1 = arg[2]
17921 }
17922 split(mac1, mac2, "(") #)
17923 macro = mac2[1]
17924 prefix = substr(line, 1, index(line, defundef) - 1)
17925 if (D_is_set[macro]) {
17926 # Preserve the white space surrounding the "#".
17927 print prefix "define", macro P[macro] D[macro]
17928 next
17929 } else {
17930 # Replace #undef with comments. This is necessary, for example,
17931 # in the case of _POSIX_SOURCE, which is predefined and required
17932 # on some systems where configure will not decide to define it.
17933 if (defundef == "undef") {
17934 print "/*", prefix defundef, macro, "*/"
17935 next
17936 }
17937 }
17938}
17939{ print }
17940_ACAWK
17941_ACEOF
17942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17943 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17944fi # test -n "$CONFIG_HEADERS"
17945
f35db108 17946
c915a581 17947eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
f35db108
WM
17948shift
17949for ac_tag
17950do
17951 case $ac_tag in
17952 :[FHLC]) ac_mode=$ac_tag; continue;;
17953 esac
17954 case $ac_mode$ac_tag in
17955 :[FHL]*:*);;
a2479b3d 17956 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
f35db108
WM
17957 :[FH]-) ac_tag=-:-;;
17958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17959 esac
17960 ac_save_IFS=$IFS
17961 IFS=:
17962 set x $ac_tag
17963 IFS=$ac_save_IFS
17964 shift
17965 ac_file=$1
17966 shift
17967
17968 case $ac_mode in
17969 :L) ac_source=$1;;
17970 :[FH])
17971 ac_file_inputs=
17972 for ac_f
17973 do
17974 case $ac_f in
a2479b3d 17975 -) ac_f="$tmp/stdin";;
f35db108
WM
17976 *) # Look for the file first in the build tree, then in the source tree
17977 # (if the path is not absolute). The absolute path cannot be DOS-style,
17978 # because $ac_f cannot contain `:'.
17979 test -f "$ac_f" ||
17980 case $ac_f in
17981 [\\/$]*) false;;
17982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17983 esac ||
a2479b3d 17984 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
f35db108
WM
17985 esac
17986 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17987 as_fn_append ac_file_inputs " '$ac_f'"
17988 done
17989
17990 # Let's still pretend it is `configure' which instantiates (i.e., don't
17991 # use $as_me), people would be surprised to read:
17992 # /* config.h. Generated by config.status. */
17993 configure_input='Generated from '`
17994 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17995 `' by configure.'
17996 if test x"$ac_file" != x-; then
17997 configure_input="$ac_file. $configure_input"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17999$as_echo "$as_me: creating $ac_file" >&6;}
18000 fi
18001 # Neutralize special characters interpreted by sed in replacement strings.
18002 case $configure_input in #(
18003 *\&* | *\|* | *\\* )
18004 ac_sed_conf_input=`$as_echo "$configure_input" |
18005 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18006 *) ac_sed_conf_input=$configure_input;;
18007 esac
18008
18009 case $ac_tag in
a2479b3d
L
18010 *:-:* | *:-) cat >"$tmp/stdin" \
18011 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
f35db108
WM
18012 esac
18013 ;;
18014 esac
18015
18016 ac_dir=`$as_dirname -- "$ac_file" ||
18017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018 X"$ac_file" : 'X\(//\)[^/]' \| \
18019 X"$ac_file" : 'X\(//\)$' \| \
18020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18021$as_echo X"$ac_file" |
18022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18023 s//\1/
18024 q
18025 }
18026 /^X\(\/\/\)[^/].*/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\/\)$/{
18031 s//\1/
18032 q
18033 }
18034 /^X\(\/\).*/{
18035 s//\1/
18036 q
18037 }
18038 s/.*/./; q'`
18039 as_dir="$ac_dir"; as_fn_mkdir_p
18040 ac_builddir=.
18041
18042case "$ac_dir" in
18043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18044*)
18045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18046 # A ".." for each directory in $ac_dir_suffix.
18047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18048 case $ac_top_builddir_sub in
18049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18051 esac ;;
18052esac
18053ac_abs_top_builddir=$ac_pwd
18054ac_abs_builddir=$ac_pwd$ac_dir_suffix
18055# for backward compatibility:
18056ac_top_builddir=$ac_top_build_prefix
18057
18058case $srcdir in
18059 .) # We are building in place.
18060 ac_srcdir=.
18061 ac_top_srcdir=$ac_top_builddir_sub
18062 ac_abs_top_srcdir=$ac_pwd ;;
18063 [\\/]* | ?:[\\/]* ) # Absolute name.
18064 ac_srcdir=$srcdir$ac_dir_suffix;
18065 ac_top_srcdir=$srcdir
18066 ac_abs_top_srcdir=$srcdir ;;
18067 *) # Relative name.
18068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18069 ac_top_srcdir=$ac_top_build_prefix$srcdir
18070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18071esac
18072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18073
18074
18075 case $ac_mode in
18076 :F)
18077 #
18078 # CONFIG_FILE
18079 #
18080
18081 case $INSTALL in
18082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18084 esac
18085 ac_MKDIR_P=$MKDIR_P
18086 case $MKDIR_P in
18087 [\\/$]* | ?:[\\/]* ) ;;
18088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18089 esac
18090_ACEOF
18091
18092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18093# If the template does not know about datarootdir, expand it.
18094# FIXME: This hack should be removed a few years after 2.60.
18095ac_datarootdir_hack=; ac_datarootdir_seen=
18096ac_sed_dataroot='
18097/datarootdir/ {
18098 p
18099 q
18100}
18101/@datadir@/p
18102/@docdir@/p
18103/@infodir@/p
18104/@localedir@/p
18105/@mandir@/p'
18106case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18107*datarootdir*) ac_datarootdir_seen=yes;;
18108*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18110$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18111_ACEOF
18112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18113 ac_datarootdir_hack='
18114 s&@datadir@&$datadir&g
18115 s&@docdir@&$docdir&g
18116 s&@infodir@&$infodir&g
18117 s&@localedir@&$localedir&g
18118 s&@mandir@&$mandir&g
18119 s&\\\${datarootdir}&$datarootdir&g' ;;
18120esac
18121_ACEOF
18122
18123# Neutralize VPATH when `$srcdir' = `.'.
18124# Shell code in configure.ac might set extrasub.
18125# FIXME: do we really want to maintain this feature?
18126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18127ac_sed_extra="$ac_vpsub
18128$extrasub
18129_ACEOF
18130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18131:t
18132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18133s|@configure_input@|$ac_sed_conf_input|;t t
18134s&@top_builddir@&$ac_top_builddir_sub&;t t
18135s&@top_build_prefix@&$ac_top_build_prefix&;t t
18136s&@srcdir@&$ac_srcdir&;t t
18137s&@abs_srcdir@&$ac_abs_srcdir&;t t
18138s&@top_srcdir@&$ac_top_srcdir&;t t
18139s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18140s&@builddir@&$ac_builddir&;t t
18141s&@abs_builddir@&$ac_abs_builddir&;t t
18142s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18143s&@INSTALL@&$ac_INSTALL&;t t
18144s&@MKDIR_P@&$ac_MKDIR_P&;t t
18145$ac_datarootdir_hack
18146"
a2479b3d
L
18147eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18148 || as_fn_error "could not create $ac_file" "$LINENO" 5
f35db108
WM
18149
18150test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
a2479b3d
L
18151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f35db108 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a2479b3d 18154which seems to be undefined. Please make sure it is defined." >&5
f35db108 18155$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a2479b3d 18156which seems to be undefined. Please make sure it is defined." >&2;}
f35db108 18157
a2479b3d 18158 rm -f "$tmp/stdin"
f35db108 18159 case $ac_file in
a2479b3d
L
18160 -) cat "$tmp/out" && rm -f "$tmp/out";;
18161 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
f35db108 18162 esac \
a2479b3d 18163 || as_fn_error "could not create $ac_file" "$LINENO" 5
f35db108 18164 ;;
c915a581
JJ
18165 :H)
18166 #
18167 # CONFIG_HEADER
18168 #
18169 if test x"$ac_file" != x-; then
18170 {
18171 $as_echo "/* $configure_input */" \
18172 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18173 } >"$tmp/config.h" \
18174 || as_fn_error "could not create $ac_file" "$LINENO" 5
18175 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18177$as_echo "$as_me: $ac_file is unchanged" >&6;}
18178 else
18179 rm -f "$ac_file"
18180 mv "$tmp/config.h" "$ac_file" \
18181 || as_fn_error "could not create $ac_file" "$LINENO" 5
18182 fi
18183 else
18184 $as_echo "/* $configure_input */" \
18185 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18186 || as_fn_error "could not create -" "$LINENO" 5
18187 fi
18188# Compute "$ac_file"'s index in $config_headers.
18189_am_arg="$ac_file"
18190_am_stamp_count=1
18191for _am_header in $config_headers :; do
18192 case $_am_header in
18193 $_am_arg | $_am_arg:* )
18194 break ;;
18195 * )
18196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18197 esac
18198done
18199echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18200$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201 X"$_am_arg" : 'X\(//\)[^/]' \| \
18202 X"$_am_arg" : 'X\(//\)$' \| \
18203 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18204$as_echo X"$_am_arg" |
18205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18206 s//\1/
18207 q
18208 }
18209 /^X\(\/\/\)[^/].*/{
18210 s//\1/
18211 q
18212 }
18213 /^X\(\/\/\)$/{
18214 s//\1/
18215 q
18216 }
18217 /^X\(\/\).*/{
18218 s//\1/
18219 q
18220 }
18221 s/.*/./; q'`/stamp-h$_am_stamp_count
18222 ;;
f35db108
WM
18223
18224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18225$as_echo "$as_me: executing $ac_file commands" >&6;}
18226 ;;
18227 esac
18228
18229
18230 case $ac_file$ac_mode in
94213c10
MK
18231 "default-1":C)
18232# Only add multilib support code if we just rebuilt the top-level
18233# Makefile.
18234case " $CONFIG_FILES " in
18235 *" Makefile "*)
18236 ac_file=Makefile . ${multi_basedir}/config-ml.in
18237 ;;
18238esac ;;
f35db108
WM
18239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18240 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18241 # are listed without --file. Let's play safe and only enable the eval
18242 # if we detect the quoting.
18243 case $CONFIG_FILES in
18244 *\'*) eval set x "$CONFIG_FILES" ;;
18245 *) set x $CONFIG_FILES ;;
18246 esac
18247 shift
18248 for mf
18249 do
18250 # Strip MF so we end up with the name of the file.
18251 mf=`echo "$mf" | sed -e 's/:.*$//'`
18252 # Check whether this is an Automake generated Makefile or not.
18253 # We used to match only the files named `Makefile.in', but
18254 # some people rename them; so instead we look at the file content.
18255 # Grep'ing the first line is not enough: some people post-process
18256 # each Makefile.in and add a new line on top of each file to say so.
18257 # Grep'ing the whole file is not good either: AIX grep has a line
18258 # limit of 2048, but all sed's we know have understand at least 4000.
18259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18260 dirpart=`$as_dirname -- "$mf" ||
18261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18262 X"$mf" : 'X\(//\)[^/]' \| \
18263 X"$mf" : 'X\(//\)$' \| \
18264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18265$as_echo X"$mf" |
18266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18267 s//\1/
18268 q
18269 }
18270 /^X\(\/\/\)[^/].*/{
18271 s//\1/
18272 q
18273 }
18274 /^X\(\/\/\)$/{
18275 s//\1/
18276 q
18277 }
18278 /^X\(\/\).*/{
18279 s//\1/
18280 q
18281 }
18282 s/.*/./; q'`
18283 else
18284 continue
18285 fi
18286 # Extract the definition of DEPDIR, am__include, and am__quote
18287 # from the Makefile without running `make'.
18288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18289 test -z "$DEPDIR" && continue
18290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18291 test -z "am__include" && continue
18292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18293 # When using ansi2knr, U may be empty or an underscore; expand it
18294 U=`sed -n 's/^U = //p' < "$mf"`
18295 # Find all dependency output files, they are included files with
18296 # $(DEPDIR) in their names. We invoke sed twice because it is the
18297 # simplest approach to changing $(DEPDIR) to its actual value in the
18298 # expansion.
18299 for file in `sed -n "
18300 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18302 # Make sure the directory exists.
18303 test -f "$dirpart/$file" && continue
18304 fdir=`$as_dirname -- "$file" ||
18305$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18306 X"$file" : 'X\(//\)[^/]' \| \
18307 X"$file" : 'X\(//\)$' \| \
18308 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18309$as_echo X"$file" |
18310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18311 s//\1/
18312 q
18313 }
18314 /^X\(\/\/\)[^/].*/{
18315 s//\1/
18316 q
18317 }
18318 /^X\(\/\/\)$/{
18319 s//\1/
18320 q
18321 }
18322 /^X\(\/\).*/{
18323 s//\1/
18324 q
18325 }
18326 s/.*/./; q'`
18327 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18328 # echo "creating $dirpart/$file"
18329 echo '# dummy' > "$dirpart/$file"
18330 done
18331 done
18332}
18333 ;;
18334 "libtool":C)
18335
18336 # See if we are running on zsh, and set the options which allow our
18337 # commands through without removal of \ escapes.
18338 if test -n "${ZSH_VERSION+set}" ; then
18339 setopt NO_GLOB_SUBST
18340 fi
18341
18342 cfgfile="${ofile}T"
18343 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18344 $RM "$cfgfile"
18345
18346 cat <<_LT_EOF >> "$cfgfile"
18347#! $SHELL
18348
18349# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18350# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18351# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18352# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18353#
18354# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a2479b3d 18355# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
f35db108
WM
18356# Written by Gordon Matzigkeit, 1996
18357#
18358# This file is part of GNU Libtool.
18359#
18360# GNU Libtool is free software; you can redistribute it and/or
18361# modify it under the terms of the GNU General Public License as
18362# published by the Free Software Foundation; either version 2 of
18363# the License, or (at your option) any later version.
18364#
18365# As a special exception to the GNU General Public License,
18366# if you distribute this file as part of a program or library that
18367# is built using GNU Libtool, you may include this file under the
18368# same distribution terms that you use for the rest of that program.
18369#
18370# GNU Libtool is distributed in the hope that it will be useful,
18371# but WITHOUT ANY WARRANTY; without even the implied warranty of
18372# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18373# GNU General Public License for more details.
18374#
18375# You should have received a copy of the GNU General Public License
18376# along with GNU Libtool; see the file COPYING. If not, a copy
18377# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18378# obtained by writing to the Free Software Foundation, Inc.,
18379# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18380
18381
18382# The names of the tagged configurations supported by this script.
18383available_tags="CXX "
18384
18385# ### BEGIN LIBTOOL CONFIG
18386
18387# Which release of libtool.m4 was used?
18388macro_version=$macro_version
18389macro_revision=$macro_revision
18390
18391# Whether or not to build shared libraries.
18392build_libtool_libs=$enable_shared
18393
18394# Whether or not to build static libraries.
18395build_old_libs=$enable_static
18396
18397# What type of objects to build.
18398pic_mode=$pic_mode
18399
18400# Whether or not to optimize for fast installation.
18401fast_install=$enable_fast_install
18402
18403# Shell to use when invoking shell scripts.
18404SHELL=$lt_SHELL
18405
18406# An echo program that protects backslashes.
18407ECHO=$lt_ECHO
18408
f35db108
WM
18409# The host system.
18410host_alias=$host_alias
18411host=$host
18412host_os=$host_os
18413
18414# The build system.
18415build_alias=$build_alias
18416build=$build
18417build_os=$build_os
18418
18419# A sed program that does not truncate output.
18420SED=$lt_SED
18421
18422# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18423Xsed="\$SED -e 1s/^X//"
18424
18425# A grep program that handles long lines.
18426GREP=$lt_GREP
18427
18428# An ERE matcher.
18429EGREP=$lt_EGREP
18430
18431# A literal string matcher.
18432FGREP=$lt_FGREP
18433
18434# A BSD- or MS-compatible name lister.
18435NM=$lt_NM
18436
18437# Whether we need soft or hard links.
18438LN_S=$lt_LN_S
18439
18440# What is the maximum length of a command?
18441max_cmd_len=$max_cmd_len
18442
18443# Object file suffix (normally "o").
18444objext=$ac_objext
18445
18446# Executable file suffix (normally "").
18447exeext=$exeext
18448
18449# whether the shell understands "unset".
18450lt_unset=$lt_unset
18451
18452# turn spaces into newlines.
18453SP2NL=$lt_lt_SP2NL
18454
18455# turn newlines into spaces.
18456NL2SP=$lt_lt_NL2SP
18457
f35db108
WM
18458# An object symbol dumper.
18459OBJDUMP=$lt_OBJDUMP
18460
18461# Method to check whether dependent libraries are shared objects.
18462deplibs_check_method=$lt_deplibs_check_method
18463
a2479b3d 18464# Command to use when deplibs_check_method == "file_magic".
f35db108
WM
18465file_magic_cmd=$lt_file_magic_cmd
18466
f35db108
WM
18467# The archiver.
18468AR=$lt_AR
f35db108
WM
18469AR_FLAGS=$lt_AR_FLAGS
18470
f35db108
WM
18471# A symbol stripping program.
18472STRIP=$lt_STRIP
18473
18474# Commands used to install an old-style archive.
18475RANLIB=$lt_RANLIB
18476old_postinstall_cmds=$lt_old_postinstall_cmds
18477old_postuninstall_cmds=$lt_old_postuninstall_cmds
18478
18479# Whether to use a lock for old archive extraction.
18480lock_old_archive_extraction=$lock_old_archive_extraction
18481
18482# A C compiler.
18483LTCC=$lt_CC
18484
18485# LTCC compiler flags.
18486LTCFLAGS=$lt_CFLAGS
18487
18488# Take the output of nm and produce a listing of raw symbols and C names.
18489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18490
18491# Transform the output of nm in a proper C declaration.
18492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18493
18494# Transform the output of nm in a C name address pair.
18495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18496
18497# Transform the output of nm in a C name address pair when lib prefix is needed.
18498global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18499
f35db108
WM
18500# The name of the directory that contains temporary libtool files.
18501objdir=$objdir
18502
18503# Used to examine libraries when file_magic_cmd begins with "file".
18504MAGIC_CMD=$MAGIC_CMD
18505
18506# Must we lock files when doing compilation?
18507need_locks=$lt_need_locks
18508
f35db108
WM
18509# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18510DSYMUTIL=$lt_DSYMUTIL
18511
18512# Tool to change global to local symbols on Mac OS X.
18513NMEDIT=$lt_NMEDIT
18514
18515# Tool to manipulate fat objects and archives on Mac OS X.
18516LIPO=$lt_LIPO
18517
18518# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18519OTOOL=$lt_OTOOL
18520
18521# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18522OTOOL64=$lt_OTOOL64
18523
18524# Old archive suffix (normally "a").
18525libext=$libext
18526
18527# Shared library suffix (normally ".so").
18528shrext_cmds=$lt_shrext_cmds
18529
18530# The commands to extract the exported symbol list from a shared archive.
18531extract_expsyms_cmds=$lt_extract_expsyms_cmds
18532
18533# Variables whose values should be saved in libtool wrapper scripts and
18534# restored at link time.
18535variables_saved_for_relink=$lt_variables_saved_for_relink
18536
18537# Do we need the "lib" prefix for modules?
18538need_lib_prefix=$need_lib_prefix
18539
18540# Do we need a version for libraries?
18541need_version=$need_version
18542
18543# Library versioning type.
18544version_type=$version_type
18545
18546# Shared library runtime path variable.
18547runpath_var=$runpath_var
18548
18549# Shared library path variable.
18550shlibpath_var=$shlibpath_var
18551
18552# Is shlibpath searched before the hard-coded library search path?
18553shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18554
18555# Format of library name prefix.
18556libname_spec=$lt_libname_spec
18557
18558# List of archive names. First name is the real one, the rest are links.
18559# The last name is the one that the linker finds with -lNAME
18560library_names_spec=$lt_library_names_spec
18561
18562# The coded name of the library, if different from the real name.
18563soname_spec=$lt_soname_spec
18564
18565# Permission mode override for installation of shared libraries.
18566install_override_mode=$lt_install_override_mode
18567
18568# Command to use after installation of a shared archive.
18569postinstall_cmds=$lt_postinstall_cmds
18570
18571# Command to use after uninstallation of a shared archive.
18572postuninstall_cmds=$lt_postuninstall_cmds
18573
18574# Commands used to finish a libtool library installation in a directory.
18575finish_cmds=$lt_finish_cmds
18576
18577# As "finish_cmds", except a single script fragment to be evaled but
18578# not shown.
18579finish_eval=$lt_finish_eval
18580
18581# Whether we should hardcode library paths into libraries.
18582hardcode_into_libs=$hardcode_into_libs
18583
18584# Compile-time system search path for libraries.
18585sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18586
18587# Run-time system search path for libraries.
18588sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18589
18590# Whether dlopen is supported.
18591dlopen_support=$enable_dlopen
18592
18593# Whether dlopen of programs is supported.
18594dlopen_self=$enable_dlopen_self
18595
18596# Whether dlopen of statically linked programs is supported.
18597dlopen_self_static=$enable_dlopen_self_static
18598
18599# Commands to strip libraries.
18600old_striplib=$lt_old_striplib
18601striplib=$lt_striplib
18602
18603
18604# The linker used to build libraries.
18605LD=$lt_LD
18606
18607# How to create reloadable object files.
18608reload_flag=$lt_reload_flag
18609reload_cmds=$lt_reload_cmds
18610
18611# Commands used to build an old-style archive.
18612old_archive_cmds=$lt_old_archive_cmds
18613
18614# A language specific compiler.
18615CC=$lt_compiler
18616
18617# Is the compiler the GNU compiler?
18618with_gcc=$GCC
18619
18620# Compiler flag to turn off builtin functions.
18621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18622
f35db108
WM
18623# How to pass a linker flag through the compiler.
18624wl=$lt_lt_prog_compiler_wl
18625
a2479b3d
L
18626# Additional compiler flags for building library objects.
18627pic_flag=$lt_lt_prog_compiler_pic
18628
f35db108
WM
18629# Compiler flag to prevent dynamic linking.
18630link_static_flag=$lt_lt_prog_compiler_static
18631
18632# Does compiler simultaneously support -c and -o options?
18633compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18634
18635# Whether or not to add -lc for building shared libraries.
18636build_libtool_need_lc=$archive_cmds_need_lc
18637
18638# Whether or not to disallow shared libs when runtime libs are static.
18639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18640
18641# Compiler flag to allow reflexive dlopens.
18642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18643
18644# Compiler flag to generate shared objects directly from archives.
18645whole_archive_flag_spec=$lt_whole_archive_flag_spec
18646
18647# Whether the compiler copes with passing no objects directly.
18648compiler_needs_object=$lt_compiler_needs_object
18649
18650# Create an old-style archive from a shared archive.
18651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18652
18653# Create a temporary old-style archive to link instead of a shared archive.
18654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18655
18656# Commands used to build a shared archive.
18657archive_cmds=$lt_archive_cmds
18658archive_expsym_cmds=$lt_archive_expsym_cmds
18659
18660# Commands used to build a loadable module if different from building
18661# a shared archive.
18662module_cmds=$lt_module_cmds
18663module_expsym_cmds=$lt_module_expsym_cmds
18664
18665# Whether we are building with GNU ld or not.
18666with_gnu_ld=$lt_with_gnu_ld
18667
18668# Flag that allows shared libraries with undefined symbols to be built.
18669allow_undefined_flag=$lt_allow_undefined_flag
18670
18671# Flag that enforces no undefined symbols.
18672no_undefined_flag=$lt_no_undefined_flag
18673
18674# Flag to hardcode \$libdir into a binary during linking.
18675# This must work even if \$libdir does not exist
18676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18677
a2479b3d
L
18678# If ld is used when linking, flag to hardcode \$libdir into a binary
18679# during linking. This must work even if \$libdir does not exist.
18680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18681
f35db108
WM
18682# Whether we need a single "-rpath" flag with a separated argument.
18683hardcode_libdir_separator=$lt_hardcode_libdir_separator
18684
18685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18686# DIR into the resulting binary.
18687hardcode_direct=$hardcode_direct
18688
18689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18690# DIR into the resulting binary and the resulting library dependency is
18691# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18692# library is relocated.
18693hardcode_direct_absolute=$hardcode_direct_absolute
18694
18695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18696# into the resulting binary.
18697hardcode_minus_L=$hardcode_minus_L
18698
18699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18700# into the resulting binary.
18701hardcode_shlibpath_var=$hardcode_shlibpath_var
18702
18703# Set to "yes" if building a shared library automatically hardcodes DIR
18704# into the library and all subsequent libraries and executables linked
18705# against it.
18706hardcode_automatic=$hardcode_automatic
18707
18708# Set to yes if linker adds runtime paths of dependent libraries
18709# to runtime path list.
18710inherit_rpath=$inherit_rpath
18711
18712# Whether libtool must link a program against all its dependency libraries.
18713link_all_deplibs=$link_all_deplibs
18714
a2479b3d
L
18715# Fix the shell variable \$srcfile for the compiler.
18716fix_srcfile_path=$lt_fix_srcfile_path
18717
f35db108
WM
18718# Set to "yes" if exported symbols are required.
18719always_export_symbols=$always_export_symbols
18720
18721# The commands to list exported symbols.
18722export_symbols_cmds=$lt_export_symbols_cmds
18723
18724# Symbols that should not be listed in the preloaded symbols.
18725exclude_expsyms=$lt_exclude_expsyms
18726
18727# Symbols that must always be exported.
18728include_expsyms=$lt_include_expsyms
18729
18730# Commands necessary for linking programs (against libraries) with templates.
18731prelink_cmds=$lt_prelink_cmds
18732
f35db108
WM
18733# Specify filename containing input files.
18734file_list_spec=$lt_file_list_spec
18735
18736# How to hardcode a shared library path into an executable.
18737hardcode_action=$hardcode_action
18738
18739# The directories searched by this compiler when creating a shared library.
18740compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18741
18742# Dependencies to place before and after the objects being linked to
18743# create a shared library.
18744predep_objects=$lt_predep_objects
18745postdep_objects=$lt_postdep_objects
18746predeps=$lt_predeps
18747postdeps=$lt_postdeps
18748
18749# The library search path used internally by the compiler when linking
18750# a shared library.
18751compiler_lib_search_path=$lt_compiler_lib_search_path
18752
18753# ### END LIBTOOL CONFIG
18754
18755_LT_EOF
18756
18757 case $host_os in
18758 aix3*)
18759 cat <<\_LT_EOF >> "$cfgfile"
18760# AIX sometimes has problems with the GCC collect2 program. For some
18761# reason, if we set the COLLECT_NAMES environment variable, the problems
18762# vanish in a puff of smoke.
18763if test "X${COLLECT_NAMES+set}" != Xset; then
18764 COLLECT_NAMES=
18765 export COLLECT_NAMES
18766fi
18767_LT_EOF
18768 ;;
18769 esac
18770
18771
18772ltmain="$ac_aux_dir/ltmain.sh"
18773
18774
18775 # We use sed instead of cat because bash on DJGPP gets confused if
18776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18777 # text mode, it properly converts lines to CR/LF. This bash problem
18778 # is reportedly fixed, but why not run on old versions too?
a2479b3d
L
18779 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18780 || (rm -f "$cfgfile"; exit 1)
18781
18782 case $xsi_shell in
18783 yes)
18784 cat << \_LT_EOF >> "$cfgfile"
18785
18786# func_dirname file append nondir_replacement
18787# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18788# otherwise set result to NONDIR_REPLACEMENT.
18789func_dirname ()
18790{
18791 case ${1} in
18792 */*) func_dirname_result="${1%/*}${2}" ;;
18793 * ) func_dirname_result="${3}" ;;
18794 esac
18795}
18796
18797# func_basename file
18798func_basename ()
18799{
18800 func_basename_result="${1##*/}"
18801}
18802
18803# func_dirname_and_basename file append nondir_replacement
18804# perform func_basename and func_dirname in a single function
18805# call:
18806# dirname: Compute the dirname of FILE. If nonempty,
18807# add APPEND to the result, otherwise set result
18808# to NONDIR_REPLACEMENT.
18809# value returned in "$func_dirname_result"
18810# basename: Compute filename of FILE.
18811# value retuned in "$func_basename_result"
18812# Implementation must be kept synchronized with func_dirname
18813# and func_basename. For efficiency, we do not delegate to
18814# those functions but instead duplicate the functionality here.
18815func_dirname_and_basename ()
18816{
18817 case ${1} in
18818 */*) func_dirname_result="${1%/*}${2}" ;;
18819 * ) func_dirname_result="${3}" ;;
18820 esac
18821 func_basename_result="${1##*/}"
18822}
18823
18824# func_stripname prefix suffix name
18825# strip PREFIX and SUFFIX off of NAME.
18826# PREFIX and SUFFIX must not contain globbing or regex special
18827# characters, hashes, percent signs, but SUFFIX may contain a leading
18828# dot (in which case that matches only a dot).
18829func_stripname ()
18830{
18831 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18832 # positional parameters, so assign one to ordinary parameter first.
18833 func_stripname_result=${3}
18834 func_stripname_result=${func_stripname_result#"${1}"}
18835 func_stripname_result=${func_stripname_result%"${2}"}
18836}
18837
18838# func_opt_split
18839func_opt_split ()
18840{
18841 func_opt_split_opt=${1%%=*}
18842 func_opt_split_arg=${1#*=}
18843}
18844
18845# func_lo2o object
18846func_lo2o ()
18847{
18848 case ${1} in
18849 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18850 *) func_lo2o_result=${1} ;;
18851 esac
18852}
18853
18854# func_xform libobj-or-source
18855func_xform ()
18856{
18857 func_xform_result=${1%.*}.lo
18858}
18859
18860# func_arith arithmetic-term...
18861func_arith ()
18862{
18863 func_arith_result=$(( $* ))
18864}
18865
18866# func_len string
18867# STRING may not start with a hyphen.
18868func_len ()
18869{
18870 func_len_result=${#1}
18871}
18872
18873_LT_EOF
18874 ;;
18875 *) # Bourne compatible functions.
18876 cat << \_LT_EOF >> "$cfgfile"
18877
18878# func_dirname file append nondir_replacement
18879# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18880# otherwise set result to NONDIR_REPLACEMENT.
18881func_dirname ()
18882{
18883 # Extract subdirectory from the argument.
18884 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18885 if test "X$func_dirname_result" = "X${1}"; then
18886 func_dirname_result="${3}"
18887 else
18888 func_dirname_result="$func_dirname_result${2}"
18889 fi
18890}
18891
18892# func_basename file
18893func_basename ()
18894{
18895 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18896}
18897
18898
18899# func_stripname prefix suffix name
18900# strip PREFIX and SUFFIX off of NAME.
18901# PREFIX and SUFFIX must not contain globbing or regex special
18902# characters, hashes, percent signs, but SUFFIX may contain a leading
18903# dot (in which case that matches only a dot).
18904# func_strip_suffix prefix name
18905func_stripname ()
18906{
18907 case ${2} in
18908 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18909 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18910 esac
18911}
18912
18913# sed scripts:
18914my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18915my_sed_long_arg='1s/^-[^=]*=//'
18916
18917# func_opt_split
18918func_opt_split ()
18919{
18920 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18921 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18922}
18923
18924# func_lo2o object
18925func_lo2o ()
18926{
18927 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18928}
18929
18930# func_xform libobj-or-source
18931func_xform ()
18932{
18933 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18934}
18935
18936# func_arith arithmetic-term...
18937func_arith ()
18938{
18939 func_arith_result=`expr "$@"`
18940}
18941
18942# func_len string
18943# STRING may not start with a hyphen.
18944func_len ()
18945{
18946 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18947}
18948
18949_LT_EOF
18950esac
18951
18952case $lt_shell_append in
18953 yes)
18954 cat << \_LT_EOF >> "$cfgfile"
18955
18956# func_append var value
18957# Append VALUE to the end of shell variable VAR.
18958func_append ()
18959{
18960 eval "$1+=\$2"
18961}
18962_LT_EOF
18963 ;;
18964 *)
18965 cat << \_LT_EOF >> "$cfgfile"
18966
18967# func_append var value
18968# Append VALUE to the end of shell variable VAR.
18969func_append ()
18970{
18971 eval "$1=\$$1\$2"
18972}
18973
18974_LT_EOF
18975 ;;
18976 esac
18977
18978
18979 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18980 || (rm -f "$cfgfile"; exit 1)
18981
18982 mv -f "$cfgfile" "$ofile" ||
f35db108
WM
18983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18984 chmod +x "$ofile"
18985
18986
18987 cat <<_LT_EOF >> "$ofile"
18988
18989# ### BEGIN LIBTOOL TAG CONFIG: CXX
18990
18991# The linker used to build libraries.
18992LD=$lt_LD_CXX
18993
18994# How to create reloadable object files.
18995reload_flag=$lt_reload_flag_CXX
18996reload_cmds=$lt_reload_cmds_CXX
18997
18998# Commands used to build an old-style archive.
18999old_archive_cmds=$lt_old_archive_cmds_CXX
19000
19001# A language specific compiler.
19002CC=$lt_compiler_CXX
19003
19004# Is the compiler the GNU compiler?
19005with_gcc=$GCC_CXX
19006
19007# Compiler flag to turn off builtin functions.
19008no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19009
f35db108
WM
19010# How to pass a linker flag through the compiler.
19011wl=$lt_lt_prog_compiler_wl_CXX
19012
a2479b3d
L
19013# Additional compiler flags for building library objects.
19014pic_flag=$lt_lt_prog_compiler_pic_CXX
19015
f35db108
WM
19016# Compiler flag to prevent dynamic linking.
19017link_static_flag=$lt_lt_prog_compiler_static_CXX
19018
19019# Does compiler simultaneously support -c and -o options?
19020compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19021
19022# Whether or not to add -lc for building shared libraries.
19023build_libtool_need_lc=$archive_cmds_need_lc_CXX
19024
19025# Whether or not to disallow shared libs when runtime libs are static.
19026allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19027
19028# Compiler flag to allow reflexive dlopens.
19029export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19030
19031# Compiler flag to generate shared objects directly from archives.
19032whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19033
19034# Whether the compiler copes with passing no objects directly.
19035compiler_needs_object=$lt_compiler_needs_object_CXX
19036
19037# Create an old-style archive from a shared archive.
19038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19039
19040# Create a temporary old-style archive to link instead of a shared archive.
19041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19042
19043# Commands used to build a shared archive.
19044archive_cmds=$lt_archive_cmds_CXX
19045archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19046
19047# Commands used to build a loadable module if different from building
19048# a shared archive.
19049module_cmds=$lt_module_cmds_CXX
19050module_expsym_cmds=$lt_module_expsym_cmds_CXX
19051
19052# Whether we are building with GNU ld or not.
19053with_gnu_ld=$lt_with_gnu_ld_CXX
19054
19055# Flag that allows shared libraries with undefined symbols to be built.
19056allow_undefined_flag=$lt_allow_undefined_flag_CXX
19057
19058# Flag that enforces no undefined symbols.
19059no_undefined_flag=$lt_no_undefined_flag_CXX
19060
19061# Flag to hardcode \$libdir into a binary during linking.
19062# This must work even if \$libdir does not exist
19063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19064
a2479b3d
L
19065# If ld is used when linking, flag to hardcode \$libdir into a binary
19066# during linking. This must work even if \$libdir does not exist.
19067hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19068
f35db108
WM
19069# Whether we need a single "-rpath" flag with a separated argument.
19070hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19071
19072# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19073# DIR into the resulting binary.
19074hardcode_direct=$hardcode_direct_CXX
19075
19076# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19077# DIR into the resulting binary and the resulting library dependency is
19078# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19079# library is relocated.
19080hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19081
19082# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19083# into the resulting binary.
19084hardcode_minus_L=$hardcode_minus_L_CXX
19085
19086# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19087# into the resulting binary.
19088hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19089
19090# Set to "yes" if building a shared library automatically hardcodes DIR
19091# into the library and all subsequent libraries and executables linked
19092# against it.
19093hardcode_automatic=$hardcode_automatic_CXX
19094
19095# Set to yes if linker adds runtime paths of dependent libraries
19096# to runtime path list.
19097inherit_rpath=$inherit_rpath_CXX
19098
19099# Whether libtool must link a program against all its dependency libraries.
19100link_all_deplibs=$link_all_deplibs_CXX
19101
a2479b3d
L
19102# Fix the shell variable \$srcfile for the compiler.
19103fix_srcfile_path=$lt_fix_srcfile_path_CXX
19104
f35db108
WM
19105# Set to "yes" if exported symbols are required.
19106always_export_symbols=$always_export_symbols_CXX
19107
19108# The commands to list exported symbols.
19109export_symbols_cmds=$lt_export_symbols_cmds_CXX
19110
19111# Symbols that should not be listed in the preloaded symbols.
19112exclude_expsyms=$lt_exclude_expsyms_CXX
19113
19114# Symbols that must always be exported.
19115include_expsyms=$lt_include_expsyms_CXX
19116
19117# Commands necessary for linking programs (against libraries) with templates.
19118prelink_cmds=$lt_prelink_cmds_CXX
19119
f35db108
WM
19120# Specify filename containing input files.
19121file_list_spec=$lt_file_list_spec_CXX
19122
19123# How to hardcode a shared library path into an executable.
19124hardcode_action=$hardcode_action_CXX
19125
19126# The directories searched by this compiler when creating a shared library.
19127compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19128
19129# Dependencies to place before and after the objects being linked to
19130# create a shared library.
19131predep_objects=$lt_predep_objects_CXX
19132postdep_objects=$lt_postdep_objects_CXX
19133predeps=$lt_predeps_CXX
19134postdeps=$lt_postdeps_CXX
19135
19136# The library search path used internally by the compiler when linking
19137# a shared library.
19138compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19139
19140# ### END LIBTOOL TAG CONFIG: CXX
19141_LT_EOF
19142
c915a581
JJ
19143 ;;
19144 "gstdint.h":C)
19145if test "$GCC" = yes; then
19146 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19147else
19148 echo "/* generated for $CC */" > tmp-stdint.h
19149fi
19150
19151sed 's/^ *//' >> tmp-stdint.h <<EOF
19152
19153 #ifndef GCC_GENERATED_STDINT_H
19154 #define GCC_GENERATED_STDINT_H 1
19155
19156 #include <sys/types.h>
19157EOF
19158
19159if test "$acx_cv_header_stdint" != stdint.h; then
19160 echo "#include <stddef.h>" >> tmp-stdint.h
19161fi
19162if test "$acx_cv_header_stdint" != stddef.h; then
19163 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19164fi
19165
19166sed 's/^ *//' >> tmp-stdint.h <<EOF
19167 /* glibc uses these symbols as guards to prevent redefinitions. */
19168 #ifdef __int8_t_defined
19169 #define _INT8_T
19170 #define _INT16_T
19171 #define _INT32_T
19172 #endif
19173 #ifdef __uint32_t_defined
19174 #define _UINT32_T
19175 #endif
19176
19177EOF
19178
19179# ----------------- done header, emit basic int types -------------
19180if test "$acx_cv_header_stdint" = stddef.h; then
19181 sed 's/^ *//' >> tmp-stdint.h <<EOF
19182
19183 #ifndef _UINT8_T
19184 #define _UINT8_T
19185 #ifndef __uint8_t_defined
19186 #define __uint8_t_defined
19187 #ifndef uint8_t
19188 typedef unsigned $acx_cv_type_int8_t uint8_t;
19189 #endif
19190 #endif
19191 #endif
19192
19193 #ifndef _UINT16_T
19194 #define _UINT16_T
19195 #ifndef __uint16_t_defined
19196 #define __uint16_t_defined
19197 #ifndef uint16_t
19198 typedef unsigned $acx_cv_type_int16_t uint16_t;
19199 #endif
19200 #endif
19201 #endif
19202
19203 #ifndef _UINT32_T
19204 #define _UINT32_T
19205 #ifndef __uint32_t_defined
19206 #define __uint32_t_defined
19207 #ifndef uint32_t
19208 typedef unsigned $acx_cv_type_int32_t uint32_t;
19209 #endif
19210 #endif
19211 #endif
19212
19213 #ifndef _INT8_T
19214 #define _INT8_T
19215 #ifndef __int8_t_defined
19216 #define __int8_t_defined
19217 #ifndef int8_t
19218 typedef $acx_cv_type_int8_t int8_t;
19219 #endif
19220 #endif
19221 #endif
19222
19223 #ifndef _INT16_T
19224 #define _INT16_T
19225 #ifndef __int16_t_defined
19226 #define __int16_t_defined
19227 #ifndef int16_t
19228 typedef $acx_cv_type_int16_t int16_t;
19229 #endif
19230 #endif
19231 #endif
19232
19233 #ifndef _INT32_T
19234 #define _INT32_T
19235 #ifndef __int32_t_defined
19236 #define __int32_t_defined
19237 #ifndef int32_t
19238 typedef $acx_cv_type_int32_t int32_t;
19239 #endif
19240 #endif
19241 #endif
19242EOF
19243elif test "$ac_cv_type_u_int32_t" = yes; then
19244 sed 's/^ *//' >> tmp-stdint.h <<EOF
19245
19246 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19247 #ifndef _INT8_T
19248 #define _INT8_T
19249 #endif
19250 #ifndef _INT16_T
19251 #define _INT16_T
19252 #endif
19253 #ifndef _INT32_T
19254 #define _INT32_T
19255 #endif
19256
19257 #ifndef _UINT8_T
19258 #define _UINT8_T
19259 #ifndef __uint8_t_defined
19260 #define __uint8_t_defined
19261 #ifndef uint8_t
19262 typedef u_int8_t uint8_t;
19263 #endif
19264 #endif
19265 #endif
19266
19267 #ifndef _UINT16_T
19268 #define _UINT16_T
19269 #ifndef __uint16_t_defined
19270 #define __uint16_t_defined
19271 #ifndef uint16_t
19272 typedef u_int16_t uint16_t;
19273 #endif
19274 #endif
19275 #endif
19276
19277 #ifndef _UINT32_T
19278 #define _UINT32_T
19279 #ifndef __uint32_t_defined
19280 #define __uint32_t_defined
19281 #ifndef uint32_t
19282 typedef u_int32_t uint32_t;
19283 #endif
19284 #endif
19285 #endif
19286EOF
19287else
19288 sed 's/^ *//' >> tmp-stdint.h <<EOF
19289
19290 /* Some systems have guard macros to prevent redefinitions, define them. */
19291 #ifndef _INT8_T
19292 #define _INT8_T
19293 #endif
19294 #ifndef _INT16_T
19295 #define _INT16_T
19296 #endif
19297 #ifndef _INT32_T
19298 #define _INT32_T
19299 #endif
19300 #ifndef _UINT8_T
19301 #define _UINT8_T
19302 #endif
19303 #ifndef _UINT16_T
19304 #define _UINT16_T
19305 #endif
19306 #ifndef _UINT32_T
19307 #define _UINT32_T
19308 #endif
19309EOF
19310fi
19311
19312# ------------- done basic int types, emit int64_t types ------------
19313if test "$ac_cv_type_uint64_t" = yes; then
19314 sed 's/^ *//' >> tmp-stdint.h <<EOF
19315
19316 /* system headers have good uint64_t and int64_t */
19317 #ifndef _INT64_T
19318 #define _INT64_T
19319 #endif
19320 #ifndef _UINT64_T
19321 #define _UINT64_T
19322 #endif
19323EOF
19324elif test "$ac_cv_type_u_int64_t" = yes; then
19325 sed 's/^ *//' >> tmp-stdint.h <<EOF
19326
19327 /* system headers have an u_int64_t (and int64_t) */
19328 #ifndef _INT64_T
19329 #define _INT64_T
19330 #endif
19331 #ifndef _UINT64_T
19332 #define _UINT64_T
19333 #ifndef __uint64_t_defined
19334 #define __uint64_t_defined
19335 #ifndef uint64_t
19336 typedef u_int64_t uint64_t;
19337 #endif
19338 #endif
19339 #endif
19340EOF
19341elif test -n "$acx_cv_type_int64_t"; then
19342 sed 's/^ *//' >> tmp-stdint.h <<EOF
19343
19344 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19345 #ifndef _INT64_T
19346 #define _INT64_T
19347 #ifndef int64_t
19348 typedef $acx_cv_type_int64_t int64_t;
19349 #endif
19350 #endif
19351 #ifndef _UINT64_T
19352 #define _UINT64_T
19353 #ifndef __uint64_t_defined
19354 #define __uint64_t_defined
19355 #ifndef uint64_t
19356 typedef unsigned $acx_cv_type_int64_t uint64_t;
19357 #endif
19358 #endif
19359 #endif
19360EOF
19361else
19362 sed 's/^ *//' >> tmp-stdint.h <<EOF
19363
19364 /* some common heuristics for int64_t, using compiler-specific tests */
19365 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19366 #ifndef _INT64_T
19367 #define _INT64_T
19368 #ifndef __int64_t_defined
19369 #ifndef int64_t
19370 typedef long long int64_t;
19371 #endif
19372 #endif
19373 #endif
19374 #ifndef _UINT64_T
19375 #define _UINT64_T
19376 #ifndef uint64_t
19377 typedef unsigned long long uint64_t;
19378 #endif
19379 #endif
19380
19381 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19382 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19383 does not implement __extension__. But that compiler doesn't define
19384 __GNUC_MINOR__. */
19385 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19386 # define __extension__
19387 # endif
19388
19389 # ifndef _INT64_T
19390 # define _INT64_T
19391 # ifndef int64_t
19392 __extension__ typedef long long int64_t;
19393 # endif
19394 # endif
19395 # ifndef _UINT64_T
19396 # define _UINT64_T
19397 # ifndef uint64_t
19398 __extension__ typedef unsigned long long uint64_t;
19399 # endif
19400 # endif
19401
19402 #elif !defined __STRICT_ANSI__
19403 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19404
19405 # ifndef _INT64_T
19406 # define _INT64_T
19407 # ifndef int64_t
19408 typedef __int64 int64_t;
19409 # endif
19410 # endif
19411 # ifndef _UINT64_T
19412 # define _UINT64_T
19413 # ifndef uint64_t
19414 typedef unsigned __int64 uint64_t;
19415 # endif
19416 # endif
19417 # endif /* compiler */
19418
19419 #endif /* ANSI version */
19420EOF
19421fi
19422
19423# ------------- done int64_t types, emit intptr types ------------
19424if test "$ac_cv_type_uintptr_t" != yes; then
19425 sed 's/^ *//' >> tmp-stdint.h <<EOF
19426
19427 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19428 #ifndef __uintptr_t_defined
19429 #ifndef uintptr_t
19430 typedef u$acx_cv_type_intptr_t uintptr_t;
19431 #endif
19432 #endif
19433 #ifndef __intptr_t_defined
19434 #ifndef intptr_t
19435 typedef $acx_cv_type_intptr_t intptr_t;
19436 #endif
19437 #endif
19438EOF
19439fi
19440
19441# ------------- done intptr types, emit int_least types ------------
19442if test "$ac_cv_type_int_least32_t" != yes; then
19443 sed 's/^ *//' >> tmp-stdint.h <<EOF
19444
19445 /* Define int_least types */
19446 typedef int8_t int_least8_t;
19447 typedef int16_t int_least16_t;
19448 typedef int32_t int_least32_t;
19449 #ifdef _INT64_T
19450 typedef int64_t int_least64_t;
19451 #endif
19452
19453 typedef uint8_t uint_least8_t;
19454 typedef uint16_t uint_least16_t;
19455 typedef uint32_t uint_least32_t;
19456 #ifdef _UINT64_T
19457 typedef uint64_t uint_least64_t;
19458 #endif
19459EOF
19460fi
19461
19462# ------------- done intptr types, emit int_fast types ------------
19463if test "$ac_cv_type_int_fast32_t" != yes; then
19464 sed 's/^ *//' >> tmp-stdint.h <<EOF
19465
19466 /* Define int_fast types. short is often slow */
19467 typedef int8_t int_fast8_t;
19468 typedef int int_fast16_t;
19469 typedef int32_t int_fast32_t;
19470 #ifdef _INT64_T
19471 typedef int64_t int_fast64_t;
19472 #endif
19473
19474 typedef uint8_t uint_fast8_t;
19475 typedef unsigned int uint_fast16_t;
19476 typedef uint32_t uint_fast32_t;
19477 #ifdef _UINT64_T
19478 typedef uint64_t uint_fast64_t;
19479 #endif
19480EOF
19481fi
19482
19483if test "$ac_cv_type_uintmax_t" != yes; then
19484 sed 's/^ *//' >> tmp-stdint.h <<EOF
19485
19486 /* Define intmax based on what we found */
19487 #ifndef intmax_t
19488 #ifdef _INT64_T
19489 typedef int64_t intmax_t;
19490 #else
19491 typedef long intmax_t;
19492 #endif
19493 #endif
19494 #ifndef uintmax_t
19495 #ifdef _UINT64_T
19496 typedef uint64_t uintmax_t;
19497 #else
19498 typedef unsigned long uintmax_t;
19499 #endif
19500 #endif
19501EOF
19502fi
19503
19504sed 's/^ *//' >> tmp-stdint.h <<EOF
19505
19506 #endif /* GCC_GENERATED_STDINT_H */
19507EOF
19508
19509if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19510 rm -f tmp-stdint.h
19511else
19512 mv -f tmp-stdint.h gstdint.h
19513fi
19514
f35db108
WM
19515 ;;
19516 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19517s!`test -f '$<' || echo '$(srcdir)/'`!!
19518_EOF
19519 sed -f vpsed$$ $ac_file > tmp$$
19520 mv tmp$$ $ac_file
19521 rm vpsed$$
19522 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19523 ml_norecursion=yes
19524 . ${multi_basedir}/config-ml.in
19525 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
19526 ;;
19527 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19528s!`test -f '$<' || echo '$(srcdir)/'`!!
c915a581
JJ
19529_EOF
19530 sed -f vpsed$$ $ac_file > tmp$$
19531 mv tmp$$ $ac_file
19532 rm vpsed$$
19533 echo 'MULTISUBDIR =' >> $ac_file
19534 ml_norecursion=yes
19535 . ${multi_basedir}/config-ml.in
19536 { ml_norecursion=; unset ml_norecursion;}
19537 ;;
19538 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19539s!`test -f '$<' || echo '$(srcdir)/'`!!
ef1b3fda
KS
19540_EOF
19541 sed -f vpsed$$ $ac_file > tmp$$
19542 mv tmp$$ $ac_file
19543 rm vpsed$$
19544 echo 'MULTISUBDIR =' >> $ac_file
19545 ml_norecursion=yes
19546 . ${multi_basedir}/config-ml.in
19547 { ml_norecursion=; unset ml_norecursion;}
19548 ;;
19549 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19550s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
19551_EOF
19552 sed -f vpsed$$ $ac_file > tmp$$
19553 mv tmp$$ $ac_file
19554 rm vpsed$$
19555 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19556 ml_norecursion=yes
19557 . ${multi_basedir}/config-ml.in
19558 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
19559 ;;
19560 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19561s!`test -f '$<' || echo '$(srcdir)/'`!!
de5a5fa1
MP
19562_EOF
19563 sed -f vpsed$$ $ac_file > tmp$$
19564 mv tmp$$ $ac_file
19565 rm vpsed$$
19566 echo 'MULTISUBDIR =' >> $ac_file
19567 ml_norecursion=yes
19568 . ${multi_basedir}/config-ml.in
19569 { ml_norecursion=; unset ml_norecursion;}
19570 ;;
19571 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19572s!`test -f '$<' || echo '$(srcdir)/'`!!
f35db108
WM
19573_EOF
19574 sed -f vpsed$$ $ac_file > tmp$$
19575 mv tmp$$ $ac_file
19576 rm vpsed$$
19577 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
19578 ml_norecursion=yes
19579 . ${multi_basedir}/config-ml.in
19580 { ml_norecursion=; unset ml_norecursion;}
f35db108 19581 ;;
cd0be65c
WM
19582 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19583s!`test -f '$<' || echo '$(srcdir)/'`!!
19584_EOF
19585 sed -f vpsed$$ $ac_file > tmp$$
19586 mv tmp$$ $ac_file
19587 rm vpsed$$
19588 echo 'MULTISUBDIR =' >> $ac_file
19589 ml_norecursion=yes
19590 . ${multi_basedir}/config-ml.in
19591 { ml_norecursion=; unset ml_norecursion;}
19592 ;;
f35db108
WM
19593
19594 esac
19595done # for ac_tag
19596
19597
19598as_fn_exit 0
19599_ACEOF
19600ac_clean_files=$ac_clean_files_save
19601
19602test $ac_write_fail = 0 ||
a2479b3d 19603 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
19604
19605
19606# configure is writing to config.log, and then calls config.status.
19607# config.status does its own redirection, appending to config.log.
19608# Unfortunately, on DOS this fails, as config.log is still kept open
19609# by configure, so config.status won't be able to write to it; its
19610# output is simply discarded. So we exec the FD to /dev/null,
19611# effectively closing config.log, so it can be properly (re)opened and
19612# appended to by config.status. When coming back to configure, we
19613# need to make the FD available again.
19614if test "$no_create" != yes; then
19615 ac_cs_success=:
19616 ac_config_status_args=
19617 test "$silent" = yes &&
19618 ac_config_status_args="$ac_config_status_args --quiet"
19619 exec 5>/dev/null
19620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19621 exec 5>>config.log
19622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19623 # would make configure fail if this is the last instruction.
a2479b3d 19624 $ac_cs_success || as_fn_exit $?
f35db108
WM
19625fi
19626if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19628$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19629fi
19630