]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/configure
Regenerate configure files for libtool.m4 change
[thirdparty/gcc.git] / libitm / configure
CommitLineData
0a35513e
AH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU TM Runtime Library'
558PACKAGE_TARNAME='libitm'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU TM Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578# include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604ARCH_FUTEX_FALSE
605ARCH_FUTEX_TRUE
d4b17902
RH
606ARCH_X86_AVX_FALSE
607ARCH_X86_AVX_TRUE
0a35513e
AH
608ARCH_X86_FALSE
609ARCH_X86_TRUE
aebac0ca
RH
610ARCH_ARM_FALSE
611ARCH_ARM_TRUE
0a35513e
AH
612link_itm
613XLDFLAGS
614XCFLAGS
615config_path
adcd36bc
RO
616LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
617LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
618LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
619LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
0a35513e
AH
620LIBITM_BUILD_VERSIONED_SHLIB_FALSE
621LIBITM_BUILD_VERSIONED_SHLIB_TRUE
622OPT_LDFLAGS
623SECTION_LDFLAGS
9ce91011
RO
624HAVE_HWCAP_FALSE
625HAVE_HWCAP_TRUE
626HWCAP_LDFLAGS
0a35513e
AH
627libtool_VERSION
628MAINT
629MAINTAINER_MODE_FALSE
630MAINTAINER_MODE_TRUE
631enable_static
632enable_shared
633CXXCPP
634CPP
635OTOOL64
636OTOOL
637LIPO
638NMEDIT
639DSYMUTIL
640OBJDUMP
641LN_S
642ac_ct_DUMPBIN
643DUMPBIN
644LD
645FGREP
646EGREP
647GREP
648SED
649LIBTOOL
650BUILD_INFO_FALSE
651BUILD_INFO_TRUE
652PERL
653RANLIB
654NM
655AR
656am__fastdepCCAS_FALSE
657am__fastdepCCAS_TRUE
658CCASDEPMODE
659CCASFLAGS
660CCAS
661am__fastdepCXX_FALSE
662am__fastdepCXX_TRUE
663CXXDEPMODE
664ac_ct_CXX
665CXXFLAGS
666CXX
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683toolexeclibdir
684toolexecdir
685multi_basedir
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721GENINSRC_FALSE
722GENINSRC_TRUE
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_version_specific_runtime_libs
765enable_generated_files_in_srcdir
766enable_multilib
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_gnu_ld
773enable_libtool_lock
774enable_maintainer_mode
775enable_linux_futex
776enable_tls
777enable_symvers
778'
779 ac_precious_vars='build_alias
780host_alias
781target_alias
782CPP
783CPPFLAGS
784CXXCPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs
1406 Specify that runtime libraries should be installed
1407 in a compiler-specific directory [default=no]
1408 --enable-generated-files-in-srcdir
1409 put copies of generated files in source dir intended
1410 for creating source tarballs for users without
1411 texinfo bison or flex. [default=no]
1412 --enable-multilib build many library versions (default)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422 --enable-linux-futex use the Linux futex system call [default=default]
1423 --enable-tls Use thread-local storage [default=yes]
1424 --enable-symvers=STYLE enables symbol versioning of the shared library
1425 [default=yes]
1426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CCAS assembler compiler command (defaults to CC)
1445 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1446 CPP C preprocessor
1447 CXXCPP C++ preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to the package provider.
1453GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1454General help using GNU software: <http://www.gnu.org/gethelp/>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516 cat <<\_ACEOF
1517GNU TM Runtime Library configure 1.0
1518generated by GNU Autoconf 2.64
1519
1520Copyright (C) 2009 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524 exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_cxx_try_compile LINENO
1570# ----------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_cxx_try_compile ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601fi
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1604
1605} # ac_fn_cxx_try_compile
1606
1607# ac_fn_c_try_link LINENO
1608# -----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_link ()
1611{
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1650
1651} # ac_fn_c_try_link
1652
1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654# -------------------------------------------------------
1655# Tests whether HEADER exists and can be compiled using the include files in
1656# INCLUDES, setting the cache variable VAR accordingly.
1657ac_fn_c_check_header_compile ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h. */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672else
1673 eval "$3=no"
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676fi
1677eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682} # ac_fn_c_check_header_compile
1683
1684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710else
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715fi
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1718
1719} # ac_fn_c_try_cpp
1720
1721# ac_fn_c_try_run LINENO
1722# ----------------------
1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724# that executables *can* be run.
1725ac_fn_c_try_run ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_c_try_run
1762
1763# ac_fn_c_check_func LINENO FUNC VAR
1764# ----------------------------------
1765# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766ac_fn_c_check_func ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778#define $2 innocuous_$2
1779
1780/* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785#ifdef __STDC__
1786# include <limits.h>
1787#else
1788# include <assert.h>
1789#endif
1790
1791#undef $2
1792
1793/* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796#ifdef __cplusplus
1797extern "C"
1798#endif
1799char $2 ();
1800/* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803#if defined __stub_$2 || defined __stub___$2
1804choke me
1805#endif
1806
1807int
1808main ()
1809{
1810return $2 ();
1811 ;
1812 return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817else
1818 eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_func
1829
1830# ac_fn_cxx_try_cpp LINENO
1831# ------------------------
1832# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_cxx_try_cpp ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } >/dev/null && {
1852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 }; then :
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1864
1865} # ac_fn_cxx_try_cpp
1866
1867# ac_fn_cxx_try_link LINENO
1868# -------------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_link ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 $as_test_x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897else
1898 $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902fi
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1910
1911} # ac_fn_cxx_try_link
1912
1913# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914# -------------------------------------------------------
1915# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916# the include files in INCLUDES and setting the cache variable VAR
1917# accordingly.
1918ac_fn_c_check_header_mongrel ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926fi
1927eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930else
1931 # Is the header compilable?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933$as_echo_n "checking $2 usability... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937#include <$2>
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1941else
1942 ac_header_compiler=no
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946$as_echo "$ac_header_compiler" >&6; }
1947
1948# Is the header present?
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950$as_echo_n "checking $2 presence... " >&6; }
1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1957else
1958 ac_header_preproc=no
1959fi
1960rm -f conftest.err conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962$as_echo "$ac_header_preproc" >&6; }
1963
1964# So? What about this header?
1965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 yes:no: )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ;;
1972 no:yes:* )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989else
1990 eval "$3=\$ac_header_compiler"
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995fi
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
1998} # ac_fn_c_check_header_mongrel
1999
2000# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001# -------------------------------------------
2002# Tests whether TYPE exists after having included INCLUDES, setting cache
2003# variable VAR accordingly.
2004ac_fn_c_check_type ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011else
2012 eval "$3=no"
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$4
2016int
2017main ()
2018{
2019if (sizeof ($2))
2020 return 0;
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029int
2030main ()
2031{
2032if (sizeof (($2)))
2033 return 0;
2034 ;
2035 return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_compile "$LINENO"; then :
2039
2040else
2041 eval "$3=yes"
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052} # ac_fn_c_check_type
2053
2054# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055# --------------------------------------------
2056# Tries to find the compile-time value of EXPR in a program that includes
2057# INCLUDES, setting VAR accordingly. Returns whether the value could be
2058# computed
2059ac_fn_c_compute_int ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) >= 0)];
2071test_array [0] = 0
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087test_array [0] = 0
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2095else
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2098 ac_lo= ac_hi=
2099 break
2100 fi
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) < 0)];
2113test_array [0] = 0
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=-1 ac_mid=-1
2121 while :; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129test_array [0] = 0
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2137else
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2140 ac_lo= ac_hi=
2141 break
2142 fi
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147else
2148 ac_lo= ac_hi=
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153# Binary search between lo and hi bounds.
2154while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158$4
2159int
2160main ()
2161{
2162static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163test_array [0] = 0
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid
2171else
2172 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175done
2176case $ac_lo in #((
2177?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178'') ac_retval=1 ;;
2179esac
2180 else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184static long int longval () { return $2; }
2185static unsigned long int ulongval () { return $2; }
2186#include <stdio.h>
2187#include <stdlib.h>
2188int
2189main ()
2190{
2191
2192 FILE *f = fopen ("conftest.val", "w");
2193 if (! f)
2194 return 1;
2195 if (($2) < 0)
2196 {
2197 long int i = longval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%ld", i);
2201 }
2202 else
2203 {
2204 unsigned long int i = ulongval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%lu", i);
2208 }
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2212
2213 ;
2214 return 0;
2215}
2216_ACEOF
2217if ac_fn_c_try_run "$LINENO"; then :
2218 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219else
2220 ac_retval=1
2221fi
2222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223 conftest.$ac_objext conftest.beam conftest.$ac_ext
2224rm -f conftest.val
2225
2226 fi
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 return $ac_retval
2229
2230} # ac_fn_c_compute_int
9ce91011
RO
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
0a35513e
AH
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 GNU TM Runtime Library $as_me 1.0, 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`
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
2391 cat <<\_ASBOX
2392## ---------------- ##
2393## Cache variables. ##
2394## ---------------- ##
2395_ASBOX
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
2429 cat <<\_ASBOX
2430## ----------------- ##
2431## Output variables. ##
2432## ----------------- ##
2433_ASBOX
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
2446 cat <<\_ASBOX
2447## ------------------- ##
2448## File substitutions. ##
2449## ------------------- ##
2450_ASBOX
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
2464 cat <<\_ASBOX
2465## ----------- ##
2466## confdefs.h. ##
2467## ----------- ##
2468_ASBOX
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
2523 ac_site_file1=$CONFIG_SITE
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
2534 if test -r "$ac_site_file"; then
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
2538 . "$ac_site_file"
2539 fi
2540done
2541
2542if test -r "$cache_file"; then
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
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;}
2614 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
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
2628
2629
2630ac_config_headers="$ac_config_headers config.h"
2631
2632
2633# -------
2634# Options
2635# -------
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2638$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2639 # Check whether --enable-version-specific-runtime-libs was given.
2640if test "${enable_version_specific_runtime_libs+set}" = set; then :
2641 enableval=$enable_version_specific_runtime_libs;
2642 case "$enableval" in
2643 yes|no) ;;
2644 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2645 esac
2646
2647else
2648 enable_version_specific_runtime_libs=no
2649fi
2650
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2653$as_echo "$enable_version_specific_runtime_libs" >&6; }
2654
2655# We would like our source tree to be readonly. However when releases or
2656# pre-releases are generated, the flex/bison generated files as well as the
2657# various formats of manuals need to be included along with the rest of the
2658# sources. Therefore we have --enable-generated-files-in-srcdir to do
2659# just that.
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2661$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2662 # Check whether --enable-generated-files-in-srcdir was given.
2663if test "${enable_generated_files_in_srcdir+set}" = set; then :
2664 enableval=$enable_generated_files_in_srcdir;
2665 case "$enableval" in
2666 yes|no) ;;
2667 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2668 esac
2669
2670else
2671 enable_generated_files_in_srcdir=no
2672fi
2673
2674
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2676$as_echo "$enable_generated_files_in_srcdir" >&6; }
2677 if test "$enable_generated_files_in_srcdir" = yes; then
2678 GENINSRC_TRUE=
2679 GENINSRC_FALSE='#'
2680else
2681 GENINSRC_TRUE='#'
2682 GENINSRC_FALSE=
2683fi
2684
2685
2686
2687# -------
2688# -------
2689
2690# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2691#
2692# You will slowly go insane if you do not grok the following fact: when
2693# building this library, the top-level /target/ becomes the library's /host/.
2694#
2695# configure then causes --target to default to --host, exactly like any
2696# other package using autoconf. Therefore, 'target' and 'host' will
2697# always be the same. This makes sense both for native and cross compilers
2698# just think about it for a little while. :-)
2699#
2700# Also, if this library is being configured as part of a cross compiler, the
2701# top-level configure script will pass the "real" host as $with_cross_host.
2702#
2703# Do not delete or change the following two lines. For why, see
2704# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2705ac_aux_dir=
2706for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707 for ac_t in install-sh install.sh shtool; do
2708 if test -f "$ac_dir/$ac_t"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/$ac_t -c"
2711 break 2
2712 fi
2713 done
2714done
2715if test -z "$ac_aux_dir"; then
2716 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717fi
2718
2719# These three variables are undocumented and unsupported,
2720# and are intended to be withdrawn in a future Autoconf release.
2721# They can cause serious problems if a builder's source tree is in a directory
2722# whose full name contains unusual characters.
2723ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2726
2727
2728# Make sure we can run config.sub.
2729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733$as_echo_n "checking build system type... " >&6; }
2734if test "${ac_cv_build+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 ac_build_alias=$build_alias
2738test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740test "x$ac_build_alias" = x &&
2741 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2742ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747$as_echo "$ac_cv_build" >&6; }
2748case $ac_cv_build in
2749*-*-*) ;;
2750*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751esac
2752build=$ac_cv_build
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_build
2755shift
2756build_cpu=$1
2757build_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761build_os=$*
2762IFS=$ac_save_IFS
2763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767$as_echo_n "checking host system type... " >&6; }
2768if test "${ac_cv_host+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776fi
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780$as_echo "$ac_cv_host" >&6; }
2781case $ac_cv_host in
2782*-*-*) ;;
2783*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784esac
2785host=$ac_cv_host
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_host
2788shift
2789host_cpu=$1
2790host_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794host_os=$*
2795IFS=$ac_save_IFS
2796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800$as_echo_n "checking target system type... " >&6; }
2801if test "${ac_cv_target+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2803else
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809fi
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813$as_echo "$ac_cv_target" >&6; }
2814case $ac_cv_target in
2815*-*-*) ;;
2816*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817esac
2818target=$ac_cv_target
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_target
2821shift
2822target_cpu=$1
2823target_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827target_os=$*
2828IFS=$ac_save_IFS
2829case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
2831
2832# The aliases save the names the user supplied, while $host etc.
2833# will get canonicalized.
2834test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
2838
2839target_alias=${target_alias-$host_alias}
2840
2841# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843# 1.9.0: minimum required version
2844# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845# of other PACKAGE_* variables will, however, and there's nothing
2846# we can do about that; they come from AC_INIT).
2847# foreign: we don't follow the normal rules for GNU packages (no COPYING
2848# file in the top srcdir, etc, etc), so stop complaining.
2849# -Wall: turns on all automake warnings...
2850# -Wno-portability: ...except this one, since GNU make is required.
2851# -Wno-override: ... and this one, since we do want this in testsuite.
2852am__api_version='1.11'
2853
2854# Find a good install program. We prefer a C program (faster),
2855# so one script is as good as another. But avoid the broken or
2856# incompatible versions:
2857# SysV /etc/install, /usr/sbin/install
2858# SunOS /usr/etc/install
2859# IRIX /sbin/install
2860# AIX /bin/install
2861# AmigaOS /C/install, which installs bootblocks on floppy discs
2862# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865# OS/2's system install, which has a completely different semantic
2866# ./install, which can be erroneously created by make from ./install.sh.
2867# Reject install programs that cannot install multiple files.
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2869$as_echo_n "checking for a BSD-compatible install... " >&6; }
2870if test -z "$INSTALL"; then
2871if test "${ac_cv_path_install+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 # Account for people who put trailing slashes in PATH elements.
2880case $as_dir/ in #((
2881 ./ | .// | /[cC]/* | \
2882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2883 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2884 /usr/ucb/* ) ;;
2885 *)
2886 # OSF1 and SCO ODT 3.0 have their own names for install.
2887 # Don't use installbsd from OSF since it installs stuff as root
2888 # by default.
2889 for ac_prog in ginstall scoinst install; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2892 if test $ac_prog = install &&
2893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # AIX install. It has an incompatible calling convention.
2895 :
2896 elif test $ac_prog = install &&
2897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898 # program-specific install script used by HP pwplus--don't use.
2899 :
2900 else
2901 rm -rf conftest.one conftest.two conftest.dir
2902 echo one > conftest.one
2903 echo two > conftest.two
2904 mkdir conftest.dir
2905 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2906 test -s conftest.one && test -s conftest.two &&
2907 test -s conftest.dir/conftest.one &&
2908 test -s conftest.dir/conftest.two
2909 then
2910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2911 break 3
2912 fi
2913 fi
2914 fi
2915 done
2916 done
2917 ;;
2918esac
2919
2920 done
2921IFS=$as_save_IFS
2922
2923rm -rf conftest.one conftest.two conftest.dir
2924
2925fi
2926 if test "${ac_cv_path_install+set}" = set; then
2927 INSTALL=$ac_cv_path_install
2928 else
2929 # As a last resort, use the slow shell script. Don't cache a
2930 # value for INSTALL within a source directory, because that will
2931 # break other packages using the cache if that directory is
2932 # removed, or if the value is a relative name.
2933 INSTALL=$ac_install_sh
2934 fi
2935fi
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2937$as_echo "$INSTALL" >&6; }
2938
2939# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2940# It thinks the first close brace ends the variable substitution.
2941test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942
2943test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944
2945test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2948$as_echo_n "checking whether build environment is sane... " >&6; }
2949# Just in case
2950sleep 1
2951echo timestamp > conftest.file
2952# Reject unsafe characters in $srcdir or the absolute working directory
2953# name. Accept space and tab only in the latter.
2954am_lf='
2955'
2956case `pwd` in
2957 *[\\\"\#\$\&\'\`$am_lf]*)
2958 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2959esac
2960case $srcdir in
2961 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2962 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2963esac
2964
2965# Do `set' in a subshell so we don't clobber the current shell's
2966# arguments. Must try -L first in case configure is actually a
2967# symlink; some systems play weird games with the mod time of symlinks
2968# (eg FreeBSD returns the mod time of the symlink's containing
2969# directory).
2970if (
2971 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2972 if test "$*" = "X"; then
2973 # -L didn't work.
2974 set X `ls -t "$srcdir/configure" conftest.file`
2975 fi
2976 rm -f conftest.file
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2979
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2985alias in your environment" "$LINENO" 5
2986 fi
2987
2988 test "$2" = conftest.file
2989 )
2990then
2991 # Ok.
2992 :
2993else
2994 as_fn_error "newly created file is older than distributed files!
2995Check your system clock" "$LINENO" 5
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
2999test "$program_prefix" != NONE &&
3000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3001# Use a double $ so make ignores it.
3002test "$program_suffix" != NONE &&
3003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004# Double any \ or $.
3005# By default was `s,x,x', remove it if useless.
3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3008
3009# expand $ac_aux_dir to an absolute path
3010am_aux_dir=`cd $ac_aux_dir && pwd`
3011
3012if test x"${MISSING+set}" != xset; then
3013 case $am_aux_dir in
3014 *\ * | *\ *)
3015 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016 *)
3017 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018 esac
3019fi
3020# Use eval to expand $SHELL
3021if eval "$MISSING --run true"; then
3022 am_missing_run="$MISSING --run "
3023else
3024 am_missing_run=
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3026$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3027fi
3028
3029if test x"${install_sh}" != xset; then
3030 case $am_aux_dir in
3031 *\ * | *\ *)
3032 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033 *)
3034 install_sh="\${SHELL} $am_aux_dir/install-sh"
3035 esac
3036fi
3037
3038# Installed binaries are usually stripped using `strip' when the user
3039# run `make install-strip'. However `strip' might not be the right
3040# tool to use in cross-compilation environments, therefore Automake
3041# will honor the `STRIP' environment variable to overrule this program.
3042if test "$cross_compiling" != no; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}strip; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if test "${ac_cv_prog_STRIP+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$STRIP"; then
3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074$as_echo "$STRIP" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$ac_cv_prog_STRIP"; then
3083 ac_ct_STRIP=$STRIP
3084 # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_STRIP="strip"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114$as_echo "$ac_ct_STRIP" >&6; }
3115else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120 if test "x$ac_ct_STRIP" = x; then
3121 STRIP=":"
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129 STRIP=$ac_ct_STRIP
3130 fi
3131else
3132 STRIP="$ac_cv_prog_STRIP"
3133fi
3134
3135fi
3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140if test -z "$MKDIR_P"; then
3141 if test "${ac_cv_path_mkdir+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_prog in mkdir gmkdir; do
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153 'mkdir (GNU coreutils) '* | \
3154 'mkdir (coreutils) '* | \
3155 'mkdir (fileutils) '4.1*)
3156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157 break 3;;
3158 esac
3159 done
3160 done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165
3166 if test "${ac_cv_path_mkdir+set}" = set; then
3167 MKDIR_P="$ac_cv_path_mkdir -p"
3168 else
3169 # As a last resort, use the slow shell script. Don't cache a
3170 # value for MKDIR_P within a source directory, because that will
3171 # break other packages using the cache if that directory is
3172 # removed, or if the value is a relative name.
3173 test -d ./--version && rmdir ./--version
3174 MKDIR_P="$ac_install_sh -d"
3175 fi
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178$as_echo "$MKDIR_P" >&6; }
3179
3180mkdir_p="$MKDIR_P"
3181case $mkdir_p in
3182 [\\/$]* | ?:[\\/]*) ;;
3183 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3184esac
3185
3186for ac_prog in gawk mawk nawk awk
3187do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if test "${ac_cv_prog_AWK+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194else
3195 if test -n "$AWK"; then
3196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_AWK="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210 done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215AWK=$ac_cv_prog_AWK
3216if test -n "$AWK"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218$as_echo "$AWK" >&6; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225 test -n "$AWK" && break
3226done
3227
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3230set x ${MAKE-make}
3231ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3233 $as_echo_n "(cached) " >&6
3234else
3235 cat >conftest.make <<\_ACEOF
3236SHELL = /bin/sh
3237all:
3238 @echo '@@@%%%=$(MAKE)=@@@%%%'
3239_ACEOF
3240# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3241case `${MAKE-make} -f conftest.make 2>/dev/null` in
3242 *@@@%%%=?*=@@@%%%*)
3243 eval ac_cv_prog_make_${ac_make}_set=yes;;
3244 *)
3245 eval ac_cv_prog_make_${ac_make}_set=no;;
3246esac
3247rm -f conftest.make
3248fi
3249if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
3252 SET_MAKE=
3253else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 SET_MAKE="MAKE=${MAKE-make}"
3257fi
3258
3259rm -rf .tst 2>/dev/null
3260mkdir .tst 2>/dev/null
3261if test -d .tst; then
3262 am__leading_dot=.
3263else
3264 am__leading_dot=_
3265fi
3266rmdir .tst 2>/dev/null
3267
3268if test "`cd $srcdir && pwd`" != "`pwd`"; then
3269 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3270 # is not polluted with repeated "-I."
3271 am__isrc=' -I$(srcdir)'
3272 # test to see if srcdir already configured
3273 if test -f $srcdir/config.status; then
3274 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3275 fi
3276fi
3277
3278# test whether we have cygpath
3279if test -z "$CYGPATH_W"; then
3280 if (cygpath --version) >/dev/null 2>/dev/null; then
3281 CYGPATH_W='cygpath -w'
3282 else
3283 CYGPATH_W=echo
3284 fi
3285fi
3286
3287
3288# Define the identity of the package.
3289 PACKAGE='libitm'
3290 VERSION='1.0'
3291
3292
3293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE "$PACKAGE"
3295_ACEOF
3296
3297
3298cat >>confdefs.h <<_ACEOF
3299#define VERSION "$VERSION"
3300_ACEOF
3301
3302# Some tools Automake needs.
3303
3304ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3305
3306
3307AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3308
3309
3310AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3311
3312
3313AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3314
3315
3316MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3317
3318# We need awk for the "check" target. The system "awk" is bad on
3319# some platforms.
3320# Always define AMTAR for backward compatibility.
3321
3322AMTAR=${AMTAR-"${am_missing_run}tar"}
3323
3324am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3325
3326
3327
3328
3329
3330# Default to --enable-multilib
3331# Check whether --enable-multilib was given.
3332if test "${enable_multilib+set}" = set; then :
3333 enableval=$enable_multilib; case "$enableval" in
3334 yes) multilib=yes ;;
3335 no) multilib=no ;;
3336 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3337 esac
3338else
3339 multilib=yes
3340fi
3341
3342
3343# We may get other options which we leave undocumented:
3344# --with-target-subdir, --with-multisrctop, --with-multisubdir
3345# See config-ml.in if you want the gory details.
3346
3347if test "$srcdir" = "."; then
3348 if test "$with_target_subdir" != "."; then
3349 multi_basedir="$srcdir/$with_multisrctop../.."
3350 else
3351 multi_basedir="$srcdir/$with_multisrctop.."
3352 fi
3353else
3354 multi_basedir="$srcdir/.."
3355fi
3356
3357
3358# Even if the default multilib is not a cross compilation,
3359# it may be that some of the other multilibs are.
3360if test $cross_compiling = no && test $multilib = yes \
3361 && test "x${with_multisubdir}" != x ; then
3362 cross_compiling=maybe
3363fi
3364
3365ac_config_commands="$ac_config_commands default-1"
3366
3367
3368# Calculate toolexeclibdir
3369# Also toolexecdir, though it's only used in toolexeclibdir
3370case ${enable_version_specific_runtime_libs} in
3371 yes)
3372 # Need the gcc compiler version to know where to install libraries
3373 # and header files if --enable-version-specific-runtime-libs option
3374 # is selected.
3375 toolexecdir='$(libdir)/gcc/$(target_alias)'
3376 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3377 ;;
3378 no)
3379 if test -n "$with_cross_host" &&
3380 test x"$with_cross_host" != x"no"; then
3381 # Install a library built with a cross compiler in tooldir, not libdir.
3382 toolexecdir='$(exec_prefix)/$(target_alias)'
3383 toolexeclibdir='$(toolexecdir)/lib'
3384 else
3385 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3386 toolexeclibdir='$(libdir)'
3387 fi
3388 multi_os_directory=`$CC -print-multi-os-directory`
3389 case $multi_os_directory in
3390 .) ;; # Avoid trailing /.
3391 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3392 esac
3393 ;;
3394esac
3395
3396
3397
3398# Check the compiler.
3399# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3400# We must force CC to /not/ be precious variables; otherwise
3401# the wrong, non-multilib-adjusted value will be used in multilibs.
3402# As a side effect, we have to subst CFLAGS ourselves.
3403
3404
3405
3406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if test "${ac_cv_prog_CC+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433done
3434 done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439CC=$ac_cv_prog_CC
3440if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442$as_echo "$CC" >&6; }
3443else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449fi
3450if test -z "$ac_cv_prog_CC"; then
3451 ac_ct_CC=$CC
3452 # Extract the first word of "gcc", so it can be a program name with args.
3453set dummy gcc; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458else
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473done
3474 done
3475IFS=$as_save_IFS
3476
3477fi
3478fi
3479ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482$as_echo "$ac_ct_CC" >&6; }
3483else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488 if test "x$ac_ct_CC" = x; then
3489 CC=""
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492yes:)
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495ac_tool_warned=yes ;;
3496esac
3497 CC=$ac_ct_CC
3498 fi
3499else
3500 CC="$ac_cv_prog_CC"
3501fi
3502
3503if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506set dummy ${ac_tool_prefix}cc; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if test "${ac_cv_prog_CC+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_CC="${ac_tool_prefix}cc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526done
3527 done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532CC=$ac_cv_prog_CC
3533if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535$as_echo "$CC" >&6; }
3536else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542 fi
3543fi
3544if test -z "$CC"; then
3545 # Extract the first word of "cc", so it can be a program name with args.
3546set dummy cc; ac_word=$2
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548$as_echo_n "checking for $ac_word... " >&6; }
3549if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554else
3555 ac_prog_rejected=no
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3564 ac_prog_rejected=yes
3565 continue
3566 fi
3567 ac_cv_prog_CC="cc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571done
3572 done
3573IFS=$as_save_IFS
3574
3575if test $ac_prog_rejected = yes; then
3576 # We found a bogon in the path, so make sure we never use it.
3577 set dummy $ac_cv_prog_CC
3578 shift
3579 if test $# != 0; then
3580 # We chose a different compiler from the bogus one.
3581 # However, it has the same basename, so the bogon will be chosen
3582 # first if we set CC to just the basename; use the full file name.
3583 shift
3584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3585 fi
3586fi
3587fi
3588fi
3589CC=$ac_cv_prog_CC
3590if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592$as_echo "$CC" >&6; }
3593else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596fi
3597
3598
3599fi
3600if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in cl.exe
3603 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
3608if test "${ac_cv_prog_CC+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3610else
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626 done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631CC=$ac_cv_prog_CC
3632if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634$as_echo "$CC" >&6; }
3635else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637$as_echo "no" >&6; }
3638fi
3639
3640
3641 test -n "$CC" && break
3642 done
3643fi
3644if test -z "$CC"; then
3645 ac_ct_CC=$CC
3646 for ac_prog in cl.exe
3647do
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649set dummy $ac_prog; ac_word=$2
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
3652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CC="$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669done
3670 done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678$as_echo "$ac_ct_CC" >&6; }
3679else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
3682fi
3683
3684
3685 test -n "$ac_ct_CC" && break
3686done
3687
3688 if test "x$ac_ct_CC" = x; then
3689 CC=""
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692yes:)
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695ac_tool_warned=yes ;;
3696esac
3697 CC=$ac_ct_CC
3698 fi
3699fi
3700
3701fi
3702
3703
3704test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error "no acceptable C compiler found in \$PATH
3707See \`config.log' for more details." "$LINENO" 5; }
3708
3709# Provide some information about the compiler.
3710$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711set X $ac_compile
3712ac_compiler=$2
3713for ac_option in --version -v -V -qversion; do
3714 { { ac_try="$ac_compiler $ac_option >&5"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722 ac_status=$?
3723 if test -s conftest.err; then
3724 sed '10a\
3725... rest of stderr output deleted ...
3726 10q' conftest.err >conftest.er1
3727 cat conftest.er1 >&5
3728 rm -f conftest.er1 conftest.err
3729 fi
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3732done
3733
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h. */
3736
3737int
3738main ()
3739{
3740
3741 ;
3742 return 0;
3743}
3744_ACEOF
3745ac_clean_files_save=$ac_clean_files
3746ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3747# Try to create an executable without -o first, disregard a.out.
3748# It will help us diagnose broken compilers, and finding out an intuition
3749# of exeext.
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3751$as_echo_n "checking for C compiler default output file name... " >&6; }
3752ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753
3754# The possible output files:
3755ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756
3757ac_rmfiles=
3758for ac_file in $ac_files
3759do
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 esac
3764done
3765rm -f $ac_rmfiles
3766
3767if { { ac_try="$ac_link_default"
3768case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_link_default") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then :
3778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780# in a Makefile. We should not override ac_cv_exeext if it was cached,
3781# so that the user can short-circuit this test for compilers unknown to
3782# Autoconf.
3783for ac_file in $ac_files ''
3784do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788 ;;
3789 [ab].out )
3790 # We found the default executable, but exeext='' is most
3791 # certainly right.
3792 break;;
3793 *.* )
3794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3795 then :; else
3796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 fi
3798 # We set ac_cv_exeext here because the later test for it is not
3799 # safe: cross compilers may not add the suffix if given an `-o'
3800 # argument, so we may need to know it at that point already.
3801 # Even if this section looks crufty: it has the advantage of
3802 # actually working.
3803 break;;
3804 * )
3805 break;;
3806 esac
3807done
3808test "$ac_cv_exeext" = no && ac_cv_exeext=
3809
3810else
3811 ac_file=''
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814$as_echo "$ac_file" >&6; }
3815if test -z "$ac_file"; then :
3816 $as_echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821{ as_fn_set_status 77
3822as_fn_error "C compiler cannot create executables
3823See \`config.log' for more details." "$LINENO" 5; }; }
3824fi
3825ac_exeext=$ac_cv_exeext
3826
3827# Check that the compiler produces executables we can run. If not, either
3828# the compiler is broken, or we cross compile.
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830$as_echo_n "checking whether the C compiler works... " >&6; }
3831# If not cross compiling, check that we can run a simple program.
3832if test "$cross_compiling" != yes; then
3833 if { ac_try='./$ac_file'
3834 { { case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839$as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_try") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; }; then
3844 cross_compiling=no
3845 else
3846 if test "$cross_compiling" = maybe; then
3847 cross_compiling=yes
3848 else
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851as_fn_error "cannot run C compiled programs.
3852If you meant to cross compile, use \`--host'.
3853See \`config.log' for more details." "$LINENO" 5; }
3854 fi
3855 fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858$as_echo "yes" >&6; }
3859
3860rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3861ac_clean_files=$ac_clean_files_save
3862# Check that the compiler produces executables we can run. If not, either
3863# the compiler is broken, or we cross compile.
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3865$as_echo_n "checking whether we are cross compiling... " >&6; }
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3867$as_echo "$cross_compiling" >&6; }
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3870$as_echo_n "checking for suffix of executables... " >&6; }
3871if { { ac_try="$ac_link"
3872case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_link") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3884# work properly (i.e., refer to `conftest.exe'), while it won't with
3885# `rm'.
3886for ac_file in conftest.exe conftest conftest.*; do
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 break;;
3892 * ) break;;
3893 esac
3894done
3895else
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898as_fn_error "cannot compute suffix of executables: cannot compile and link
3899See \`config.log' for more details." "$LINENO" 5; }
3900fi
3901rm -f conftest$ac_cv_exeext
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903$as_echo "$ac_cv_exeext" >&6; }
3904
3905rm -f conftest.$ac_ext
3906EXEEXT=$ac_cv_exeext
3907ac_exeext=$EXEEXT
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3909$as_echo_n "checking for suffix of object files... " >&6; }
3910if test "${ac_cv_objext+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915
3916int
3917main ()
3918{
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.o conftest.obj
3925if { { ac_try="$ac_compile"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931$as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_compile") 2>&5
3933 ac_status=$?
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; then :
3936 for ac_file in conftest.o conftest.obj conftest.*; do
3937 test -f "$ac_file" || continue;
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3941 break;;
3942 esac
3943done
3944else
3945 $as_echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950as_fn_error "cannot compute suffix of object files: cannot compile
3951See \`config.log' for more details." "$LINENO" 5; }
3952fi
3953rm -f conftest.$ac_cv_objext conftest.$ac_ext
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3956$as_echo "$ac_cv_objext" >&6; }
3957OBJEXT=$ac_cv_objext
3958ac_objext=$OBJEXT
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3961if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3963else
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
3970#ifndef __GNUC__
3971 choke me
3972#endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_compiler_gnu=yes
3980else
3981 ac_compiler_gnu=no
3982fi
3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984ac_cv_c_compiler_gnu=$ac_compiler_gnu
3985
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3988$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3989if test $ac_compiler_gnu = yes; then
3990 GCC=yes
3991else
3992 GCC=
3993fi
3994ac_test_CFLAGS=${CFLAGS+set}
3995ac_save_CFLAGS=$CFLAGS
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3997$as_echo_n "checking whether $CC accepts -g... " >&6; }
3998if test "${ac_cv_prog_cc_g+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 ac_save_c_werror_flag=$ac_c_werror_flag
4002 ac_c_werror_flag=yes
4003 ac_cv_prog_cc_g=no
4004 CFLAGS="-g"
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h. */
4007
4008int
4009main ()
4010{
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_g=yes
4018else
4019 CFLAGS=""
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */
4022
4023int
4024main ()
4025{
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_compile "$LINENO"; then :
4032
4033else
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4035 CFLAGS="-g"
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038
4039int
4040main ()
4041{
4042
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_cv_prog_cc_g=yes
4049fi
4050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051fi
4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053fi
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4058$as_echo "$ac_cv_prog_cc_g" >&6; }
4059if test "$ac_test_CFLAGS" = set; then
4060 CFLAGS=$ac_save_CFLAGS
4061elif test $ac_cv_prog_cc_g = yes; then
4062 if test "$GCC" = yes; then
4063 CFLAGS="-g -O2"
4064 else
4065 CFLAGS="-g"
4066 fi
4067else
4068 if test "$GCC" = yes; then
4069 CFLAGS="-O2"
4070 else
4071 CFLAGS=
4072 fi
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4075$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4076if test "${ac_cv_prog_cc_c89+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078else
4079 ac_cv_prog_cc_c89=no
4080ac_save_CC=$CC
4081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h. */
4083#include <stdarg.h>
4084#include <stdio.h>
4085#include <sys/types.h>
4086#include <sys/stat.h>
4087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4088struct buf { int x; };
4089FILE * (*rcsopen) (struct buf *, struct stat *, int);
4090static char *e (p, i)
4091 char **p;
4092 int i;
4093{
4094 return p[i];
4095}
4096static char *f (char * (*g) (char **, int), char **p, ...)
4097{
4098 char *s;
4099 va_list v;
4100 va_start (v,p);
4101 s = g (p, va_arg (v,int));
4102 va_end (v);
4103 return s;
4104}
4105
4106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4107 function prototypes and stuff, but not '\xHH' hex character constants.
4108 These don't provoke an error unfortunately, instead are silently treated
4109 as 'x'. The following induces an error, until -std is added to get
4110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4111 array size at least. It's necessary to write '\x00'==0 to get something
4112 that's true only with -std. */
4113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4114
4115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4116 inside strings and character constants. */
4117#define FOO(x) 'x'
4118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4119
4120int test (int i, double x);
4121struct s1 {int (*f) (int a);};
4122struct s2 {int (*f) (double a);};
4123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124int argc;
4125char **argv;
4126int
4127main ()
4128{
4129return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4136do
4137 CC="$ac_save_CC $ac_arg"
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_c89=$ac_arg
4140fi
4141rm -f core conftest.err conftest.$ac_objext
4142 test "x$ac_cv_prog_cc_c89" != "xno" && break
4143done
4144rm -f conftest.$ac_ext
4145CC=$ac_save_CC
4146
4147fi
4148# AC_CACHE_VAL
4149case "x$ac_cv_prog_cc_c89" in
4150 x)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4152$as_echo "none needed" >&6; } ;;
4153 xno)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4155$as_echo "unsupported" >&6; } ;;
4156 *)
4157 CC="$CC $ac_cv_prog_cc_c89"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4159$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4160esac
4161if test "x$ac_cv_prog_cc_c89" != xno; then :
4162
4163fi
4164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170DEPDIR="${am__leading_dot}deps"
4171
4172ac_config_commands="$ac_config_commands depfiles"
4173
4174
4175am_make=${MAKE-make}
4176cat > confinc << 'END'
4177am__doit:
4178 @echo this is the am__doit target
4179.PHONY: am__doit
4180END
4181# If we don't find an include directive, just comment out the code.
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4183$as_echo_n "checking for style of include used by $am_make... " >&6; }
4184am__include="#"
4185am__quote=
4186_am_result=none
4187# First try GNU make style include.
4188echo "include confinc" > confmf
4189# Ignore all kinds of additional output from `make'.
4190case `$am_make -s -f confmf 2> /dev/null` in #(
4191*the\ am__doit\ target*)
4192 am__include=include
4193 am__quote=
4194 _am_result=GNU
4195 ;;
4196esac
4197# Now try BSD make style include.
4198if test "$am__include" = "#"; then
4199 echo '.include "confinc"' > confmf
4200 case `$am_make -s -f confmf 2> /dev/null` in #(
4201 *the\ am__doit\ target*)
4202 am__include=.include
4203 am__quote="\""
4204 _am_result=BSD
4205 ;;
4206 esac
4207fi
4208
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4211$as_echo "$_am_result" >&6; }
4212rm -f confinc confmf
4213
4214# Check whether --enable-dependency-tracking was given.
4215if test "${enable_dependency_tracking+set}" = set; then :
4216 enableval=$enable_dependency_tracking;
4217fi
4218
4219if test "x$enable_dependency_tracking" != xno; then
4220 am_depcomp="$ac_aux_dir/depcomp"
4221 AMDEPBACKSLASH='\'
4222fi
4223 if test "x$enable_dependency_tracking" != xno; then
4224 AMDEP_TRUE=
4225 AMDEP_FALSE='#'
4226else
4227 AMDEP_TRUE='#'
4228 AMDEP_FALSE=
4229fi
4230
4231
4232
4233depcc="$CC" am_compiler_list=
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236$as_echo_n "checking dependency style of $depcc... " >&6; }
4237if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named `D' -- because `-MD' means `put the output
4245 # in D'.
4246 mkdir conftest.dir
4247 # Copy depcomp to subdir because otherwise we won't find it if we're
4248 # using a relative directory.
4249 cp "$am_depcomp" conftest.dir
4250 cd conftest.dir
4251 # We will build objects and dependencies in a subdirectory because
4252 # it helps to detect inapplicable dependency modes. For instance
4253 # both Tru64's cc and ICC support -MD to output dependencies as a
4254 # side effect of compilation, but ICC will put the dependencies in
4255 # the current directory while Tru64 will put them in the object
4256 # directory.
4257 mkdir sub
4258
4259 am_cv_CC_dependencies_compiler_type=none
4260 if test "$am_compiler_list" = ""; then
4261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4262 fi
4263 am__universal=false
4264 case " $depcc " in #(
4265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4266 esac
4267
4268 for depmode in $am_compiler_list; do
4269 # Setup a source with many dependencies, because some compilers
4270 # like to wrap large dependency lists on column 80 (with \), and
4271 # we should not choose a depcomp mode which is confused by this.
4272 #
4273 # We need to recreate these files for each test, as the compiler may
4274 # overwrite some of them when testing with obscure command lines.
4275 # This happens at least with the AIX C compiler.
4276 : > sub/conftest.c
4277 for i in 1 2 3 4 5 6; do
4278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280 # Solaris 8's {/usr,}/bin/sh.
4281 touch sub/conftst$i.h
4282 done
4283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4284
4285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4286 # mode. It turns out that the SunPro C++ compiler does not properly
4287 # handle `-M -o', and we need to detect this. Also, some Intel
4288 # versions had trouble with output in subdirs
4289 am__obj=sub/conftest.${OBJEXT-o}
4290 am__minus_obj="-o $am__obj"
4291 case $depmode in
4292 gcc)
4293 # This depmode causes a compiler race in universal mode.
4294 test "$am__universal" = false || continue
4295 ;;
4296 nosideeffect)
4297 # after this tag, mechanisms are not by side-effect, so they'll
4298 # only be used when explicitly requested
4299 if test "x$enable_dependency_tracking" = xyes; then
4300 continue
4301 else
4302 break
4303 fi
4304 ;;
4305 msvisualcpp | msvcmsys)
4306 # This compiler won't grok `-c -o', but also, the minuso test has
4307 # not run yet. These depmodes are late enough in the game, and
4308 # so weak that their functioning should not be impacted.
4309 am__obj=conftest.${OBJEXT-o}
4310 am__minus_obj=
4311 ;;
4312 none) break ;;
4313 esac
4314 if depmode=$depmode \
4315 source=sub/conftest.c object=$am__obj \
4316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4318 >/dev/null 2>conftest.err &&
4319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4323 # icc doesn't choke on unknown options, it will just issue warnings
4324 # or remarks (even with -Werror). So we grep stderr for any message
4325 # that says an option was ignored or not supported.
4326 # When given -MP, icc 7.0 and 7.1 complain thusly:
4327 # icc: Command line warning: ignoring option '-M'; no argument required
4328 # The diagnosis changed in icc 8.0:
4329 # icc: Command line remark: option '-MP' not supported
4330 if (grep 'ignoring option' conftest.err ||
4331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332 am_cv_CC_dependencies_compiler_type=$depmode
4333 break
4334 fi
4335 fi
4336 done
4337
4338 cd ..
4339 rm -rf conftest.dir
4340else
4341 am_cv_CC_dependencies_compiler_type=none
4342fi
4343
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4346$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4347CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4348
4349 if
4350 test "x$enable_dependency_tracking" != xno \
4351 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4352 am__fastdepCC_TRUE=
4353 am__fastdepCC_FALSE='#'
4354else
4355 am__fastdepCC_TRUE='#'
4356 am__fastdepCC_FALSE=
4357fi
4358
4359
4360ac_ext=cpp
4361ac_cpp='$CXXCPP $CPPFLAGS'
4362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4365if test -z "$CXX"; then
4366 if test -n "$CCC"; then
4367 CXX=$CCC
4368 else
4369 if test -n "$ac_tool_prefix"; then
4370 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4371 do
4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
4376if test "${ac_cv_prog_CXX+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378else
4379 if test -n "$CXX"; then
4380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393done
4394 done
4395IFS=$as_save_IFS
4396
4397fi
4398fi
4399CXX=$ac_cv_prog_CXX
4400if test -n "$CXX"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4402$as_echo "$CXX" >&6; }
4403else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406fi
4407
4408
4409 test -n "$CXX" && break
4410 done
4411fi
4412if test -z "$CXX"; then
4413 ac_ct_CXX=$CXX
4414 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4415do
4416 # Extract the first word of "$ac_prog", so it can be a program name with args.
4417set dummy $ac_prog; ac_word=$2
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
4420if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422else
4423 if test -n "$ac_ct_CXX"; then
4424 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_ac_ct_CXX="$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
4438 done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4444if test -n "$ac_ct_CXX"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4446$as_echo "$ac_ct_CXX" >&6; }
4447else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450fi
4451
4452
4453 test -n "$ac_ct_CXX" && break
4454done
4455
4456 if test "x$ac_ct_CXX" = x; then
4457 CXX="g++"
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465 CXX=$ac_ct_CXX
4466 fi
4467fi
4468
4469 fi
4470fi
4471# Provide some information about the compiler.
4472$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4473set X $ac_compile
4474ac_compiler=$2
4475for ac_option in --version -v -V -qversion; do
4476 { { ac_try="$ac_compiler $ac_option >&5"
4477case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480esac
4481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482$as_echo "$ac_try_echo"; } >&5
4483 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4484 ac_status=$?
4485 if test -s conftest.err; then
4486 sed '10a\
4487... rest of stderr output deleted ...
4488 10q' conftest.err >conftest.er1
4489 cat conftest.er1 >&5
4490 rm -f conftest.er1 conftest.err
4491 fi
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494done
4495
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4497$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4498if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500else
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503
4504int
4505main ()
4506{
4507#ifndef __GNUC__
4508 choke me
4509#endif
4510
4511 ;
4512 return 0;
4513}
4514_ACEOF
4515if ac_fn_cxx_try_compile "$LINENO"; then :
4516 ac_compiler_gnu=yes
4517else
4518 ac_compiler_gnu=no
4519fi
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4522
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4525$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4526if test $ac_compiler_gnu = yes; then
4527 GXX=yes
4528else
4529 GXX=
4530fi
4531ac_test_CXXFLAGS=${CXXFLAGS+set}
4532ac_save_CXXFLAGS=$CXXFLAGS
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4534$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4535if test "${ac_cv_prog_cxx_g+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4539 ac_cxx_werror_flag=yes
4540 ac_cv_prog_cxx_g=no
4541 CXXFLAGS="-g"
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544
4545int
4546main ()
4547{
4548
4549 ;
4550 return 0;
4551}
4552_ACEOF
4553if ac_fn_cxx_try_compile "$LINENO"; then :
4554 ac_cv_prog_cxx_g=yes
4555else
4556 CXXFLAGS=""
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559
4560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
4568if ac_fn_cxx_try_compile "$LINENO"; then :
4569
4570else
4571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 CXXFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575
4576int
4577main ()
4578{
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4586fi
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4595$as_echo "$ac_cv_prog_cxx_g" >&6; }
4596if test "$ac_test_CXXFLAGS" = set; then
4597 CXXFLAGS=$ac_save_CXXFLAGS
4598elif test $ac_cv_prog_cxx_g = yes; then
4599 if test "$GXX" = yes; then
4600 CXXFLAGS="-g -O2"
4601 else
4602 CXXFLAGS="-g"
4603 fi
4604else
4605 if test "$GXX" = yes; then
4606 CXXFLAGS="-O2"
4607 else
4608 CXXFLAGS=
4609 fi
4610fi
4611ac_ext=c
4612ac_cpp='$CPP $CPPFLAGS'
4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617depcc="$CXX" am_compiler_list=
4618
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4620$as_echo_n "checking dependency style of $depcc... " >&6; }
4621if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623else
4624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4625 # We make a subdir and do the tests there. Otherwise we can end up
4626 # making bogus files that we don't know about and never remove. For
4627 # instance it was reported that on HP-UX the gcc test will end up
4628 # making a dummy file named `D' -- because `-MD' means `put the output
4629 # in D'.
4630 mkdir conftest.dir
4631 # Copy depcomp to subdir because otherwise we won't find it if we're
4632 # using a relative directory.
4633 cp "$am_depcomp" conftest.dir
4634 cd conftest.dir
4635 # We will build objects and dependencies in a subdirectory because
4636 # it helps to detect inapplicable dependency modes. For instance
4637 # both Tru64's cc and ICC support -MD to output dependencies as a
4638 # side effect of compilation, but ICC will put the dependencies in
4639 # the current directory while Tru64 will put them in the object
4640 # directory.
4641 mkdir sub
4642
4643 am_cv_CXX_dependencies_compiler_type=none
4644 if test "$am_compiler_list" = ""; then
4645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4646 fi
4647 am__universal=false
4648 case " $depcc " in #(
4649 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4650 esac
4651
4652 for depmode in $am_compiler_list; do
4653 # Setup a source with many dependencies, because some compilers
4654 # like to wrap large dependency lists on column 80 (with \), and
4655 # we should not choose a depcomp mode which is confused by this.
4656 #
4657 # We need to recreate these files for each test, as the compiler may
4658 # overwrite some of them when testing with obscure command lines.
4659 # This happens at least with the AIX C compiler.
4660 : > sub/conftest.c
4661 for i in 1 2 3 4 5 6; do
4662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4664 # Solaris 8's {/usr,}/bin/sh.
4665 touch sub/conftst$i.h
4666 done
4667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668
4669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4670 # mode. It turns out that the SunPro C++ compiler does not properly
4671 # handle `-M -o', and we need to detect this. Also, some Intel
4672 # versions had trouble with output in subdirs
4673 am__obj=sub/conftest.${OBJEXT-o}
4674 am__minus_obj="-o $am__obj"
4675 case $depmode in
4676 gcc)
4677 # This depmode causes a compiler race in universal mode.
4678 test "$am__universal" = false || continue
4679 ;;
4680 nosideeffect)
4681 # after this tag, mechanisms are not by side-effect, so they'll
4682 # only be used when explicitly requested
4683 if test "x$enable_dependency_tracking" = xyes; then
4684 continue
4685 else
4686 break
4687 fi
4688 ;;
4689 msvisualcpp | msvcmsys)
4690 # This compiler won't grok `-c -o', but also, the minuso test has
4691 # not run yet. These depmodes are late enough in the game, and
4692 # so weak that their functioning should not be impacted.
4693 am__obj=conftest.${OBJEXT-o}
4694 am__minus_obj=
4695 ;;
4696 none) break ;;
4697 esac
4698 if depmode=$depmode \
4699 source=sub/conftest.c object=$am__obj \
4700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4701 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4702 >/dev/null 2>conftest.err &&
4703 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4705 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4707 # icc doesn't choke on unknown options, it will just issue warnings
4708 # or remarks (even with -Werror). So we grep stderr for any message
4709 # that says an option was ignored or not supported.
4710 # When given -MP, icc 7.0 and 7.1 complain thusly:
4711 # icc: Command line warning: ignoring option '-M'; no argument required
4712 # The diagnosis changed in icc 8.0:
4713 # icc: Command line remark: option '-MP' not supported
4714 if (grep 'ignoring option' conftest.err ||
4715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4716 am_cv_CXX_dependencies_compiler_type=$depmode
4717 break
4718 fi
4719 fi
4720 done
4721
4722 cd ..
4723 rm -rf conftest.dir
4724else
4725 am_cv_CXX_dependencies_compiler_type=none
4726fi
4727
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4730$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4731CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4732
4733 if
4734 test "x$enable_dependency_tracking" != xno \
4735 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4736 am__fastdepCXX_TRUE=
4737 am__fastdepCXX_FALSE='#'
4738else
4739 am__fastdepCXX_TRUE='#'
4740 am__fastdepCXX_FALSE=
4741fi
4742
4743
4744# By default we simply use the C compiler to build assembly code.
4745
4746test "${CCAS+set}" = set || CCAS=$CC
4747test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4748
4749
4750
4751depcc="$CCAS" am_compiler_list=
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4754$as_echo_n "checking dependency style of $depcc... " >&6; }
4755if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759 # We make a subdir and do the tests there. Otherwise we can end up
4760 # making bogus files that we don't know about and never remove. For
4761 # instance it was reported that on HP-UX the gcc test will end up
4762 # making a dummy file named `D' -- because `-MD' means `put the output
4763 # in D'.
4764 mkdir conftest.dir
4765 # Copy depcomp to subdir because otherwise we won't find it if we're
4766 # using a relative directory.
4767 cp "$am_depcomp" conftest.dir
4768 cd conftest.dir
4769 # We will build objects and dependencies in a subdirectory because
4770 # it helps to detect inapplicable dependency modes. For instance
4771 # both Tru64's cc and ICC support -MD to output dependencies as a
4772 # side effect of compilation, but ICC will put the dependencies in
4773 # the current directory while Tru64 will put them in the object
4774 # directory.
4775 mkdir sub
4776
4777 am_cv_CCAS_dependencies_compiler_type=none
4778 if test "$am_compiler_list" = ""; then
4779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780 fi
4781 am__universal=false
4782
4783
4784 for depmode in $am_compiler_list; do
4785 # Setup a source with many dependencies, because some compilers
4786 # like to wrap large dependency lists on column 80 (with \), and
4787 # we should not choose a depcomp mode which is confused by this.
4788 #
4789 # We need to recreate these files for each test, as the compiler may
4790 # overwrite some of them when testing with obscure command lines.
4791 # This happens at least with the AIX C compiler.
4792 : > sub/conftest.c
4793 for i in 1 2 3 4 5 6; do
4794 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4795 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4796 # Solaris 8's {/usr,}/bin/sh.
4797 touch sub/conftst$i.h
4798 done
4799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4800
4801 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4802 # mode. It turns out that the SunPro C++ compiler does not properly
4803 # handle `-M -o', and we need to detect this. Also, some Intel
4804 # versions had trouble with output in subdirs
4805 am__obj=sub/conftest.${OBJEXT-o}
4806 am__minus_obj="-o $am__obj"
4807 case $depmode in
4808 gcc)
4809 # This depmode causes a compiler race in universal mode.
4810 test "$am__universal" = false || continue
4811 ;;
4812 nosideeffect)
4813 # after this tag, mechanisms are not by side-effect, so they'll
4814 # only be used when explicitly requested
4815 if test "x$enable_dependency_tracking" = xyes; then
4816 continue
4817 else
4818 break
4819 fi
4820 ;;
4821 msvisualcpp | msvcmsys)
4822 # This compiler won't grok `-c -o', but also, the minuso test has
4823 # not run yet. These depmodes are late enough in the game, and
4824 # so weak that their functioning should not be impacted.
4825 am__obj=conftest.${OBJEXT-o}
4826 am__minus_obj=
4827 ;;
4828 none) break ;;
4829 esac
4830 if depmode=$depmode \
4831 source=sub/conftest.c object=$am__obj \
4832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4833 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4834 >/dev/null 2>conftest.err &&
4835 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4837 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4839 # icc doesn't choke on unknown options, it will just issue warnings
4840 # or remarks (even with -Werror). So we grep stderr for any message
4841 # that says an option was ignored or not supported.
4842 # When given -MP, icc 7.0 and 7.1 complain thusly:
4843 # icc: Command line warning: ignoring option '-M'; no argument required
4844 # The diagnosis changed in icc 8.0:
4845 # icc: Command line remark: option '-MP' not supported
4846 if (grep 'ignoring option' conftest.err ||
4847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4848 am_cv_CCAS_dependencies_compiler_type=$depmode
4849 break
4850 fi
4851 fi
4852 done
4853
4854 cd ..
4855 rm -rf conftest.dir
4856else
4857 am_cv_CCAS_dependencies_compiler_type=none
4858fi
4859
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4862$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4863CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4864
4865 if
4866 test "x$enable_dependency_tracking" != xno \
4867 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4868 am__fastdepCCAS_TRUE=
4869 am__fastdepCCAS_FALSE='#'
4870else
4871 am__fastdepCCAS_TRUE='#'
4872 am__fastdepCCAS_FALSE=
4873fi
4874
4875
4876
4877
4878
4879
4880# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4881# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4882# in both places for now and restore CFLAGS at the end of config.
4883save_CFLAGS="$CFLAGS"
4884
4885# Find other programs we need.
4886if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4888set dummy ${ac_tool_prefix}ar; ac_word=$2
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
4891if test "${ac_cv_prog_AR+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if test -n "$AR"; then
4895 ac_cv_prog_AR="$AR" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_AR="${ac_tool_prefix}ar"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909 done
4910IFS=$as_save_IFS
4911
4912fi
4913fi
4914AR=$ac_cv_prog_AR
4915if test -n "$AR"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4917$as_echo "$AR" >&6; }
4918else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
4921fi
4922
4923
4924fi
4925if test -z "$ac_cv_prog_AR"; then
4926 ac_ct_AR=$AR
4927 # Extract the first word of "ar", so it can be a program name with args.
4928set dummy ar; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 if test -n "$ac_ct_AR"; then
4935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_ac_ct_AR="ar"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949 done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954ac_ct_AR=$ac_cv_prog_ac_ct_AR
4955if test -n "$ac_ct_AR"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4957$as_echo "$ac_ct_AR" >&6; }
4958else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963 if test "x$ac_ct_AR" = x; then
4964 AR=""
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
4972 AR=$ac_ct_AR
4973 fi
4974else
4975 AR="$ac_cv_prog_AR"
4976fi
4977
4978if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4980set dummy ${ac_tool_prefix}nm; ac_word=$2
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982$as_echo_n "checking for $ac_word... " >&6; }
4983if test "${ac_cv_prog_NM+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985else
4986 if test -n "$NM"; then
4987 ac_cv_prog_NM="$NM" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_NM="${ac_tool_prefix}nm"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001 done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006NM=$ac_cv_prog_NM
5007if test -n "$NM"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5009$as_echo "$NM" >&6; }
5010else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
5014
5015
5016fi
5017if test -z "$ac_cv_prog_NM"; then
5018 ac_ct_NM=$NM
5019 # Extract the first word of "nm", so it can be a program name with args.
5020set dummy nm; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 if test -n "$ac_ct_NM"; then
5027 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_ac_ct_NM="nm"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041 done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046ac_ct_NM=$ac_cv_prog_ac_ct_NM
5047if test -n "$ac_ct_NM"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5049$as_echo "$ac_ct_NM" >&6; }
5050else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055 if test "x$ac_ct_NM" = x; then
5056 NM=""
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059yes:)
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062ac_tool_warned=yes ;;
5063esac
5064 NM=$ac_ct_NM
5065 fi
5066else
5067 NM="$ac_cv_prog_NM"
5068fi
5069
5070if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074$as_echo_n "checking for $ac_word... " >&6; }
5075if test "${ac_cv_prog_RANLIB+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077else
5078 if test -n "$RANLIB"; then
5079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5080else
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092done
5093 done
5094IFS=$as_save_IFS
5095
5096fi
5097fi
5098RANLIB=$ac_cv_prog_RANLIB
5099if test -n "$RANLIB"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5101$as_echo "$RANLIB" >&6; }
5102else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
5105fi
5106
5107
5108fi
5109if test -z "$ac_cv_prog_RANLIB"; then
5110 ac_ct_RANLIB=$RANLIB
5111 # Extract the first word of "ranlib", so it can be a program name with args.
5112set dummy ranlib; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$ac_ct_RANLIB"; then
5119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_RANLIB="ranlib"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5139if test -n "$ac_ct_RANLIB"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5141$as_echo "$ac_ct_RANLIB" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147 if test "x$ac_ct_RANLIB" = x; then
5148 RANLIB="ranlib-not-found-in-path-error"
5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151yes:)
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154ac_tool_warned=yes ;;
5155esac
5156 RANLIB=$ac_ct_RANLIB
5157 fi
5158else
5159 RANLIB="$ac_cv_prog_RANLIB"
5160fi
5161
5162# Extract the first word of "perl", so it can be a program name with args.
5163set dummy perl; ac_word=$2
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_path_PERL+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168else
5169 case $PERL in
5170 [\\/]* | ?:[\\/]*)
5171 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5172 ;;
5173 *)
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186 done
5187IFS=$as_save_IFS
5188
5189 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5190 ;;
5191esac
5192fi
5193PERL=$ac_cv_path_PERL
5194if test -n "$PERL"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5196$as_echo "$PERL" >&6; }
5197else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199$as_echo "no" >&6; }
5200fi
5201
5202
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5204$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5205set x ${MAKE-make}
5206ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5207if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5208 $as_echo_n "(cached) " >&6
5209else
5210 cat >conftest.make <<\_ACEOF
5211SHELL = /bin/sh
5212all:
5213 @echo '@@@%%%=$(MAKE)=@@@%%%'
5214_ACEOF
5215# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5216case `${MAKE-make} -f conftest.make 2>/dev/null` in
5217 *@@@%%%=?*=@@@%%%*)
5218 eval ac_cv_prog_make_${ac_make}_set=yes;;
5219 *)
5220 eval ac_cv_prog_make_${ac_make}_set=no;;
5221esac
5222rm -f conftest.make
5223fi
5224if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226$as_echo "yes" >&6; }
5227 SET_MAKE=
5228else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
5231 SET_MAKE="MAKE=${MAKE-make}"
5232fi
5233
5234
5235
5236# See if makeinfo has been installed and is modern enough
5237# that we can use it.
5238
5239 # Extract the first word of "makeinfo", so it can be a program name with args.
5240set dummy makeinfo; ac_word=$2
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
5243if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test -n "$MAKEINFO"; then
5247 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_MAKEINFO="makeinfo"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261 done
5262IFS=$as_save_IFS
5263
5264fi
5265fi
5266MAKEINFO=$ac_cv_prog_MAKEINFO
5267if test -n "$MAKEINFO"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5269$as_echo "$MAKEINFO" >&6; }
5270else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
5273fi
5274
5275
5276 if test -n "$MAKEINFO"; then
5277 # Found it, now check the version.
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5279$as_echo_n "checking for modern makeinfo... " >&6; }
5280if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5284 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5285
5286 case $ac_prog_version in
5287 '') gcc_cv_prog_makeinfo_modern=no;;
5288 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5289 *) gcc_cv_prog_makeinfo_modern=no;;
5290 esac
5291
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5294$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5295 else
5296 gcc_cv_prog_makeinfo_modern=no
5297 fi
5298 if test $gcc_cv_prog_makeinfo_modern = no; then
5299 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5300 fi
5301
5302 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5303 BUILD_INFO_TRUE=
5304 BUILD_INFO_FALSE='#'
5305else
5306 BUILD_INFO_TRUE='#'
5307 BUILD_INFO_FALSE=
5308fi
5309
5310
5311
5312# Configure libtool
5313case `pwd` in
5314 *\ * | *\ *)
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5316$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5317esac
5318
5319
5320
5321macro_version='2.2.7a'
5322macro_revision='1.3134'
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336ltmain="$ac_aux_dir/ltmain.sh"
5337
5338# Backslashify metacharacters that are still active within
5339# double-quoted strings.
5340sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5341
5342# Same as above, but do not quote variable references.
5343double_quote_subst='s/\(["`\\]\)/\\\1/g'
5344
5345# Sed substitution to delay expansion of an escaped shell variable in a
5346# double_quote_subst'ed string.
5347delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5348
5349# Sed substitution to delay expansion of an escaped single quote.
5350delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5351
5352# Sed substitution to avoid accidental globbing in evaled expressions
5353no_glob_subst='s/\*/\\\*/g'
5354
5355ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5356ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5357ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5358
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5360$as_echo_n "checking how to print strings... " >&6; }
5361# Test print first, because it will be a builtin if present.
5362if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5363 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5364 ECHO='print -r --'
5365elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5366 ECHO='printf %s\n'
5367else
5368 # Use this function as a fallback that always works.
5369 func_fallback_echo ()
5370 {
5371 eval 'cat <<_LTECHO_EOF
5372$1
5373_LTECHO_EOF'
5374 }
5375 ECHO='func_fallback_echo'
5376fi
5377
5378# func_echo_all arg...
5379# Invoke $ECHO with all args, space-separated.
5380func_echo_all ()
5381{
5382 $ECHO ""
5383}
5384
5385case "$ECHO" in
5386 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5387$as_echo "printf" >&6; } ;;
5388 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5389$as_echo "print -r" >&6; } ;;
5390 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5391$as_echo "cat" >&6; } ;;
5392esac
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5408$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5409if test "${ac_cv_path_SED+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411else
5412 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5413 for ac_i in 1 2 3 4 5 6 7; do
5414 ac_script="$ac_script$as_nl$ac_script"
5415 done
5416 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5417 { ac_script=; unset ac_script;}
5418 if test -z "$SED"; then
5419 ac_path_SED_found=false
5420 # Loop through the user's path and test for each of PROGNAME-LIST
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_prog in sed gsed; do
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5429 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5430# Check for GNU ac_path_SED and select it if it is found.
5431 # Check for GNU $ac_path_SED
5432case `"$ac_path_SED" --version 2>&1` in
5433*GNU*)
5434 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5435*)
5436 ac_count=0
5437 $as_echo_n 0123456789 >"conftest.in"
5438 while :
5439 do
5440 cat "conftest.in" "conftest.in" >"conftest.tmp"
5441 mv "conftest.tmp" "conftest.in"
5442 cp "conftest.in" "conftest.nl"
5443 $as_echo '' >> "conftest.nl"
5444 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5446 as_fn_arith $ac_count + 1 && ac_count=$as_val
5447 if test $ac_count -gt ${ac_path_SED_max-0}; then
5448 # Best one so far, save it but keep looking for a better one
5449 ac_cv_path_SED="$ac_path_SED"
5450 ac_path_SED_max=$ac_count
5451 fi
5452 # 10*(2^10) chars as input seems more than enough
5453 test $ac_count -gt 10 && break
5454 done
5455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5456esac
5457
5458 $ac_path_SED_found && break 3
5459 done
5460 done
5461 done
5462IFS=$as_save_IFS
5463 if test -z "$ac_cv_path_SED"; then
5464 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5465 fi
5466else
5467 ac_cv_path_SED=$SED
5468fi
5469
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5472$as_echo "$ac_cv_path_SED" >&6; }
5473 SED="$ac_cv_path_SED"
5474 rm -f conftest.sed
5475
5476test -z "$SED" && SED=sed
5477Xsed="$SED -e 1s/^X//"
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5490$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5491if test "${ac_cv_path_GREP+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 if test -z "$GREP"; then
5495 ac_path_GREP_found=false
5496 # Loop through the user's path and test for each of PROGNAME-LIST
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_prog in grep ggrep; do
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5505 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5506# Check for GNU ac_path_GREP and select it if it is found.
5507 # Check for GNU $ac_path_GREP
5508case `"$ac_path_GREP" --version 2>&1` in
5509*GNU*)
5510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5511*)
5512 ac_count=0
5513 $as_echo_n 0123456789 >"conftest.in"
5514 while :
5515 do
5516 cat "conftest.in" "conftest.in" >"conftest.tmp"
5517 mv "conftest.tmp" "conftest.in"
5518 cp "conftest.in" "conftest.nl"
5519 $as_echo 'GREP' >> "conftest.nl"
5520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522 as_fn_arith $ac_count + 1 && ac_count=$as_val
5523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5524 # Best one so far, save it but keep looking for a better one
5525 ac_cv_path_GREP="$ac_path_GREP"
5526 ac_path_GREP_max=$ac_count
5527 fi
5528 # 10*(2^10) chars as input seems more than enough
5529 test $ac_count -gt 10 && break
5530 done
5531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532esac
5533
5534 $ac_path_GREP_found && break 3
5535 done
5536 done
5537 done
5538IFS=$as_save_IFS
5539 if test -z "$ac_cv_path_GREP"; then
5540 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541 fi
5542else
5543 ac_cv_path_GREP=$GREP
5544fi
5545
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5548$as_echo "$ac_cv_path_GREP" >&6; }
5549 GREP="$ac_cv_path_GREP"
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5553$as_echo_n "checking for egrep... " >&6; }
5554if test "${ac_cv_path_EGREP+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556else
5557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5558 then ac_cv_path_EGREP="$GREP -E"
5559 else
5560 if test -z "$EGREP"; then
5561 ac_path_EGREP_found=false
5562 # Loop through the user's path and test for each of PROGNAME-LIST
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_prog in egrep; do
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5572# Check for GNU ac_path_EGREP and select it if it is found.
5573 # Check for GNU $ac_path_EGREP
5574case `"$ac_path_EGREP" --version 2>&1` in
5575*GNU*)
5576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5577*)
5578 ac_count=0
5579 $as_echo_n 0123456789 >"conftest.in"
5580 while :
5581 do
5582 cat "conftest.in" "conftest.in" >"conftest.tmp"
5583 mv "conftest.tmp" "conftest.in"
5584 cp "conftest.in" "conftest.nl"
5585 $as_echo 'EGREP' >> "conftest.nl"
5586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5588 as_fn_arith $ac_count + 1 && ac_count=$as_val
5589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5590 # Best one so far, save it but keep looking for a better one
5591 ac_cv_path_EGREP="$ac_path_EGREP"
5592 ac_path_EGREP_max=$ac_count
5593 fi
5594 # 10*(2^10) chars as input seems more than enough
5595 test $ac_count -gt 10 && break
5596 done
5597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598esac
5599
5600 $ac_path_EGREP_found && break 3
5601 done
5602 done
5603 done
5604IFS=$as_save_IFS
5605 if test -z "$ac_cv_path_EGREP"; then
5606 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5607 fi
5608else
5609 ac_cv_path_EGREP=$EGREP
5610fi
5611
5612 fi
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5615$as_echo "$ac_cv_path_EGREP" >&6; }
5616 EGREP="$ac_cv_path_EGREP"
5617
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5620$as_echo_n "checking for fgrep... " >&6; }
5621if test "${ac_cv_path_FGREP+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5625 then ac_cv_path_FGREP="$GREP -F"
5626 else
5627 if test -z "$FGREP"; then
5628 ac_path_FGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in fgrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5639# Check for GNU ac_path_FGREP and select it if it is found.
5640 # Check for GNU $ac_path_FGREP
5641case `"$ac_path_FGREP" --version 2>&1` in
5642*GNU*)
5643 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5644*)
5645 ac_count=0
5646 $as_echo_n 0123456789 >"conftest.in"
5647 while :
5648 do
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo 'FGREP' >> "conftest.nl"
5653 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_FGREP="$ac_path_FGREP"
5659 ac_path_FGREP_max=$ac_count
5660 fi
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5663 done
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665esac
5666
5667 $ac_path_FGREP_found && break 3
5668 done
5669 done
5670 done
5671IFS=$as_save_IFS
5672 if test -z "$ac_cv_path_FGREP"; then
5673 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5674 fi
5675else
5676 ac_cv_path_FGREP=$FGREP
5677fi
5678
5679 fi
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5682$as_echo "$ac_cv_path_FGREP" >&6; }
5683 FGREP="$ac_cv_path_FGREP"
5684
5685
5686test -z "$GREP" && GREP=grep
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706# Check whether --with-gnu-ld was given.
5707if test "${with_gnu_ld+set}" = set; then :
5708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709else
5710 with_gnu_ld=no
5711fi
5712
5713ac_prog=ld
5714if test "$GCC" = yes; then
5715 # Check if gcc -print-prog-name=ld gives a path.
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5717$as_echo_n "checking for ld used by $CC... " >&6; }
5718 case $host in
5719 *-*-mingw*)
5720 # gcc leaves a trailing carriage return which upsets mingw
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5722 *)
5723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724 esac
5725 case $ac_prog in
5726 # Accept absolute paths.
5727 [\\/]* | ?:[\\/]*)
5728 re_direlt='/[^/][^/]*/\.\./'
5729 # Canonicalize the pathname of ld
5730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5733 done
5734 test -z "$LD" && LD="$ac_prog"
5735 ;;
5736 "")
5737 # If it fails, then pretend we aren't using GCC.
5738 ac_prog=ld
5739 ;;
5740 *)
5741 # If it is relative, then search for the first ld in PATH.
5742 with_gnu_ld=unknown
5743 ;;
5744 esac
5745elif test "$with_gnu_ld" = yes; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5747$as_echo_n "checking for GNU ld... " >&6; }
5748else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5750$as_echo_n "checking for non-GNU ld... " >&6; }
5751fi
5752if test "${lt_cv_path_LD+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754else
5755 if test -z "$LD"; then
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH; do
5758 IFS="$lt_save_ifs"
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761 lt_cv_path_LD="$ac_dir/$ac_prog"
5762 # Check to see if the program is GNU ld. I'd rather use --version,
5763 # but apparently some variants of GNU ld only accept -v.
5764 # Break only if it was the GNU/non-GNU ld that we prefer.
5765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766 *GNU* | *'with BFD'*)
5767 test "$with_gnu_ld" != no && break
5768 ;;
5769 *)
5770 test "$with_gnu_ld" != yes && break
5771 ;;
5772 esac
5773 fi
5774 done
5775 IFS="$lt_save_ifs"
5776else
5777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778fi
5779fi
5780
5781LD="$lt_cv_path_LD"
5782if test -n "$LD"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5784$as_echo "$LD" >&6; }
5785else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787$as_echo "no" >&6; }
5788fi
5789test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5791$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5792if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794else
5795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796case `$LD -v 2>&1 </dev/null` in
5797*GNU* | *'with BFD'*)
5798 lt_cv_prog_gnu_ld=yes
5799 ;;
5800*)
5801 lt_cv_prog_gnu_ld=no
5802 ;;
5803esac
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5806$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5807with_gnu_ld=$lt_cv_prog_gnu_ld
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5818$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5819if test "${lt_cv_path_NM+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5824 lt_cv_path_NM="$NM"
5825else
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5829 fi
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833 IFS="$lt_save_ifs"
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5844 break
5845 ;;
5846 *)
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848 */dev/null*)
5849 lt_cv_path_NM="$tmp_nm -p"
5850 break
5851 ;;
5852 *)
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5855 ;;
5856 esac
5857 ;;
5858 esac
5859 fi
5860 done
5861 IFS="$lt_save_ifs"
5862 done
5863 : ${lt_cv_path_NM=no}
5864fi
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5867$as_echo "$lt_cv_path_NM" >&6; }
5868if test "$lt_cv_path_NM" != "no"; then
5869 NM="$lt_cv_path_NM"
5870else
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$DUMPBIN"; then :
5873 # Let the user override the test.
5874 else
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in dumpbin "link -dump"
5877 do
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
5882if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884else
5885 if test -n "$DUMPBIN"; then
5886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900 done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905DUMPBIN=$ac_cv_prog_DUMPBIN
5906if test -n "$DUMPBIN"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5908$as_echo "$DUMPBIN" >&6; }
5909else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915 test -n "$DUMPBIN" && break
5916 done
5917fi
5918if test -z "$DUMPBIN"; then
5919 ac_ct_DUMPBIN=$DUMPBIN
5920 for ac_prog in dumpbin "link -dump"
5921do
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923set dummy $ac_prog; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928else
5929 if test -n "$ac_ct_DUMPBIN"; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950if test -n "$ac_ct_DUMPBIN"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5952$as_echo "$ac_ct_DUMPBIN" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959 test -n "$ac_ct_DUMPBIN" && break
5960done
5961
5962 if test "x$ac_ct_DUMPBIN" = x; then
5963 DUMPBIN=":"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 DUMPBIN=$ac_ct_DUMPBIN
5972 fi
5973fi
5974
5975 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5976 *COFF*)
5977 DUMPBIN="$DUMPBIN -symbols"
5978 ;;
5979 *)
5980 DUMPBIN=:
5981 ;;
5982 esac
5983 fi
5984
5985 if test "$DUMPBIN" != ":"; then
5986 NM="$DUMPBIN"
5987 fi
5988fi
5989test -z "$NM" && NM=nm
5990
5991
5992
5993
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5997$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5998if test "${lt_cv_nm_interface+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 lt_cv_nm_interface="BSD nm"
6002 echo "int some_variable = 0;" > conftest.$ac_ext
6003 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6004 (eval "$ac_compile" 2>conftest.err)
6005 cat conftest.err >&5
6006 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6008 cat conftest.err >&5
6009 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6010 cat conftest.out >&5
6011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6012 lt_cv_nm_interface="MS dumpbin"
6013 fi
6014 rm -f conftest*
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6017$as_echo "$lt_cv_nm_interface" >&6; }
6018
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6020$as_echo_n "checking whether ln -s works... " >&6; }
6021LN_S=$as_ln_s
6022if test "$LN_S" = "ln -s"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6024$as_echo "yes" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6027$as_echo "no, using $LN_S" >&6; }
6028fi
6029
6030# find the maximum length of command line arguments
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6032$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6033if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 i=0
6037 teststring="ABCD"
6038
6039 case $build_os in
6040 msdosdjgpp*)
6041 # On DJGPP, this test can blow up pretty badly due to problems in libc
6042 # (any single argument exceeding 2000 bytes causes a buffer overrun
6043 # during glob expansion). Even if it were fixed, the result of this
6044 # check would be larger than it should be.
6045 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6046 ;;
6047
6048 gnu*)
6049 # Under GNU Hurd, this test is not required because there is
6050 # no limit to the length of command line arguments.
6051 # Libtool will interpret -1 as no limit whatsoever
6052 lt_cv_sys_max_cmd_len=-1;
6053 ;;
6054
6055 cygwin* | mingw* | cegcc*)
6056 # On Win9x/ME, this test blows up -- it succeeds, but takes
6057 # about 5 minutes as the teststring grows exponentially.
6058 # Worse, since 9x/ME are not pre-emptively multitasking,
6059 # you end up with a "frozen" computer, even though with patience
6060 # the test eventually succeeds (with a max line length of 256k).
6061 # Instead, let's just punt: use the minimum linelength reported by
6062 # all of the supported platforms: 8192 (on NT/2K/XP).
6063 lt_cv_sys_max_cmd_len=8192;
6064 ;;
6065
6066 mint*)
6067 # On MiNT this can take a long time and run out of memory.
6068 lt_cv_sys_max_cmd_len=8192;
6069 ;;
6070
6071 amigaos*)
6072 # On AmigaOS with pdksh, this test takes hours, literally.
6073 # So we just punt and use a minimum line length of 8192.
6074 lt_cv_sys_max_cmd_len=8192;
6075 ;;
6076
6077 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6078 # This has been around since 386BSD, at least. Likely further.
6079 if test -x /sbin/sysctl; then
6080 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6081 elif test -x /usr/sbin/sysctl; then
6082 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6083 else
6084 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6085 fi
6086 # And add a safety zone
6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6089 ;;
6090
6091 interix*)
6092 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6093 lt_cv_sys_max_cmd_len=196608
6094 ;;
6095
6096 osf*)
6097 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6098 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6099 # nice to cause kernel panics so lets avoid the loop below.
6100 # First set a reasonable default.
6101 lt_cv_sys_max_cmd_len=16384
6102 #
6103 if test -x /sbin/sysconfig; then
6104 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6105 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6106 esac
6107 fi
6108 ;;
6109 sco3.2v5*)
6110 lt_cv_sys_max_cmd_len=102400
6111 ;;
6112 sysv5* | sco5v6* | sysv4.2uw2*)
6113 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6114 if test -n "$kargmax"; then
6115 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6116 else
6117 lt_cv_sys_max_cmd_len=32768
6118 fi
6119 ;;
6120 *)
6121 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6122 if test -n "$lt_cv_sys_max_cmd_len"; then
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 else
6126 # Make teststring a little bigger before we do anything with it.
6127 # a 1K string should be a reasonable start.
6128 for i in 1 2 3 4 5 6 7 8 ; do
6129 teststring=$teststring$teststring
6130 done
6131 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6132 # If test is not a shell built-in, we'll probably end up computing a
6133 # maximum length that is only half of the actual maximum length, but
6134 # we can't tell.
6135 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6136 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6137 test $i != 17 # 1/2 MB should be enough
6138 do
6139 i=`expr $i + 1`
6140 teststring=$teststring$teststring
6141 done
6142 # Only check the string length outside the loop.
6143 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6144 teststring=
6145 # Add a significant safety factor because C++ compilers can tack on
6146 # massive amounts of additional arguments before passing them to the
6147 # linker. It appears as though 1/2 is a usable value.
6148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6149 fi
6150 ;;
6151 esac
6152
6153fi
6154
6155if test -n $lt_cv_sys_max_cmd_len ; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6157$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6158else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6160$as_echo "none" >&6; }
6161fi
6162max_cmd_len=$lt_cv_sys_max_cmd_len
6163
6164
6165
6166
6167
6168
6169: ${CP="cp -f"}
6170: ${MV="mv -f"}
6171: ${RM="rm -f"}
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6174$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6175# Try some XSI features
6176xsi_shell=no
6177( _lt_dummy="a/b/c"
6178 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6179 = c,a/b,, \
6180 && eval 'test $(( 1 + 1 )) -eq 2 \
6181 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6182 && xsi_shell=yes
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6184$as_echo "$xsi_shell" >&6; }
6185
6186
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6188$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6189lt_shell_append=no
6190( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6191 >/dev/null 2>&1 \
6192 && lt_shell_append=yes
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6194$as_echo "$lt_shell_append" >&6; }
6195
6196
6197if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6198 lt_unset=unset
6199else
6200 lt_unset=false
6201fi
6202
6203
6204
6205
6206
6207# test EBCDIC or ASCII
6208case `echo X|tr X '\101'` in
6209 A) # ASCII based system
6210 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6211 lt_SP2NL='tr \040 \012'
6212 lt_NL2SP='tr \015\012 \040\040'
6213 ;;
6214 *) # EBCDIC based system
6215 lt_SP2NL='tr \100 \n'
6216 lt_NL2SP='tr \r\n \100\100'
6217 ;;
6218esac
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6229$as_echo_n "checking for $LD option to reload object files... " >&6; }
6230if test "${lt_cv_ld_reload_flag+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6232else
6233 lt_cv_ld_reload_flag='-r'
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6236$as_echo "$lt_cv_ld_reload_flag" >&6; }
6237reload_flag=$lt_cv_ld_reload_flag
6238case $reload_flag in
6239"" | " "*) ;;
6240*) reload_flag=" $reload_flag" ;;
6241esac
6242reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243case $host_os in
6244 darwin*)
6245 if test "$GCC" = yes; then
6246 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6247 else
6248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249 fi
6250 ;;
6251esac
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6263set dummy ${ac_tool_prefix}objdump; ac_word=$2
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265$as_echo_n "checking for $ac_word... " >&6; }
6266if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268else
6269 if test -n "$OBJDUMP"; then
6270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283done
6284 done
6285IFS=$as_save_IFS
6286
6287fi
6288fi
6289OBJDUMP=$ac_cv_prog_OBJDUMP
6290if test -n "$OBJDUMP"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6292$as_echo "$OBJDUMP" >&6; }
6293else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295$as_echo "no" >&6; }
6296fi
6297
6298
6299fi
6300if test -z "$ac_cv_prog_OBJDUMP"; then
6301 ac_ct_OBJDUMP=$OBJDUMP
6302 # Extract the first word of "objdump", so it can be a program name with args.
6303set dummy objdump; ac_word=$2
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305$as_echo_n "checking for $ac_word... " >&6; }
6306if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308else
6309 if test -n "$ac_ct_OBJDUMP"; then
6310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6311else
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323done
6324 done
6325IFS=$as_save_IFS
6326
6327fi
6328fi
6329ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6330if test -n "$ac_ct_OBJDUMP"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6332$as_echo "$ac_ct_OBJDUMP" >&6; }
6333else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335$as_echo "no" >&6; }
6336fi
6337
6338 if test "x$ac_ct_OBJDUMP" = x; then
6339 OBJDUMP="false"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342yes:)
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345ac_tool_warned=yes ;;
6346esac
6347 OBJDUMP=$ac_ct_OBJDUMP
6348 fi
6349else
6350 OBJDUMP="$ac_cv_prog_OBJDUMP"
6351fi
6352
6353test -z "$OBJDUMP" && OBJDUMP=objdump
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6364$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6365if test "${lt_cv_deplibs_check_method+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6367else
6368 lt_cv_file_magic_cmd='$MAGIC_CMD'
6369lt_cv_file_magic_test_file=
6370lt_cv_deplibs_check_method='unknown'
6371# Need to set the preceding variable on all platforms that support
6372# interlibrary dependencies.
6373# 'none' -- dependencies not supported.
6374# `unknown' -- same as none, but documents that we really don't know.
6375# 'pass_all' -- all dependencies passed with no checks.
6376# 'test_compile' -- check by making test program.
6377# 'file_magic [[regex]]' -- check by looking for files in library path
6378# which responds to the $file_magic_cmd with a given extended regex.
6379# If you have `file' or equivalent on your system and you're not sure
6380# whether `pass_all' will *always* work, you probably want this one.
6381
6382case $host_os in
6383aix[4-9]*)
6384 lt_cv_deplibs_check_method=pass_all
6385 ;;
6386
6387beos*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391bsdi[45]*)
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6393 lt_cv_file_magic_cmd='/usr/bin/file -L'
6394 lt_cv_file_magic_test_file=/shlib/libc.so
6395 ;;
6396
6397cygwin*)
6398 # func_win32_libid is a shell function defined in ltmain.sh
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6401 ;;
6402
6403mingw* | pw32*)
6404 # Base MSYS/MinGW do not provide the 'file' command needed by
6405 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6406 # unless we find 'file', for example because we are cross-compiling.
6407 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6408 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410 lt_cv_file_magic_cmd='func_win32_libid'
6411 else
6412 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6413 lt_cv_file_magic_cmd='$OBJDUMP -f'
6414 fi
6415 ;;
6416
6417cegcc*)
6418 # use the weaker test based on 'objdump'. See mingw*.
6419 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6420 lt_cv_file_magic_cmd='$OBJDUMP -f'
6421 ;;
6422
6423darwin* | rhapsody*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427freebsd* | dragonfly*)
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 case $host_cpu in
6430 i*86 )
6431 # Not sure whether the presence of OpenBSD here was a mistake.
6432 # Let's accept both of them until this is cleared up.
6433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6434 lt_cv_file_magic_cmd=/usr/bin/file
6435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6436 ;;
6437 esac
6438 else
6439 lt_cv_deplibs_check_method=pass_all
6440 fi
6441 ;;
6442
6443gnu*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447haiku*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451hpux10.20* | hpux11*)
6452 lt_cv_file_magic_cmd=/usr/bin/file
6453 case $host_cpu in
6454 ia64*)
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6457 ;;
6458 hppa*64*)
6459 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]'
6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6461 ;;
6462 *)
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6465 ;;
6466 esac
6467 ;;
6468
6469interix[3-9]*)
6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6472 ;;
6473
6474irix5* | irix6* | nonstopux*)
6475 case $LD in
6476 *-32|*"-32 ") libmagic=32-bit;;
6477 *-n32|*"-n32 ") libmagic=N32;;
6478 *-64|*"-64 ") libmagic=64-bit;;
6479 *) libmagic=never-match;;
6480 esac
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484# This must be Linux ELF.
6485linux* | k*bsd*-gnu | kopensolaris*-gnu)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489netbsd*)
6490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6494 fi
6495 ;;
6496
6497newos6*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499 lt_cv_file_magic_cmd=/usr/bin/file
6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6501 ;;
6502
6503*nto* | *qnx*)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507openbsd*)
6508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 else
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512 fi
6513 ;;
6514
6515osf3* | osf4* | osf5*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519rdos*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523solaris*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531sysv4 | sysv4.3*)
6532 case $host_vendor in
6533 motorola)
6534 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]'
6535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536 ;;
6537 ncr)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540 sequent)
6541 lt_cv_file_magic_cmd='/bin/file'
6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543 ;;
6544 sni)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547 lt_cv_file_magic_test_file=/lib/libc.so
6548 ;;
6549 siemens)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552 pc)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555 esac
6556 ;;
6557
6558tpf*)
6559 lt_cv_deplibs_check_method=pass_all
6560 ;;
6561esac
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6565$as_echo "$lt_cv_deplibs_check_method" >&6; }
6566file_magic_cmd=$lt_cv_file_magic_cmd
6567deplibs_check_method=$lt_cv_deplibs_check_method
6568test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583set dummy ${ac_tool_prefix}ar; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if test "${ac_cv_prog_AR+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588else
6589 if test -n "$AR"; then
6590 ac_cv_prog_AR="$AR" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_AR="${ac_tool_prefix}ar"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604 done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609AR=$ac_cv_prog_AR
6610if test -n "$AR"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6612$as_echo "$AR" >&6; }
6613else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618
6619fi
6620if test -z "$ac_cv_prog_AR"; then
6621 ac_ct_AR=$AR
6622 # Extract the first word of "ar", so it can be a program name with args.
6623set dummy ar; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628else
6629 if test -n "$ac_ct_AR"; then
6630 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_ac_ct_AR="ar"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643done
6644 done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649ac_ct_AR=$ac_cv_prog_ac_ct_AR
6650if test -n "$ac_ct_AR"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6652$as_echo "$ac_ct_AR" >&6; }
6653else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658 if test "x$ac_ct_AR" = x; then
6659 AR="false"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662yes:)
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665ac_tool_warned=yes ;;
6666esac
6667 AR=$ac_ct_AR
6668 fi
6669else
6670 AR="$ac_cv_prog_AR"
6671fi
6672
6673test -z "$AR" && AR=ar
6674test -z "$AR_FLAGS" && AR_FLAGS=cru
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6688set dummy ${ac_tool_prefix}strip; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if test "${ac_cv_prog_STRIP+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$STRIP"; then
6695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714STRIP=$ac_cv_prog_STRIP
6715if test -n "$STRIP"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6717$as_echo "$STRIP" >&6; }
6718else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723
6724fi
6725if test -z "$ac_cv_prog_STRIP"; then
6726 ac_ct_STRIP=$STRIP
6727 # Extract the first word of "strip", so it can be a program name with args.
6728set dummy strip; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$ac_ct_STRIP"; then
6735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_STRIP="strip"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749 done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755if test -n "$ac_ct_STRIP"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6757$as_echo "$ac_ct_STRIP" >&6; }
6758else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763 if test "x$ac_ct_STRIP" = x; then
6764 STRIP=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767yes:)
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770ac_tool_warned=yes ;;
6771esac
6772 STRIP=$ac_ct_STRIP
6773 fi
6774else
6775 STRIP="$ac_cv_prog_STRIP"
6776fi
6777
6778test -z "$STRIP" && STRIP=:
6779
6780
6781
6782
6783
6784
6785if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if test "${ac_cv_prog_RANLIB+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792else
6793 if test -n "$RANLIB"; then
6794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808 done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813RANLIB=$ac_cv_prog_RANLIB
6814if test -n "$RANLIB"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6816$as_echo "$RANLIB" >&6; }
6817else
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_RANLIB"; then
6825 ac_ct_RANLIB=$RANLIB
6826 # Extract the first word of "ranlib", so it can be a program name with args.
6827set dummy ranlib; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832else
6833 if test -n "$ac_ct_RANLIB"; then
6834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_RANLIB="ranlib"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848 done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854if test -n "$ac_ct_RANLIB"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6856$as_echo "$ac_ct_RANLIB" >&6; }
6857else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862 if test "x$ac_ct_RANLIB" = x; then
6863 RANLIB=":"
6864 else
6865 case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871 RANLIB=$ac_ct_RANLIB
6872 fi
6873else
6874 RANLIB="$ac_cv_prog_RANLIB"
6875fi
6876
6877test -z "$RANLIB" && RANLIB=:
6878
6879
6880
6881
6882
6883
6884# Determine commands to create old-style static archives.
6885old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886old_postinstall_cmds='chmod 644 $oldlib'
6887old_postuninstall_cmds=
6888
6889if test -n "$RANLIB"; then
6890 case $host_os in
6891 openbsd*)
6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893 ;;
6894 *)
6895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896 ;;
6897 esac
6898 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6899fi
6900
6901case $host_os in
6902 darwin*)
6903 lock_old_archive_extraction=yes ;;
6904 *)
6905 lock_old_archive_extraction=no ;;
6906esac
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946# If no C compiler was specified, use CC.
6947LTCC=${LTCC-"$CC"}
6948
6949# If no C compiler flags were specified, use CFLAGS.
6950LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6951
6952# Allow CC to be a program name with arguments.
6953compiler=$CC
6954
6955
6956# Check for command to grab the raw symbol name followed by C symbol from nm.
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6958$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6959if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961else
6962
6963# These are sane defaults that work on at least a few old systems.
6964# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6965
6966# Character class describing NM global symbol codes.
6967symcode='[BCDEGRST]'
6968
6969# Regexp to match symbols that can be accessed directly from C.
6970sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6971
6972# Define system-specific variables.
6973case $host_os in
6974aix*)
6975 symcode='[BCDT]'
6976 ;;
6977cygwin* | mingw* | pw32* | cegcc*)
6978 symcode='[ABCDGISTW]'
6979 ;;
6980hpux*)
6981 if test "$host_cpu" = ia64; then
6982 symcode='[ABCDEGRST]'
6983 fi
6984 ;;
6985irix* | nonstopux*)
6986 symcode='[BCDEGRST]'
6987 ;;
6988osf*)
6989 symcode='[BCDEGQRST]'
6990 ;;
6991solaris*)
6992 symcode='[BDRT]'
6993 ;;
6994sco3.2v5*)
6995 symcode='[DT]'
6996 ;;
6997sysv4.2uw2*)
6998 symcode='[DT]'
6999 ;;
7000sysv5* | sco5v6* | unixware* | OpenUNIX*)
7001 symcode='[ABDT]'
7002 ;;
7003sysv4)
7004 symcode='[DFNSTU]'
7005 ;;
7006esac
7007
7008# If we're using GNU nm, then use its standard symbol codes.
7009case `$NM -V 2>&1` in
7010*GNU* | *'with BFD'*)
7011 symcode='[ABCDGIRSTW]' ;;
7012esac
7013
7014# Transform an extracted symbol line into a proper C declaration.
7015# Some systems (esp. on ia64) link data and code symbols differently,
7016# so use this general approach.
7017lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7018
7019# Transform an extracted symbol line into symbol name and symbol address
7020lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7021lt_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'"
7022
7023# Handle CRLF in mingw tool chain
7024opt_cr=
7025case $build_os in
7026mingw*)
7027 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7028 ;;
7029esac
7030
7031# Try without a prefix underscore, then with it.
7032for ac_symprfx in "" "_"; do
7033
7034 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7035 symxfrm="\\1 $ac_symprfx\\2 \\2"
7036
7037 # Write the raw and C identifiers.
7038 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7039 # Fake it for dumpbin and say T for any non-static function
7040 # and D for any global variable.
7041 # Also find C++ and __fastcall symbols from MSVC++,
7042 # which start with @ or ?.
7043 lt_cv_sys_global_symbol_pipe="$AWK '"\
7044" {last_section=section; section=\$ 3};"\
7045" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7046" \$ 0!~/External *\|/{next};"\
7047" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7048" {if(hide[section]) next};"\
7049" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7050" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7051" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7052" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7053" ' prfx=^$ac_symprfx"
7054 else
7055 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7056 fi
7057
7058 # Check to see that the pipe works correctly.
7059 pipe_works=no
7060
7061 rm -f conftest*
7062 cat > conftest.$ac_ext <<_LT_EOF
7063#ifdef __cplusplus
7064extern "C" {
7065#endif
7066char nm_test_var;
7067void nm_test_func(void);
7068void nm_test_func(void){}
7069#ifdef __cplusplus
7070}
7071#endif
7072int main(){nm_test_var='a';nm_test_func();return(0);}
7073_LT_EOF
7074
7075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7076 (eval $ac_compile) 2>&5
7077 ac_status=$?
7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079 test $ac_status = 0; }; then
7080 # Now try to grab the symbols.
7081 nlist=conftest.nm
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7083 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; } && test -s "$nlist"; then
7087 # Try sorting and uniquifying the output.
7088 if sort "$nlist" | uniq > "$nlist"T; then
7089 mv -f "$nlist"T "$nlist"
7090 else
7091 rm -f "$nlist"T
7092 fi
7093
7094 # Make sure that we snagged all the symbols we need.
7095 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7096 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7097 cat <<_LT_EOF > conftest.$ac_ext
7098#ifdef __cplusplus
7099extern "C" {
7100#endif
7101
7102_LT_EOF
7103 # Now generate the symbol file.
7104 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7105
7106 cat <<_LT_EOF >> conftest.$ac_ext
7107
7108/* The mapping between symbol names and symbols. */
7109const struct {
7110 const char *name;
7111 void *address;
7112}
7113lt__PROGRAM__LTX_preloaded_symbols[] =
7114{
7115 { "@PROGRAM@", (void *) 0 },
7116_LT_EOF
7117 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7118 cat <<\_LT_EOF >> conftest.$ac_ext
7119 {0, (void *) 0}
7120};
7121
7122/* This works around a problem in FreeBSD linker */
7123#ifdef FREEBSD_WORKAROUND
7124static const void *lt_preloaded_setup() {
7125 return lt__PROGRAM__LTX_preloaded_symbols;
7126}
7127#endif
7128
7129#ifdef __cplusplus
7130}
7131#endif
7132_LT_EOF
7133 # Now try linking the two files.
7134 mv conftest.$ac_objext conftstm.$ac_objext
7135 lt_save_LIBS="$LIBS"
7136 lt_save_CFLAGS="$CFLAGS"
7137 LIBS="conftstm.$ac_objext"
7138 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7140 (eval $ac_link) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7144 pipe_works=yes
7145 fi
7146 LIBS="$lt_save_LIBS"
7147 CFLAGS="$lt_save_CFLAGS"
7148 else
7149 echo "cannot find nm_test_func in $nlist" >&5
7150 fi
7151 else
7152 echo "cannot find nm_test_var in $nlist" >&5
7153 fi
7154 else
7155 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7156 fi
7157 else
7158 echo "$progname: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 fi
7161 rm -rf conftest* conftst*
7162
7163 # Do not use the global_symbol_pipe unless it works.
7164 if test "$pipe_works" = yes; then
7165 break
7166 else
7167 lt_cv_sys_global_symbol_pipe=
7168 fi
7169done
7170
7171fi
7172
7173if test -z "$lt_cv_sys_global_symbol_pipe"; then
7174 lt_cv_sys_global_symbol_to_cdecl=
7175fi
7176if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7178$as_echo "failed" >&6; }
7179else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7181$as_echo "ok" >&6; }
7182fi
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206# Check whether --enable-libtool-lock was given.
7207if test "${enable_libtool_lock+set}" = set; then :
7208 enableval=$enable_libtool_lock;
7209fi
7210
7211test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7212
7213# Some flags need to be propagated to the compiler or linker for good
7214# libtool support.
7215case $host in
7216ia64-*-hpux*)
7217 # Find out which ABI we are using.
7218 echo 'int i;' > conftest.$ac_ext
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220 (eval $ac_compile) 2>&5
7221 ac_status=$?
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7224 case `/usr/bin/file conftest.$ac_objext` in
7225 *ELF-32*)
7226 HPUX_IA64_MODE="32"
7227 ;;
7228 *ELF-64*)
7229 HPUX_IA64_MODE="64"
7230 ;;
7231 esac
7232 fi
7233 rm -rf conftest*
7234 ;;
7235*-*-irix6*)
7236 # Find out which ABI we are using.
7237 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 if test "$lt_cv_prog_gnu_ld" = yes; then
7244 case `/usr/bin/file conftest.$ac_objext` in
7245 *32-bit*)
7246 LD="${LD-ld} -melf32bsmip"
7247 ;;
7248 *N32*)
7249 LD="${LD-ld} -melf32bmipn32"
7250 ;;
7251 *64-bit*)
7252 LD="${LD-ld} -melf64bmip"
7253 ;;
7254 esac
7255 else
7256 case `/usr/bin/file conftest.$ac_objext` in
7257 *32-bit*)
7258 LD="${LD-ld} -32"
7259 ;;
7260 *N32*)
7261 LD="${LD-ld} -n32"
7262 ;;
7263 *64-bit*)
7264 LD="${LD-ld} -64"
7265 ;;
7266 esac
7267 fi
7268 fi
7269 rm -rf conftest*
7270 ;;
7271
7272x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7273s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7274 # Find out which ABI we are using.
7275 echo 'int i;' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 case `/usr/bin/file conftest.o` in
7282 *32-bit*)
7283 case $host in
7284 x86_64-*kfreebsd*-gnu)
7285 LD="${LD-ld} -m elf_i386_fbsd"
7286 ;;
7287 x86_64-*linux*)
e6d5f8c9
L
7288 case `/usr/bin/file conftest.o` in
7289 *x86-64*)
7290 LD="${LD-ld} -m elf32_x86_64"
7291 ;;
7292 *)
7293 LD="${LD-ld} -m elf_i386"
7294 ;;
7295 esac
0a35513e
AH
7296 ;;
7297 ppc64-*linux*|powerpc64-*linux*)
7298 LD="${LD-ld} -m elf32ppclinux"
7299 ;;
7300 s390x-*linux*)
7301 LD="${LD-ld} -m elf_s390"
7302 ;;
7303 sparc64-*linux*)
7304 LD="${LD-ld} -m elf32_sparc"
7305 ;;
7306 esac
7307 ;;
7308 *64-bit*)
7309 case $host in
7310 x86_64-*kfreebsd*-gnu)
7311 LD="${LD-ld} -m elf_x86_64_fbsd"
7312 ;;
7313 x86_64-*linux*)
7314 LD="${LD-ld} -m elf_x86_64"
7315 ;;
7316 ppc*-*linux*|powerpc*-*linux*)
7317 LD="${LD-ld} -m elf64ppc"
7318 ;;
7319 s390*-*linux*|s390*-*tpf*)
7320 LD="${LD-ld} -m elf64_s390"
7321 ;;
7322 sparc*-*linux*)
7323 LD="${LD-ld} -m elf64_sparc"
7324 ;;
7325 esac
7326 ;;
7327 esac
7328 fi
7329 rm -rf conftest*
7330 ;;
7331
7332*-*-sco3.2v5*)
7333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7334 SAVE_CFLAGS="$CFLAGS"
7335 CFLAGS="$CFLAGS -belf"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7337$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7338if test "${lt_cv_cc_needs_belf+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 ac_ext=c
7342ac_cpp='$CPP $CPPFLAGS'
7343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7345ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h. */
7349
7350int
7351main ()
7352{
7353
7354 ;
7355 return 0;
7356}
7357_ACEOF
7358if ac_fn_c_try_link "$LINENO"; then :
7359 lt_cv_cc_needs_belf=yes
7360else
7361 lt_cv_cc_needs_belf=no
7362fi
7363rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 ac_ext=c
7366ac_cpp='$CPP $CPPFLAGS'
7367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7373$as_echo "$lt_cv_cc_needs_belf" >&6; }
7374 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7375 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7376 CFLAGS="$SAVE_CFLAGS"
7377 fi
7378 ;;
7379sparc*-*solaris*)
7380 # Find out which ABI we are using.
7381 echo 'int i;' > conftest.$ac_ext
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383 (eval $ac_compile) 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }; then
7387 case `/usr/bin/file conftest.o` in
7388 *64-bit*)
7389 case $lt_cv_prog_gnu_ld in
7390 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7391 *)
7392 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7393 LD="${LD-ld} -64"
7394 fi
7395 ;;
7396 esac
7397 ;;
7398 esac
7399 fi
7400 rm -rf conftest*
7401 ;;
7402esac
7403
7404need_locks="$enable_libtool_lock"
7405
7406
7407 case $host_os in
7408 rhapsody* | darwin*)
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7411set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
7414if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416else
7417 if test -n "$DSYMUTIL"; then
7418 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432 done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437DSYMUTIL=$ac_cv_prog_DSYMUTIL
7438if test -n "$DSYMUTIL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7440$as_echo "$DSYMUTIL" >&6; }
7441else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
7444fi
7445
7446
7447fi
7448if test -z "$ac_cv_prog_DSYMUTIL"; then
7449 ac_ct_DSYMUTIL=$DSYMUTIL
7450 # Extract the first word of "dsymutil", so it can be a program name with args.
7451set dummy dsymutil; ac_word=$2
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453$as_echo_n "checking for $ac_word... " >&6; }
7454if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456else
7457 if test -n "$ac_ct_DSYMUTIL"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459else
7460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471done
7472 done
7473IFS=$as_save_IFS
7474
7475fi
7476fi
7477ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7478if test -n "$ac_ct_DSYMUTIL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7480$as_echo "$ac_ct_DSYMUTIL" >&6; }
7481else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483$as_echo "no" >&6; }
7484fi
7485
7486 if test "x$ac_ct_DSYMUTIL" = x; then
7487 DSYMUTIL=":"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490yes:)
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493ac_tool_warned=yes ;;
7494esac
7495 DSYMUTIL=$ac_ct_DSYMUTIL
7496 fi
7497else
7498 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7499fi
7500
7501 if test -n "$ac_tool_prefix"; then
7502 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7503set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508else
7509 if test -n "$NMEDIT"; then
7510 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524 done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529NMEDIT=$ac_cv_prog_NMEDIT
7530if test -n "$NMEDIT"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7532$as_echo "$NMEDIT" >&6; }
7533else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538
7539fi
7540if test -z "$ac_cv_prog_NMEDIT"; then
7541 ac_ct_NMEDIT=$NMEDIT
7542 # Extract the first word of "nmedit", so it can be a program name with args.
7543set dummy nmedit; ac_word=$2
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548else
7549 if test -n "$ac_ct_NMEDIT"; then
7550 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564 done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7570if test -n "$ac_ct_NMEDIT"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7572$as_echo "$ac_ct_NMEDIT" >&6; }
7573else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
7578 if test "x$ac_ct_NMEDIT" = x; then
7579 NMEDIT=":"
7580 else
7581 case $cross_compiling:$ac_tool_warned in
7582yes:)
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585ac_tool_warned=yes ;;
7586esac
7587 NMEDIT=$ac_ct_NMEDIT
7588 fi
7589else
7590 NMEDIT="$ac_cv_prog_NMEDIT"
7591fi
7592
7593 if test -n "$ac_tool_prefix"; then
7594 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7595set dummy ${ac_tool_prefix}lipo; ac_word=$2
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if test "${ac_cv_prog_LIPO+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600else
7601 if test -n "$LIPO"; then
7602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616 done
7617IFS=$as_save_IFS
7618
7619fi
7620fi
7621LIPO=$ac_cv_prog_LIPO
7622if test -n "$LIPO"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7624$as_echo "$LIPO" >&6; }
7625else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627$as_echo "no" >&6; }
7628fi
7629
7630
7631fi
7632if test -z "$ac_cv_prog_LIPO"; then
7633 ac_ct_LIPO=$LIPO
7634 # Extract the first word of "lipo", so it can be a program name with args.
7635set dummy lipo; ac_word=$2
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7640else
7641 if test -n "$ac_ct_LIPO"; then
7642 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_ac_ct_LIPO="lipo"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655done
7656 done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7662if test -n "$ac_ct_LIPO"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7664$as_echo "$ac_ct_LIPO" >&6; }
7665else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670 if test "x$ac_ct_LIPO" = x; then
7671 LIPO=":"
7672 else
7673 case $cross_compiling:$ac_tool_warned in
7674yes:)
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7677ac_tool_warned=yes ;;
7678esac
7679 LIPO=$ac_ct_LIPO
7680 fi
7681else
7682 LIPO="$ac_cv_prog_LIPO"
7683fi
7684
7685 if test -n "$ac_tool_prefix"; then
7686 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7687set dummy ${ac_tool_prefix}otool; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_OTOOL+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692else
7693 if test -n "$OTOOL"; then
7694 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708 done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713OTOOL=$ac_cv_prog_OTOOL
7714if test -n "$OTOOL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7716$as_echo "$OTOOL" >&6; }
7717else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723fi
7724if test -z "$ac_cv_prog_OTOOL"; then
7725 ac_ct_OTOOL=$OTOOL
7726 # Extract the first word of "otool", so it can be a program name with args.
7727set dummy otool; ac_word=$2
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
7730if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 if test -n "$ac_ct_OTOOL"; then
7734 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_ac_ct_OTOOL="otool"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748 done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7754if test -n "$ac_ct_OTOOL"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7756$as_echo "$ac_ct_OTOOL" >&6; }
7757else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
7761
7762 if test "x$ac_ct_OTOOL" = x; then
7763 OTOOL=":"
7764 else
7765 case $cross_compiling:$ac_tool_warned in
7766yes:)
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769ac_tool_warned=yes ;;
7770esac
7771 OTOOL=$ac_ct_OTOOL
7772 fi
7773else
7774 OTOOL="$ac_cv_prog_OTOOL"
7775fi
7776
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7779set dummy ${ac_tool_prefix}otool64; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
7782if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7784else
7785 if test -n "$OTOOL64"; then
7786 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799done
7800 done
7801IFS=$as_save_IFS
7802
7803fi
7804fi
7805OTOOL64=$ac_cv_prog_OTOOL64
7806if test -n "$OTOOL64"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7808$as_echo "$OTOOL64" >&6; }
7809else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815fi
7816if test -z "$ac_cv_prog_OTOOL64"; then
7817 ac_ct_OTOOL64=$OTOOL64
7818 # Extract the first word of "otool64", so it can be a program name with args.
7819set dummy otool64; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7824else
7825 if test -n "$ac_ct_OTOOL64"; then
7826 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_prog_ac_ct_OTOOL64="otool64"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839done
7840 done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7846if test -n "$ac_ct_OTOOL64"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7848$as_echo "$ac_ct_OTOOL64" >&6; }
7849else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854 if test "x$ac_ct_OTOOL64" = x; then
7855 OTOOL64=":"
7856 else
7857 case $cross_compiling:$ac_tool_warned in
7858yes:)
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861ac_tool_warned=yes ;;
7862esac
7863 OTOOL64=$ac_ct_OTOOL64
7864 fi
7865else
7866 OTOOL64="$ac_cv_prog_OTOOL64"
7867fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7896$as_echo_n "checking for -single_module linker flag... " >&6; }
7897if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 lt_cv_apple_cc_single_mod=no
7901 if test -z "${LT_MULTI_MODULE}"; then
7902 # By default we will add the -single_module flag. You can override
7903 # by either setting the environment variable LT_MULTI_MODULE
7904 # non-empty at configure time, or by adding -multi_module to the
7905 # link flags.
7906 rm -rf libconftest.dylib*
7907 echo "int foo(void){return 1;}" > conftest.c
7908 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7909-dynamiclib -Wl,-single_module conftest.c" >&5
7910 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7911 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7912 _lt_result=$?
7913 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7914 lt_cv_apple_cc_single_mod=yes
7915 else
7916 cat conftest.err >&5
7917 fi
7918 rm -rf libconftest.dylib*
7919 rm -f conftest.*
7920 fi
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7923$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7925$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7926if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928else
7929 lt_cv_ld_exported_symbols_list=no
7930 save_LDFLAGS=$LDFLAGS
7931 echo "_main" > conftest.sym
7932 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h. */
7935
7936int
7937main ()
7938{
7939
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_link "$LINENO"; then :
7945 lt_cv_ld_exported_symbols_list=yes
7946else
7947 lt_cv_ld_exported_symbols_list=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 LDFLAGS="$save_LDFLAGS"
7952
7953fi
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7955$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7957$as_echo_n "checking for -force_load linker flag... " >&6; }
7958if test "${lt_cv_ld_force_load+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960else
7961 lt_cv_ld_force_load=no
7962 cat > conftest.c << _LT_EOF
7963int forced_loaded() { return 2;}
7964_LT_EOF
7965 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7966 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7967 echo "$AR cru libconftest.a conftest.o" >&5
7968 $AR cru libconftest.a conftest.o 2>&5
7969 cat > conftest.c << _LT_EOF
7970int main() { return 0;}
7971_LT_EOF
7972 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7973 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7974 _lt_result=$?
7975 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7976 lt_cv_ld_force_load=yes
7977 else
7978 cat conftest.err >&5
7979 fi
7980 rm -f conftest.err libconftest.a conftest conftest.c
7981 rm -rf conftest.dSYM
7982
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7985$as_echo "$lt_cv_ld_force_load" >&6; }
7986 case $host_os in
7987 rhapsody* | darwin1.[012])
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7989 darwin1.*)
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991 darwin*) # darwin 5.x on
7992 # if running on 10.5 or later, the deployment target defaults
7993 # to the OS version, if on x86, and 10.4, the deployment
7994 # target defaults to 10.4. Don't you love it?
7995 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7996 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7997 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7998 10.[012]*)
7999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8000 10.*)
8001 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8002 esac
8003 ;;
8004 esac
8005 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8006 _lt_dar_single_mod='$single_module'
8007 fi
8008 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8009 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8010 else
8011 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8012 fi
8013 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8014 _lt_dsymutil='~$DSYMUTIL $lib || :'
8015 else
8016 _lt_dsymutil=
8017 fi
8018 ;;
8019 esac
8020
8021ac_ext=c
8022ac_cpp='$CPP $CPPFLAGS'
8023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8027$as_echo_n "checking how to run the C preprocessor... " >&6; }
8028# On Suns, sometimes $CPP names a directory.
8029if test -n "$CPP" && test -d "$CPP"; then
8030 CPP=
8031fi
8032if test -z "$CPP"; then
8033 if test "${ac_cv_prog_CPP+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035else
8036 # Double quotes because CPP needs to be expanded
8037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8038 do
8039 ac_preproc_ok=false
8040for ac_c_preproc_warn_flag in '' yes
8041do
8042 # Use a header file that comes with gcc, so configuring glibc
8043 # with a fresh cross-compiler works.
8044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8045 # <limits.h> exists even on freestanding compilers.
8046 # On the NeXT, cc -E runs the code through the compiler's parser,
8047 # not just through cpp. "Syntax error" is here to catch this case.
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h. */
8050#ifdef __STDC__
8051# include <limits.h>
8052#else
8053# include <assert.h>
8054#endif
8055 Syntax error
8056_ACEOF
8057if ac_fn_c_try_cpp "$LINENO"; then :
8058
8059else
8060 # Broken: fails on valid input.
8061continue
8062fi
8063rm -f conftest.err conftest.$ac_ext
8064
8065 # OK, works on sane cases. Now check whether nonexistent headers
8066 # can be detected and how.
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h. */
8069#include <ac_nonexistent.h>
8070_ACEOF
8071if ac_fn_c_try_cpp "$LINENO"; then :
8072 # Broken: success on invalid input.
8073continue
8074else
8075 # Passes both tests.
8076ac_preproc_ok=:
8077break
8078fi
8079rm -f conftest.err conftest.$ac_ext
8080
8081done
8082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8083rm -f conftest.err conftest.$ac_ext
8084if $ac_preproc_ok; then :
8085 break
8086fi
8087
8088 done
8089 ac_cv_prog_CPP=$CPP
8090
8091fi
8092 CPP=$ac_cv_prog_CPP
8093else
8094 ac_cv_prog_CPP=$CPP
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8097$as_echo "$CPP" >&6; }
8098ac_preproc_ok=false
8099for ac_c_preproc_warn_flag in '' yes
8100do
8101 # Use a header file that comes with gcc, so configuring glibc
8102 # with a fresh cross-compiler works.
8103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8104 # <limits.h> exists even on freestanding compilers.
8105 # On the NeXT, cc -E runs the code through the compiler's parser,
8106 # not just through cpp. "Syntax error" is here to catch this case.
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h. */
8109#ifdef __STDC__
8110# include <limits.h>
8111#else
8112# include <assert.h>
8113#endif
8114 Syntax error
8115_ACEOF
8116if ac_fn_c_try_cpp "$LINENO"; then :
8117
8118else
8119 # Broken: fails on valid input.
8120continue
8121fi
8122rm -f conftest.err conftest.$ac_ext
8123
8124 # OK, works on sane cases. Now check whether nonexistent headers
8125 # can be detected and how.
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h. */
8128#include <ac_nonexistent.h>
8129_ACEOF
8130if ac_fn_c_try_cpp "$LINENO"; then :
8131 # Broken: success on invalid input.
8132continue
8133else
8134 # Passes both tests.
8135ac_preproc_ok=:
8136break
8137fi
8138rm -f conftest.err conftest.$ac_ext
8139
8140done
8141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8142rm -f conftest.err conftest.$ac_ext
8143if $ac_preproc_ok; then :
8144
8145else
8146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8148as_fn_error "C preprocessor \"$CPP\" fails sanity check
8149See \`config.log' for more details." "$LINENO" 5; }
8150fi
8151
8152ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8160$as_echo_n "checking for ANSI C header files... " >&6; }
8161if test "${ac_cv_header_stdc+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h. */
8166#include <stdlib.h>
8167#include <stdarg.h>
8168#include <string.h>
8169#include <float.h>
8170
8171int
8172main ()
8173{
8174
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"; then :
8180 ac_cv_header_stdc=yes
8181else
8182 ac_cv_header_stdc=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185
8186if test $ac_cv_header_stdc = yes; then
8187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h. */
8190#include <string.h>
8191
8192_ACEOF
8193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194 $EGREP "memchr" >/dev/null 2>&1; then :
8195
8196else
8197 ac_cv_header_stdc=no
8198fi
8199rm -f conftest*
8200
8201fi
8202
8203if test $ac_cv_header_stdc = yes; then
8204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
8207#include <stdlib.h>
8208
8209_ACEOF
8210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8211 $EGREP "free" >/dev/null 2>&1; then :
8212
8213else
8214 ac_cv_header_stdc=no
8215fi
8216rm -f conftest*
8217
8218fi
8219
8220if test $ac_cv_header_stdc = yes; then
8221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8222 if test "$cross_compiling" = yes; then :
8223 :
8224else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226/* end confdefs.h. */
8227#include <ctype.h>
8228#include <stdlib.h>
8229#if ((' ' & 0x0FF) == 0x020)
8230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8232#else
8233# define ISLOWER(c) \
8234 (('a' <= (c) && (c) <= 'i') \
8235 || ('j' <= (c) && (c) <= 'r') \
8236 || ('s' <= (c) && (c) <= 'z'))
8237# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8238#endif
8239
8240#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8241int
8242main ()
8243{
8244 int i;
8245 for (i = 0; i < 256; i++)
8246 if (XOR (islower (i), ISLOWER (i))
8247 || toupper (i) != TOUPPER (i))
8248 return 2;
8249 return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_run "$LINENO"; then :
8253
8254else
8255 ac_cv_header_stdc=no
8256fi
8257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8258 conftest.$ac_objext conftest.beam conftest.$ac_ext
8259fi
8260
8261fi
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8264$as_echo "$ac_cv_header_stdc" >&6; }
8265if test $ac_cv_header_stdc = yes; then
8266
8267$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8268
8269fi
8270
8271# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8272for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8273 inttypes.h stdint.h unistd.h
8274do :
8275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8276ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8277"
8278eval as_val=\$$as_ac_Header
8279 if test "x$as_val" = x""yes; then :
8280 cat >>confdefs.h <<_ACEOF
8281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282_ACEOF
8283
8284fi
8285
8286done
8287
8288
8289for ac_header in dlfcn.h
8290do :
8291 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8292"
8293if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8294 cat >>confdefs.h <<_ACEOF
8295#define HAVE_DLFCN_H 1
8296_ACEOF
8297
8298fi
8299
8300done
8301
8302
8303
8304
8305
8306
8307# Set options
8308
8309
8310
8311 enable_dlopen=no
8312
8313
8314 enable_win32_dll=no
8315
8316
8317 # Check whether --enable-shared was given.
8318if test "${enable_shared+set}" = set; then :
8319 enableval=$enable_shared; p=${PACKAGE-default}
8320 case $enableval in
8321 yes) enable_shared=yes ;;
8322 no) enable_shared=no ;;
8323 *)
8324 enable_shared=no
8325 # Look at the argument we got. We use all the common list separators.
8326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8327 for pkg in $enableval; do
8328 IFS="$lt_save_ifs"
8329 if test "X$pkg" = "X$p"; then
8330 enable_shared=yes
8331 fi
8332 done
8333 IFS="$lt_save_ifs"
8334 ;;
8335 esac
8336else
8337 enable_shared=yes
8338fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 # Check whether --enable-static was given.
8349if test "${enable_static+set}" = set; then :
8350 enableval=$enable_static; p=${PACKAGE-default}
8351 case $enableval in
8352 yes) enable_static=yes ;;
8353 no) enable_static=no ;;
8354 *)
8355 enable_static=no
8356 # Look at the argument we got. We use all the common list separators.
8357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8358 for pkg in $enableval; do
8359 IFS="$lt_save_ifs"
8360 if test "X$pkg" = "X$p"; then
8361 enable_static=yes
8362 fi
8363 done
8364 IFS="$lt_save_ifs"
8365 ;;
8366 esac
8367else
8368 enable_static=yes
8369fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380# Check whether --with-pic was given.
8381if test "${with_pic+set}" = set; then :
8382 withval=$with_pic; pic_mode="$withval"
8383else
8384 pic_mode=default
8385fi
8386
8387
8388test -z "$pic_mode" && pic_mode=default
8389
8390
8391
8392
8393
8394
8395
8396 # Check whether --enable-fast-install was given.
8397if test "${enable_fast_install+set}" = set; then :
8398 enableval=$enable_fast_install; p=${PACKAGE-default}
8399 case $enableval in
8400 yes) enable_fast_install=yes ;;
8401 no) enable_fast_install=no ;;
8402 *)
8403 enable_fast_install=no
8404 # Look at the argument we got. We use all the common list separators.
8405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8406 for pkg in $enableval; do
8407 IFS="$lt_save_ifs"
8408 if test "X$pkg" = "X$p"; then
8409 enable_fast_install=yes
8410 fi
8411 done
8412 IFS="$lt_save_ifs"
8413 ;;
8414 esac
8415else
8416 enable_fast_install=yes
8417fi
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429# This can be used to rebuild libtool when needed
8430LIBTOOL_DEPS="$ltmain"
8431
8432# Always use our own libtool.
8433LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460test -z "$LN_S" && LN_S="ln -s"
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475if test -n "${ZSH_VERSION+set}" ; then
8476 setopt NO_GLOB_SUBST
8477fi
8478
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8480$as_echo_n "checking for objdir... " >&6; }
8481if test "${lt_cv_objdir+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 rm -f .libs 2>/dev/null
8485mkdir .libs 2>/dev/null
8486if test -d .libs; then
8487 lt_cv_objdir=.libs
8488else
8489 # MS-DOS does not allow filenames that begin with a dot.
8490 lt_cv_objdir=_libs
8491fi
8492rmdir .libs 2>/dev/null
8493fi
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8495$as_echo "$lt_cv_objdir" >&6; }
8496objdir=$lt_cv_objdir
8497
8498
8499
8500
8501
8502cat >>confdefs.h <<_ACEOF
8503#define LT_OBJDIR "$lt_cv_objdir/"
8504_ACEOF
8505
8506
8507
8508
8509case $host_os in
8510aix3*)
8511 # AIX sometimes has problems with the GCC collect2 program. For some
8512 # reason, if we set the COLLECT_NAMES environment variable, the problems
8513 # vanish in a puff of smoke.
8514 if test "X${COLLECT_NAMES+set}" != Xset; then
8515 COLLECT_NAMES=
8516 export COLLECT_NAMES
8517 fi
8518 ;;
8519esac
8520
8521# Global variables:
8522ofile=libtool
8523can_build_shared=yes
8524
8525# All known linkers require a `.a' archive for static linking (except MSVC,
8526# which needs '.lib').
8527libext=a
8528
8529with_gnu_ld="$lt_cv_prog_gnu_ld"
8530
8531old_CC="$CC"
8532old_CFLAGS="$CFLAGS"
8533
8534# Set sane defaults for various variables
8535test -z "$CC" && CC=cc
8536test -z "$LTCC" && LTCC=$CC
8537test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8538test -z "$LD" && LD=ld
8539test -z "$ac_objext" && ac_objext=o
8540
8541for cc_temp in $compiler""; do
8542 case $cc_temp in
8543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8545 \-*) ;;
8546 *) break;;
8547 esac
8548done
8549cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8550
8551
8552# Only perform the check for file, if the check method requires it
8553test -z "$MAGIC_CMD" && MAGIC_CMD=file
8554case $deplibs_check_method in
8555file_magic*)
8556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8558$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8559if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561else
8562 case $MAGIC_CMD in
8563[\\/*] | ?:[\\/]*)
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 ;;
8566*)
8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570 for ac_dir in $ac_dummy; do
8571 IFS="$lt_save_ifs"
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f $ac_dir/${ac_tool_prefix}file; then
8574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8575 if test -n "$file_magic_test_file"; then
8576 case $deplibs_check_method in
8577 "file_magic "*)
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581 $EGREP "$file_magic_regex" > /dev/null; then
8582 :
8583 else
8584 cat <<_LT_EOF 1>&2
8585
8586*** Warning: the command libtool uses to detect shared libraries,
8587*** $file_magic_cmd, produces output that libtool cannot recognize.
8588*** The result is that libtool may fail to recognize shared libraries
8589*** as such. This will affect the creation of libtool libraries that
8590*** depend on shared libraries, but programs linked with such libtool
8591*** libraries will work regardless of this problem. Nevertheless, you
8592*** may want to report the problem to your system manager and/or to
8593*** bug-libtool@gnu.org
8594
8595_LT_EOF
8596 fi ;;
8597 esac
8598 fi
8599 break
8600 fi
8601 done
8602 IFS="$lt_save_ifs"
8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
8604 ;;
8605esac
8606fi
8607
8608MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609if test -n "$MAGIC_CMD"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611$as_echo "$MAGIC_CMD" >&6; }
8612else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
8615fi
8616
8617
8618
8619
8620
8621if test -z "$lt_cv_path_MAGIC_CMD"; then
8622 if test -n "$ac_tool_prefix"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8624$as_echo_n "checking for file... " >&6; }
8625if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627else
8628 case $MAGIC_CMD in
8629[\\/*] | ?:[\\/]*)
8630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 ;;
8632*)
8633 lt_save_MAGIC_CMD="$MAGIC_CMD"
8634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636 for ac_dir in $ac_dummy; do
8637 IFS="$lt_save_ifs"
8638 test -z "$ac_dir" && ac_dir=.
8639 if test -f $ac_dir/file; then
8640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8641 if test -n "$file_magic_test_file"; then
8642 case $deplibs_check_method in
8643 "file_magic "*)
8644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647 $EGREP "$file_magic_regex" > /dev/null; then
8648 :
8649 else
8650 cat <<_LT_EOF 1>&2
8651
8652*** Warning: the command libtool uses to detect shared libraries,
8653*** $file_magic_cmd, produces output that libtool cannot recognize.
8654*** The result is that libtool may fail to recognize shared libraries
8655*** as such. This will affect the creation of libtool libraries that
8656*** depend on shared libraries, but programs linked with such libtool
8657*** libraries will work regardless of this problem. Nevertheless, you
8658*** may want to report the problem to your system manager and/or to
8659*** bug-libtool@gnu.org
8660
8661_LT_EOF
8662 fi ;;
8663 esac
8664 fi
8665 break
8666 fi
8667 done
8668 IFS="$lt_save_ifs"
8669 MAGIC_CMD="$lt_save_MAGIC_CMD"
8670 ;;
8671esac
8672fi
8673
8674MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675if test -n "$MAGIC_CMD"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8677$as_echo "$MAGIC_CMD" >&6; }
8678else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
8681fi
8682
8683
8684 else
8685 MAGIC_CMD=:
8686 fi
8687fi
8688
8689 fi
8690 ;;
8691esac
8692
8693# Use C for the default configuration in the libtool script
8694
8695lt_save_CC="$CC"
8696ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703# Source file extension for C test sources.
8704ac_ext=c
8705
8706# Object file extension for compiled C test sources.
8707objext=o
8708objext=$objext
8709
8710# Code to be used in simple compile tests
8711lt_simple_compile_test_code="int some_variable = 0;"
8712
8713# Code to be used in simple link tests
8714lt_simple_link_test_code='int main(){return(0);}'
8715
8716
8717
8718
8719
8720
8721
8722# If no C compiler was specified, use CC.
8723LTCC=${LTCC-"$CC"}
8724
8725# If no C compiler flags were specified, use CFLAGS.
8726LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8727
8728# Allow CC to be a program name with arguments.
8729compiler=$CC
8730
8731# Save the default compiler, since it gets overwritten when the other
8732# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8733compiler_DEFAULT=$CC
8734
8735# save warnings/boilerplate of simple test code
8736ac_outfile=conftest.$ac_objext
8737echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8738eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8739_lt_compiler_boilerplate=`cat conftest.err`
8740$RM conftest*
8741
8742ac_outfile=conftest.$ac_objext
8743echo "$lt_simple_link_test_code" >conftest.$ac_ext
8744eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745_lt_linker_boilerplate=`cat conftest.err`
8746$RM -r conftest*
8747
8748
8749## CAVEAT EMPTOR:
8750## There is no encapsulation within the following macros, do not change
8751## the running order or otherwise move them around unless you know exactly
8752## what you are doing...
8753if test -n "$compiler"; then
8754
8755lt_prog_compiler_no_builtin_flag=
8756
8757if test "$GCC" = yes; then
8758 case $cc_basename in
8759 nvcc*)
8760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8761 *)
8762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8763 esac
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8766$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8767if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769else
8770 lt_cv_prog_compiler_rtti_exceptions=no
8771 ac_outfile=conftest.$ac_objext
8772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="-fno-rtti -fno-exceptions"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 # The option is referenced via a variable to avoid confusing sed.
8779 lt_compile=`echo "$ac_compile" | $SED \
8780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782 -e 's:$: $lt_compiler_flag:'`
8783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784 (eval "$lt_compile" 2>conftest.err)
8785 ac_status=$?
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 if (exit $ac_status) && test -s "$ac_outfile"; then
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings other than the usual output.
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_rtti_exceptions=yes
8795 fi
8796 fi
8797 $RM conftest*
8798
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8801$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8802
8803if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8805else
8806 :
8807fi
8808
8809fi
8810
8811
8812
8813
8814
8815
8816 lt_prog_compiler_wl=
8817lt_prog_compiler_pic=
8818lt_prog_compiler_static=
8819
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8821$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8822
8823 if test "$GCC" = yes; then
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_static='-static'
8826
8827 case $host_os in
8828 aix*)
8829 # All AIX code is PIC.
8830 if test "$host_cpu" = ia64; then
8831 # AIX 5 now supports IA64 processor
8832 lt_prog_compiler_static='-Bstatic'
8833 fi
8834 ;;
8835
8836 amigaos*)
8837 case $host_cpu in
8838 powerpc)
8839 # see comment about AmigaOS4 .so support
8840 lt_prog_compiler_pic='-fPIC'
8841 ;;
8842 m68k)
8843 # FIXME: we need at least 68020 code to build shared libraries, but
8844 # adding the `-m68020' flag to GCC prevents building anything better,
8845 # like `-m68040'.
8846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847 ;;
8848 esac
8849 ;;
8850
8851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8852 # PIC is the default for these OSes.
8853 ;;
8854
8855 mingw* | cygwin* | pw32* | os2* | cegcc*)
8856 # This hack is so that the source file can tell whether it is being
8857 # built for inclusion in a dll (and should export symbols for example).
8858 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859 # (--disable-auto-import) libraries
8860 lt_prog_compiler_pic='-DDLL_EXPORT'
8861 ;;
8862
8863 darwin* | rhapsody*)
8864 # PIC is the default on this platform
8865 # Common symbols not allowed in MH_DYLIB files
8866 lt_prog_compiler_pic='-fno-common'
8867 ;;
8868
8869 haiku*)
8870 # PIC is the default for Haiku.
8871 # The "-static" flag exists, but is broken.
8872 lt_prog_compiler_static=
8873 ;;
8874
8875 hpux*)
8876 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8877 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8878 # sets the default TLS model and affects inlining.
8879 case $host_cpu in
8880 hppa*64*)
8881 # +Z the default
8882 ;;
8883 *)
8884 lt_prog_compiler_pic='-fPIC'
8885 ;;
8886 esac
8887 ;;
8888
8889 interix[3-9]*)
8890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8891 # Instead, we relocate shared libraries at runtime.
8892 ;;
8893
8894 msdosdjgpp*)
8895 # Just because we use GCC doesn't mean we suddenly get shared libraries
8896 # on systems that don't support them.
8897 lt_prog_compiler_can_build_shared=no
8898 enable_shared=no
8899 ;;
8900
8901 *nto* | *qnx*)
8902 # QNX uses GNU C++, but need to define -shared option too, otherwise
8903 # it will coredump.
8904 lt_prog_compiler_pic='-fPIC -shared'
8905 ;;
8906
8907 sysv4*MP*)
8908 if test -d /usr/nec; then
8909 lt_prog_compiler_pic=-Kconform_pic
8910 fi
8911 ;;
8912
8913 *)
8914 lt_prog_compiler_pic='-fPIC'
8915 ;;
8916 esac
8917
8918 case $cc_basename in
8919 nvcc*) # Cuda Compiler Driver 2.2
8920 lt_prog_compiler_wl='-Xlinker '
8921 lt_prog_compiler_pic='-Xcompiler -fPIC'
8922 ;;
8923 esac
8924 else
8925 # PORTME Check for flag to pass linker flags through the system compiler.
8926 case $host_os in
8927 aix*)
8928 lt_prog_compiler_wl='-Wl,'
8929 if test "$host_cpu" = ia64; then
8930 # AIX 5 now supports IA64 processor
8931 lt_prog_compiler_static='-Bstatic'
8932 else
8933 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8934 fi
8935 ;;
8936
8937 mingw* | cygwin* | pw32* | os2* | cegcc*)
8938 # This hack is so that the source file can tell whether it is being
8939 # built for inclusion in a dll (and should export symbols for example).
8940 lt_prog_compiler_pic='-DDLL_EXPORT'
8941 ;;
8942
8943 hpux9* | hpux10* | hpux11*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8946 # not for PA HP-UX.
8947 case $host_cpu in
8948 hppa*64*|ia64*)
8949 # +Z the default
8950 ;;
8951 *)
8952 lt_prog_compiler_pic='+Z'
8953 ;;
8954 esac
8955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8956 lt_prog_compiler_static='${wl}-a ${wl}archive'
8957 ;;
8958
8959 irix5* | irix6* | nonstopux*)
8960 lt_prog_compiler_wl='-Wl,'
8961 # PIC (with -KPIC) is the default.
8962 lt_prog_compiler_static='-non_shared'
8963 ;;
8964
8965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8966 case $cc_basename in
8967 # old Intel for x86_64 which still supported -KPIC.
8968 ecc*)
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-static'
8972 ;;
8973 # icc used to be incompatible with GCC.
8974 # ICC 10 doesn't accept -KPIC any more.
8975 icc* | ifort*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='-fPIC'
8978 lt_prog_compiler_static='-static'
8979 ;;
8980 # Lahey Fortran 8.1.
8981 lf95*)
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='--shared'
8984 lt_prog_compiler_static='--static'
8985 ;;
8986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8987 # Portland Group compilers (*not* the Pentium gcc compiler,
8988 # which looks to be a dead project)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-fpic'
8991 lt_prog_compiler_static='-Bstatic'
8992 ;;
8993 ccc*)
8994 lt_prog_compiler_wl='-Wl,'
8995 # All Alpha code is PIC.
8996 lt_prog_compiler_static='-non_shared'
8997 ;;
8998 xl* | bgxl* | bgf* | mpixl*)
8999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-qpic'
9002 lt_prog_compiler_static='-qstaticlink'
9003 ;;
9004 *)
9005 case `$CC -V 2>&1 | sed 5q` in
9006 *Sun\ F* | *Sun*Fortran*)
9007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl=''
9011 ;;
9012 *Sun\ C*)
9013 # Sun C 5.9
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl='-Wl,'
9017 ;;
9018 esac
9019 ;;
9020 esac
9021 ;;
9022
9023 newsos6)
9024 lt_prog_compiler_pic='-KPIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027
9028 *nto* | *qnx*)
9029 # QNX uses GNU C++, but need to define -shared option too, otherwise
9030 # it will coredump.
9031 lt_prog_compiler_pic='-fPIC -shared'
9032 ;;
9033
9034 osf3* | osf4* | osf5*)
9035 lt_prog_compiler_wl='-Wl,'
9036 # All OSF/1 code is PIC.
9037 lt_prog_compiler_static='-non_shared'
9038 ;;
9039
9040 rdos*)
9041 lt_prog_compiler_static='-non_shared'
9042 ;;
9043
9044 solaris*)
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-Bstatic'
9047 case $cc_basename in
9048 f77* | f90* | f95*)
9049 lt_prog_compiler_wl='-Qoption ld ';;
9050 *)
9051 lt_prog_compiler_wl='-Wl,';;
9052 esac
9053 ;;
9054
9055 sunos4*)
9056 lt_prog_compiler_wl='-Qoption ld '
9057 lt_prog_compiler_pic='-PIC'
9058 lt_prog_compiler_static='-Bstatic'
9059 ;;
9060
9061 sysv4 | sysv4.2uw2* | sysv4.3*)
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='-KPIC'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 sysv4*MP*)
9068 if test -d /usr/nec ;then
9069 lt_prog_compiler_pic='-Kconform_pic'
9070 lt_prog_compiler_static='-Bstatic'
9071 fi
9072 ;;
9073
9074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-KPIC'
9077 lt_prog_compiler_static='-Bstatic'
9078 ;;
9079
9080 unicos*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_can_build_shared=no
9083 ;;
9084
9085 uts4*)
9086 lt_prog_compiler_pic='-pic'
9087 lt_prog_compiler_static='-Bstatic'
9088 ;;
9089
9090 *)
9091 lt_prog_compiler_can_build_shared=no
9092 ;;
9093 esac
9094 fi
9095
9096case $host_os in
9097 # For platforms which do not support PIC, -DPIC is meaningless:
9098 *djgpp*)
9099 lt_prog_compiler_pic=
9100 ;;
9101 *)
9102 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9103 ;;
9104esac
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9106$as_echo "$lt_prog_compiler_pic" >&6; }
9107
9108
9109
9110
9111
9112
9113#
9114# Check to make sure the PIC flag actually works.
9115#
9116if test -n "$lt_prog_compiler_pic"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9118$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9119if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121else
9122 lt_cv_prog_compiler_pic_works=no
9123 ac_outfile=conftest.$ac_objext
9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9126 # Insert the option either (1) after the last *FLAGS variable, or
9127 # (2) before a word containing "conftest.", or (3) at the end.
9128 # Note that $ac_compile itself does not contain backslashes and begins
9129 # with a dollar sign (not a hyphen), so the echo should work correctly.
9130 # The option is referenced via a variable to avoid confusing sed.
9131 lt_compile=`echo "$ac_compile" | $SED \
9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134 -e 's:$: $lt_compiler_flag:'`
9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136 (eval "$lt_compile" 2>conftest.err)
9137 ac_status=$?
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 if (exit $ac_status) && test -s "$ac_outfile"; then
9141 # The compiler can only warn and ignore the option if not recognized
9142 # So say no if there are warnings other than the usual output.
9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9146 lt_cv_prog_compiler_pic_works=yes
9147 fi
9148 fi
9149 $RM conftest*
9150
9151fi
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9153$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9154
9155if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9156 case $lt_prog_compiler_pic in
9157 "" | " "*) ;;
9158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9159 esac
9160else
9161 lt_prog_compiler_pic=
9162 lt_prog_compiler_can_build_shared=no
9163fi
9164
9165fi
9166
9167
9168
9169
9170
9171
9172#
9173# Check to make sure the static flag actually works.
9174#
9175wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9177$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9178if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180else
9181 lt_cv_prog_compiler_static_works=no
9182 save_LDFLAGS="$LDFLAGS"
9183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9186 # The linker can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 if test -s conftest.err; then
9189 # Append any errors to the config.log.
9190 cat conftest.err 1>&5
9191 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9193 if diff conftest.exp conftest.er2 >/dev/null; then
9194 lt_cv_prog_compiler_static_works=yes
9195 fi
9196 else
9197 lt_cv_prog_compiler_static_works=yes
9198 fi
9199 fi
9200 $RM -r conftest*
9201 LDFLAGS="$save_LDFLAGS"
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9205$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9206
9207if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9208 :
9209else
9210 lt_prog_compiler_static=
9211fi
9212
9213
9214
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9220$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9221if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223else
9224 lt_cv_prog_compiler_c_o=no
9225 $RM -r conftest 2>/dev/null
9226 mkdir conftest
9227 cd conftest
9228 mkdir out
9229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230
9231 lt_compiler_flag="-o out/conftest2.$ac_objext"
9232 # Insert the option either (1) after the last *FLAGS variable, or
9233 # (2) before a word containing "conftest.", or (3) at the end.
9234 # Note that $ac_compile itself does not contain backslashes and begins
9235 # with a dollar sign (not a hyphen), so the echo should work correctly.
9236 lt_compile=`echo "$ac_compile" | $SED \
9237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239 -e 's:$: $lt_compiler_flag:'`
9240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9241 (eval "$lt_compile" 2>out/conftest.err)
9242 ac_status=$?
9243 cat out/conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9246 then
9247 # The compiler can only warn and ignore the option if not recognized
9248 # So say no if there are warnings
9249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler_c_o=yes
9253 fi
9254 fi
9255 chmod u+w . 2>&5
9256 $RM conftest*
9257 # SGI C++ compiler will create directory out/ii_files/ for
9258 # template instantiation
9259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9260 $RM out/* && rmdir out
9261 cd ..
9262 $RM -r conftest
9263 $RM conftest*
9264
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9267$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9268
9269
9270
9271
9272
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9276if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9278else
9279 lt_cv_prog_compiler_c_o=no
9280 $RM -r conftest 2>/dev/null
9281 mkdir conftest
9282 cd conftest
9283 mkdir out
9284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285
9286 lt_compiler_flag="-o out/conftest2.$ac_objext"
9287 # Insert the option either (1) after the last *FLAGS variable, or
9288 # (2) before a word containing "conftest.", or (3) at the end.
9289 # Note that $ac_compile itself does not contain backslashes and begins
9290 # with a dollar sign (not a hyphen), so the echo should work correctly.
9291 lt_compile=`echo "$ac_compile" | $SED \
9292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294 -e 's:$: $lt_compiler_flag:'`
9295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9296 (eval "$lt_compile" 2>out/conftest.err)
9297 ac_status=$?
9298 cat out/conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9301 then
9302 # The compiler can only warn and ignore the option if not recognized
9303 # So say no if there are warnings
9304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9307 lt_cv_prog_compiler_c_o=yes
9308 fi
9309 fi
9310 chmod u+w . 2>&5
9311 $RM conftest*
9312 # SGI C++ compiler will create directory out/ii_files/ for
9313 # template instantiation
9314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9315 $RM out/* && rmdir out
9316 cd ..
9317 $RM -r conftest
9318 $RM conftest*
9319
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9322$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9323
9324
9325
9326
9327hard_links="nottested"
9328if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329 # do not overwrite the value of need_locks provided by the user
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9331$as_echo_n "checking if we can lock with hard links... " >&6; }
9332 hard_links=yes
9333 $RM conftest*
9334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335 touch conftest.a
9336 ln conftest.a conftest.b 2>&5 || hard_links=no
9337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9339$as_echo "$hard_links" >&6; }
9340 if test "$hard_links" = no; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343 need_locks=warn
9344 fi
9345else
9346 need_locks=no
9347fi
9348
9349
9350
9351
9352
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9355$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9356
9357 runpath_var=
9358 allow_undefined_flag=
9359 always_export_symbols=no
9360 archive_cmds=
9361 archive_expsym_cmds=
9362 compiler_needs_object=no
9363 enable_shared_with_static_runtimes=no
9364 export_dynamic_flag_spec=
9365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9366 hardcode_automatic=no
9367 hardcode_direct=no
9368 hardcode_direct_absolute=no
9369 hardcode_libdir_flag_spec=
9370 hardcode_libdir_flag_spec_ld=
9371 hardcode_libdir_separator=
9372 hardcode_minus_L=no
9373 hardcode_shlibpath_var=unsupported
9374 inherit_rpath=no
9375 link_all_deplibs=unknown
9376 module_cmds=
9377 module_expsym_cmds=
9378 old_archive_from_new_cmds=
9379 old_archive_from_expsyms_cmds=
9380 thread_safe_flag_spec=
9381 whole_archive_flag_spec=
9382 # include_expsyms should be a list of space-separated symbols to be *always*
9383 # included in the symbol list
9384 include_expsyms=
9385 # exclude_expsyms can be an extended regexp of symbols to exclude
9386 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9387 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9388 # as well as any symbol that contains `d'.
9389 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9390 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9391 # platforms (ab)use it in PIC code, but their linkers get confused if
9392 # the symbol is explicitly referenced. Since portable code cannot
9393 # rely on this symbol name, it's probably fine to never include it in
9394 # preloaded symbol tables.
9395 # Exclude shared library initialization/finalization symbols.
9396 extract_expsyms_cmds=
9397
9398 case $host_os in
9399 cygwin* | mingw* | pw32* | cegcc*)
9400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9401 # When not using gcc, we currently assume that we are using
9402 # Microsoft Visual C++.
9403 if test "$GCC" != yes; then
9404 with_gnu_ld=no
9405 fi
9406 ;;
9407 interix*)
9408 # we just hope/assume this is gcc and not c89 (= MSVC++)
9409 with_gnu_ld=yes
9410 ;;
9411 openbsd*)
9412 with_gnu_ld=no
9413 ;;
9414 esac
9415
9416 ld_shlibs=yes
9417
9418 # On some targets, GNU ld is compatible enough with the native linker
9419 # that we're better off using the native interface for both.
9420 lt_use_gnu_ld_interface=no
9421 if test "$with_gnu_ld" = yes; then
9422 case $host_os in
9423 aix*)
9424 # The AIX port of GNU ld has always aspired to compatibility
9425 # with the native linker. However, as the warning in the GNU ld
9426 # block says, versions before 2.19.5* couldn't really create working
9427 # shared libraries, regardless of the interface used.
9428 case `$LD -v 2>&1` in
9429 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9430 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9431 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9432 *)
9433 lt_use_gnu_ld_interface=yes
9434 ;;
9435 esac
9436 ;;
9437 *)
9438 lt_use_gnu_ld_interface=yes
9439 ;;
9440 esac
9441 fi
9442
9443 if test "$lt_use_gnu_ld_interface" = yes; then
9444 # If archive_cmds runs LD, not CC, wlarc should be empty
9445 wlarc='${wl}'
9446
9447 # Set some defaults for GNU ld with shared library support. These
9448 # are reset later if shared libraries are not supported. Putting them
9449 # here allows them to be overridden if necessary.
9450 runpath_var=LD_RUN_PATH
9451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452 export_dynamic_flag_spec='${wl}--export-dynamic'
9453 # ancient GNU ld didn't support --whole-archive et. al.
9454 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9455 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9456 else
9457 whole_archive_flag_spec=
9458 fi
9459 supports_anon_versioning=no
9460 case `$LD -v 2>&1` in
9461 *GNU\ gold*) supports_anon_versioning=yes ;;
9462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9465 *\ 2.11.*) ;; # other 2.11 versions
9466 *) supports_anon_versioning=yes ;;
9467 esac
9468
9469 # See if GNU ld supports shared libraries.
9470 case $host_os in
9471 aix[3-9]*)
9472 # On AIX/PPC, the GNU linker is very broken
9473 if test "$host_cpu" != ia64; then
9474 ld_shlibs=no
9475 cat <<_LT_EOF 1>&2
9476
9477*** Warning: the GNU linker, at least up to release 2.19, is reported
9478*** to be unable to reliably create shared libraries on AIX.
9479*** Therefore, libtool is disabling shared libraries support. If you
9480*** really care for shared libraries, you may want to install binutils
9481*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9482*** You will then need to restart the configuration process.
9483
9484_LT_EOF
9485 fi
9486 ;;
9487
9488 amigaos*)
9489 case $host_cpu in
9490 powerpc)
9491 # see comment about AmigaOS4 .so support
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds=''
9494 ;;
9495 m68k)
9496 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)'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_minus_L=yes
9499 ;;
9500 esac
9501 ;;
9502
9503 beos*)
9504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9505 allow_undefined_flag=unsupported
9506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9507 # support --undefined. This deserves some investigation. FIXME
9508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 else
9510 ld_shlibs=no
9511 fi
9512 ;;
9513
9514 cygwin* | mingw* | pw32* | cegcc*)
9515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9516 # as there is no search path for DLLs.
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 export_dynamic_flag_spec='${wl}--export-all-symbols'
9519 allow_undefined_flag=unsupported
9520 always_export_symbols=no
9521 enable_shared_with_static_runtimes=yes
9522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9523
9524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9526 # If the export-symbols file already is a .def file (1st line
9527 # is EXPORTS), use it as is; otherwise, prepend...
9528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9529 cp $export_symbols $output_objdir/$soname.def;
9530 else
9531 echo EXPORTS > $output_objdir/$soname.def;
9532 cat $export_symbols >> $output_objdir/$soname.def;
9533 fi~
9534 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539
9540 haiku*)
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 link_all_deplibs=yes
9543 ;;
9544
9545 interix[3-9]*)
9546 hardcode_direct=no
9547 hardcode_shlibpath_var=no
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 export_dynamic_flag_spec='${wl}-E'
9550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9551 # Instead, shared libraries are loaded at an image base (0x10000000 by
9552 # default) and relocated if they conflict, which is a slow very memory
9553 # consuming and fragmenting process. To avoid this, we pick a random,
9554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9557 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'
9558 ;;
9559
9560 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9561 tmp_diet=no
9562 if test "$host_os" = linux-dietlibc; then
9563 case $cc_basename in
9564 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9565 esac
9566 fi
9567 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9568 && test "$tmp_diet" = no
9569 then
9570 tmp_addflag=
9571 tmp_sharedflag='-shared'
9572 case $cc_basename,$host_cpu in
9573 pgcc*) # Portland Group C compiler
9574 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'
9575 tmp_addflag=' $pic_flag'
9576 ;;
9577 pgf77* | pgf90* | pgf95* | pgfortran*)
9578 # Portland Group f77 and f90 compilers
9579 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'
9580 tmp_addflag=' $pic_flag -Mnomain' ;;
9581 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9582 tmp_addflag=' -i_dynamic' ;;
9583 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9584 tmp_addflag=' -i_dynamic -nofor_main' ;;
9585 ifc* | ifort*) # Intel Fortran compiler
9586 tmp_addflag=' -nofor_main' ;;
9587 lf95*) # Lahey Fortran 8.1
9588 whole_archive_flag_spec=
9589 tmp_sharedflag='--shared' ;;
9590 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9591 tmp_sharedflag='-qmkshrobj'
9592 tmp_addflag= ;;
9593 nvcc*) # Cuda Compiler Driver 2.2
9594 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'
9595 compiler_needs_object=yes
9596 ;;
9597 esac
9598 case `$CC -V 2>&1 | sed 5q` in
9599 *Sun\ C*) # Sun C 5.9
9600 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'
9601 compiler_needs_object=yes
9602 tmp_sharedflag='-G' ;;
9603 *Sun\ F*) # Sun Fortran 8.3
9604 tmp_sharedflag='-G' ;;
9605 esac
9606 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9607
9608 if test "x$supports_anon_versioning" = xyes; then
9609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9611 echo "local: *; };" >> $output_objdir/$libname.ver~
9612 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9613 fi
9614
9615 case $cc_basename in
9616 xlf* | bgf* | bgxlf* | mpixlf*)
9617 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9619 hardcode_libdir_flag_spec=
9620 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9621 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9622 if test "x$supports_anon_versioning" = xyes; then
9623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9625 echo "local: *; };" >> $output_objdir/$libname.ver~
9626 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9627 fi
9628 ;;
9629 esac
9630 else
9631 ld_shlibs=no
9632 fi
9633 ;;
9634
9635 netbsd*)
9636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9638 wlarc=
9639 else
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9642 fi
9643 ;;
9644
9645 solaris*)
9646 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9647 ld_shlibs=no
9648 cat <<_LT_EOF 1>&2
9649
9650*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9651*** create shared libraries on Solaris systems. Therefore, libtool
9652*** is disabling shared libraries support. We urge you to upgrade GNU
9653*** binutils to release 2.9.1 or newer. Another option is to modify
9654*** your PATH or compiler configuration so that the native linker is
9655*** used, and then restart.
9656
9657_LT_EOF
9658 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661 else
9662 ld_shlibs=no
9663 fi
9664 ;;
9665
9666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9667 case `$LD -v 2>&1` in
9668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9669 ld_shlibs=no
9670 cat <<_LT_EOF 1>&2
9671
9672*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9673*** reliably create shared libraries on SCO systems. Therefore, libtool
9674*** is disabling shared libraries support. We urge you to upgrade GNU
9675*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9676*** your PATH or compiler configuration so that the native linker is
9677*** used, and then restart.
9678
9679_LT_EOF
9680 ;;
9681 *)
9682 # For security reasons, it is highly recommended that you always
9683 # use absolute paths for naming shared libraries, and exclude the
9684 # DT_RUNPATH tag from executables and libraries. But doing so
9685 # requires that you compile everything twice, which is a pain.
9686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690 else
9691 ld_shlibs=no
9692 fi
9693 ;;
9694 esac
9695 ;;
9696
9697 sunos4*)
9698 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9699 wlarc=
9700 hardcode_direct=yes
9701 hardcode_shlibpath_var=no
9702 ;;
9703
9704 *)
9705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708 else
9709 ld_shlibs=no
9710 fi
9711 ;;
9712 esac
9713
9714 if test "$ld_shlibs" = no; then
9715 runpath_var=
9716 hardcode_libdir_flag_spec=
9717 export_dynamic_flag_spec=
9718 whole_archive_flag_spec=
9719 fi
9720 else
9721 # PORTME fill in a description of your system's linker (not GNU ld)
9722 case $host_os in
9723 aix3*)
9724 allow_undefined_flag=unsupported
9725 always_export_symbols=yes
9726 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'
9727 # Note: this linker hardcodes the directories in LIBPATH if there
9728 # are no directories specified by -L.
9729 hardcode_minus_L=yes
9730 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9731 # Neither direct hardcoding nor static linking is supported with a
9732 # broken collect2.
9733 hardcode_direct=unsupported
9734 fi
9735 ;;
9736
9737 aix[4-9]*)
9738 if test "$host_cpu" = ia64; then
9739 # On IA64, the linker does run time linking by default, so we don't
9740 # have to do anything special.
9741 aix_use_runtimelinking=no
9742 exp_sym_flag='-Bexport'
9743 no_entry_flag=""
9744 else
9745 # If we're using GNU nm, then we don't want the "-C" option.
9746 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9747 # Also, AIX nm treats weak defined symbols like other global
9748 # defined symbols, whereas GNU nm marks them as "W".
9749 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9750 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'
9751 else
9752 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9753 fi
9754 aix_use_runtimelinking=no
9755
9756 # Test if we are trying to use run time linking or normal
9757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9758 # need to do runtime linking.
9759 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9760 for ld_flag in $LDFLAGS; do
9761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9762 aix_use_runtimelinking=yes
9763 break
9764 fi
9765 done
9766 ;;
9767 esac
9768
9769 exp_sym_flag='-bexport'
9770 no_entry_flag='-bnoentry'
9771 fi
9772
9773 # When large executables or shared objects are built, AIX ld can
9774 # have problems creating the table of contents. If linking a library
9775 # or program results in "error TOC overflow" add -mminimal-toc to
9776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9778
9779 archive_cmds=''
9780 hardcode_direct=yes
9781 hardcode_direct_absolute=yes
9782 hardcode_libdir_separator=':'
9783 link_all_deplibs=yes
9784 file_list_spec='${wl}-f,'
9785
9786 if test "$GCC" = yes; then
9787 case $host_os in aix4.[012]|aix4.[012].*)
9788 # We only want to do this on AIX 4.2 and lower, the check
9789 # below for broken collect2 doesn't work under 4.3+
9790 collect2name=`${CC} -print-prog-name=collect2`
9791 if test -f "$collect2name" &&
9792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9793 then
9794 # We have reworked collect2
9795 :
9796 else
9797 # We have old collect2
9798 hardcode_direct=unsupported
9799 # It fails to find uninstalled libraries when the uninstalled
9800 # path is not listed in the libpath. Setting hardcode_minus_L
9801 # to unsupported forces relinking
9802 hardcode_minus_L=yes
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 hardcode_libdir_separator=
9805 fi
9806 ;;
9807 esac
9808 shared_flag='-shared'
9809 if test "$aix_use_runtimelinking" = yes; then
9810 shared_flag="$shared_flag "'${wl}-G'
9811 fi
9812 else
9813 # not using gcc
9814 if test "$host_cpu" = ia64; then
9815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9816 # chokes on -Wl,-G. The following line is correct:
9817 shared_flag='-G'
9818 else
9819 if test "$aix_use_runtimelinking" = yes; then
9820 shared_flag='${wl}-G'
9821 else
9822 shared_flag='${wl}-bM:SRE'
9823 fi
9824 fi
9825 fi
9826
9827 export_dynamic_flag_spec='${wl}-bexpall'
9828 # It seems that -bexpall does not export symbols beginning with
9829 # underscore (_), so it is better to generate a list of symbols to export.
9830 always_export_symbols=yes
9831 if test "$aix_use_runtimelinking" = yes; then
9832 # Warning - without using the other runtime loading flags (-brtl),
9833 # -berok will link without error, but may produce a broken library.
9834 allow_undefined_flag='-berok'
9835 # Determine the default libpath from the value encoded in an
9836 # empty executable.
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h. */
9839
9840int
9841main ()
9842{
9843
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848if ac_fn_c_try_link "$LINENO"; then :
9849
9850lt_aix_libpath_sed='
9851 /Import File Strings/,/^$/ {
9852 /^0/ {
9853 s/^0 *\(.*\)$/\1/
9854 p
9855 }
9856 }'
9857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858# Check for a 64-bit object if we didn't find anything.
9859if test -z "$aix_libpath"; then
9860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861fi
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9866
9867 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9868 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"
9869 else
9870 if test "$host_cpu" = ia64; then
9871 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9872 allow_undefined_flag="-z nodefs"
9873 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"
9874 else
9875 # Determine the default libpath from the value encoded in an
9876 # empty executable.
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879
9880int
9881main ()
9882{
9883
9884 ;
9885 return 0;
9886}
9887_ACEOF
9888if ac_fn_c_try_link "$LINENO"; then :
9889
9890lt_aix_libpath_sed='
9891 /Import File Strings/,/^$/ {
9892 /^0/ {
9893 s/^0 *\(.*\)$/\1/
9894 p
9895 }
9896 }'
9897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9898# Check for a 64-bit object if we didn't find anything.
9899if test -z "$aix_libpath"; then
9900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9901fi
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9906
9907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9908 # Warning - without using the other run time loading flags,
9909 # -berok will link without error, but may produce a broken library.
9910 no_undefined_flag=' ${wl}-bernotok'
9911 allow_undefined_flag=' ${wl}-berok'
9912 if test "$with_gnu_ld" = yes; then
9913 # We only use this code for GNU lds that support --whole-archive.
9914 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9915 else
9916 # Exported symbols can be pulled into shared objects from archives
9917 whole_archive_flag_spec='$convenience'
9918 fi
9919 archive_cmds_need_lc=yes
9920 # This is similar to how AIX traditionally builds its shared libraries.
9921 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'
9922 fi
9923 fi
9924 ;;
9925
9926 amigaos*)
9927 case $host_cpu in
9928 powerpc)
9929 # see comment about AmigaOS4 .so support
9930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 archive_expsym_cmds=''
9932 ;;
9933 m68k)
9934 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)'
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_minus_L=yes
9937 ;;
9938 esac
9939 ;;
9940
9941 bsdi[45]*)
9942 export_dynamic_flag_spec=-rdynamic
9943 ;;
9944
9945 cygwin* | mingw* | pw32* | cegcc*)
9946 # When not using gcc, we currently assume that we are using
9947 # Microsoft Visual C++.
9948 # hardcode_libdir_flag_spec is actually meaningless, as there is
9949 # no search path for DLLs.
9950 hardcode_libdir_flag_spec=' '
9951 allow_undefined_flag=unsupported
9952 # Tell ltmain to make .lib files, not .a files.
9953 libext=lib
9954 # Tell ltmain to make .dll files, not .so files.
9955 shrext_cmds=".dll"
9956 # FIXME: Setting linknames here is a bad hack.
9957 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9958 # The linker will automatically build a .lib file if we build a DLL.
9959 old_archive_from_new_cmds='true'
9960 # FIXME: Should let the user specify the lib program.
9961 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9962 fix_srcfile_path='`cygpath -w "$srcfile"`'
9963 enable_shared_with_static_runtimes=yes
9964 ;;
9965
9966 darwin* | rhapsody*)
9967
9968
9969 archive_cmds_need_lc=no
9970 hardcode_direct=no
9971 hardcode_automatic=yes
9972 hardcode_shlibpath_var=unsupported
9973 if test "$lt_cv_ld_force_load" = "yes"; then
9974 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\"`'
9975 else
9976 whole_archive_flag_spec=''
9977 fi
9978 link_all_deplibs=yes
9979 allow_undefined_flag="$_lt_dar_allow_undefined"
9980 case $cc_basename in
9981 ifort*) _lt_dar_can_shared=yes ;;
9982 *) _lt_dar_can_shared=$GCC ;;
9983 esac
9984 if test "$_lt_dar_can_shared" = "yes"; then
9985 output_verbose_link_cmd=func_echo_all
9986 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9987 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9988 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}"
9989 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}"
9990
9991 else
9992 ld_shlibs=no
9993 fi
9994
9995 ;;
9996
9997 dgux*)
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10004 # support. Future versions do this automatically, but an explicit c++rt0.o
10005 # does not break anything, and helps significantly (at the cost of a little
10006 # extra space).
10007 freebsd2.2*)
10008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_direct=yes
10011 hardcode_shlibpath_var=no
10012 ;;
10013
10014 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10015 freebsd2.*)
0a35513e
AH
10016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=yes
10018 hardcode_minus_L=yes
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10023 freebsd* | dragonfly*)
10024 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10025 hardcode_libdir_flag_spec='-R$libdir'
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 hpux9*)
10031 if test "$GCC" = yes; then
10032 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'
10033 else
10034 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'
10035 fi
10036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 hardcode_direct=yes
10039
10040 # hardcode_minus_L: Not really in the search PATH,
10041 # but as the default location of the library.
10042 hardcode_minus_L=yes
10043 export_dynamic_flag_spec='${wl}-E'
10044 ;;
10045
10046 hpux10*)
10047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10048 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10049 else
10050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10051 fi
10052 if test "$with_gnu_ld" = no; then
10053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10054 hardcode_libdir_flag_spec_ld='+b $libdir'
10055 hardcode_libdir_separator=:
10056 hardcode_direct=yes
10057 hardcode_direct_absolute=yes
10058 export_dynamic_flag_spec='${wl}-E'
10059 # hardcode_minus_L: Not really in the search PATH,
10060 # but as the default location of the library.
10061 hardcode_minus_L=yes
10062 fi
10063 ;;
10064
10065 hpux11*)
10066 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10067 case $host_cpu in
10068 hppa*64*)
10069 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 ;;
10071 ia64*)
10072 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073 ;;
10074 *)
10075 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10076 ;;
10077 esac
10078 else
10079 case $host_cpu in
10080 hppa*64*)
10081 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 ;;
10083 ia64*)
10084 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10085 ;;
10086 *)
10087
10088 # Older versions of the 11.00 compiler do not understand -b yet
10089 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10091$as_echo_n "checking if $CC understands -b... " >&6; }
10092if test "${lt_cv_prog_compiler__b+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10094else
10095 lt_cv_prog_compiler__b=no
10096 save_LDFLAGS="$LDFLAGS"
10097 LDFLAGS="$LDFLAGS -b"
10098 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10100 # The linker can only warn and ignore the option if not recognized
10101 # So say no if there are warnings
10102 if test -s conftest.err; then
10103 # Append any errors to the config.log.
10104 cat conftest.err 1>&5
10105 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10107 if diff conftest.exp conftest.er2 >/dev/null; then
10108 lt_cv_prog_compiler__b=yes
10109 fi
10110 else
10111 lt_cv_prog_compiler__b=yes
10112 fi
10113 fi
10114 $RM -r conftest*
10115 LDFLAGS="$save_LDFLAGS"
10116
10117fi
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10119$as_echo "$lt_cv_prog_compiler__b" >&6; }
10120
10121if test x"$lt_cv_prog_compiler__b" = xyes; then
10122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10123else
10124 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10125fi
10126
10127 ;;
10128 esac
10129 fi
10130 if test "$with_gnu_ld" = no; then
10131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10132 hardcode_libdir_separator=:
10133
10134 case $host_cpu in
10135 hppa*64*|ia64*)
10136 hardcode_direct=no
10137 hardcode_shlibpath_var=no
10138 ;;
10139 *)
10140 hardcode_direct=yes
10141 hardcode_direct_absolute=yes
10142 export_dynamic_flag_spec='${wl}-E'
10143
10144 # hardcode_minus_L: Not really in the search PATH,
10145 # but as the default location of the library.
10146 hardcode_minus_L=yes
10147 ;;
10148 esac
10149 fi
10150 ;;
10151
10152 irix5* | irix6* | nonstopux*)
10153 if test "$GCC" = yes; then
10154 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'
10155 # Try to use the -exported_symbol ld option, if it does not
10156 # work, assume that -exports_file does not work either and
10157 # implicitly export all symbols.
10158 save_LDFLAGS="$LDFLAGS"
10159 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161/* end confdefs.h. */
10162int foo(void) {}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
10165 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'
10166
10167fi
10168rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LDFLAGS="$save_LDFLAGS"
10171 else
10172 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'
10173 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'
10174 fi
10175 archive_cmds_need_lc='no'
10176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10177 hardcode_libdir_separator=:
10178 inherit_rpath=yes
10179 link_all_deplibs=yes
10180 ;;
10181
10182 netbsd*)
10183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10185 else
10186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10187 fi
10188 hardcode_libdir_flag_spec='-R$libdir'
10189 hardcode_direct=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 newsos6)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator=:
10198 hardcode_shlibpath_var=no
10199 ;;
10200
10201 *nto* | *qnx*)
10202 ;;
10203
10204 openbsd*)
10205 if test -f /usr/libexec/ld.so; then
10206 hardcode_direct=yes
10207 hardcode_shlibpath_var=no
10208 hardcode_direct_absolute=yes
10209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10213 export_dynamic_flag_spec='${wl}-E'
10214 else
10215 case $host_os in
10216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_libdir_flag_spec='-R$libdir'
10219 ;;
10220 *)
10221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10223 ;;
10224 esac
10225 fi
10226 else
10227 ld_shlibs=no
10228 fi
10229 ;;
10230
10231 os2*)
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_minus_L=yes
10234 allow_undefined_flag=unsupported
10235 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'
10236 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10237 ;;
10238
10239 osf3*)
10240 if test "$GCC" = yes; then
10241 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10242 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'
10243 else
10244 allow_undefined_flag=' -expect_unresolved \*'
10245 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'
10246 fi
10247 archive_cmds_need_lc='no'
10248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10249 hardcode_libdir_separator=:
10250 ;;
10251
10252 osf4* | osf5*) # as osf3* with the addition of -msym flag
10253 if test "$GCC" = yes; then
10254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10255 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'
10256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10257 else
10258 allow_undefined_flag=' -expect_unresolved \*'
10259 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'
10260 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~
10261 $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'
10262
10263 # Both c and cxx compiler support -rpath directly
10264 hardcode_libdir_flag_spec='-rpath $libdir'
10265 fi
10266 archive_cmds_need_lc='no'
10267 hardcode_libdir_separator=:
10268 ;;
10269
10270 solaris*)
10271 no_undefined_flag=' -z defs'
10272 if test "$GCC" = yes; then
10273 wlarc='${wl}'
10274 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10276 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10277 else
10278 case `$CC -V 2>&1` in
10279 *"Compilers 5.0"*)
10280 wlarc=''
10281 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10284 ;;
10285 *)
10286 wlarc='${wl}'
10287 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10289 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10290 ;;
10291 esac
10292 fi
10293 hardcode_libdir_flag_spec='-R$libdir'
10294 hardcode_shlibpath_var=no
10295 case $host_os in
10296 solaris2.[0-5] | solaris2.[0-5].*) ;;
10297 *)
10298 # The compiler driver will combine and reorder linker options,
10299 # but understands `-z linker_flag'. GCC discards it without `$wl',
10300 # but is careful enough not to reorder.
10301 # Supported since Solaris 2.6 (maybe 2.5.1?)
10302 if test "$GCC" = yes; then
10303 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10304 else
10305 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10306 fi
10307 ;;
10308 esac
10309 link_all_deplibs=yes
10310 ;;
10311
10312 sunos4*)
10313 if test "x$host_vendor" = xsequent; then
10314 # Use $CC to link under sequent, because it throws in some extra .o
10315 # files that make .init and .fini sections work.
10316 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10317 else
10318 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10319 fi
10320 hardcode_libdir_flag_spec='-L$libdir'
10321 hardcode_direct=yes
10322 hardcode_minus_L=yes
10323 hardcode_shlibpath_var=no
10324 ;;
10325
10326 sysv4)
10327 case $host_vendor in
10328 sni)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=yes # is this really true???
10331 ;;
10332 siemens)
10333 ## LD is ld it makes a PLAMLIB
10334 ## CC just makes a GrossModule.
10335 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10336 reload_cmds='$CC -r -o $output$reload_objs'
10337 hardcode_direct=no
10338 ;;
10339 motorola)
10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10342 ;;
10343 esac
10344 runpath_var='LD_RUN_PATH'
10345 hardcode_shlibpath_var=no
10346 ;;
10347
10348 sysv4.3*)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_shlibpath_var=no
10351 export_dynamic_flag_spec='-Bexport'
10352 ;;
10353
10354 sysv4*MP*)
10355 if test -d /usr/nec; then
10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_shlibpath_var=no
10358 runpath_var=LD_RUN_PATH
10359 hardcode_runpath_var=yes
10360 ld_shlibs=yes
10361 fi
10362 ;;
10363
10364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10365 no_undefined_flag='${wl}-z,text'
10366 archive_cmds_need_lc=no
10367 hardcode_shlibpath_var=no
10368 runpath_var='LD_RUN_PATH'
10369
10370 if test "$GCC" = yes; then
10371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 else
10374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 fi
10377 ;;
10378
10379 sysv5* | sco3.2v5* | sco5v6*)
10380 # Note: We can NOT use -z defs as we might desire, because we do not
10381 # link with -lc, and that would cause any symbols used from libc to
10382 # always be unresolved, which means just about no library would
10383 # ever link correctly. If we're not using GNU ld we use -z text
10384 # though, which does catch some bad symbols but isn't as heavy-handed
10385 # as -z defs.
10386 no_undefined_flag='${wl}-z,text'
10387 allow_undefined_flag='${wl}-z,nodefs'
10388 archive_cmds_need_lc=no
10389 hardcode_shlibpath_var=no
10390 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10391 hardcode_libdir_separator=':'
10392 link_all_deplibs=yes
10393 export_dynamic_flag_spec='${wl}-Bexport'
10394 runpath_var='LD_RUN_PATH'
10395
10396 if test "$GCC" = yes; then
10397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 else
10400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 fi
10403 ;;
10404
10405 uts4*)
10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_shlibpath_var=no
10409 ;;
10410
10411 *)
10412 ld_shlibs=no
10413 ;;
10414 esac
10415
10416 if test x$host_vendor = xsni; then
10417 case $host in
10418 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10419 export_dynamic_flag_spec='${wl}-Blargedynsym'
10420 ;;
10421 esac
10422 fi
10423 fi
10424
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10426$as_echo "$ld_shlibs" >&6; }
10427test "$ld_shlibs" = no && can_build_shared=no
10428
10429with_gnu_ld=$with_gnu_ld
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445#
10446# Do we need to explicitly link libc?
10447#
10448case "x$archive_cmds_need_lc" in
10449x|xyes)
10450 # Assume -lc should be added
10451 archive_cmds_need_lc=yes
10452
10453 if test "$enable_shared" = yes && test "$GCC" = yes; then
10454 case $archive_cmds in
10455 *'~'*)
10456 # FIXME: we may have to deal with multi-command sequences.
10457 ;;
10458 '$CC '*)
10459 # Test whether the compiler implicitly links with -lc since on some
10460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10461 # to ld, don't add -lc before -lgcc.
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10463$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10464if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466else
10467 $RM conftest*
10468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10469
10470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10471 (eval $ac_compile) 2>&5
10472 ac_status=$?
10473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10474 test $ac_status = 0; } 2>conftest.err; then
10475 soname=conftest
10476 lib=conftest
10477 libobjs=conftest.$ac_objext
10478 deplibs=
10479 wl=$lt_prog_compiler_wl
10480 pic_flag=$lt_prog_compiler_pic
10481 compiler_flags=-v
10482 linker_flags=-v
10483 verstring=
10484 output_objdir=.
10485 libname=conftest
10486 lt_save_allow_undefined_flag=$allow_undefined_flag
10487 allow_undefined_flag=
10488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10489 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10492 test $ac_status = 0; }
10493 then
10494 lt_cv_archive_cmds_need_lc=no
10495 else
10496 lt_cv_archive_cmds_need_lc=yes
10497 fi
10498 allow_undefined_flag=$lt_save_allow_undefined_flag
10499 else
10500 cat conftest.err 1>&5
10501 fi
10502 $RM conftest*
10503
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10506$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10507 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10508 ;;
10509 esac
10510 fi
10511 ;;
10512esac
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10671$as_echo_n "checking dynamic linker characteristics... " >&6; }
10672
10673if test "$GCC" = yes; then
10674 case $host_os in
10675 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10676 *) lt_awk_arg="/^libraries:/" ;;
10677 esac
10678 case $host_os in
10679 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10680 *) lt_sed_strip_eq="s,=/,/,g" ;;
10681 esac
10682 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10683 case $lt_search_path_spec in
10684 *\;*)
10685 # if the path contains ";" then we assume it to be the separator
10686 # otherwise default to the standard path separator (i.e. ":") - it is
10687 # assumed that no part of a normal pathname contains ";" but that should
10688 # okay in the real world where ";" in dirpaths is itself problematic.
10689 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10690 ;;
10691 *)
10692 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10693 ;;
10694 esac
10695 # Ok, now we have the path, separated by spaces, we can step through it
10696 # and add multilib dir if necessary.
10697 lt_tmp_lt_search_path_spec=
10698 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10699 for lt_sys_path in $lt_search_path_spec; do
10700 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10702 else
10703 test -d "$lt_sys_path" && \
10704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10705 fi
10706 done
10707 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10708BEGIN {RS=" "; FS="/|\n";} {
10709 lt_foo="";
10710 lt_count=0;
10711 for (lt_i = NF; lt_i > 0; lt_i--) {
10712 if ($lt_i != "" && $lt_i != ".") {
10713 if ($lt_i == "..") {
10714 lt_count++;
10715 } else {
10716 if (lt_count == 0) {
10717 lt_foo="/" $lt_i lt_foo;
10718 } else {
10719 lt_count--;
10720 }
10721 }
10722 }
10723 }
10724 if (lt_foo != "") { lt_freq[lt_foo]++; }
10725 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10726}'`
10727 # AWK program above erroneously prepends '/' to C:/dos/paths
10728 # for these hosts.
10729 case $host_os in
10730 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10731 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10732 esac
10733 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10734else
10735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10736fi
10737library_names_spec=
10738libname_spec='lib$name'
10739soname_spec=
10740shrext_cmds=".so"
10741postinstall_cmds=
10742postuninstall_cmds=
10743finish_cmds=
10744finish_eval=
10745shlibpath_var=
10746shlibpath_overrides_runpath=unknown
10747version_type=none
10748dynamic_linker="$host_os ld.so"
10749sys_lib_dlsearch_path_spec="/lib /usr/lib"
10750need_lib_prefix=unknown
10751hardcode_into_libs=no
10752
10753# when you set need_version to no, make sure it does not cause -set_version
10754# flags to be left without arguments
10755need_version=unknown
10756
10757case $host_os in
10758aix3*)
10759 version_type=linux
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10761 shlibpath_var=LIBPATH
10762
10763 # AIX 3 has no versioning support, so we append a major version to the name.
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 ;;
10766
10767aix[4-9]*)
10768 version_type=linux
10769 need_lib_prefix=no
10770 need_version=no
10771 hardcode_into_libs=yes
10772 if test "$host_cpu" = ia64; then
10773 # AIX 5 supports IA64
10774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 else
10777 # With GCC up to 2.95.x, collect2 would create an import file
10778 # for dependence libraries. The import file would start with
10779 # the line `#! .'. This would cause the generated library to
10780 # depend on `.', always an invalid library. This was fixed in
10781 # development snapshots of GCC prior to 3.0.
10782 case $host_os in
10783 aix4 | aix4.[01] | aix4.[01].*)
10784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10785 echo ' yes '
10786 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10787 :
10788 else
10789 can_build_shared=no
10790 fi
10791 ;;
10792 esac
10793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10794 # soname into executable. Probably we can add versioning support to
10795 # collect2, so additional links can be useful in future.
10796 if test "$aix_use_runtimelinking" = yes; then
10797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10798 # instead of lib<name>.a to let people know that these are not
10799 # typical AIX shared libraries.
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 else
10802 # We preserve .a as extension for shared libraries through AIX4.2
10803 # and later when we are not doing run time linking.
10804 library_names_spec='${libname}${release}.a $libname.a'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 fi
10807 shlibpath_var=LIBPATH
10808 fi
10809 ;;
10810
10811amigaos*)
10812 case $host_cpu in
10813 powerpc)
10814 # Since July 2007 AmigaOS4 officially supports .so libraries.
10815 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 ;;
10818 m68k)
10819 library_names_spec='$libname.ixlibrary $libname.a'
10820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10821 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'
10822 ;;
10823 esac
10824 ;;
10825
10826beos*)
10827 library_names_spec='${libname}${shared_ext}'
10828 dynamic_linker="$host_os ld.so"
10829 shlibpath_var=LIBRARY_PATH
10830 ;;
10831
10832bsdi[45]*)
10833 version_type=linux
10834 need_version=no
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10841 # the default ld.so.conf also contains /usr/contrib/lib and
10842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10843 # libtool to hard-code these into programs
10844 ;;
10845
10846cygwin* | mingw* | pw32* | cegcc*)
10847 version_type=windows
10848 shrext_cmds=".dll"
10849 need_version=no
10850 need_lib_prefix=no
10851
10852 case $GCC,$host_os in
10853 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10854 library_names_spec='$libname.dll.a'
10855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10856 postinstall_cmds='base_file=`basename \${file}`~
10857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10858 dldir=$destdir/`dirname \$dlpath`~
10859 test -d \$dldir || mkdir -p \$dldir~
10860 $install_prog $dir/$dlname \$dldir/$dlname~
10861 chmod a+x \$dldir/$dlname~
10862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10864 fi'
10865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10866 dlpath=$dir/\$dldll~
10867 $RM \$dlpath'
10868 shlibpath_overrides_runpath=yes
10869
10870 case $host_os in
10871 cygwin*)
10872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10873 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10874
10875 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10876 ;;
10877 mingw* | cegcc*)
10878 # MinGW DLLs use traditional 'lib' prefix
10879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10880 ;;
10881 pw32*)
10882 # pw32 DLLs use 'pw' prefix rather than 'lib'
10883 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10884 ;;
10885 esac
10886 ;;
10887
10888 *)
10889 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10890 ;;
10891 esac
10892 dynamic_linker='Win32 ld.exe'
10893 # FIXME: first we should search . and the directory the executable is in
10894 shlibpath_var=PATH
10895 ;;
10896
10897darwin* | rhapsody*)
10898 dynamic_linker="$host_os dyld"
10899 version_type=darwin
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10903 soname_spec='${libname}${release}${major}$shared_ext'
10904 shlibpath_overrides_runpath=yes
10905 shlibpath_var=DYLD_LIBRARY_PATH
10906 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10907
10908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10910 ;;
10911
10912dgux*)
10913 version_type=linux
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 ;;
10920
10921freebsd* | dragonfly*)
10922 # DragonFly does not have aout. When/if they implement a new
10923 # versioning mechanism, adjust this.
10924 if test -x /usr/bin/objformat; then
10925 objformat=`/usr/bin/objformat`
10926 else
10927 case $host_os in
c6084f68 10928 freebsd[23].*) objformat=aout ;;
0a35513e
AH
10929 *) objformat=elf ;;
10930 esac
10931 fi
10932 version_type=freebsd-$objformat
10933 case $version_type in
10934 freebsd-elf*)
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10936 need_version=no
10937 need_lib_prefix=no
10938 ;;
10939 freebsd-*)
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10941 need_version=yes
10942 ;;
10943 esac
10944 shlibpath_var=LD_LIBRARY_PATH
10945 case $host_os in
c6084f68 10946 freebsd2.*)
0a35513e
AH
10947 shlibpath_overrides_runpath=yes
10948 ;;
10949 freebsd3.[01]* | freebsdelf3.[01]*)
10950 shlibpath_overrides_runpath=yes
10951 hardcode_into_libs=yes
10952 ;;
10953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10955 shlibpath_overrides_runpath=no
10956 hardcode_into_libs=yes
10957 ;;
10958 *) # from 4.6 on, and DragonFly
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 ;;
10962 esac
10963 ;;
10964
10965gnu*)
10966 version_type=linux
10967 need_lib_prefix=no
10968 need_version=no
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 hardcode_into_libs=yes
10973 ;;
10974
10975haiku*)
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
10979 dynamic_linker="$host_os runtime_loader"
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LIBRARY_PATH
10983 shlibpath_overrides_runpath=yes
10984 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10985 hardcode_into_libs=yes
10986 ;;
10987
10988hpux9* | hpux10* | hpux11*)
10989 # Give a soname corresponding to the major version so that dld.sl refuses to
10990 # link against other versions.
10991 version_type=sunos
10992 need_lib_prefix=no
10993 need_version=no
10994 case $host_cpu in
10995 ia64*)
10996 shrext_cmds='.so'
10997 hardcode_into_libs=yes
10998 dynamic_linker="$host_os dld.so"
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 if test "X$HPUX_IA64_MODE" = X32; then
11004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11005 else
11006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11007 fi
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11009 ;;
11010 hppa*64*)
11011 shrext_cmds='.sl'
11012 hardcode_into_libs=yes
11013 dynamic_linker="$host_os dld.sl"
11014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11020 ;;
11021 *)
11022 shrext_cmds='.sl'
11023 dynamic_linker="$host_os dld.sl"
11024 shlibpath_var=SHLIB_PATH
11025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 ;;
11029 esac
11030 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11031 postinstall_cmds='chmod 555 $lib'
11032 # or fails outright, so override atomically:
11033 install_override_mode=555
11034 ;;
11035
11036interix[3-9]*)
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=no
11045 hardcode_into_libs=yes
11046 ;;
11047
11048irix5* | irix6* | nonstopux*)
11049 case $host_os in
11050 nonstopux*) version_type=nonstopux ;;
11051 *)
11052 if test "$lt_cv_prog_gnu_ld" = yes; then
11053 version_type=linux
11054 else
11055 version_type=irix
11056 fi ;;
11057 esac
11058 need_lib_prefix=no
11059 need_version=no
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11062 case $host_os in
11063 irix5* | nonstopux*)
11064 libsuff= shlibsuff=
11065 ;;
11066 *)
11067 case $LD in # libtool.m4 will add one of these switches to LD
11068 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11069 libsuff= shlibsuff= libmagic=32-bit;;
11070 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11071 libsuff=32 shlibsuff=N32 libmagic=N32;;
11072 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11073 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11074 *) libsuff= shlibsuff= libmagic=never-match;;
11075 esac
11076 ;;
11077 esac
11078 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11079 shlibpath_overrides_runpath=no
11080 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11081 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11082 hardcode_into_libs=yes
11083 ;;
11084
11085# No shared lib support for Linux oldld, aout, or coff.
11086linux*oldld* | linux*aout* | linux*coff*)
11087 dynamic_linker=no
11088 ;;
11089
11090# This must be Linux ELF.
11091linux* | k*bsd*-gnu | kopensolaris*-gnu)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=no
11100
11101 # Some binutils ld are patched to set DT_RUNPATH
11102 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104else
11105 lt_cv_shlibpath_overrides_runpath=no
11106 save_LDFLAGS=$LDFLAGS
11107 save_libdir=$libdir
11108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h. */
11112
11113int
11114main ()
11115{
11116
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121if ac_fn_c_try_link "$LINENO"; then :
11122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11123 lt_cv_shlibpath_overrides_runpath=yes
11124fi
11125fi
11126rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LDFLAGS=$save_LDFLAGS
11129 libdir=$save_libdir
11130
11131fi
11132
11133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11134
11135 # This implies no fast_install, which is unacceptable.
11136 # Some rework will be needed to allow for fast_install
11137 # before this can be enabled.
11138 hardcode_into_libs=yes
11139
11140 # Append ld.so.conf contents to the search path
11141 if test -f /etc/ld.so.conf; then
11142 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' ' '`
11143 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11144 fi
11145
11146 # We used to test for /lib/ld.so.1 and disable shared libraries on
11147 # powerpc, because MkLinux only supported shared libraries with the
11148 # GNU dynamic linker. Since this was broken with cross compilers,
11149 # most powerpc-linux boxes support dynamic linking these days and
11150 # people can always --disable-shared, the test was removed, and we
11151 # assume the GNU/Linux dynamic linker is in use.
11152 dynamic_linker='GNU/Linux ld.so'
11153 ;;
11154
11155netbsd*)
11156 version_type=sunos
11157 need_lib_prefix=no
11158 need_version=no
11159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11162 dynamic_linker='NetBSD (a.out) ld.so'
11163 else
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 dynamic_linker='NetBSD ld.elf_so'
11167 fi
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 ;;
11172
11173newsos6)
11174 version_type=linux
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 ;;
11179
11180*nto* | *qnx*)
11181 version_type=qnx
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=no
11188 hardcode_into_libs=yes
11189 dynamic_linker='ldqnx.so'
11190 ;;
11191
11192openbsd*)
11193 version_type=sunos
11194 sys_lib_dlsearch_path_spec="/usr/lib"
11195 need_lib_prefix=no
11196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11197 case $host_os in
11198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11199 *) need_version=no ;;
11200 esac
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11205 case $host_os in
11206 openbsd2.[89] | openbsd2.[89].*)
11207 shlibpath_overrides_runpath=no
11208 ;;
11209 *)
11210 shlibpath_overrides_runpath=yes
11211 ;;
11212 esac
11213 else
11214 shlibpath_overrides_runpath=yes
11215 fi
11216 ;;
11217
11218os2*)
11219 libname_spec='$name'
11220 shrext_cmds=".dll"
11221 need_lib_prefix=no
11222 library_names_spec='$libname${shared_ext} $libname.a'
11223 dynamic_linker='OS/2 ld.exe'
11224 shlibpath_var=LIBPATH
11225 ;;
11226
11227osf3* | osf4* | osf5*)
11228 version_type=osf
11229 need_lib_prefix=no
11230 need_version=no
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11236 ;;
11237
11238rdos*)
11239 dynamic_linker=no
11240 ;;
11241
11242solaris*)
11243 version_type=linux
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 # ldd complains unless libraries are executable
11252 postinstall_cmds='chmod +x $lib'
11253 ;;
11254
11255sunos4*)
11256 version_type=sunos
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11261 if test "$with_gnu_ld" = yes; then
11262 need_lib_prefix=no
11263 fi
11264 need_version=yes
11265 ;;
11266
11267sysv4 | sysv4.3*)
11268 version_type=linux
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 case $host_vendor in
11273 sni)
11274 shlibpath_overrides_runpath=no
11275 need_lib_prefix=no
11276 runpath_var=LD_RUN_PATH
11277 ;;
11278 siemens)
11279 need_lib_prefix=no
11280 ;;
11281 motorola)
11282 need_lib_prefix=no
11283 need_version=no
11284 shlibpath_overrides_runpath=no
11285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11286 ;;
11287 esac
11288 ;;
11289
11290sysv4*MP*)
11291 if test -d /usr/nec ;then
11292 version_type=linux
11293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11294 soname_spec='$libname${shared_ext}.$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 fi
11297 ;;
11298
11299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11300 version_type=freebsd-elf
11301 need_lib_prefix=no
11302 need_version=no
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=yes
11307 hardcode_into_libs=yes
11308 if test "$with_gnu_ld" = yes; then
11309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11310 else
11311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11312 case $host_os in
11313 sco3.2v5*)
11314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11315 ;;
11316 esac
11317 fi
11318 sys_lib_dlsearch_path_spec='/usr/lib'
11319 ;;
11320
11321tpf*)
11322 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11323 version_type=linux
11324 need_lib_prefix=no
11325 need_version=no
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=no
11329 hardcode_into_libs=yes
11330 ;;
11331
11332uts4*)
11333 version_type=linux
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 ;;
11338
11339*)
11340 dynamic_linker=no
11341 ;;
11342esac
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11344$as_echo "$dynamic_linker" >&6; }
11345test "$dynamic_linker" = no && can_build_shared=no
11346
11347variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11348if test "$GCC" = yes; then
11349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11350fi
11351
11352if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11353 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11354fi
11355if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11357fi
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11451$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11452hardcode_action=
11453if test -n "$hardcode_libdir_flag_spec" ||
11454 test -n "$runpath_var" ||
11455 test "X$hardcode_automatic" = "Xyes" ; then
11456
11457 # We can hardcode non-existent directories.
11458 if test "$hardcode_direct" != no &&
11459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11460 # have to relink, otherwise we might link with an installed library
11461 # when we should be linking with a yet-to-be-installed one
11462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11463 test "$hardcode_minus_L" != no; then
11464 # Linking always hardcodes the temporary library directory.
11465 hardcode_action=relink
11466 else
11467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11468 hardcode_action=immediate
11469 fi
11470else
11471 # We cannot hardcode anything, or else we can only hardcode existing
11472 # directories.
11473 hardcode_action=unsupported
11474fi
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11476$as_echo "$hardcode_action" >&6; }
11477
11478if test "$hardcode_action" = relink ||
11479 test "$inherit_rpath" = yes; then
11480 # Fast installation is not supported
11481 enable_fast_install=no
11482elif test "$shlibpath_overrides_runpath" = yes ||
11483 test "$enable_shared" = no; then
11484 # Fast installation is not necessary
11485 enable_fast_install=needless
11486fi
11487
11488
11489
11490
11491
11492
11493 if test "x$enable_dlopen" != xyes; then
11494 enable_dlopen=unknown
11495 enable_dlopen_self=unknown
11496 enable_dlopen_self_static=unknown
11497else
11498 lt_cv_dlopen=no
11499 lt_cv_dlopen_libs=
11500
11501 case $host_os in
11502 beos*)
11503 lt_cv_dlopen="load_add_on"
11504 lt_cv_dlopen_libs=
11505 lt_cv_dlopen_self=yes
11506 ;;
11507
11508 mingw* | pw32* | cegcc*)
11509 lt_cv_dlopen="LoadLibrary"
11510 lt_cv_dlopen_libs=
11511 ;;
11512
11513 cygwin*)
11514 lt_cv_dlopen="dlopen"
11515 lt_cv_dlopen_libs=
11516 ;;
11517
11518 darwin*)
11519 # if libdl is installed we need to link against it
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11521$as_echo_n "checking for dlopen in -ldl... " >&6; }
11522if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11524else
11525 ac_check_lib_save_LIBS=$LIBS
11526LIBS="-ldl $LIBS"
11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h. */
11529
11530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533#ifdef __cplusplus
11534extern "C"
11535#endif
11536char dlopen ();
11537int
11538main ()
11539{
11540return dlopen ();
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_dl_dlopen=yes
11547else
11548 ac_cv_lib_dl_dlopen=no
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552LIBS=$ac_check_lib_save_LIBS
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11555$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11556if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11558else
11559
11560 lt_cv_dlopen="dyld"
11561 lt_cv_dlopen_libs=
11562 lt_cv_dlopen_self=yes
11563
11564fi
11565
11566 ;;
11567
11568 *)
11569 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11570if test "x$ac_cv_func_shl_load" = x""yes; then :
11571 lt_cv_dlopen="shl_load"
11572else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11574$as_echo_n "checking for shl_load in -ldld... " >&6; }
11575if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577else
11578 ac_check_lib_save_LIBS=$LIBS
11579LIBS="-ldld $LIBS"
11580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581/* end confdefs.h. */
11582
11583/* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589char shl_load ();
11590int
11591main ()
11592{
11593return shl_load ();
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dld_shl_load=yes
11600else
11601 ac_cv_lib_dld_shl_load=no
11602fi
11603rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605LIBS=$ac_check_lib_save_LIBS
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11608$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11609if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11611else
11612 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11613if test "x$ac_cv_func_dlopen" = x""yes; then :
11614 lt_cv_dlopen="dlopen"
11615else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11617$as_echo_n "checking for dlopen in -ldl... " >&6; }
11618if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-ldl $LIBS"
11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char dlopen ();
11633int
11634main ()
11635{
11636return dlopen ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_dl_dlopen=yes
11643else
11644 ac_cv_lib_dl_dlopen=no
11645fi
11646rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648LIBS=$ac_check_lib_save_LIBS
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11651$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11652if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11654else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11656$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11657if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659else
11660 ac_check_lib_save_LIBS=$LIBS
11661LIBS="-lsvld $LIBS"
11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h. */
11664
11665/* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668#ifdef __cplusplus
11669extern "C"
11670#endif
11671char dlopen ();
11672int
11673main ()
11674{
11675return dlopen ();
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_svld_dlopen=yes
11682else
11683 ac_cv_lib_svld_dlopen=no
11684fi
11685rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11690$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11691if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11693else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11695$as_echo_n "checking for dld_link in -ldld... " >&6; }
11696if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698else
11699 ac_check_lib_save_LIBS=$LIBS
11700LIBS="-ldld $LIBS"
11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h. */
11703
11704/* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char dld_link ();
11711int
11712main ()
11713{
11714return dld_link ();
11715 ;
11716 return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_link "$LINENO"; then :
11720 ac_cv_lib_dld_dld_link=yes
11721else
11722 ac_cv_lib_dld_dld_link=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726LIBS=$ac_check_lib_save_LIBS
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11729$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11730if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11732fi
11733
11734
11735fi
11736
11737
11738fi
11739
11740
11741fi
11742
11743
11744fi
11745
11746
11747fi
11748
11749 ;;
11750 esac
11751
11752 if test "x$lt_cv_dlopen" != xno; then
11753 enable_dlopen=yes
11754 else
11755 enable_dlopen=no
11756 fi
11757
11758 case $lt_cv_dlopen in
11759 dlopen)
11760 save_CPPFLAGS="$CPPFLAGS"
11761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11762
11763 save_LDFLAGS="$LDFLAGS"
11764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11765
11766 save_LIBS="$LIBS"
11767 LIBS="$lt_cv_dlopen_libs $LIBS"
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11770$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11771if test "${lt_cv_dlopen_self+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11773else
11774 if test "$cross_compiling" = yes; then :
11775 lt_cv_dlopen_self=cross
11776else
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<_LT_EOF
e6d5f8c9 11780#line 11780 "configure"
0a35513e
AH
11781#include "confdefs.h"
11782
11783#if HAVE_DLFCN_H
11784#include <dlfcn.h>
11785#endif
11786
11787#include <stdio.h>
11788
11789#ifdef RTLD_GLOBAL
11790# define LT_DLGLOBAL RTLD_GLOBAL
11791#else
11792# ifdef DL_GLOBAL
11793# define LT_DLGLOBAL DL_GLOBAL
11794# else
11795# define LT_DLGLOBAL 0
11796# endif
11797#endif
11798
11799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801#ifndef LT_DLLAZY_OR_NOW
11802# ifdef RTLD_LAZY
11803# define LT_DLLAZY_OR_NOW RTLD_LAZY
11804# else
11805# ifdef DL_LAZY
11806# define LT_DLLAZY_OR_NOW DL_LAZY
11807# else
11808# ifdef RTLD_NOW
11809# define LT_DLLAZY_OR_NOW RTLD_NOW
11810# else
11811# ifdef DL_NOW
11812# define LT_DLLAZY_OR_NOW DL_NOW
11813# else
11814# define LT_DLLAZY_OR_NOW 0
11815# endif
11816# endif
11817# endif
11818# endif
11819#endif
11820
11821/* When -fvisbility=hidden is used, assume the code has been annotated
11822 correspondingly for the symbols needed. */
11823#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11824void fnord () __attribute__((visibility("default")));
11825#endif
11826
11827void fnord () { int i=42; }
11828int main ()
11829{
11830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831 int status = $lt_dlunknown;
11832
11833 if (self)
11834 {
11835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11836 else
11837 {
11838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11839 else puts (dlerror ());
11840 }
11841 /* dlclose (self); */
11842 }
11843 else
11844 puts (dlerror ());
11845
11846 return status;
11847}
11848_LT_EOF
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11850 (eval $ac_link) 2>&5
11851 ac_status=$?
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11854 (./conftest; exit; ) >&5 2>/dev/null
11855 lt_status=$?
11856 case x$lt_status in
11857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11860 esac
11861 else :
11862 # compilation failed
11863 lt_cv_dlopen_self=no
11864 fi
11865fi
11866rm -fr conftest*
11867
11868
11869fi
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11871$as_echo "$lt_cv_dlopen_self" >&6; }
11872
11873 if test "x$lt_cv_dlopen_self" = xyes; then
11874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11876$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11877if test "${lt_cv_dlopen_self_static+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11879else
11880 if test "$cross_compiling" = yes; then :
11881 lt_cv_dlopen_self_static=cross
11882else
11883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11884 lt_status=$lt_dlunknown
11885 cat > conftest.$ac_ext <<_LT_EOF
e6d5f8c9 11886#line 11886 "configure"
0a35513e
AH
11887#include "confdefs.h"
11888
11889#if HAVE_DLFCN_H
11890#include <dlfcn.h>
11891#endif
11892
11893#include <stdio.h>
11894
11895#ifdef RTLD_GLOBAL
11896# define LT_DLGLOBAL RTLD_GLOBAL
11897#else
11898# ifdef DL_GLOBAL
11899# define LT_DLGLOBAL DL_GLOBAL
11900# else
11901# define LT_DLGLOBAL 0
11902# endif
11903#endif
11904
11905/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11906 find out it does not work in some platform. */
11907#ifndef LT_DLLAZY_OR_NOW
11908# ifdef RTLD_LAZY
11909# define LT_DLLAZY_OR_NOW RTLD_LAZY
11910# else
11911# ifdef DL_LAZY
11912# define LT_DLLAZY_OR_NOW DL_LAZY
11913# else
11914# ifdef RTLD_NOW
11915# define LT_DLLAZY_OR_NOW RTLD_NOW
11916# else
11917# ifdef DL_NOW
11918# define LT_DLLAZY_OR_NOW DL_NOW
11919# else
11920# define LT_DLLAZY_OR_NOW 0
11921# endif
11922# endif
11923# endif
11924# endif
11925#endif
11926
11927/* When -fvisbility=hidden is used, assume the code has been annotated
11928 correspondingly for the symbols needed. */
11929#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11930void fnord () __attribute__((visibility("default")));
11931#endif
11932
11933void fnord () { int i=42; }
11934int main ()
11935{
11936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11937 int status = $lt_dlunknown;
11938
11939 if (self)
11940 {
11941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11942 else
11943 {
11944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11945 else puts (dlerror ());
11946 }
11947 /* dlclose (self); */
11948 }
11949 else
11950 puts (dlerror ());
11951
11952 return status;
11953}
11954_LT_EOF
11955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11956 (eval $ac_link) 2>&5
11957 ac_status=$?
11958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11960 (./conftest; exit; ) >&5 2>/dev/null
11961 lt_status=$?
11962 case x$lt_status in
11963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11966 esac
11967 else :
11968 # compilation failed
11969 lt_cv_dlopen_self_static=no
11970 fi
11971fi
11972rm -fr conftest*
11973
11974
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11977$as_echo "$lt_cv_dlopen_self_static" >&6; }
11978 fi
11979
11980 CPPFLAGS="$save_CPPFLAGS"
11981 LDFLAGS="$save_LDFLAGS"
11982 LIBS="$save_LIBS"
11983 ;;
11984 esac
11985
11986 case $lt_cv_dlopen_self in
11987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11988 *) enable_dlopen_self=unknown ;;
11989 esac
11990
11991 case $lt_cv_dlopen_self_static in
11992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11993 *) enable_dlopen_self_static=unknown ;;
11994 esac
11995fi
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013striplib=
12014old_striplib=
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12016$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12017if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021$as_echo "yes" >&6; }
12022else
12023# FIXME - insert some real tests, host_os isn't really good enough
12024 case $host_os in
12025 darwin*)
12026 if test -n "$STRIP" ; then
12027 striplib="$STRIP -x"
12028 old_striplib="$STRIP -S"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030$as_echo "yes" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033$as_echo "no" >&6; }
12034 fi
12035 ;;
12036 *)
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
12039 ;;
12040 esac
12041fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 # Report which library types will actually be built
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12056$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12058$as_echo "$can_build_shared" >&6; }
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12061$as_echo_n "checking whether to build shared libraries... " >&6; }
12062 test "$can_build_shared" = "no" && enable_shared=no
12063
12064 # On AIX, shared libraries and static libraries use the same namespace, and
12065 # are all built from PIC.
12066 case $host_os in
12067 aix3*)
12068 test "$enable_shared" = yes && enable_static=no
12069 if test -n "$RANLIB"; then
12070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12071 postinstall_cmds='$RANLIB $lib'
12072 fi
12073 ;;
12074
12075 aix[4-9]*)
12076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12077 test "$enable_shared" = yes && enable_static=no
12078 fi
12079 ;;
12080 esac
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12082$as_echo "$enable_shared" >&6; }
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12085$as_echo_n "checking whether to build static libraries... " >&6; }
12086 # Make sure either enable_shared or enable_static is yes.
12087 test "$enable_shared" = yes || enable_static=yes
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12089$as_echo "$enable_static" >&6; }
12090
12091
12092
12093
12094fi
12095ac_ext=c
12096ac_cpp='$CPP $CPPFLAGS'
12097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12099ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
12101CC="$lt_save_CC"
12102
12103 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12104 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12105 (test "X$CXX" != "Xg++"))) ; then
12106 ac_ext=cpp
12107ac_cpp='$CXXCPP $CPPFLAGS'
12108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12112$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12113if test -z "$CXXCPP"; then
12114 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12116else
12117 # Double quotes because CXXCPP needs to be expanded
12118 for CXXCPP in "$CXX -E" "/lib/cpp"
12119 do
12120 ac_preproc_ok=false
12121for ac_cxx_preproc_warn_flag in '' yes
12122do
12123 # Use a header file that comes with gcc, so configuring glibc
12124 # with a fresh cross-compiler works.
12125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126 # <limits.h> exists even on freestanding compilers.
12127 # On the NeXT, cc -E runs the code through the compiler's parser,
12128 # not just through cpp. "Syntax error" is here to catch this case.
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h. */
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
12136 Syntax error
12137_ACEOF
12138if ac_fn_cxx_try_cpp "$LINENO"; then :
12139
12140else
12141 # Broken: fails on valid input.
12142continue
12143fi
12144rm -f conftest.err conftest.$ac_ext
12145
12146 # OK, works on sane cases. Now check whether nonexistent headers
12147 # can be detected and how.
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149/* end confdefs.h. */
12150#include <ac_nonexistent.h>
12151_ACEOF
12152if ac_fn_cxx_try_cpp "$LINENO"; then :
12153 # Broken: success on invalid input.
12154continue
12155else
12156 # Passes both tests.
12157ac_preproc_ok=:
12158break
12159fi
12160rm -f conftest.err conftest.$ac_ext
12161
12162done
12163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12164rm -f conftest.err conftest.$ac_ext
12165if $ac_preproc_ok; then :
12166 break
12167fi
12168
12169 done
12170 ac_cv_prog_CXXCPP=$CXXCPP
12171
12172fi
12173 CXXCPP=$ac_cv_prog_CXXCPP
12174else
12175 ac_cv_prog_CXXCPP=$CXXCPP
12176fi
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12178$as_echo "$CXXCPP" >&6; }
12179ac_preproc_ok=false
12180for ac_cxx_preproc_warn_flag in '' yes
12181do
12182 # Use a header file that comes with gcc, so configuring glibc
12183 # with a fresh cross-compiler works.
12184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 # <limits.h> exists even on freestanding compilers.
12186 # On the NeXT, cc -E runs the code through the compiler's parser,
12187 # not just through cpp. "Syntax error" is here to catch this case.
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189/* end confdefs.h. */
12190#ifdef __STDC__
12191# include <limits.h>
12192#else
12193# include <assert.h>
12194#endif
12195 Syntax error
12196_ACEOF
12197if ac_fn_cxx_try_cpp "$LINENO"; then :
12198
12199else
12200 # Broken: fails on valid input.
12201continue
12202fi
12203rm -f conftest.err conftest.$ac_ext
12204
12205 # OK, works on sane cases. Now check whether nonexistent headers
12206 # can be detected and how.
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h. */
12209#include <ac_nonexistent.h>
12210_ACEOF
12211if ac_fn_cxx_try_cpp "$LINENO"; then :
12212 # Broken: success on invalid input.
12213continue
12214else
12215 # Passes both tests.
12216ac_preproc_ok=:
12217break
12218fi
12219rm -f conftest.err conftest.$ac_ext
12220
12221done
12222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12223rm -f conftest.err conftest.$ac_ext
12224if $ac_preproc_ok; then :
12225
12226else
12227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12229as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12230See \`config.log' for more details." "$LINENO" 5; }
12231fi
12232
12233ac_ext=c
12234ac_cpp='$CPP $CPPFLAGS'
12235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237ac_compiler_gnu=$ac_cv_c_compiler_gnu
12238
12239else
12240 _lt_caught_CXX_error=yes
12241fi
12242
12243ac_ext=cpp
12244ac_cpp='$CXXCPP $CPPFLAGS'
12245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12248
12249archive_cmds_need_lc_CXX=no
12250allow_undefined_flag_CXX=
12251always_export_symbols_CXX=no
12252archive_expsym_cmds_CXX=
12253compiler_needs_object_CXX=no
12254export_dynamic_flag_spec_CXX=
12255hardcode_direct_CXX=no
12256hardcode_direct_absolute_CXX=no
12257hardcode_libdir_flag_spec_CXX=
12258hardcode_libdir_flag_spec_ld_CXX=
12259hardcode_libdir_separator_CXX=
12260hardcode_minus_L_CXX=no
12261hardcode_shlibpath_var_CXX=unsupported
12262hardcode_automatic_CXX=no
12263inherit_rpath_CXX=no
12264module_cmds_CXX=
12265module_expsym_cmds_CXX=
12266link_all_deplibs_CXX=unknown
12267old_archive_cmds_CXX=$old_archive_cmds
12268reload_flag_CXX=$reload_flag
12269reload_cmds_CXX=$reload_cmds
12270no_undefined_flag_CXX=
12271whole_archive_flag_spec_CXX=
12272enable_shared_with_static_runtimes_CXX=no
12273
12274# Source file extension for C++ test sources.
12275ac_ext=cpp
12276
12277# Object file extension for compiled C++ test sources.
12278objext=o
12279objext_CXX=$objext
12280
12281# No sense in running all these tests if we already determined that
12282# the CXX compiler isn't working. Some variables (like enable_shared)
12283# are currently assumed to apply to all compilers on this platform,
12284# and will be corrupted by setting them based on a non-working compiler.
12285if test "$_lt_caught_CXX_error" != yes; then
12286 # Code to be used in simple compile tests
12287 lt_simple_compile_test_code="int some_variable = 0;"
12288
12289 # Code to be used in simple link tests
12290 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12291
12292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12293
12294
12295
12296
12297
12298
12299# If no C compiler was specified, use CC.
12300LTCC=${LTCC-"$CC"}
12301
12302# If no C compiler flags were specified, use CFLAGS.
12303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12304
12305# Allow CC to be a program name with arguments.
12306compiler=$CC
12307
12308
12309 # save warnings/boilerplate of simple test code
12310 ac_outfile=conftest.$ac_objext
12311echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12313_lt_compiler_boilerplate=`cat conftest.err`
12314$RM conftest*
12315
12316 ac_outfile=conftest.$ac_objext
12317echo "$lt_simple_link_test_code" >conftest.$ac_ext
12318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12319_lt_linker_boilerplate=`cat conftest.err`
12320$RM -r conftest*
12321
12322
12323 # Allow CC to be a program name with arguments.
12324 lt_save_CC=$CC
12325 lt_save_LD=$LD
12326 lt_save_GCC=$GCC
12327 GCC=$GXX
12328 lt_save_with_gnu_ld=$with_gnu_ld
12329 lt_save_path_LD=$lt_cv_path_LD
12330 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12331 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12332 else
12333 $as_unset lt_cv_prog_gnu_ld
12334 fi
12335 if test -n "${lt_cv_path_LDCXX+set}"; then
12336 lt_cv_path_LD=$lt_cv_path_LDCXX
12337 else
12338 $as_unset lt_cv_path_LD
12339 fi
12340 test -z "${LDCXX+set}" || LD=$LDCXX
12341 CC=${CXX-"c++"}
12342 compiler=$CC
12343 compiler_CXX=$CC
12344 for cc_temp in $compiler""; do
12345 case $cc_temp in
12346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12348 \-*) ;;
12349 *) break;;
12350 esac
12351done
12352cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12353
12354
12355 if test -n "$compiler"; then
12356 # We don't want -fno-exception when compiling C++ code, so set the
12357 # no_builtin_flag separately
12358 if test "$GXX" = yes; then
12359 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12360 else
12361 lt_prog_compiler_no_builtin_flag_CXX=
12362 fi
12363
12364 if test "$GXX" = yes; then
12365 # Set up default GNU C++ configuration
12366
12367
12368
12369# Check whether --with-gnu-ld was given.
12370if test "${with_gnu_ld+set}" = set; then :
12371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12372else
12373 with_gnu_ld=no
12374fi
12375
12376ac_prog=ld
12377if test "$GCC" = yes; then
12378 # Check if gcc -print-prog-name=ld gives a path.
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12380$as_echo_n "checking for ld used by $CC... " >&6; }
12381 case $host in
12382 *-*-mingw*)
12383 # gcc leaves a trailing carriage return which upsets mingw
12384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12385 *)
12386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12387 esac
12388 case $ac_prog in
12389 # Accept absolute paths.
12390 [\\/]* | ?:[\\/]*)
12391 re_direlt='/[^/][^/]*/\.\./'
12392 # Canonicalize the pathname of ld
12393 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12394 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12395 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12396 done
12397 test -z "$LD" && LD="$ac_prog"
12398 ;;
12399 "")
12400 # If it fails, then pretend we aren't using GCC.
12401 ac_prog=ld
12402 ;;
12403 *)
12404 # If it is relative, then search for the first ld in PATH.
12405 with_gnu_ld=unknown
12406 ;;
12407 esac
12408elif test "$with_gnu_ld" = yes; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12410$as_echo_n "checking for GNU ld... " >&6; }
12411else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12413$as_echo_n "checking for non-GNU ld... " >&6; }
12414fi
12415if test "${lt_cv_path_LD+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417else
12418 if test -z "$LD"; then
12419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12421 IFS="$lt_save_ifs"
12422 test -z "$ac_dir" && ac_dir=.
12423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12424 lt_cv_path_LD="$ac_dir/$ac_prog"
12425 # Check to see if the program is GNU ld. I'd rather use --version,
12426 # but apparently some variants of GNU ld only accept -v.
12427 # Break only if it was the GNU/non-GNU ld that we prefer.
12428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430 test "$with_gnu_ld" != no && break
12431 ;;
12432 *)
12433 test "$with_gnu_ld" != yes && break
12434 ;;
12435 esac
12436 fi
12437 done
12438 IFS="$lt_save_ifs"
12439else
12440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12441fi
12442fi
12443
12444LD="$lt_cv_path_LD"
12445if test -n "$LD"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12447$as_echo "$LD" >&6; }
12448else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450$as_echo "no" >&6; }
12451fi
12452test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12454$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12455if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457else
12458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12459case `$LD -v 2>&1 </dev/null` in
12460*GNU* | *'with BFD'*)
12461 lt_cv_prog_gnu_ld=yes
12462 ;;
12463*)
12464 lt_cv_prog_gnu_ld=no
12465 ;;
12466esac
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12469$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12470with_gnu_ld=$lt_cv_prog_gnu_ld
12471
12472
12473
12474
12475
12476
12477
12478 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12479 # archiving commands below assume that GNU ld is being used.
12480 if test "$with_gnu_ld" = yes; then
12481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12482 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12483
12484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12486
12487 # If archive_cmds runs LD, not CC, wlarc should be empty
12488 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12489 # investigate it a little bit more. (MM)
12490 wlarc='${wl}'
12491
12492 # ancient GNU ld didn't support --whole-archive et. al.
12493 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12494 $GREP 'no-whole-archive' > /dev/null; then
12495 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12496 else
12497 whole_archive_flag_spec_CXX=
12498 fi
12499 else
12500 with_gnu_ld=no
12501 wlarc=
12502
12503 # A generic and very simple default shared library creation
12504 # command for GNU C++ for the case where it uses the native
12505 # linker, instead of GNU ld. If possible, this setting should
12506 # overridden to take advantage of the native linker features on
12507 # the platform it is being used on.
12508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12509 fi
12510
12511 # Commands to make compiler produce verbose output that lists
12512 # what "hidden" libraries, object files and flags are used when
12513 # linking a shared library.
12514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12515
12516 else
12517 GXX=no
12518 with_gnu_ld=no
12519 wlarc=
12520 fi
12521
12522 # PORTME: fill in a description of your system's C++ link characteristics
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12525 ld_shlibs_CXX=yes
12526 case $host_os in
12527 aix3*)
12528 # FIXME: insert proper C++ library support
12529 ld_shlibs_CXX=no
12530 ;;
12531 aix[4-9]*)
12532 if test "$host_cpu" = ia64; then
12533 # On IA64, the linker does run time linking by default, so we don't
12534 # have to do anything special.
12535 aix_use_runtimelinking=no
12536 exp_sym_flag='-Bexport'
12537 no_entry_flag=""
12538 else
12539 aix_use_runtimelinking=no
12540
12541 # Test if we are trying to use run time linking or normal
12542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12543 # need to do runtime linking.
12544 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12545 for ld_flag in $LDFLAGS; do
12546 case $ld_flag in
12547 *-brtl*)
12548 aix_use_runtimelinking=yes
12549 break
12550 ;;
12551 esac
12552 done
12553 ;;
12554 esac
12555
12556 exp_sym_flag='-bexport'
12557 no_entry_flag='-bnoentry'
12558 fi
12559
12560 # When large executables or shared objects are built, AIX ld can
12561 # have problems creating the table of contents. If linking a library
12562 # or program results in "error TOC overflow" add -mminimal-toc to
12563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12565
12566 archive_cmds_CXX=''
12567 hardcode_direct_CXX=yes
12568 hardcode_direct_absolute_CXX=yes
12569 hardcode_libdir_separator_CXX=':'
12570 link_all_deplibs_CXX=yes
12571 file_list_spec_CXX='${wl}-f,'
12572
12573 if test "$GXX" = yes; then
12574 case $host_os in aix4.[012]|aix4.[012].*)
12575 # We only want to do this on AIX 4.2 and lower, the check
12576 # below for broken collect2 doesn't work under 4.3+
12577 collect2name=`${CC} -print-prog-name=collect2`
12578 if test -f "$collect2name" &&
12579 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12580 then
12581 # We have reworked collect2
12582 :
12583 else
12584 # We have old collect2
12585 hardcode_direct_CXX=unsupported
12586 # It fails to find uninstalled libraries when the uninstalled
12587 # path is not listed in the libpath. Setting hardcode_minus_L
12588 # to unsupported forces relinking
12589 hardcode_minus_L_CXX=yes
12590 hardcode_libdir_flag_spec_CXX='-L$libdir'
12591 hardcode_libdir_separator_CXX=
12592 fi
12593 esac
12594 shared_flag='-shared'
12595 if test "$aix_use_runtimelinking" = yes; then
12596 shared_flag="$shared_flag "'${wl}-G'
12597 fi
12598 else
12599 # not using gcc
12600 if test "$host_cpu" = ia64; then
12601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12602 # chokes on -Wl,-G. The following line is correct:
12603 shared_flag='-G'
12604 else
12605 if test "$aix_use_runtimelinking" = yes; then
12606 shared_flag='${wl}-G'
12607 else
12608 shared_flag='${wl}-bM:SRE'
12609 fi
12610 fi
12611 fi
12612
12613 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12614 # It seems that -bexpall does not export symbols beginning with
12615 # underscore (_), so it is better to generate a list of symbols to
12616 # export.
12617 always_export_symbols_CXX=yes
12618 if test "$aix_use_runtimelinking" = yes; then
12619 # Warning - without using the other runtime loading flags (-brtl),
12620 # -berok will link without error, but may produce a broken library.
12621 allow_undefined_flag_CXX='-berok'
12622 # Determine the default libpath from the value encoded in an empty
12623 # executable.
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h. */
12626
12627int
12628main ()
12629{
12630
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635if ac_fn_cxx_try_link "$LINENO"; then :
12636
12637lt_aix_libpath_sed='
12638 /Import File Strings/,/^$/ {
12639 /^0/ {
12640 s/^0 *\(.*\)$/\1/
12641 p
12642 }
12643 }'
12644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12645# Check for a 64-bit object if we didn't find anything.
12646if test -z "$aix_libpath"; then
12647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12648fi
12649fi
12650rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12653
12654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12655
12656 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"
12657 else
12658 if test "$host_cpu" = ia64; then
12659 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12660 allow_undefined_flag_CXX="-z nodefs"
12661 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"
12662 else
12663 # Determine the default libpath from the value encoded in an
12664 # empty executable.
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h. */
12667
12668int
12669main ()
12670{
12671
12672 ;
12673 return 0;
12674}
12675_ACEOF
12676if ac_fn_cxx_try_link "$LINENO"; then :
12677
12678lt_aix_libpath_sed='
12679 /Import File Strings/,/^$/ {
12680 /^0/ {
12681 s/^0 *\(.*\)$/\1/
12682 p
12683 }
12684 }'
12685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12686# Check for a 64-bit object if we didn't find anything.
12687if test -z "$aix_libpath"; then
12688 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12689fi
12690fi
12691rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12694
12695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12696 # Warning - without using the other run time loading flags,
12697 # -berok will link without error, but may produce a broken library.
12698 no_undefined_flag_CXX=' ${wl}-bernotok'
12699 allow_undefined_flag_CXX=' ${wl}-berok'
12700 if test "$with_gnu_ld" = yes; then
12701 # We only use this code for GNU lds that support --whole-archive.
12702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12703 else
12704 # Exported symbols can be pulled into shared objects from archives
12705 whole_archive_flag_spec_CXX='$convenience'
12706 fi
12707 archive_cmds_need_lc_CXX=yes
12708 # This is similar to how AIX traditionally builds its shared
12709 # libraries.
12710 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'
12711 fi
12712 fi
12713 ;;
12714
12715 beos*)
12716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12717 allow_undefined_flag_CXX=unsupported
12718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12719 # support --undefined. This deserves some investigation. FIXME
12720 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 else
12722 ld_shlibs_CXX=no
12723 fi
12724 ;;
12725
12726 chorus*)
12727 case $cc_basename in
12728 *)
12729 # FIXME: insert proper C++ library support
12730 ld_shlibs_CXX=no
12731 ;;
12732 esac
12733 ;;
12734
12735 cygwin* | mingw* | pw32* | cegcc*)
12736 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12737 # as there is no search path for DLLs.
12738 hardcode_libdir_flag_spec_CXX='-L$libdir'
12739 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12740 allow_undefined_flag_CXX=unsupported
12741 always_export_symbols_CXX=no
12742 enable_shared_with_static_runtimes_CXX=yes
12743
12744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12745 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'
12746 # If the export-symbols file already is a .def file (1st line
12747 # is EXPORTS), use it as is; otherwise, prepend...
12748 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12749 cp $export_symbols $output_objdir/$soname.def;
12750 else
12751 echo EXPORTS > $output_objdir/$soname.def;
12752 cat $export_symbols >> $output_objdir/$soname.def;
12753 fi~
12754 $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'
12755 else
12756 ld_shlibs_CXX=no
12757 fi
12758 ;;
12759 darwin* | rhapsody*)
12760
12761
12762 archive_cmds_need_lc_CXX=no
12763 hardcode_direct_CXX=no
12764 hardcode_automatic_CXX=yes
12765 hardcode_shlibpath_var_CXX=unsupported
12766 if test "$lt_cv_ld_force_load" = "yes"; then
12767 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\"`'
12768 else
12769 whole_archive_flag_spec_CXX=''
12770 fi
12771 link_all_deplibs_CXX=yes
12772 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12773 case $cc_basename in
12774 ifort*) _lt_dar_can_shared=yes ;;
12775 *) _lt_dar_can_shared=$GCC ;;
12776 esac
12777 if test "$_lt_dar_can_shared" = "yes"; then
12778 output_verbose_link_cmd=func_echo_all
12779 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}"
12780 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12781 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}"
12782 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}"
12783 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12784 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}"
12785 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}"
12786 fi
12787
12788 else
12789 ld_shlibs_CXX=no
12790 fi
12791
12792 ;;
12793
12794 dgux*)
12795 case $cc_basename in
12796 ec++*)
12797 # FIXME: insert proper C++ library support
12798 ld_shlibs_CXX=no
12799 ;;
12800 ghcx*)
12801 # Green Hills C++ Compiler
12802 # FIXME: insert proper C++ library support
12803 ld_shlibs_CXX=no
12804 ;;
12805 *)
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 ;;
12809 esac
12810 ;;
12811
c6084f68 12812 freebsd2.*)
0a35513e
AH
12813 # C++ shared libraries reported to be fairly broken before
12814 # switch to ELF
12815 ld_shlibs_CXX=no
12816 ;;
12817
12818 freebsd-elf*)
12819 archive_cmds_need_lc_CXX=no
12820 ;;
12821
12822 freebsd* | dragonfly*)
12823 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12824 # conventions
12825 ld_shlibs_CXX=yes
12826 ;;
12827
12828 gnu*)
12829 ;;
12830
12831 haiku*)
12832 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 link_all_deplibs_CXX=yes
12834 ;;
12835
12836 hpux9*)
12837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator_CXX=:
12839 export_dynamic_flag_spec_CXX='${wl}-E'
12840 hardcode_direct_CXX=yes
12841 hardcode_minus_L_CXX=yes # Not in the search PATH,
12842 # but as the default
12843 # location of the library.
12844
12845 case $cc_basename in
12846 CC*)
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850 aCC*)
12851 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'
12852 # Commands to make compiler produce verbose output that lists
12853 # what "hidden" libraries, object files and flags are used when
12854 # linking a shared library.
12855 #
12856 # There doesn't appear to be a way to prevent this compiler from
12857 # explicitly linking system object files so we need to strip them
12858 # from the output so that they don't get included in the library
12859 # dependencies.
12860 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"'
12861 ;;
12862 *)
12863 if test "$GXX" = yes; then
12864 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'
12865 else
12866 # FIXME: insert proper C++ library support
12867 ld_shlibs_CXX=no
12868 fi
12869 ;;
12870 esac
12871 ;;
12872
12873 hpux10*|hpux11*)
12874 if test $with_gnu_ld = no; then
12875 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12876 hardcode_libdir_separator_CXX=:
12877
12878 case $host_cpu in
12879 hppa*64*|ia64*)
12880 ;;
12881 *)
12882 export_dynamic_flag_spec_CXX='${wl}-E'
12883 ;;
12884 esac
12885 fi
12886 case $host_cpu in
12887 hppa*64*|ia64*)
12888 hardcode_direct_CXX=no
12889 hardcode_shlibpath_var_CXX=no
12890 ;;
12891 *)
12892 hardcode_direct_CXX=yes
12893 hardcode_direct_absolute_CXX=yes
12894 hardcode_minus_L_CXX=yes # Not in the search PATH,
12895 # but as the default
12896 # location of the library.
12897 ;;
12898 esac
12899
12900 case $cc_basename in
12901 CC*)
12902 # FIXME: insert proper C++ library support
12903 ld_shlibs_CXX=no
12904 ;;
12905 aCC*)
12906 case $host_cpu in
12907 hppa*64*)
12908 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12909 ;;
12910 ia64*)
12911 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12912 ;;
12913 *)
12914 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12915 ;;
12916 esac
12917 # Commands to make compiler produce verbose output that lists
12918 # what "hidden" libraries, object files and flags are used when
12919 # linking a shared library.
12920 #
12921 # There doesn't appear to be a way to prevent this compiler from
12922 # explicitly linking system object files so we need to strip them
12923 # from the output so that they don't get included in the library
12924 # dependencies.
12925 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"'
12926 ;;
12927 *)
12928 if test "$GXX" = yes; then
12929 if test $with_gnu_ld = no; then
12930 case $host_cpu in
12931 hppa*64*)
12932 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12933 ;;
12934 ia64*)
12935 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936 ;;
12937 *)
12938 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'
12939 ;;
12940 esac
12941 fi
12942 else
12943 # FIXME: insert proper C++ library support
12944 ld_shlibs_CXX=no
12945 fi
12946 ;;
12947 esac
12948 ;;
12949
12950 interix[3-9]*)
12951 hardcode_direct_CXX=no
12952 hardcode_shlibpath_var_CXX=no
12953 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12954 export_dynamic_flag_spec_CXX='${wl}-E'
12955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12956 # Instead, shared libraries are loaded at an image base (0x10000000 by
12957 # default) and relocated if they conflict, which is a slow very memory
12958 # consuming and fragmenting process. To avoid this, we pick a random,
12959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12961 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'
12962 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'
12963 ;;
12964 irix5* | irix6*)
12965 case $cc_basename in
12966 CC*)
12967 # SGI C++
12968 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'
12969
12970 # Archives containing C++ object files must be created using
12971 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12972 # necessary to make sure instantiated templates are included
12973 # in the archive.
12974 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12975 ;;
12976 *)
12977 if test "$GXX" = yes; then
12978 if test "$with_gnu_ld" = no; then
12979 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'
12980 else
12981 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'
12982 fi
12983 fi
12984 link_all_deplibs_CXX=yes
12985 ;;
12986 esac
12987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988 hardcode_libdir_separator_CXX=:
12989 inherit_rpath_CXX=yes
12990 ;;
12991
12992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12993 case $cc_basename in
12994 KCC*)
12995 # Kuck and Associates, Inc. (KAI) C++ Compiler
12996
12997 # KCC will only create a shared library if the output file
12998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12999 # to its proper name (with version) after linking.
13000 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'
13001 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'
13002 # Commands to make compiler produce verbose output that lists
13003 # what "hidden" libraries, object files and flags are used when
13004 # linking a shared library.
13005 #
13006 # There doesn't appear to be a way to prevent this compiler from
13007 # explicitly linking system object files so we need to strip them
13008 # from the output so that they don't get included in the library
13009 # dependencies.
13010 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"'
13011
13012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13014
13015 # Archives containing C++ object files must be created using
13016 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13017 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13018 ;;
13019 icpc* | ecpc* )
13020 # Intel C++
13021 with_gnu_ld=yes
13022 # version 8.0 and above of icpc choke on multiply defined symbols
13023 # if we add $predep_objects and $postdep_objects, however 7.1 and
13024 # earlier do not add the objects themselves.
13025 case `$CC -V 2>&1` in
13026 *"Version 7."*)
13027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028 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'
13029 ;;
13030 *) # Version 8.0 or newer
13031 tmp_idyn=
13032 case $host_cpu in
13033 ia64*) tmp_idyn=' -i_dynamic';;
13034 esac
13035 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036 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'
13037 ;;
13038 esac
13039 archive_cmds_need_lc_CXX=no
13040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13043 ;;
13044 pgCC* | pgcpp*)
13045 # Portland Group C++ compiler
13046 case `$CC -V` in
13047 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13048 prelink_cmds_CXX='tpldir=Template.dir~
13049 rm -rf $tpldir~
13050 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13051 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13052 old_archive_cmds_CXX='tpldir=Template.dir~
13053 rm -rf $tpldir~
13054 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13055 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13056 $RANLIB $oldlib'
13057 archive_cmds_CXX='tpldir=Template.dir~
13058 rm -rf $tpldir~
13059 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13060 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061 archive_expsym_cmds_CXX='tpldir=Template.dir~
13062 rm -rf $tpldir~
13063 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13064 $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'
13065 ;;
13066 *) # Version 6 and above use weak symbols
13067 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13068 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'
13069 ;;
13070 esac
13071
13072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13074 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'
13075 ;;
13076 cxx*)
13077 # Compaq C++
13078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079 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'
13080
13081 runpath_var=LD_RUN_PATH
13082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13083 hardcode_libdir_separator_CXX=:
13084
13085 # Commands to make compiler produce verbose output that lists
13086 # what "hidden" libraries, object files and flags are used when
13087 # linking a shared library.
13088 #
13089 # There doesn't appear to be a way to prevent this compiler from
13090 # explicitly linking system object files so we need to strip them
13091 # from the output so that they don't get included in the library
13092 # dependencies.
13093 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'
13094 ;;
13095 xl* | mpixl* | bgxl*)
13096 # IBM XL 8.0 on PPC, with GNU ld
13097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13099 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13100 if test "x$supports_anon_versioning" = xyes; then
13101 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13103 echo "local: *; };" >> $output_objdir/$libname.ver~
13104 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13105 fi
13106 ;;
13107 *)
13108 case `$CC -V 2>&1 | sed 5q` in
13109 *Sun\ C*)
13110 # Sun C++ 5.9
13111 no_undefined_flag_CXX=' -zdefs'
13112 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113 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'
13114 hardcode_libdir_flag_spec_CXX='-R$libdir'
13115 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'
13116 compiler_needs_object_CXX=yes
13117
13118 # Not sure whether something based on
13119 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13120 # would be better.
13121 output_verbose_link_cmd='func_echo_all'
13122
13123 # Archives containing C++ object files must be created using
13124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13125 # necessary to make sure instantiated templates are included
13126 # in the archive.
13127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13128 ;;
13129 esac
13130 ;;
13131 esac
13132 ;;
13133
13134 lynxos*)
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
13138
13139 m88k*)
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13142 ;;
13143
13144 mvs*)
13145 case $cc_basename in
13146 cxx*)
13147 # FIXME: insert proper C++ library support
13148 ld_shlibs_CXX=no
13149 ;;
13150 *)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 ;;
13154 esac
13155 ;;
13156
13157 netbsd*)
13158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13159 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13160 wlarc=
13161 hardcode_libdir_flag_spec_CXX='-R$libdir'
13162 hardcode_direct_CXX=yes
13163 hardcode_shlibpath_var_CXX=no
13164 fi
13165 # Workaround some broken pre-1.5 toolchains
13166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13167 ;;
13168
13169 *nto* | *qnx*)
13170 ld_shlibs_CXX=yes
13171 ;;
13172
13173 openbsd2*)
13174 # C++ shared libraries are fairly broken
13175 ld_shlibs_CXX=no
13176 ;;
13177
13178 openbsd*)
13179 if test -f /usr/libexec/ld.so; then
13180 hardcode_direct_CXX=yes
13181 hardcode_shlibpath_var_CXX=no
13182 hardcode_direct_absolute_CXX=yes
13183 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13186 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13187 export_dynamic_flag_spec_CXX='${wl}-E'
13188 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13189 fi
13190 output_verbose_link_cmd=func_echo_all
13191 else
13192 ld_shlibs_CXX=no
13193 fi
13194 ;;
13195
13196 osf3* | osf4* | osf5*)
13197 case $cc_basename in
13198 KCC*)
13199 # Kuck and Associates, Inc. (KAI) C++ Compiler
13200
13201 # KCC will only create a shared library if the output file
13202 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13203 # to its proper name (with version) after linking.
13204 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'
13205
13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13207 hardcode_libdir_separator_CXX=:
13208
13209 # Archives containing C++ object files must be created using
13210 # the KAI C++ compiler.
13211 case $host in
13212 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13213 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13214 esac
13215 ;;
13216 RCC*)
13217 # Rational C++ 2.4.1
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221 cxx*)
13222 case $host in
13223 osf3*)
13224 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13225 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'
13226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13227 ;;
13228 *)
13229 allow_undefined_flag_CXX=' -expect_unresolved \*'
13230 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'
13231 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13232 echo "-hidden">> $lib.exp~
13233 $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~
13234 $RM $lib.exp'
13235 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13236 ;;
13237 esac
13238
13239 hardcode_libdir_separator_CXX=:
13240
13241 # Commands to make compiler produce verbose output that lists
13242 # what "hidden" libraries, object files and flags are used when
13243 # linking a shared library.
13244 #
13245 # There doesn't appear to be a way to prevent this compiler from
13246 # explicitly linking system object files so we need to strip them
13247 # from the output so that they don't get included in the library
13248 # dependencies.
13249 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"'
13250 ;;
13251 *)
13252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13253 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13254 case $host in
13255 osf3*)
13256 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'
13257 ;;
13258 *)
13259 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'
13260 ;;
13261 esac
13262
13263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13264 hardcode_libdir_separator_CXX=:
13265
13266 # Commands to make compiler produce verbose output that lists
13267 # what "hidden" libraries, object files and flags are used when
13268 # linking a shared library.
13269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13270
13271 else
13272 # FIXME: insert proper C++ library support
13273 ld_shlibs_CXX=no
13274 fi
13275 ;;
13276 esac
13277 ;;
13278
13279 psos*)
13280 # FIXME: insert proper C++ library support
13281 ld_shlibs_CXX=no
13282 ;;
13283
13284 sunos4*)
13285 case $cc_basename in
13286 CC*)
13287 # Sun C++ 4.x
13288 # FIXME: insert proper C++ library support
13289 ld_shlibs_CXX=no
13290 ;;
13291 lcc*)
13292 # Lucid
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13295 ;;
13296 *)
13297 # FIXME: insert proper C++ library support
13298 ld_shlibs_CXX=no
13299 ;;
13300 esac
13301 ;;
13302
13303 solaris*)
13304 case $cc_basename in
13305 CC*)
13306 # Sun C++ 4.2, 5.x and Centerline C++
13307 archive_cmds_need_lc_CXX=yes
13308 no_undefined_flag_CXX=' -zdefs'
13309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13310 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13311 $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'
13312
13313 hardcode_libdir_flag_spec_CXX='-R$libdir'
13314 hardcode_shlibpath_var_CXX=no
13315 case $host_os in
13316 solaris2.[0-5] | solaris2.[0-5].*) ;;
13317 *)
13318 # The compiler driver will combine and reorder linker options,
13319 # but understands `-z linker_flag'.
13320 # Supported since Solaris 2.6 (maybe 2.5.1?)
13321 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13322 ;;
13323 esac
13324 link_all_deplibs_CXX=yes
13325
13326 output_verbose_link_cmd='func_echo_all'
13327
13328 # Archives containing C++ object files must be created using
13329 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13330 # necessary to make sure instantiated templates are included
13331 # in the archive.
13332 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13333 ;;
13334 gcx*)
13335 # Green Hills C++ Compiler
13336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13337
13338 # The C++ compiler must be used to create the archive.
13339 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13340 ;;
13341 *)
13342 # GNU C++ compiler with Solaris linker
13343 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13344 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13345 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13346 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13347 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13348 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13349
13350 # Commands to make compiler produce verbose output that lists
13351 # what "hidden" libraries, object files and flags are used when
13352 # linking a shared library.
13353 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13354 else
13355 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13356 # platform.
13357 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13358 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13359 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13360
13361 # Commands to make compiler produce verbose output that lists
13362 # what "hidden" libraries, object files and flags are used when
13363 # linking a shared library.
13364 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13365 fi
13366
13367 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13368 case $host_os in
13369 solaris2.[0-5] | solaris2.[0-5].*) ;;
13370 *)
13371 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13372 ;;
13373 esac
13374 fi
13375 ;;
13376 esac
13377 ;;
13378
13379 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13380 no_undefined_flag_CXX='${wl}-z,text'
13381 archive_cmds_need_lc_CXX=no
13382 hardcode_shlibpath_var_CXX=no
13383 runpath_var='LD_RUN_PATH'
13384
13385 case $cc_basename in
13386 CC*)
13387 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 ;;
13390 *)
13391 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13392 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 ;;
13394 esac
13395 ;;
13396
13397 sysv5* | sco3.2v5* | sco5v6*)
13398 # Note: We can NOT use -z defs as we might desire, because we do not
13399 # link with -lc, and that would cause any symbols used from libc to
13400 # always be unresolved, which means just about no library would
13401 # ever link correctly. If we're not using GNU ld we use -z text
13402 # though, which does catch some bad symbols but isn't as heavy-handed
13403 # as -z defs.
13404 no_undefined_flag_CXX='${wl}-z,text'
13405 allow_undefined_flag_CXX='${wl}-z,nodefs'
13406 archive_cmds_need_lc_CXX=no
13407 hardcode_shlibpath_var_CXX=no
13408 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13409 hardcode_libdir_separator_CXX=':'
13410 link_all_deplibs_CXX=yes
13411 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13412 runpath_var='LD_RUN_PATH'
13413
13414 case $cc_basename in
13415 CC*)
13416 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13418 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13419 '"$old_archive_cmds_CXX"
13420 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13421 '"$reload_cmds_CXX"
13422 ;;
13423 *)
13424 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13425 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13426 ;;
13427 esac
13428 ;;
13429
13430 tandem*)
13431 case $cc_basename in
13432 NCC*)
13433 # NonStop-UX NCC 3.20
13434 # FIXME: insert proper C++ library support
13435 ld_shlibs_CXX=no
13436 ;;
13437 *)
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13440 ;;
13441 esac
13442 ;;
13443
13444 vxworks*)
13445 # FIXME: insert proper C++ library support
13446 ld_shlibs_CXX=no
13447 ;;
13448
13449 *)
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 ;;
13453 esac
13454
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13456$as_echo "$ld_shlibs_CXX" >&6; }
13457 test "$ld_shlibs_CXX" = no && can_build_shared=no
13458
13459 GCC_CXX="$GXX"
13460 LD_CXX="$LD"
13461
13462 ## CAVEAT EMPTOR:
13463 ## There is no encapsulation within the following macros, do not change
13464 ## the running order or otherwise move them around unless you know exactly
13465 ## what you are doing...
13466 # Dependencies to place before and after the object being linked:
13467predep_objects_CXX=
13468postdep_objects_CXX=
13469predeps_CXX=
13470postdeps_CXX=
13471compiler_lib_search_path_CXX=
13472
13473cat > conftest.$ac_ext <<_LT_EOF
13474class Foo
13475{
13476public:
13477 Foo (void) { a = 0; }
13478private:
13479 int a;
13480};
13481_LT_EOF
13482
13483if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13484 (eval $ac_compile) 2>&5
13485 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 test $ac_status = 0; }; then
13488 # Parse the compiler output and extract the necessary
13489 # objects, libraries and library flags.
13490
13491 # Sentinel used to keep track of whether or not we are before
13492 # the conftest object file.
13493 pre_test_object_deps_done=no
13494
13495 for p in `eval "$output_verbose_link_cmd"`; do
13496 case $p in
13497
13498 -L* | -R* | -l*)
13499 # Some compilers place space between "-{L,R}" and the path.
13500 # Remove the space.
13501 if test $p = "-L" ||
13502 test $p = "-R"; then
13503 prev=$p
13504 continue
13505 else
13506 prev=
13507 fi
13508
13509 if test "$pre_test_object_deps_done" = no; then
13510 case $p in
13511 -L* | -R*)
13512 # Internal compiler library paths should come after those
13513 # provided the user. The postdeps already come after the
13514 # user supplied libs so there is no need to process them.
13515 if test -z "$compiler_lib_search_path_CXX"; then
13516 compiler_lib_search_path_CXX="${prev}${p}"
13517 else
13518 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13519 fi
13520 ;;
13521 # The "-l" case would never come before the object being
13522 # linked, so don't bother handling this case.
13523 esac
13524 else
13525 if test -z "$postdeps_CXX"; then
13526 postdeps_CXX="${prev}${p}"
13527 else
13528 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13529 fi
13530 fi
13531 ;;
13532
13533 *.$objext)
13534 # This assumes that the test object file only shows up
13535 # once in the compiler output.
13536 if test "$p" = "conftest.$objext"; then
13537 pre_test_object_deps_done=yes
13538 continue
13539 fi
13540
13541 if test "$pre_test_object_deps_done" = no; then
13542 if test -z "$predep_objects_CXX"; then
13543 predep_objects_CXX="$p"
13544 else
13545 predep_objects_CXX="$predep_objects_CXX $p"
13546 fi
13547 else
13548 if test -z "$postdep_objects_CXX"; then
13549 postdep_objects_CXX="$p"
13550 else
13551 postdep_objects_CXX="$postdep_objects_CXX $p"
13552 fi
13553 fi
13554 ;;
13555
13556 *) ;; # Ignore the rest.
13557
13558 esac
13559 done
13560
13561 # Clean up.
13562 rm -f a.out a.exe
13563else
13564 echo "libtool.m4: error: problem compiling CXX test program"
13565fi
13566
13567$RM -f confest.$objext
13568
13569# PORTME: override above test on systems where it is broken
13570case $host_os in
13571interix[3-9]*)
13572 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13573 # hack all around it, let's just trust "g++" to DTRT.
13574 predep_objects_CXX=
13575 postdep_objects_CXX=
13576 postdeps_CXX=
13577 ;;
13578
13579linux*)
13580 case `$CC -V 2>&1 | sed 5q` in
13581 *Sun\ C*)
13582 # Sun C++ 5.9
13583
13584 # The more standards-conforming stlport4 library is
13585 # incompatible with the Cstd library. Avoid specifying
13586 # it if it's in CXXFLAGS. Ignore libCrun as
13587 # -library=stlport4 depends on it.
13588 case " $CXX $CXXFLAGS " in
13589 *" -library=stlport4 "*)
13590 solaris_use_stlport4=yes
13591 ;;
13592 esac
13593
13594 if test "$solaris_use_stlport4" != yes; then
13595 postdeps_CXX='-library=Cstd -library=Crun'
13596 fi
13597 ;;
13598 esac
13599 ;;
13600
13601solaris*)
13602 case $cc_basename in
13603 CC*)
13604 # The more standards-conforming stlport4 library is
13605 # incompatible with the Cstd library. Avoid specifying
13606 # it if it's in CXXFLAGS. Ignore libCrun as
13607 # -library=stlport4 depends on it.
13608 case " $CXX $CXXFLAGS " in
13609 *" -library=stlport4 "*)
13610 solaris_use_stlport4=yes
13611 ;;
13612 esac
13613
13614 # Adding this requires a known-good setup of shared libraries for
13615 # Sun compiler versions before 5.6, else PIC objects from an old
13616 # archive will be linked into the output, leading to subtle bugs.
13617 if test "$solaris_use_stlport4" != yes; then
13618 postdeps_CXX='-library=Cstd -library=Crun'
13619 fi
13620 ;;
13621 esac
13622 ;;
13623esac
13624
13625
13626case " $postdeps_CXX " in
13627*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13628esac
13629 compiler_lib_search_dirs_CXX=
13630if test -n "${compiler_lib_search_path_CXX}"; then
13631 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13632fi
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664 lt_prog_compiler_wl_CXX=
13665lt_prog_compiler_pic_CXX=
13666lt_prog_compiler_static_CXX=
13667
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13669$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13670
13671 # C++ specific cases for pic, static, wl, etc.
13672 if test "$GXX" = yes; then
13673 lt_prog_compiler_wl_CXX='-Wl,'
13674 lt_prog_compiler_static_CXX='-static'
13675
13676 case $host_os in
13677 aix*)
13678 # All AIX code is PIC.
13679 if test "$host_cpu" = ia64; then
13680 # AIX 5 now supports IA64 processor
13681 lt_prog_compiler_static_CXX='-Bstatic'
13682 fi
13683 ;;
13684
13685 amigaos*)
13686 case $host_cpu in
13687 powerpc)
13688 # see comment about AmigaOS4 .so support
13689 lt_prog_compiler_pic_CXX='-fPIC'
13690 ;;
13691 m68k)
13692 # FIXME: we need at least 68020 code to build shared libraries, but
13693 # adding the `-m68020' flag to GCC prevents building anything better,
13694 # like `-m68040'.
13695 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13696 ;;
13697 esac
13698 ;;
13699
13700 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13701 # PIC is the default for these OSes.
13702 ;;
13703 mingw* | cygwin* | os2* | pw32* | cegcc*)
13704 # This hack is so that the source file can tell whether it is being
13705 # built for inclusion in a dll (and should export symbols for example).
13706 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13707 # (--disable-auto-import) libraries
13708 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13709 ;;
13710 darwin* | rhapsody*)
13711 # PIC is the default on this platform
13712 # Common symbols not allowed in MH_DYLIB files
13713 lt_prog_compiler_pic_CXX='-fno-common'
13714 ;;
13715 *djgpp*)
13716 # DJGPP does not support shared libraries at all
13717 lt_prog_compiler_pic_CXX=
13718 ;;
13719 haiku*)
13720 # PIC is the default for Haiku.
13721 # The "-static" flag exists, but is broken.
13722 lt_prog_compiler_static_CXX=
13723 ;;
13724 interix[3-9]*)
13725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13726 # Instead, we relocate shared libraries at runtime.
13727 ;;
13728 sysv4*MP*)
13729 if test -d /usr/nec; then
13730 lt_prog_compiler_pic_CXX=-Kconform_pic
13731 fi
13732 ;;
13733 hpux*)
13734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13736 # sets the default TLS model and affects inlining.
13737 case $host_cpu in
13738 hppa*64*)
13739 ;;
13740 *)
13741 lt_prog_compiler_pic_CXX='-fPIC'
13742 ;;
13743 esac
13744 ;;
13745 *qnx* | *nto*)
13746 # QNX uses GNU C++, but need to define -shared option too, otherwise
13747 # it will coredump.
13748 lt_prog_compiler_pic_CXX='-fPIC -shared'
13749 ;;
13750 *)
13751 lt_prog_compiler_pic_CXX='-fPIC'
13752 ;;
13753 esac
13754 else
13755 case $host_os in
13756 aix[4-9]*)
13757 # All AIX code is PIC.
13758 if test "$host_cpu" = ia64; then
13759 # AIX 5 now supports IA64 processor
13760 lt_prog_compiler_static_CXX='-Bstatic'
13761 else
13762 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13763 fi
13764 ;;
13765 chorus*)
13766 case $cc_basename in
13767 cxch68*)
13768 # Green Hills C++ Compiler
13769 # _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"
13770 ;;
13771 esac
13772 ;;
13773 dgux*)
13774 case $cc_basename in
13775 ec++*)
13776 lt_prog_compiler_pic_CXX='-KPIC'
13777 ;;
13778 ghcx*)
13779 # Green Hills C++ Compiler
13780 lt_prog_compiler_pic_CXX='-pic'
13781 ;;
13782 *)
13783 ;;
13784 esac
13785 ;;
13786 freebsd* | dragonfly*)
13787 # FreeBSD uses GNU C++
13788 ;;
13789 hpux9* | hpux10* | hpux11*)
13790 case $cc_basename in
13791 CC*)
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13794 if test "$host_cpu" != ia64; then
13795 lt_prog_compiler_pic_CXX='+Z'
13796 fi
13797 ;;
13798 aCC*)
13799 lt_prog_compiler_wl_CXX='-Wl,'
13800 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13801 case $host_cpu in
13802 hppa*64*|ia64*)
13803 # +Z the default
13804 ;;
13805 *)
13806 lt_prog_compiler_pic_CXX='+Z'
13807 ;;
13808 esac
13809 ;;
13810 *)
13811 ;;
13812 esac
13813 ;;
13814 interix*)
13815 # This is c89, which is MS Visual C++ (no shared libs)
13816 # Anyone wants to do a port?
13817 ;;
13818 irix5* | irix6* | nonstopux*)
13819 case $cc_basename in
13820 CC*)
13821 lt_prog_compiler_wl_CXX='-Wl,'
13822 lt_prog_compiler_static_CXX='-non_shared'
13823 # CC pic flag -KPIC is the default.
13824 ;;
13825 *)
13826 ;;
13827 esac
13828 ;;
13829 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13830 case $cc_basename in
13831 KCC*)
13832 # KAI C++ Compiler
13833 lt_prog_compiler_wl_CXX='--backend -Wl,'
13834 lt_prog_compiler_pic_CXX='-fPIC'
13835 ;;
13836 ecpc* )
13837 # old Intel C++ for x86_64 which still supported -KPIC.
13838 lt_prog_compiler_wl_CXX='-Wl,'
13839 lt_prog_compiler_pic_CXX='-KPIC'
13840 lt_prog_compiler_static_CXX='-static'
13841 ;;
13842 icpc* )
13843 # Intel C++, used to be incompatible with GCC.
13844 # ICC 10 doesn't accept -KPIC any more.
13845 lt_prog_compiler_wl_CXX='-Wl,'
13846 lt_prog_compiler_pic_CXX='-fPIC'
13847 lt_prog_compiler_static_CXX='-static'
13848 ;;
13849 pgCC* | pgcpp*)
13850 # Portland Group C++ compiler
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 lt_prog_compiler_pic_CXX='-fpic'
13853 lt_prog_compiler_static_CXX='-Bstatic'
13854 ;;
13855 cxx*)
13856 # Compaq C++
13857 # Make sure the PIC flag is empty. It appears that all Alpha
13858 # Linux and Compaq Tru64 Unix objects are PIC.
13859 lt_prog_compiler_pic_CXX=
13860 lt_prog_compiler_static_CXX='-non_shared'
13861 ;;
13862 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13863 # IBM XL 8.0, 9.0 on PPC and BlueGene
13864 lt_prog_compiler_wl_CXX='-Wl,'
13865 lt_prog_compiler_pic_CXX='-qpic'
13866 lt_prog_compiler_static_CXX='-qstaticlink'
13867 ;;
13868 *)
13869 case `$CC -V 2>&1 | sed 5q` in
13870 *Sun\ C*)
13871 # Sun C++ 5.9
13872 lt_prog_compiler_pic_CXX='-KPIC'
13873 lt_prog_compiler_static_CXX='-Bstatic'
13874 lt_prog_compiler_wl_CXX='-Qoption ld '
13875 ;;
13876 esac
13877 ;;
13878 esac
13879 ;;
13880 lynxos*)
13881 ;;
13882 m88k*)
13883 ;;
13884 mvs*)
13885 case $cc_basename in
13886 cxx*)
13887 lt_prog_compiler_pic_CXX='-W c,exportall'
13888 ;;
13889 *)
13890 ;;
13891 esac
13892 ;;
13893 netbsd*)
13894 ;;
13895 *qnx* | *nto*)
13896 # QNX uses GNU C++, but need to define -shared option too, otherwise
13897 # it will coredump.
13898 lt_prog_compiler_pic_CXX='-fPIC -shared'
13899 ;;
13900 osf3* | osf4* | osf5*)
13901 case $cc_basename in
13902 KCC*)
13903 lt_prog_compiler_wl_CXX='--backend -Wl,'
13904 ;;
13905 RCC*)
13906 # Rational C++ 2.4.1
13907 lt_prog_compiler_pic_CXX='-pic'
13908 ;;
13909 cxx*)
13910 # Digital/Compaq C++
13911 lt_prog_compiler_wl_CXX='-Wl,'
13912 # Make sure the PIC flag is empty. It appears that all Alpha
13913 # Linux and Compaq Tru64 Unix objects are PIC.
13914 lt_prog_compiler_pic_CXX=
13915 lt_prog_compiler_static_CXX='-non_shared'
13916 ;;
13917 *)
13918 ;;
13919 esac
13920 ;;
13921 psos*)
13922 ;;
13923 solaris*)
13924 case $cc_basename in
13925 CC*)
13926 # Sun C++ 4.2, 5.x and Centerline C++
13927 lt_prog_compiler_pic_CXX='-KPIC'
13928 lt_prog_compiler_static_CXX='-Bstatic'
13929 lt_prog_compiler_wl_CXX='-Qoption ld '
13930 ;;
13931 gcx*)
13932 # Green Hills C++ Compiler
13933 lt_prog_compiler_pic_CXX='-PIC'
13934 ;;
13935 *)
13936 ;;
13937 esac
13938 ;;
13939 sunos4*)
13940 case $cc_basename in
13941 CC*)
13942 # Sun C++ 4.x
13943 lt_prog_compiler_pic_CXX='-pic'
13944 lt_prog_compiler_static_CXX='-Bstatic'
13945 ;;
13946 lcc*)
13947 # Lucid
13948 lt_prog_compiler_pic_CXX='-pic'
13949 ;;
13950 *)
13951 ;;
13952 esac
13953 ;;
13954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13955 case $cc_basename in
13956 CC*)
13957 lt_prog_compiler_wl_CXX='-Wl,'
13958 lt_prog_compiler_pic_CXX='-KPIC'
13959 lt_prog_compiler_static_CXX='-Bstatic'
13960 ;;
13961 esac
13962 ;;
13963 tandem*)
13964 case $cc_basename in
13965 NCC*)
13966 # NonStop-UX NCC 3.20
13967 lt_prog_compiler_pic_CXX='-KPIC'
13968 ;;
13969 *)
13970 ;;
13971 esac
13972 ;;
13973 vxworks*)
13974 ;;
13975 *)
13976 lt_prog_compiler_can_build_shared_CXX=no
13977 ;;
13978 esac
13979 fi
13980
13981case $host_os in
13982 # For platforms which do not support PIC, -DPIC is meaningless:
13983 *djgpp*)
13984 lt_prog_compiler_pic_CXX=
13985 ;;
13986 *)
13987 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13988 ;;
13989esac
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13991$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13992
13993
13994
13995#
13996# Check to make sure the PIC flag actually works.
13997#
13998if test -n "$lt_prog_compiler_pic_CXX"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14000$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14001if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003else
14004 lt_cv_prog_compiler_pic_works_CXX=no
14005 ac_outfile=conftest.$ac_objext
14006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14007 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14008 # Insert the option either (1) after the last *FLAGS variable, or
14009 # (2) before a word containing "conftest.", or (3) at the end.
14010 # Note that $ac_compile itself does not contain backslashes and begins
14011 # with a dollar sign (not a hyphen), so the echo should work correctly.
14012 # The option is referenced via a variable to avoid confusing sed.
14013 lt_compile=`echo "$ac_compile" | $SED \
14014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14016 -e 's:$: $lt_compiler_flag:'`
14017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14018 (eval "$lt_compile" 2>conftest.err)
14019 ac_status=$?
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 if (exit $ac_status) && test -s "$ac_outfile"; then
14023 # The compiler can only warn and ignore the option if not recognized
14024 # So say no if there are warnings other than the usual output.
14025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14028 lt_cv_prog_compiler_pic_works_CXX=yes
14029 fi
14030 fi
14031 $RM conftest*
14032
14033fi
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14035$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14036
14037if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14038 case $lt_prog_compiler_pic_CXX in
14039 "" | " "*) ;;
14040 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14041 esac
14042else
14043 lt_prog_compiler_pic_CXX=
14044 lt_prog_compiler_can_build_shared_CXX=no
14045fi
14046
14047fi
14048
14049
14050
14051#
14052# Check to make sure the static flag actually works.
14053#
14054wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14056$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14057if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059else
14060 lt_cv_prog_compiler_static_works_CXX=no
14061 save_LDFLAGS="$LDFLAGS"
14062 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14065 # The linker can only warn and ignore the option if not recognized
14066 # So say no if there are warnings
14067 if test -s conftest.err; then
14068 # Append any errors to the config.log.
14069 cat conftest.err 1>&5
14070 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14072 if diff conftest.exp conftest.er2 >/dev/null; then
14073 lt_cv_prog_compiler_static_works_CXX=yes
14074 fi
14075 else
14076 lt_cv_prog_compiler_static_works_CXX=yes
14077 fi
14078 fi
14079 $RM -r conftest*
14080 LDFLAGS="$save_LDFLAGS"
14081
14082fi
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14084$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14085
14086if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14087 :
14088else
14089 lt_prog_compiler_static_CXX=
14090fi
14091
14092
14093
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14097if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099else
14100 lt_cv_prog_compiler_c_o_CXX=no
14101 $RM -r conftest 2>/dev/null
14102 mkdir conftest
14103 cd conftest
14104 mkdir out
14105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14106
14107 lt_compiler_flag="-o out/conftest2.$ac_objext"
14108 # Insert the option either (1) after the last *FLAGS variable, or
14109 # (2) before a word containing "conftest.", or (3) at the end.
14110 # Note that $ac_compile itself does not contain backslashes and begins
14111 # with a dollar sign (not a hyphen), so the echo should work correctly.
14112 lt_compile=`echo "$ac_compile" | $SED \
14113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14115 -e 's:$: $lt_compiler_flag:'`
14116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14117 (eval "$lt_compile" 2>out/conftest.err)
14118 ac_status=$?
14119 cat out/conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14122 then
14123 # The compiler can only warn and ignore the option if not recognized
14124 # So say no if there are warnings
14125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14128 lt_cv_prog_compiler_c_o_CXX=yes
14129 fi
14130 fi
14131 chmod u+w . 2>&5
14132 $RM conftest*
14133 # SGI C++ compiler will create directory out/ii_files/ for
14134 # template instantiation
14135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14136 $RM out/* && rmdir out
14137 cd ..
14138 $RM -r conftest
14139 $RM conftest*
14140
14141fi
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14143$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14144
14145
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14149if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151else
14152 lt_cv_prog_compiler_c_o_CXX=no
14153 $RM -r conftest 2>/dev/null
14154 mkdir conftest
14155 cd conftest
14156 mkdir out
14157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14158
14159 lt_compiler_flag="-o out/conftest2.$ac_objext"
14160 # Insert the option either (1) after the last *FLAGS variable, or
14161 # (2) before a word containing "conftest.", or (3) at the end.
14162 # Note that $ac_compile itself does not contain backslashes and begins
14163 # with a dollar sign (not a hyphen), so the echo should work correctly.
14164 lt_compile=`echo "$ac_compile" | $SED \
14165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14167 -e 's:$: $lt_compiler_flag:'`
14168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14169 (eval "$lt_compile" 2>out/conftest.err)
14170 ac_status=$?
14171 cat out/conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14174 then
14175 # The compiler can only warn and ignore the option if not recognized
14176 # So say no if there are warnings
14177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14180 lt_cv_prog_compiler_c_o_CXX=yes
14181 fi
14182 fi
14183 chmod u+w . 2>&5
14184 $RM conftest*
14185 # SGI C++ compiler will create directory out/ii_files/ for
14186 # template instantiation
14187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14188 $RM out/* && rmdir out
14189 cd ..
14190 $RM -r conftest
14191 $RM conftest*
14192
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14195$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14196
14197
14198
14199
14200hard_links="nottested"
14201if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14202 # do not overwrite the value of need_locks provided by the user
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14204$as_echo_n "checking if we can lock with hard links... " >&6; }
14205 hard_links=yes
14206 $RM conftest*
14207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14208 touch conftest.a
14209 ln conftest.a conftest.b 2>&5 || hard_links=no
14210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14212$as_echo "$hard_links" >&6; }
14213 if test "$hard_links" = no; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14215$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14216 need_locks=warn
14217 fi
14218else
14219 need_locks=no
14220fi
14221
14222
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14226
14227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14228 case $host_os in
14229 aix[4-9]*)
14230 # If we're using GNU nm, then we don't want the "-C" option.
14231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14232 # Also, AIX nm treats weak defined symbols like other global defined
14233 # symbols, whereas GNU nm marks them as "W".
14234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14235 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'
14236 else
14237 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14238 fi
14239 ;;
14240 pw32*)
14241 export_symbols_cmds_CXX="$ltdll_cmds"
14242 ;;
14243 cygwin* | mingw* | cegcc*)
14244 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'
14245 ;;
14246 *)
14247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14248 ;;
14249 esac
14250 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14251
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14253$as_echo "$ld_shlibs_CXX" >&6; }
14254test "$ld_shlibs_CXX" = no && can_build_shared=no
14255
14256with_gnu_ld_CXX=$with_gnu_ld
14257
14258
14259
14260
14261
14262
14263#
14264# Do we need to explicitly link libc?
14265#
14266case "x$archive_cmds_need_lc_CXX" in
14267x|xyes)
14268 # Assume -lc should be added
14269 archive_cmds_need_lc_CXX=yes
14270
14271 if test "$enable_shared" = yes && test "$GCC" = yes; then
14272 case $archive_cmds_CXX in
14273 *'~'*)
14274 # FIXME: we may have to deal with multi-command sequences.
14275 ;;
14276 '$CC '*)
14277 # Test whether the compiler implicitly links with -lc since on some
14278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14279 # to ld, don't add -lc before -lgcc.
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14281$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14282if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14283 $as_echo_n "(cached) " >&6
14284else
14285 $RM conftest*
14286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14287
14288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14289 (eval $ac_compile) 2>&5
14290 ac_status=$?
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292 test $ac_status = 0; } 2>conftest.err; then
14293 soname=conftest
14294 lib=conftest
14295 libobjs=conftest.$ac_objext
14296 deplibs=
14297 wl=$lt_prog_compiler_wl_CXX
14298 pic_flag=$lt_prog_compiler_pic_CXX
14299 compiler_flags=-v
14300 linker_flags=-v
14301 verstring=
14302 output_objdir=.
14303 libname=conftest
14304 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14305 allow_undefined_flag_CXX=
14306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14307 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14308 ac_status=$?
14309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14310 test $ac_status = 0; }
14311 then
14312 lt_cv_archive_cmds_need_lc_CXX=no
14313 else
14314 lt_cv_archive_cmds_need_lc_CXX=yes
14315 fi
14316 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14317 else
14318 cat conftest.err 1>&5
14319 fi
14320 $RM conftest*
14321
14322fi
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14324$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14325 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14326 ;;
14327 esac
14328 fi
14329 ;;
14330esac
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14396$as_echo_n "checking dynamic linker characteristics... " >&6; }
14397
14398library_names_spec=
14399libname_spec='lib$name'
14400soname_spec=
14401shrext_cmds=".so"
14402postinstall_cmds=
14403postuninstall_cmds=
14404finish_cmds=
14405finish_eval=
14406shlibpath_var=
14407shlibpath_overrides_runpath=unknown
14408version_type=none
14409dynamic_linker="$host_os ld.so"
14410sys_lib_dlsearch_path_spec="/lib /usr/lib"
14411need_lib_prefix=unknown
14412hardcode_into_libs=no
14413
14414# when you set need_version to no, make sure it does not cause -set_version
14415# flags to be left without arguments
14416need_version=unknown
14417
14418case $host_os in
14419aix3*)
14420 version_type=linux
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14422 shlibpath_var=LIBPATH
14423
14424 # AIX 3 has no versioning support, so we append a major version to the name.
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 ;;
14427
14428aix[4-9]*)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 hardcode_into_libs=yes
14433 if test "$host_cpu" = ia64; then
14434 # AIX 5 supports IA64
14435 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14436 shlibpath_var=LD_LIBRARY_PATH
14437 else
14438 # With GCC up to 2.95.x, collect2 would create an import file
14439 # for dependence libraries. The import file would start with
14440 # the line `#! .'. This would cause the generated library to
14441 # depend on `.', always an invalid library. This was fixed in
14442 # development snapshots of GCC prior to 3.0.
14443 case $host_os in
14444 aix4 | aix4.[01] | aix4.[01].*)
14445 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14446 echo ' yes '
14447 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14448 :
14449 else
14450 can_build_shared=no
14451 fi
14452 ;;
14453 esac
14454 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14455 # soname into executable. Probably we can add versioning support to
14456 # collect2, so additional links can be useful in future.
14457 if test "$aix_use_runtimelinking" = yes; then
14458 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14459 # instead of lib<name>.a to let people know that these are not
14460 # typical AIX shared libraries.
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 else
14463 # We preserve .a as extension for shared libraries through AIX4.2
14464 # and later when we are not doing run time linking.
14465 library_names_spec='${libname}${release}.a $libname.a'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 fi
14468 shlibpath_var=LIBPATH
14469 fi
14470 ;;
14471
14472amigaos*)
14473 case $host_cpu in
14474 powerpc)
14475 # Since July 2007 AmigaOS4 officially supports .so libraries.
14476 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 ;;
14479 m68k)
14480 library_names_spec='$libname.ixlibrary $libname.a'
14481 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14482 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'
14483 ;;
14484 esac
14485 ;;
14486
14487beos*)
14488 library_names_spec='${libname}${shared_ext}'
14489 dynamic_linker="$host_os ld.so"
14490 shlibpath_var=LIBRARY_PATH
14491 ;;
14492
14493bsdi[45]*)
14494 version_type=linux
14495 need_version=no
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14501 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14502 # the default ld.so.conf also contains /usr/contrib/lib and
14503 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14504 # libtool to hard-code these into programs
14505 ;;
14506
14507cygwin* | mingw* | pw32* | cegcc*)
14508 version_type=windows
14509 shrext_cmds=".dll"
14510 need_version=no
14511 need_lib_prefix=no
14512
14513 case $GCC,$host_os in
14514 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14515 library_names_spec='$libname.dll.a'
14516 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14517 postinstall_cmds='base_file=`basename \${file}`~
14518 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14519 dldir=$destdir/`dirname \$dlpath`~
14520 test -d \$dldir || mkdir -p \$dldir~
14521 $install_prog $dir/$dlname \$dldir/$dlname~
14522 chmod a+x \$dldir/$dlname~
14523 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14524 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14525 fi'
14526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14527 dlpath=$dir/\$dldll~
14528 $RM \$dlpath'
14529 shlibpath_overrides_runpath=yes
14530
14531 case $host_os in
14532 cygwin*)
14533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14535
14536 ;;
14537 mingw* | cegcc*)
14538 # MinGW DLLs use traditional 'lib' prefix
14539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14540 ;;
14541 pw32*)
14542 # pw32 DLLs use 'pw' prefix rather than 'lib'
14543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544 ;;
14545 esac
14546 ;;
14547
14548 *)
14549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14550 ;;
14551 esac
14552 dynamic_linker='Win32 ld.exe'
14553 # FIXME: first we should search . and the directory the executable is in
14554 shlibpath_var=PATH
14555 ;;
14556
14557darwin* | rhapsody*)
14558 dynamic_linker="$host_os dyld"
14559 version_type=darwin
14560 need_lib_prefix=no
14561 need_version=no
14562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14563 soname_spec='${libname}${release}${major}$shared_ext'
14564 shlibpath_overrides_runpath=yes
14565 shlibpath_var=DYLD_LIBRARY_PATH
14566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14567
14568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14569 ;;
14570
14571dgux*)
14572 version_type=linux
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 ;;
14579
14580freebsd* | dragonfly*)
14581 # DragonFly does not have aout. When/if they implement a new
14582 # versioning mechanism, adjust this.
14583 if test -x /usr/bin/objformat; then
14584 objformat=`/usr/bin/objformat`
14585 else
14586 case $host_os in
c6084f68 14587 freebsd[23].*) objformat=aout ;;
0a35513e
AH
14588 *) objformat=elf ;;
14589 esac
14590 fi
14591 version_type=freebsd-$objformat
14592 case $version_type in
14593 freebsd-elf*)
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14595 need_version=no
14596 need_lib_prefix=no
14597 ;;
14598 freebsd-*)
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14600 need_version=yes
14601 ;;
14602 esac
14603 shlibpath_var=LD_LIBRARY_PATH
14604 case $host_os in
c6084f68 14605 freebsd2.*)
0a35513e
AH
14606 shlibpath_overrides_runpath=yes
14607 ;;
14608 freebsd3.[01]* | freebsdelf3.[01]*)
14609 shlibpath_overrides_runpath=yes
14610 hardcode_into_libs=yes
14611 ;;
14612 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14613 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14614 shlibpath_overrides_runpath=no
14615 hardcode_into_libs=yes
14616 ;;
14617 *) # from 4.6 on, and DragonFly
14618 shlibpath_overrides_runpath=yes
14619 hardcode_into_libs=yes
14620 ;;
14621 esac
14622 ;;
14623
14624gnu*)
14625 version_type=linux
14626 need_lib_prefix=no
14627 need_version=no
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 hardcode_into_libs=yes
14632 ;;
14633
14634haiku*)
14635 version_type=linux
14636 need_lib_prefix=no
14637 need_version=no
14638 dynamic_linker="$host_os runtime_loader"
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LIBRARY_PATH
14642 shlibpath_overrides_runpath=yes
14643 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14644 hardcode_into_libs=yes
14645 ;;
14646
14647hpux9* | hpux10* | hpux11*)
14648 # Give a soname corresponding to the major version so that dld.sl refuses to
14649 # link against other versions.
14650 version_type=sunos
14651 need_lib_prefix=no
14652 need_version=no
14653 case $host_cpu in
14654 ia64*)
14655 shrext_cmds='.so'
14656 hardcode_into_libs=yes
14657 dynamic_linker="$host_os dld.so"
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 if test "X$HPUX_IA64_MODE" = X32; then
14663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14664 else
14665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14666 fi
14667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668 ;;
14669 hppa*64*)
14670 shrext_cmds='.sl'
14671 hardcode_into_libs=yes
14672 dynamic_linker="$host_os dld.sl"
14673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14679 ;;
14680 *)
14681 shrext_cmds='.sl'
14682 dynamic_linker="$host_os dld.sl"
14683 shlibpath_var=SHLIB_PATH
14684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 ;;
14688 esac
14689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14690 postinstall_cmds='chmod 555 $lib'
14691 # or fails outright, so override atomically:
14692 install_override_mode=555
14693 ;;
14694
14695interix[3-9]*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14702 shlibpath_var=LD_LIBRARY_PATH
14703 shlibpath_overrides_runpath=no
14704 hardcode_into_libs=yes
14705 ;;
14706
14707irix5* | irix6* | nonstopux*)
14708 case $host_os in
14709 nonstopux*) version_type=nonstopux ;;
14710 *)
14711 if test "$lt_cv_prog_gnu_ld" = yes; then
14712 version_type=linux
14713 else
14714 version_type=irix
14715 fi ;;
14716 esac
14717 need_lib_prefix=no
14718 need_version=no
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14721 case $host_os in
14722 irix5* | nonstopux*)
14723 libsuff= shlibsuff=
14724 ;;
14725 *)
14726 case $LD in # libtool.m4 will add one of these switches to LD
14727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14728 libsuff= shlibsuff= libmagic=32-bit;;
14729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14730 libsuff=32 shlibsuff=N32 libmagic=N32;;
14731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14733 *) libsuff= shlibsuff= libmagic=never-match;;
14734 esac
14735 ;;
14736 esac
14737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14738 shlibpath_overrides_runpath=no
14739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14741 hardcode_into_libs=yes
14742 ;;
14743
14744# No shared lib support for Linux oldld, aout, or coff.
14745linux*oldld* | linux*aout* | linux*coff*)
14746 dynamic_linker=no
14747 ;;
14748
14749# This must be Linux ELF.
14750linux* | k*bsd*-gnu | kopensolaris*-gnu)
14751 version_type=linux
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=no
14759
14760 # Some binutils ld are patched to set DT_RUNPATH
14761 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14763else
14764 lt_cv_shlibpath_overrides_runpath=no
14765 save_LDFLAGS=$LDFLAGS
14766 save_libdir=$libdir
14767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h. */
14771
14772int
14773main ()
14774{
14775
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780if ac_fn_cxx_try_link "$LINENO"; then :
14781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14782 lt_cv_shlibpath_overrides_runpath=yes
14783fi
14784fi
14785rm -f core conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LDFLAGS=$save_LDFLAGS
14788 libdir=$save_libdir
14789
14790fi
14791
14792 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14793
14794 # This implies no fast_install, which is unacceptable.
14795 # Some rework will be needed to allow for fast_install
14796 # before this can be enabled.
14797 hardcode_into_libs=yes
14798
14799 # Append ld.so.conf contents to the search path
14800 if test -f /etc/ld.so.conf; then
14801 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' ' '`
14802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14803 fi
14804
14805 # We used to test for /lib/ld.so.1 and disable shared libraries on
14806 # powerpc, because MkLinux only supported shared libraries with the
14807 # GNU dynamic linker. Since this was broken with cross compilers,
14808 # most powerpc-linux boxes support dynamic linking these days and
14809 # people can always --disable-shared, the test was removed, and we
14810 # assume the GNU/Linux dynamic linker is in use.
14811 dynamic_linker='GNU/Linux ld.so'
14812 ;;
14813
14814netbsd*)
14815 version_type=sunos
14816 need_lib_prefix=no
14817 need_version=no
14818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14821 dynamic_linker='NetBSD (a.out) ld.so'
14822 else
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14824 soname_spec='${libname}${release}${shared_ext}$major'
14825 dynamic_linker='NetBSD ld.elf_so'
14826 fi
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes
14829 hardcode_into_libs=yes
14830 ;;
14831
14832newsos6)
14833 version_type=linux
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 shlibpath_overrides_runpath=yes
14837 ;;
14838
14839*nto* | *qnx*)
14840 version_type=qnx
14841 need_lib_prefix=no
14842 need_version=no
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=no
14847 hardcode_into_libs=yes
14848 dynamic_linker='ldqnx.so'
14849 ;;
14850
14851openbsd*)
14852 version_type=sunos
14853 sys_lib_dlsearch_path_spec="/usr/lib"
14854 need_lib_prefix=no
14855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14856 case $host_os in
14857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14858 *) need_version=no ;;
14859 esac
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14864 case $host_os in
14865 openbsd2.[89] | openbsd2.[89].*)
14866 shlibpath_overrides_runpath=no
14867 ;;
14868 *)
14869 shlibpath_overrides_runpath=yes
14870 ;;
14871 esac
14872 else
14873 shlibpath_overrides_runpath=yes
14874 fi
14875 ;;
14876
14877os2*)
14878 libname_spec='$name'
14879 shrext_cmds=".dll"
14880 need_lib_prefix=no
14881 library_names_spec='$libname${shared_ext} $libname.a'
14882 dynamic_linker='OS/2 ld.exe'
14883 shlibpath_var=LIBPATH
14884 ;;
14885
14886osf3* | osf4* | osf5*)
14887 version_type=osf
14888 need_lib_prefix=no
14889 need_version=no
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14895 ;;
14896
14897rdos*)
14898 dynamic_linker=no
14899 ;;
14900
14901solaris*)
14902 version_type=linux
14903 need_lib_prefix=no
14904 need_version=no
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 shlibpath_overrides_runpath=yes
14909 hardcode_into_libs=yes
14910 # ldd complains unless libraries are executable
14911 postinstall_cmds='chmod +x $lib'
14912 ;;
14913
14914sunos4*)
14915 version_type=sunos
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=yes
14920 if test "$with_gnu_ld" = yes; then
14921 need_lib_prefix=no
14922 fi
14923 need_version=yes
14924 ;;
14925
14926sysv4 | sysv4.3*)
14927 version_type=linux
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 case $host_vendor in
14932 sni)
14933 shlibpath_overrides_runpath=no
14934 need_lib_prefix=no
14935 runpath_var=LD_RUN_PATH
14936 ;;
14937 siemens)
14938 need_lib_prefix=no
14939 ;;
14940 motorola)
14941 need_lib_prefix=no
14942 need_version=no
14943 shlibpath_overrides_runpath=no
14944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14945 ;;
14946 esac
14947 ;;
14948
14949sysv4*MP*)
14950 if test -d /usr/nec ;then
14951 version_type=linux
14952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14953 soname_spec='$libname${shared_ext}.$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 fi
14956 ;;
14957
14958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14959 version_type=freebsd-elf
14960 need_lib_prefix=no
14961 need_version=no
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes
14966 hardcode_into_libs=yes
14967 if test "$with_gnu_ld" = yes; then
14968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14969 else
14970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14971 case $host_os in
14972 sco3.2v5*)
14973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14974 ;;
14975 esac
14976 fi
14977 sys_lib_dlsearch_path_spec='/usr/lib'
14978 ;;
14979
14980tpf*)
14981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14982 version_type=linux
14983 need_lib_prefix=no
14984 need_version=no
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 shlibpath_overrides_runpath=no
14988 hardcode_into_libs=yes
14989 ;;
14990
14991uts4*)
14992 version_type=linux
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 ;;
14997
14998*)
14999 dynamic_linker=no
15000 ;;
15001esac
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15003$as_echo "$dynamic_linker" >&6; }
15004test "$dynamic_linker" = no && can_build_shared=no
15005
15006variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15007if test "$GCC" = yes; then
15008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15009fi
15010
15011if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15012 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15013fi
15014if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15015 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15016fi
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15056$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15057hardcode_action_CXX=
15058if test -n "$hardcode_libdir_flag_spec_CXX" ||
15059 test -n "$runpath_var_CXX" ||
15060 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15061
15062 # We can hardcode non-existent directories.
15063 if test "$hardcode_direct_CXX" != no &&
15064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15065 # have to relink, otherwise we might link with an installed library
15066 # when we should be linking with a yet-to-be-installed one
15067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15068 test "$hardcode_minus_L_CXX" != no; then
15069 # Linking always hardcodes the temporary library directory.
15070 hardcode_action_CXX=relink
15071 else
15072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15073 hardcode_action_CXX=immediate
15074 fi
15075else
15076 # We cannot hardcode anything, or else we can only hardcode existing
15077 # directories.
15078 hardcode_action_CXX=unsupported
15079fi
15080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15081$as_echo "$hardcode_action_CXX" >&6; }
15082
15083if test "$hardcode_action_CXX" = relink ||
15084 test "$inherit_rpath_CXX" = yes; then
15085 # Fast installation is not supported
15086 enable_fast_install=no
15087elif test "$shlibpath_overrides_runpath" = yes ||
15088 test "$enable_shared" = no; then
15089 # Fast installation is not necessary
15090 enable_fast_install=needless
15091fi
15092
15093
15094
15095
15096
15097
15098
15099 fi # test -n "$compiler"
15100
15101 CC=$lt_save_CC
15102 LDCXX=$LD
15103 LD=$lt_save_LD
15104 GCC=$lt_save_GCC
15105 with_gnu_ld=$lt_save_with_gnu_ld
15106 lt_cv_path_LDCXX=$lt_cv_path_LD
15107 lt_cv_path_LD=$lt_save_path_LD
15108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15110fi # test "$_lt_caught_CXX_error" != yes
15111
15112ac_ext=c
15113ac_cpp='$CPP $CPPFLAGS'
15114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130 ac_config_commands="$ac_config_commands libtool"
15131
15132
15133
15134
15135# Only expand once:
15136
15137
15138
15139
15140
15141
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15143$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15144 # Check whether --enable-maintainer-mode was given.
15145if test "${enable_maintainer_mode+set}" = set; then :
15146 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15147else
15148 USE_MAINTAINER_MODE=no
15149fi
15150
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15152$as_echo "$USE_MAINTAINER_MODE" >&6; }
15153 if test $USE_MAINTAINER_MODE = yes; then
15154 MAINTAINER_MODE_TRUE=
15155 MAINTAINER_MODE_FALSE='#'
15156else
15157 MAINTAINER_MODE_TRUE='#'
15158 MAINTAINER_MODE_FALSE=
15159fi
15160
15161 MAINT=$MAINTAINER_MODE_TRUE
15162
15163
15164
15165# For libtool versioning info, format is CURRENT:REVISION:AGE
15166libtool_VERSION=1:0:0
15167
15168
15169# Check header files.
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15171$as_echo_n "checking for ANSI C header files... " >&6; }
15172if test "${ac_cv_header_stdc+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
15177#include <stdlib.h>
15178#include <stdarg.h>
15179#include <string.h>
15180#include <float.h>
15181
15182int
15183main ()
15184{
15185
15186 ;
15187 return 0;
15188}
15189_ACEOF
15190if ac_fn_c_try_compile "$LINENO"; then :
15191 ac_cv_header_stdc=yes
15192else
15193 ac_cv_header_stdc=no
15194fi
15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196
15197if test $ac_cv_header_stdc = yes; then
15198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200/* end confdefs.h. */
15201#include <string.h>
15202
15203_ACEOF
15204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "memchr" >/dev/null 2>&1; then :
15206
15207else
15208 ac_cv_header_stdc=no
15209fi
15210rm -f conftest*
15211
15212fi
15213
15214if test $ac_cv_header_stdc = yes; then
15215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217/* end confdefs.h. */
15218#include <stdlib.h>
15219
15220_ACEOF
15221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "free" >/dev/null 2>&1; then :
15223
15224else
15225 ac_cv_header_stdc=no
15226fi
15227rm -f conftest*
15228
15229fi
15230
15231if test $ac_cv_header_stdc = yes; then
15232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15233 if test "$cross_compiling" = yes; then :
15234 :
15235else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h. */
15238#include <ctype.h>
15239#include <stdlib.h>
15240#if ((' ' & 0x0FF) == 0x020)
15241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15243#else
15244# define ISLOWER(c) \
15245 (('a' <= (c) && (c) <= 'i') \
15246 || ('j' <= (c) && (c) <= 'r') \
15247 || ('s' <= (c) && (c) <= 'z'))
15248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15249#endif
15250
15251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15252int
15253main ()
15254{
15255 int i;
15256 for (i = 0; i < 256; i++)
15257 if (XOR (islower (i), ISLOWER (i))
15258 || toupper (i) != TOUPPER (i))
15259 return 2;
15260 return 0;
15261}
15262_ACEOF
15263if ac_fn_c_try_run "$LINENO"; then :
15264
15265else
15266 ac_cv_header_stdc=no
15267fi
15268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15269 conftest.$ac_objext conftest.beam conftest.$ac_ext
15270fi
15271
15272fi
15273fi
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15275$as_echo "$ac_cv_header_stdc" >&6; }
15276if test $ac_cv_header_stdc = yes; then
15277
15278$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15279
15280fi
15281
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15283$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15284if test "${ac_cv_header_time+set}" = set; then :
15285 $as_echo_n "(cached) " >&6
15286else
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288/* end confdefs.h. */
15289#include <sys/types.h>
15290#include <sys/time.h>
15291#include <time.h>
15292
15293int
15294main ()
15295{
15296if ((struct tm *) 0)
15297return 0;
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302if ac_fn_c_try_compile "$LINENO"; then :
15303 ac_cv_header_time=yes
15304else
15305 ac_cv_header_time=no
15306fi
15307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308fi
15309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15310$as_echo "$ac_cv_header_time" >&6; }
15311if test $ac_cv_header_time = yes; then
15312
15313$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15314
15315fi
15316
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15318$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15319if test "${gcc_cv_header_string+set}" = set; then :
15320 $as_echo_n "(cached) " >&6
15321else
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h. */
15324#include <string.h>
15325#include <strings.h>
15326int
15327main ()
15328{
15329
15330 ;
15331 return 0;
15332}
15333_ACEOF
15334if ac_fn_c_try_compile "$LINENO"; then :
15335 gcc_cv_header_string=yes
15336else
15337 gcc_cv_header_string=no
15338fi
15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340fi
15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15342$as_echo "$gcc_cv_header_string" >&6; }
15343if test $gcc_cv_header_string = yes; then
15344
15345$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15346
15347fi
15348
15349for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15350do :
15351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15352ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15353eval as_val=\$$as_ac_Header
15354 if test "x$as_val" = x""yes; then :
15355 cat >>confdefs.h <<_ACEOF
15356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15357_ACEOF
15358
15359fi
15360
15361done
15362
15363
15364
15365
15366inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15367
15368acx_cv_header_stdint=stddef.h
15369acx_cv_header_stdint_kind="(already complete)"
15370for i in stdint.h $inttype_headers; do
15371 unset ac_cv_type_uintptr_t
15372 unset ac_cv_type_uintmax_t
15373 unset ac_cv_type_int_least32_t
15374 unset ac_cv_type_int_fast32_t
15375 unset ac_cv_type_uint64_t
15376 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15377 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15378#include <$i>
15379"
15380if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15381 acx_cv_header_stdint=$i
15382else
15383 continue
15384fi
15385
15386 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15387#include <$i>
15388"
15389if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15390
15391else
15392 acx_cv_header_stdint_kind="(mostly complete)"
15393fi
15394
15395 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15396#include <$i>
15397"
15398if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15399
15400else
15401 acx_cv_header_stdint_kind="(mostly complete)"
15402fi
15403
15404 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15405#include <$i>
15406"
15407if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15408
15409else
15410 acx_cv_header_stdint_kind="(mostly complete)"
15411fi
15412
15413 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15414#include <$i>
15415"
15416if test "x$ac_cv_type_uint64_t" = x""yes; then :
15417
15418else
15419 acx_cv_header_stdint_kind="(lacks uint64_t)"
15420fi
15421
15422 break
15423done
15424if test "$acx_cv_header_stdint" = stddef.h; then
15425 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15426 for i in stdint.h $inttype_headers; do
15427 unset ac_cv_type_uintptr_t
15428 unset ac_cv_type_uint32_t
15429 unset ac_cv_type_uint64_t
15430 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15431 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15432#include <$i>
15433"
15434if test "x$ac_cv_type_uint32_t" = x""yes; then :
15435 acx_cv_header_stdint=$i
15436else
15437 continue
15438fi
15439
15440 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15441#include <$i>
15442"
15443if test "x$ac_cv_type_uint64_t" = x""yes; then :
15444
15445fi
15446
15447 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15448#include <$i>
15449"
15450if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15451
15452fi
15453
15454 break
15455 done
15456fi
15457if test "$acx_cv_header_stdint" = stddef.h; then
15458 acx_cv_header_stdint_kind="(u_intXX_t style)"
15459 for i in sys/types.h $inttype_headers; do
15460 unset ac_cv_type_u_int32_t
15461 unset ac_cv_type_u_int64_t
15462 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15463 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15464#include <$i>
15465"
15466if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15467 acx_cv_header_stdint=$i
15468else
15469 continue
15470fi
15471
15472 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15473#include <$i>
15474"
15475if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15476
15477fi
15478
15479 break
15480 done
15481fi
15482if test "$acx_cv_header_stdint" = stddef.h; then
15483 acx_cv_header_stdint_kind="(using manual detection)"
15484fi
15485
15486test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15487test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15488test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15489test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15490test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15491
15492# ----------------- Summarize what we found so far
15493
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15495$as_echo_n "checking what to include in gstdint.h... " >&6; }
15496
15497case `$as_basename -- gstdint.h ||
15498$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15499 Xgstdint.h : 'X\(//\)$' \| \
15500 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15501$as_echo X/gstdint.h |
15502 sed '/^.*\/\([^/][^/]*\)\/*$/{
15503 s//\1/
15504 q
15505 }
15506 /^X\/\(\/\/\)$/{
15507 s//\1/
15508 q
15509 }
15510 /^X\/\(\/\).*/{
15511 s//\1/
15512 q
15513 }
15514 s/.*/./; q'` in
15515 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15516$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15517 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15518$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15519 *) ;;
15520esac
15521
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15523$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15524
15525# ----------------- done included file, check C basic types --------
15526
15527# Lacking an uintptr_t? Test size of void *
15528case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15529 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15532# This bug is HP SR number 8606223364.
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15534$as_echo_n "checking size of void *... " >&6; }
15535if test "${ac_cv_sizeof_void_p+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537else
15538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15539
15540else
15541 if test "$ac_cv_type_void_p" = yes; then
15542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15544{ as_fn_set_status 77
15545as_fn_error "cannot compute sizeof (void *)
15546See \`config.log' for more details." "$LINENO" 5; }; }
15547 else
15548 ac_cv_sizeof_void_p=0
15549 fi
15550fi
15551
15552fi
15553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15554$as_echo "$ac_cv_sizeof_void_p" >&6; }
15555
15556
15557
15558cat >>confdefs.h <<_ACEOF
15559#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15560_ACEOF
15561
15562 ;;
15563esac
15564
15565# Lacking an uint64_t? Test size of long
15566case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15567 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15570# This bug is HP SR number 8606223364.
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15572$as_echo_n "checking size of long... " >&6; }
15573if test "${ac_cv_sizeof_long+set}" = set; then :
15574 $as_echo_n "(cached) " >&6
15575else
15576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15577
15578else
15579 if test "$ac_cv_type_long" = yes; then
15580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15582{ as_fn_set_status 77
15583as_fn_error "cannot compute sizeof (long)
15584See \`config.log' for more details." "$LINENO" 5; }; }
15585 else
15586 ac_cv_sizeof_long=0
15587 fi
15588fi
15589
15590fi
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15592$as_echo "$ac_cv_sizeof_long" >&6; }
15593
15594
15595
15596cat >>confdefs.h <<_ACEOF
15597#define SIZEOF_LONG $ac_cv_sizeof_long
15598_ACEOF
15599
15600 ;;
15601esac
15602
15603if test $acx_cv_header_stdint = stddef.h; then
15604 # Lacking a good header? Test size of everything and deduce all types.
15605 # The cast to long int works around a bug in the HP C Compiler
15606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15608# This bug is HP SR number 8606223364.
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15610$as_echo_n "checking size of int... " >&6; }
15611if test "${ac_cv_sizeof_int+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15613else
15614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15615
15616else
15617 if test "$ac_cv_type_int" = yes; then
15618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15620{ as_fn_set_status 77
15621as_fn_error "cannot compute sizeof (int)
15622See \`config.log' for more details." "$LINENO" 5; }; }
15623 else
15624 ac_cv_sizeof_int=0
15625 fi
15626fi
15627
15628fi
15629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15630$as_echo "$ac_cv_sizeof_int" >&6; }
15631
15632
15633
15634cat >>confdefs.h <<_ACEOF
15635#define SIZEOF_INT $ac_cv_sizeof_int
15636_ACEOF
15637
15638
15639 # The cast to long int works around a bug in the HP C Compiler
15640# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15641# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15642# This bug is HP SR number 8606223364.
15643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15644$as_echo_n "checking size of short... " >&6; }
15645if test "${ac_cv_sizeof_short+set}" = set; then :
15646 $as_echo_n "(cached) " >&6
15647else
15648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15649
15650else
15651 if test "$ac_cv_type_short" = yes; then
15652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15654{ as_fn_set_status 77
15655as_fn_error "cannot compute sizeof (short)
15656See \`config.log' for more details." "$LINENO" 5; }; }
15657 else
15658 ac_cv_sizeof_short=0
15659 fi
15660fi
15661
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15664$as_echo "$ac_cv_sizeof_short" >&6; }
15665
15666
15667
15668cat >>confdefs.h <<_ACEOF
15669#define SIZEOF_SHORT $ac_cv_sizeof_short
15670_ACEOF
15671
15672
15673 # The cast to long int works around a bug in the HP C Compiler
15674# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15675# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15676# This bug is HP SR number 8606223364.
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15678$as_echo_n "checking size of char... " >&6; }
15679if test "${ac_cv_sizeof_char+set}" = set; then :
15680 $as_echo_n "(cached) " >&6
15681else
15682 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15683
15684else
15685 if test "$ac_cv_type_char" = yes; then
15686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15688{ as_fn_set_status 77
15689as_fn_error "cannot compute sizeof (char)
15690See \`config.log' for more details." "$LINENO" 5; }; }
15691 else
15692 ac_cv_sizeof_char=0
15693 fi
15694fi
15695
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15698$as_echo "$ac_cv_sizeof_char" >&6; }
15699
15700
15701
15702cat >>confdefs.h <<_ACEOF
15703#define SIZEOF_CHAR $ac_cv_sizeof_char
15704_ACEOF
15705
15706
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15709$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15710 case "$ac_cv_sizeof_char" in
15711 1) acx_cv_type_int8_t=char ;;
15712 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15713 esac
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15715$as_echo "$acx_cv_type_int8_t" >&6; }
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15718$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15719 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15720 2:*) acx_cv_type_int16_t=int ;;
15721 *:2) acx_cv_type_int16_t=short ;;
15722 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15723 esac
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15725$as_echo "$acx_cv_type_int16_t" >&6; }
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15728$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15729 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15730 4:*) acx_cv_type_int32_t=int ;;
15731 *:4) acx_cv_type_int32_t=long ;;
15732 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15733 esac
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15735$as_echo "$acx_cv_type_int32_t" >&6; }
15736fi
15737
15738# These tests are here to make the output prettier
15739
15740if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15741 case "$ac_cv_sizeof_long" in
15742 8) acx_cv_type_int64_t=long ;;
15743 esac
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15745$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15747$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15748fi
15749
15750# Now we can use the above types
15751
15752if test "$ac_cv_type_uintptr_t" != yes; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15754$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15755 case $ac_cv_sizeof_void_p in
15756 2) acx_cv_type_intptr_t=int16_t ;;
15757 4) acx_cv_type_intptr_t=int32_t ;;
15758 8) acx_cv_type_intptr_t=int64_t ;;
15759 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15760 esac
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15762$as_echo "$acx_cv_type_intptr_t" >&6; }
15763fi
15764
15765# ----------------- done all checks, emit header -------------
15766ac_config_commands="$ac_config_commands gstdint.h"
15767
15768
15769
15770
15771
15772ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15773if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15774 gcc_header_sys_mman_h=yes
15775else
15776 gcc_header_sys_mman_h=no
15777fi
15778
15779
15780ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15781if test "x$ac_cv_func_mmap" = x""yes; then :
15782 gcc_func_mmap=yes
15783else
15784 gcc_func_mmap=no
15785fi
15786
15787if test "$gcc_header_sys_mman_h" != yes \
15788 || test "$gcc_func_mmap" != yes; then
15789 gcc_cv_func_mmap_file=no
15790 gcc_cv_func_mmap_dev_zero=no
15791 gcc_cv_func_mmap_anon=no
15792else
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15794$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15795if test "${gcc_cv_func_mmap_file+set}" = set; then :
15796 $as_echo_n "(cached) " >&6
15797else
15798 # Add a system to this blacklist if
15799 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15800 # memory area containing the same data that you'd get if you applied
15801 # read() to the same fd. The only system known to have a problem here
15802 # is VMS, where text files have record structure.
15803 case "$host_os" in
2f6935f4 15804 *vms* | ultrix*)
0a35513e
AH
15805 gcc_cv_func_mmap_file=no ;;
15806 *)
15807 gcc_cv_func_mmap_file=yes;;
15808 esac
15809fi
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15811$as_echo "$gcc_cv_func_mmap_file" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15813$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15814if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15815 $as_echo_n "(cached) " >&6
15816else
15817 # Add a system to this blacklist if it has mmap() but /dev/zero
15818 # does not exist, or if mmapping /dev/zero does not give anonymous
15819 # zeroed pages with both the following properties:
15820 # 1. If you map N consecutive pages in with one call, and then
15821 # unmap any subset of those pages, the pages that were not
15822 # explicitly unmapped remain accessible.
15823 # 2. If you map two adjacent blocks of memory and then unmap them
15824 # both at once, they must both go away.
15825 # Systems known to be in this category are Windows (all variants),
15826 # VMS, and Darwin.
15827 case "$host_os" in
2f6935f4 15828 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
0a35513e
AH
15829 gcc_cv_func_mmap_dev_zero=no ;;
15830 *)
15831 gcc_cv_func_mmap_dev_zero=yes;;
15832 esac
15833fi
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15835$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15836
15837 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15839$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15840if test "${gcc_cv_decl_map_anon+set}" = set; then :
15841 $as_echo_n "(cached) " >&6
15842else
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h. */
15845#include <sys/types.h>
15846#include <sys/mman.h>
15847#include <unistd.h>
15848
15849#ifndef MAP_ANONYMOUS
15850#define MAP_ANONYMOUS MAP_ANON
15851#endif
15852
15853int
15854main ()
15855{
15856int n = MAP_ANONYMOUS;
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861if ac_fn_c_try_compile "$LINENO"; then :
15862 gcc_cv_decl_map_anon=yes
15863else
15864 gcc_cv_decl_map_anon=no
15865fi
15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867fi
15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15869$as_echo "$gcc_cv_decl_map_anon" >&6; }
15870
15871 if test $gcc_cv_decl_map_anon = no; then
15872 gcc_cv_func_mmap_anon=no
15873 else
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15875$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15876if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15878else
15879 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15880 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15881 # doesn't give anonymous zeroed pages with the same properties listed
15882 # above for use of /dev/zero.
15883 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15884 case "$host_os" in
2f6935f4 15885 *vms* | cygwin* | pe | mingw* | sco* | udk* )
0a35513e
AH
15886 gcc_cv_func_mmap_anon=no ;;
15887 *)
15888 gcc_cv_func_mmap_anon=yes;;
15889 esac
15890fi
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15892$as_echo "$gcc_cv_func_mmap_anon" >&6; }
15893 fi
15894fi
15895
15896if test $gcc_cv_func_mmap_file = yes; then
15897
15898$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15899
15900fi
15901if test $gcc_cv_func_mmap_dev_zero = yes; then
15902
15903$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15904
15905fi
15906if test $gcc_cv_func_mmap_anon = yes; then
15907
15908$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15909
15910fi
15911
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15914$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15915if test "${ac_cv_c_bigendian+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917else
15918 ac_cv_c_bigendian=unknown
15919 # See if we're dealing with a universal compiler.
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h. */
15922#ifndef __APPLE_CC__
15923 not a universal capable compiler
15924 #endif
15925 typedef int dummy;
15926
15927_ACEOF
15928if ac_fn_c_try_compile "$LINENO"; then :
15929
15930 # Check for potential -arch flags. It is not universal unless
15931 # there are at least two -arch flags with different values.
15932 ac_arch=
15933 ac_prev=
15934 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15935 if test -n "$ac_prev"; then
15936 case $ac_word in
15937 i?86 | x86_64 | ppc | ppc64)
15938 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15939 ac_arch=$ac_word
15940 else
15941 ac_cv_c_bigendian=universal
15942 break
15943 fi
15944 ;;
15945 esac
15946 ac_prev=
15947 elif test "x$ac_word" = "x-arch"; then
15948 ac_prev=arch
15949 fi
15950 done
15951fi
15952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 if test $ac_cv_c_bigendian = unknown; then
15954 # See if sys/param.h defines the BYTE_ORDER macro.
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956/* end confdefs.h. */
15957#include <sys/types.h>
15958 #include <sys/param.h>
15959
15960int
15961main ()
15962{
15963#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15964 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15965 && LITTLE_ENDIAN)
15966 bogus endian macros
15967 #endif
15968
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973if ac_fn_c_try_compile "$LINENO"; then :
15974 # It does; now see whether it defined to BIG_ENDIAN or not.
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h. */
15977#include <sys/types.h>
15978 #include <sys/param.h>
15979
15980int
15981main ()
15982{
15983#if BYTE_ORDER != BIG_ENDIAN
15984 not big endian
15985 #endif
15986
15987 ;
15988 return 0;
15989}
15990_ACEOF
15991if ac_fn_c_try_compile "$LINENO"; then :
15992 ac_cv_c_bigendian=yes
15993else
15994 ac_cv_c_bigendian=no
15995fi
15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997fi
15998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 fi
16000 if test $ac_cv_c_bigendian = unknown; then
16001 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h. */
16004#include <limits.h>
16005
16006int
16007main ()
16008{
16009#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16010 bogus endian macros
16011 #endif
16012
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017if ac_fn_c_try_compile "$LINENO"; then :
16018 # It does; now see whether it defined to _BIG_ENDIAN or not.
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020/* end confdefs.h. */
16021#include <limits.h>
16022
16023int
16024main ()
16025{
16026#ifndef _BIG_ENDIAN
16027 not big endian
16028 #endif
16029
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_compile "$LINENO"; then :
16035 ac_cv_c_bigendian=yes
16036else
16037 ac_cv_c_bigendian=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040fi
16041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 fi
16043 if test $ac_cv_c_bigendian = unknown; then
16044 # Compile a test program.
16045 if test "$cross_compiling" = yes; then :
16046 # Try to guess by grepping values from an object file.
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048/* end confdefs.h. */
16049short int ascii_mm[] =
16050 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16051 short int ascii_ii[] =
16052 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16053 int use_ascii (int i) {
16054 return ascii_mm[i] + ascii_ii[i];
16055 }
16056 short int ebcdic_ii[] =
16057 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16058 short int ebcdic_mm[] =
16059 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16060 int use_ebcdic (int i) {
16061 return ebcdic_mm[i] + ebcdic_ii[i];
16062 }
16063 extern int foo;
16064
16065int
16066main ()
16067{
16068return use_ascii (foo) == use_ebcdic (foo);
16069 ;
16070 return 0;
16071}
16072_ACEOF
16073if ac_fn_c_try_compile "$LINENO"; then :
16074 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16075 ac_cv_c_bigendian=yes
16076 fi
16077 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16078 if test "$ac_cv_c_bigendian" = unknown; then
16079 ac_cv_c_bigendian=no
16080 else
16081 # finding both strings is unlikely to happen, but who knows?
16082 ac_cv_c_bigendian=unknown
16083 fi
16084 fi
16085fi
16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087else
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089/* end confdefs.h. */
16090$ac_includes_default
16091int
16092main ()
16093{
16094
16095 /* Are we little or big endian? From Harbison&Steele. */
16096 union
16097 {
16098 long int l;
16099 char c[sizeof (long int)];
16100 } u;
16101 u.l = 1;
16102 return u.c[sizeof (long int) - 1] == 1;
16103
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_run "$LINENO"; then :
16109 ac_cv_c_bigendian=no
16110else
16111 ac_cv_c_bigendian=yes
16112fi
16113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16114 conftest.$ac_objext conftest.beam conftest.$ac_ext
16115fi
16116
16117 fi
16118fi
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16120$as_echo "$ac_cv_c_bigendian" >&6; }
16121 case $ac_cv_c_bigendian in #(
16122 yes)
16123 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16124;; #(
16125 no)
16126 ;; #(
16127 universal)
16128
16129$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16130
16131 ;; #(
16132 *)
16133 as_fn_error "unknown endianness
16134 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16135 esac
16136
16137# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16138
16139
16140# Check to see if -pthread or -lpthread is needed. Prefer the former.
16141# In case the pthread.h system header is not found, this test will fail.
16142XPCFLAGS=""
16143CFLAGS="$CFLAGS -pthread"
16144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h. */
16146#include <pthread.h>
16147 void *g(void *d) { return NULL; }
16148int
16149main ()
16150{
16151pthread_t t; pthread_create(&t,NULL,g,NULL);
16152 ;
16153 return 0;
16154}
16155_ACEOF
16156if ac_fn_c_try_link "$LINENO"; then :
16157 XPCFLAGS=" -Wc,-pthread"
16158else
16159 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161/* end confdefs.h. */
16162#include <pthread.h>
16163 void *g(void *d) { return NULL; }
16164int
16165main ()
16166{
16167pthread_t t; pthread_create(&t,NULL,g,NULL);
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172if ac_fn_c_try_link "$LINENO"; then :
16173
16174else
16175 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16176fi
16177rm -f core conftest.err conftest.$ac_objext \
16178 conftest$ac_exeext conftest.$ac_ext
16179fi
16180rm -f core conftest.err conftest.$ac_objext \
16181 conftest$ac_exeext conftest.$ac_ext
16182
16183# Check for functions needed.
16184for ac_func in strtoull memalign posix_memalign
16185do :
16186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16188eval as_val=\$$as_ac_var
16189 if test "x$as_val" = x""yes; then :
16190 cat >>confdefs.h <<_ACEOF
16191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16192_ACEOF
16193
16194fi
16195done
16196
16197
16198# Check for broken semaphore implementation on darwin.
16199# sem_init returns: sem_init error: Function not implemented.
16200case "$host" in
16201 *-darwin*)
16202
16203$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16204
16205 ;;
16206esac
16207
16208 # Check whether --enable-linux-futex was given.
16209if test "${enable_linux_futex+set}" = set; then :
16210 enableval=$enable_linux_futex;
16211 case "$enableval" in
16212 yes|no|default) ;;
16213 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16214 esac
16215
16216else
16217 enable_linux_futex=default
16218fi
16219
16220
16221case "$target" in
16222 *-linux*)
16223 case "$enable_linux_futex" in
16224 default)
16225 # If headers don't have gettid/futex syscalls definition, then
16226 # default to no, otherwise there will be compile time failures.
16227 # Otherwise, default to yes. If we don't detect we are
16228 # compiled/linked against NPTL and not cross-compiling, check
16229 # if programs are run by default against NPTL and if not, issue
16230 # a warning.
16231 enable_linux_futex=no
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233/* end confdefs.h. */
16234#include <sys/syscall.h>
16235 int lk;
16236int
16237main ()
16238{
16239syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244if ac_fn_c_try_link "$LINENO"; then :
16245 save_LIBS="$LIBS"
16246 LIBS="-lpthread $LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h. */
16249#ifndef _GNU_SOURCE
16250 #define _GNU_SOURCE 1
16251 #endif
16252 #include <pthread.h>
16253 pthread_t th; void *status;
16254int
16255main ()
16256{
16257pthread_tryjoin_np (th, &status);
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262if ac_fn_c_try_link "$LINENO"; then :
16263 enable_linux_futex=yes
16264else
16265 if test x$cross_compiling = xno; then
16266 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16267 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16269If so, please configure with --disable-linux-futex" >&5
16270$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16271If so, please configure with --disable-linux-futex" >&2;}
16272 fi
16273 fi
16274 enable_linux_futex=yes
16275fi
16276rm -f core conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16278 LIBS="$save_LIBS"
16279fi
16280rm -f core conftest.err conftest.$ac_objext \
16281 conftest$ac_exeext conftest.$ac_ext
16282 ;;
16283 yes)
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h. */
16286#include <sys/syscall.h>
16287 int lk;
16288int
16289main ()
16290{
16291syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296if ac_fn_c_try_link "$LINENO"; then :
16297
16298else
16299 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16300fi
16301rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16303 ;;
16304 esac
16305 ;;
16306 *)
16307 enable_linux_futex=no
16308 ;;
16309esac
16310if test x$enable_linux_futex = xyes; then
16311 :
16312fi
16313
16314
16315# See if we support thread-local storage.
16316
16317
16318 # Check whether --enable-tls was given.
16319if test "${enable_tls+set}" = set; then :
16320 enableval=$enable_tls;
16321 case "$enableval" in
16322 yes|no) ;;
16323 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16324 esac
16325
16326else
16327 enable_tls=yes
16328fi
16329
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16332$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16333if test "${gcc_cv_have_tls+set}" = set; then :
16334 $as_echo_n "(cached) " >&6
16335else
16336
16337 if test "$cross_compiling" = yes; then :
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339/* end confdefs.h. */
16340__thread int a; int b; int main() { return a = b; }
16341_ACEOF
16342if ac_fn_c_try_link "$LINENO"; then :
16343 chktls_save_LDFLAGS="$LDFLAGS"
16344 case $host in
16345 *-*-linux*)
16346 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16347 ;;
16348 esac
16349 chktls_save_CFLAGS="$CFLAGS"
16350 CFLAGS="-fPIC $CFLAGS"
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h. */
16353int f() { return 0; }
16354_ACEOF
16355if ac_fn_c_try_link "$LINENO"; then :
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h. */
16358__thread int a; int b; int f() { return a = b; }
16359_ACEOF
16360if ac_fn_c_try_link "$LINENO"; then :
16361 gcc_cv_have_tls=yes
16362else
16363 gcc_cv_have_tls=no
16364fi
16365rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16367else
16368 gcc_cv_have_tls=yes
16369fi
16370rm -f core conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 CFLAGS="$chktls_save_CFLAGS"
16373 LDFLAGS="$chktls_save_LDFLAGS"
16374else
16375 gcc_cv_have_tls=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379
16380
16381else
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h. */
16384__thread int a; int b; int main() { return a = b; }
16385_ACEOF
16386if ac_fn_c_try_run "$LINENO"; then :
16387 chktls_save_LDFLAGS="$LDFLAGS"
16388 LDFLAGS="-static $LDFLAGS"
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390/* end confdefs.h. */
16391int main() { return 0; }
16392_ACEOF
16393if ac_fn_c_try_link "$LINENO"; then :
16394 if test "$cross_compiling" = yes; then :
16395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16397as_fn_error "cannot run test program while cross compiling
16398See \`config.log' for more details." "$LINENO" 5; }
16399else
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401/* end confdefs.h. */
16402__thread int a; int b; int main() { return a = b; }
16403_ACEOF
16404if ac_fn_c_try_run "$LINENO"; then :
16405 gcc_cv_have_tls=yes
16406else
16407 gcc_cv_have_tls=no
16408fi
16409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16410 conftest.$ac_objext conftest.beam conftest.$ac_ext
16411fi
16412
16413else
16414 gcc_cv_have_tls=yes
16415fi
16416rm -f core conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 LDFLAGS="$chktls_save_LDFLAGS"
16419 if test $gcc_cv_have_tls = yes; then
16420 chktls_save_CFLAGS="$CFLAGS"
16421 thread_CFLAGS=failed
16422 for flag in '' '-pthread' '-lpthread'; do
16423 CFLAGS="$flag $chktls_save_CFLAGS"
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h. */
16426#include <pthread.h>
16427 void *g(void *d) { return NULL; }
16428int
16429main ()
16430{
16431pthread_t t; pthread_create(&t,NULL,g,NULL);
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436if ac_fn_c_try_link "$LINENO"; then :
16437 thread_CFLAGS="$flag"
16438fi
16439rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441 if test "X$thread_CFLAGS" != Xfailed; then
16442 break
16443 fi
16444 done
16445 CFLAGS="$chktls_save_CFLAGS"
16446 if test "X$thread_CFLAGS" != Xfailed; then
16447 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16448 if test "$cross_compiling" = yes; then :
16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16451as_fn_error "cannot run test program while cross compiling
16452See \`config.log' for more details." "$LINENO" 5; }
16453else
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455/* end confdefs.h. */
16456#include <pthread.h>
16457 __thread int a;
16458 static int *volatile a_in_other_thread;
16459 static void *
16460 thread_func (void *arg)
16461 {
16462 a_in_other_thread = &a;
16463 return (void *)0;
16464 }
16465int
16466main ()
16467{
16468pthread_t thread;
16469 void *thread_retval;
16470 int *volatile a_in_main_thread;
16471 a_in_main_thread = &a;
16472 if (pthread_create (&thread, (pthread_attr_t *)0,
16473 thread_func, (void *)0))
16474 return 0;
16475 if (pthread_join (thread, &thread_retval))
16476 return 0;
16477 return (a_in_other_thread == a_in_main_thread);
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482if ac_fn_c_try_run "$LINENO"; then :
16483 gcc_cv_have_tls=yes
16484else
16485 gcc_cv_have_tls=no
16486fi
16487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16488 conftest.$ac_objext conftest.beam conftest.$ac_ext
16489fi
16490
16491 CFLAGS="$chktls_save_CFLAGS"
16492 fi
16493 fi
16494else
16495 gcc_cv_have_tls=no
16496fi
16497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16498 conftest.$ac_objext conftest.beam conftest.$ac_ext
16499fi
16500
16501fi
16502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16503$as_echo "$gcc_cv_have_tls" >&6; }
16504 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16505
16506$as_echo "#define HAVE_TLS 1" >>confdefs.h
16507
16508 fi
16509
9ce91011 16510# See what sort of export controls are available.
0a35513e
AH
16511
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16513$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16514if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16515 $as_echo_n "(cached) " >&6
16516else
16517
16518 save_CFLAGS="$CFLAGS"
16519 CFLAGS="$CFLAGS -Werror"
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h. */
16522void __attribute__((visibility("hidden"))) foo(void) { }
16523int
16524main ()
16525{
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531if ac_fn_c_try_compile "$LINENO"; then :
16532 libitm_cv_have_attribute_visibility=yes
16533else
16534 libitm_cv_have_attribute_visibility=no
16535fi
16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 CFLAGS="$save_CFLAGS"
16538fi
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16540$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16541 if test $libitm_cv_have_attribute_visibility = yes; then
16542
16543$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16544
16545 fi
16546
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16548$as_echo_n "checking whether the target supports dllexport... " >&6; }
16549if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16550 $as_echo_n "(cached) " >&6
16551else
16552
16553 save_CFLAGS="$CFLAGS"
16554 CFLAGS="$CFLAGS -Werror"
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556/* end confdefs.h. */
16557void __attribute__((dllexport)) foo(void) { }
16558int
16559main ()
16560{
16561
16562 ;
16563 return 0;
16564}
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"; then :
16567 libitm_cv_have_attribute_dllexport=yes
16568else
16569 libitm_cv_have_attribute_dllexport=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572 CFLAGS="$save_CFLAGS"
16573fi
16574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16575$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16576 if test $libitm_cv_have_attribute_dllexport = yes; then
16577
16578$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16579
16580 fi
16581
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16583$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16584if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16585 $as_echo_n "(cached) " >&6
16586else
16587
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h. */
16590
16591void foo(void) { }
16592extern void bar(void) __attribute__((alias("foo")));
16593int
16594main ()
16595{
16596bar();
16597 ;
16598 return 0;
16599}
16600_ACEOF
16601if ac_fn_c_try_link "$LINENO"; then :
16602 libitm_cv_have_attribute_alias=yes
16603else
16604 libitm_cv_have_attribute_alias=no
16605fi
16606rm -f core conftest.err conftest.$ac_objext \
16607 conftest$ac_exeext conftest.$ac_ext
16608fi
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16610$as_echo "$libitm_cv_have_attribute_alias" >&6; }
16611 if test $libitm_cv_have_attribute_alias = yes; then
16612
16613$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16614
16615 fi
16616
9ce91011
RO
16617# Check linker hardware capability support.
16618
0a35513e
AH
16619
16620# Check whether --with-gnu-ld was given.
16621if test "${with_gnu_ld+set}" = set; then :
16622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16623else
16624 with_gnu_ld=no
16625fi
16626
16627ac_prog=ld
16628if test "$GCC" = yes; then
16629 # Check if gcc -print-prog-name=ld gives a path.
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16631$as_echo_n "checking for ld used by $CC... " >&6; }
16632 case $host in
16633 *-*-mingw*)
16634 # gcc leaves a trailing carriage return which upsets mingw
16635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16636 *)
16637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16638 esac
16639 case $ac_prog in
16640 # Accept absolute paths.
16641 [\\/]* | ?:[\\/]*)
16642 re_direlt='/[^/][^/]*/\.\./'
16643 # Canonicalize the pathname of ld
16644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16647 done
16648 test -z "$LD" && LD="$ac_prog"
16649 ;;
16650 "")
16651 # If it fails, then pretend we aren't using GCC.
16652 ac_prog=ld
16653 ;;
16654 *)
16655 # If it is relative, then search for the first ld in PATH.
16656 with_gnu_ld=unknown
16657 ;;
16658 esac
16659elif test "$with_gnu_ld" = yes; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16661$as_echo_n "checking for GNU ld... " >&6; }
16662else
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16664$as_echo_n "checking for non-GNU ld... " >&6; }
16665fi
16666if test "${lt_cv_path_LD+set}" = set; then :
16667 $as_echo_n "(cached) " >&6
16668else
16669 if test -z "$LD"; then
16670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16671 for ac_dir in $PATH; do
16672 IFS="$lt_save_ifs"
16673 test -z "$ac_dir" && ac_dir=.
16674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16675 lt_cv_path_LD="$ac_dir/$ac_prog"
16676 # Check to see if the program is GNU ld. I'd rather use --version,
16677 # but apparently some variants of GNU ld only accept -v.
16678 # Break only if it was the GNU/non-GNU ld that we prefer.
16679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16680 *GNU* | *'with BFD'*)
16681 test "$with_gnu_ld" != no && break
16682 ;;
16683 *)
16684 test "$with_gnu_ld" != yes && break
16685 ;;
16686 esac
16687 fi
16688 done
16689 IFS="$lt_save_ifs"
16690else
16691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16692fi
16693fi
16694
16695LD="$lt_cv_path_LD"
16696if test -n "$LD"; then
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16698$as_echo "$LD" >&6; }
16699else
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701$as_echo "no" >&6; }
16702fi
16703test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16706if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16708else
16709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16710case `$LD -v 2>&1 </dev/null` in
16711*GNU* | *'with BFD'*)
16712 lt_cv_prog_gnu_ld=yes
16713 ;;
16714*)
16715 lt_cv_prog_gnu_ld=no
16716 ;;
16717esac
16718fi
16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16720$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16721with_gnu_ld=$lt_cv_prog_gnu_ld
16722
16723
16724
16725
16726
16727
16728
9ce91011
RO
16729 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16730
16731
16732 ac_save_LDFLAGS="$LDFLAGS"
16733 LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map"
16734
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5
16736$as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; }
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h. */
16739
16740int
16741main ()
16742{
16743return 0;
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748if ac_fn_c_try_link "$LINENO"; then :
16749 ac_hwcap_ldflags=yes
16750else
16751 ac_hwcap_ldflags=no
16752fi
16753rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 if test "$ac_hwcap_ldflags" = "yes"; then
16756 HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS"
16757 fi
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16759$as_echo "$ac_hwcap_ldflags" >&6; }
16760
16761 LDFLAGS="$ac_save_LDFLAGS"
16762
16763
16764
16765 if test $ac_hwcap_ldflags != no; then
16766 HAVE_HWCAP_TRUE=
16767 HAVE_HWCAP_FALSE='#'
16768else
16769 HAVE_HWCAP_TRUE='#'
16770 HAVE_HWCAP_FALSE=
16771fi
16772
16773
16774# If defaulting to -mavx, don't clear hwcaps.
16775ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16776if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16777 HWCAP_LDFLAGS=''
16778fi
16779
16780
16781
0a35513e
AH
16782 # If we're not using GNU ld, then there's no point in even trying these
16783 # tests. Check for that first. We should have already tested for gld
16784 # by now (in libtool), but require it now just to be safe...
16785 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16786 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16787
16788
16789
16790 # The name set by libtool depends on the version of libtool. Shame on us
16791 # for depending on an impl detail, but c'est la vie. Older versions used
16792 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16793 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16794 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16795 # set (hence we're using an older libtool), then set it.
16796 if test x${with_gnu_ld+set} != xset; then
16797 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16798 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16799 with_gnu_ld=no
16800 else
16801 with_gnu_ld=$ac_cv_prog_gnu_ld
16802 fi
16803 fi
16804
16805 # Start by getting the version number. I think the libtool test already
16806 # does some of this, but throws away the result.
adcd36bc
RO
16807 libitm_ld_is_gold=no
16808 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16809 libitm_ld_is_gold=yes
16810 fi
0a35513e 16811
adcd36bc
RO
16812 ldver=`$LD --version 2>/dev/null |
16813 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
0a35513e
AH
16814
16815 libitm_gnu_ld_version=`echo $ldver | \
16816 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16817
16818 # Set --gc-sections.
16819 if test "$with_gnu_ld" = "notbroken"; then
16820 # GNU ld it is! Joy and bunny rabbits!
16821
16822 # All these tests are for C++; save the language and the compiler flags.
16823 # Need to do this so that g++ won't try to link in libstdc++
16824 ac_test_CFLAGS="${CFLAGS+set}"
16825 ac_save_CFLAGS="$CFLAGS"
16826 CFLAGS='-x c++ -Wl,--gc-sections'
16827
16828 # Check for -Wl,--gc-sections
16829 # XXX This test is broken at the moment, as symbols required for linking
16830 # are now in libsupc++ (not built yet). In addition, this test has
16831 # cored on solaris in the past. In addition, --gc-sections doesn't
16832 # really work at the moment (keeps on discarding used sections, first
16833 # .eh_frame and now some of the glibc sections for iconv).
16834 # Bzzzzt. Thanks for playing, maybe next time.
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16836$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16837 if test "$cross_compiling" = yes; then :
16838 ac_sectionLDflags=yes
16839else
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841/* end confdefs.h. */
16842
16843 int main(void)
16844 {
16845 try { throw 1; }
16846 catch (...) { };
16847 return 0;
16848 }
16849
16850_ACEOF
16851if ac_fn_c_try_run "$LINENO"; then :
16852 ac_sectionLDflags=yes
16853else
16854 ac_sectionLDflags=no
16855fi
16856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16857 conftest.$ac_objext conftest.beam conftest.$ac_ext
16858fi
16859
16860 if test "$ac_test_CFLAGS" = set; then
16861 CFLAGS="$ac_save_CFLAGS"
16862 else
16863 # this is the suspicious part
16864 CFLAGS=''
16865 fi
16866 if test "$ac_sectionLDflags" = "yes"; then
16867 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16868 fi
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16870$as_echo "$ac_sectionLDflags" >&6; }
16871 fi
16872
16873 # Set linker optimization flags.
16874 if test x"$with_gnu_ld" = x"yes"; then
16875 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16876 fi
16877
16878
16879
16880
16881
16882
16883 # Check whether --enable-symvers was given.
16884if test "${enable_symvers+set}" = set; then :
16885 enableval=$enable_symvers;
16886 case "$enableval" in
adcd36bc 16887 yes|no|gnu*|sun) ;;
0a35513e
AH
16888 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16889 esac
16890
16891else
16892 enable_symvers=yes
16893fi
16894
16895
16896
16897# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16898# don't know enough about $LD to do tricks...
16899
adcd36bc
RO
16900
16901# Turn a 'yes' into a suitable default.
16902if test x$enable_symvers = xyes ; then
16903 # FIXME The following test is too strict, in theory.
16904 if test $enable_shared = no || test "x$LD" = x; then
16905 enable_symvers=no
16906 else
16907 if test $with_gnu_ld = yes ; then
16908 enable_symvers=gnu
16909 else
16910 case ${target_os} in
16911 # Sun symbol versioning exists since Solaris 2.5.
16912 solaris2.[5-9]* | solaris2.1[0-9]*)
16913 enable_symvers=sun ;;
16914 *)
16915 enable_symvers=no ;;
16916 esac
16917 fi
16918 fi
16919fi
16920
16921# Check if 'sun' was requested on non-Solaris 2 platforms.
16922if test x$enable_symvers = xsun ; then
16923 case ${target_os} in
16924 solaris2*)
16925 # All fine.
16926 ;;
16927 *)
16928 # Unlikely to work.
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16930$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16932$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16934$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16935 enable_symvers=no
16936 ;;
16937 esac
0a35513e
AH
16938fi
16939
16940# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16941if test $enable_symvers != no; then
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16943$as_echo_n "checking for shared libgcc... " >&6; }
16944 ac_save_CFLAGS="$CFLAGS"
16945 CFLAGS=' -lgcc_s'
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h. */
16948
16949int
16950main ()
16951{
16952return 0;
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957if ac_fn_c_try_link "$LINENO"; then :
16958 libitm_shared_libgcc=yes
16959else
16960 libitm_shared_libgcc=no
16961fi
16962rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 CFLAGS="$ac_save_CFLAGS"
16965 if test $libitm_shared_libgcc = no; then
16966 cat > conftest.c <<EOF
16967int main (void) { return 0; }
16968EOF
16969 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16970 -shared -shared-libgcc -o conftest.so \
16971 conftest.c -v 2>&1 >/dev/null \
16972 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16973 rm -f conftest.c conftest.so
16974 if test x${libitm_libgcc_s_suffix+set} = xset; then
16975 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977/* end confdefs.h. */
16978
16979int
16980main ()
16981{
16982return 0;
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987if ac_fn_c_try_link "$LINENO"; then :
16988 libitm_shared_libgcc=yes
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 CFLAGS="$ac_save_CFLAGS"
16993 fi
16994 fi
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16996$as_echo "$libitm_shared_libgcc" >&6; }
16997fi
16998
16999# For GNU ld, we need at least this version. The format is described in
17000# LIBITM_CHECK_LINKER_FEATURES above.
17001libitm_min_gnu_ld_version=21400
17002# XXXXXXXXXXX libitm_gnu_ld_version=21390
17003
17004# Check to see if unspecified "yes" value can win, given results above.
17005# Change "yes" into either "no" or a style name.
adcd36bc
RO
17006if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17007 if test $with_gnu_ld = yes; then
0a35513e
AH
17008 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17009 enable_symvers=gnu
adcd36bc
RO
17010 elif test $libitm_ld_is_gold = yes ; then
17011 enable_symvers=gnu
0a35513e
AH
17012 else
17013 # The right tools, the right setup, but too old. Fallbacks?
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17015$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17017$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17019$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17021$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17022 if test $libitm_gnu_ld_version -ge 21200 ; then
17023 # Globbing fix is present, proper block support is not.
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17025$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17026 enable_symvers=no
17027 else
17028 # 2.11 or older.
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17030$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17031 enable_symvers=no
17032 fi
17033 fi
adcd36bc
RO
17034 elif test $enable_symvers = sun; then
17035 : All interesting versions of Sun ld support sun style symbol versioning.
0a35513e
AH
17036 else
17037 # just fail for now
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17039$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17041$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17043$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17045$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17046 enable_symvers=no
17047 fi
17048fi
17049
17050 if test $enable_symvers != no; then
17051 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17052 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17053else
17054 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17055 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17056fi
17057
adcd36bc
RO
17058 if test $enable_symvers = gnu; then
17059 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17060 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17061else
17062 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17063 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17064fi
17065
17066 if test $enable_symvers = sun; then
17067 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17068 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17069else
17070 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17071 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17072fi
17073
0a35513e
AH
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17075$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17076
0a35513e
AH
17077if test $enable_symvers = gnu; then
17078
17079$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17080
17081fi
17082
4bdd090f
RH
17083# See if we can emit unwind info in the sjlj stub.
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17085$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17086if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17088else
17089
17090 gcc_cv_as_cfi_pseudo_op=unknown
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092/* end confdefs.h. */
17093asm (".cfi_startproc\n\t.cfi_endproc");
17094int
17095main ()
17096{
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102if ac_fn_c_try_compile "$LINENO"; then :
17103 gcc_cv_as_cfi_pseudo_op=yes
17104else
17105 gcc_cv_as_cfi_pseudo_op=no
17106fi
17107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108
17109fi
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17111$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17112 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17113
17114$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17115
17116 fi
17117
17118
0a35513e
AH
17119# Determine the proper ABI type for size_t.
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17122$as_echo_n "checking how size_t is mangled... " >&6; }
17123if test "${libitm_cv_size_t_mangling+set}" = set; then :
17124 $as_echo_n "(cached) " >&6
17125else
17126
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h. */
17129
17130int
17131main ()
17132{
17133extern __SIZE_TYPE__ x; extern unsigned long x;
17134 ;
17135 return 0;
17136}
17137_ACEOF
17138if ac_fn_c_try_compile "$LINENO"; then :
17139 libitm_cv_size_t_mangling=m
17140else
17141
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143/* end confdefs.h. */
17144
17145int
17146main ()
17147{
17148extern __SIZE_TYPE__ x; extern unsigned int x;
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153if ac_fn_c_try_compile "$LINENO"; then :
17154 libitm_cv_size_t_mangling=j
17155else
17156
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158/* end confdefs.h. */
17159
17160int
17161main ()
17162{
17163extern __SIZE_TYPE__ x; extern unsigned long long x;
17164 ;
17165 return 0;
17166}
17167_ACEOF
17168if ac_fn_c_try_compile "$LINENO"; then :
17169 libitm_cv_size_t_mangling=y
17170else
17171
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h. */
17174
17175int
17176main ()
17177{
17178extern __SIZE_TYPE__ x; extern unsigned short x;
17179 ;
17180 return 0;
17181}
17182_ACEOF
17183if ac_fn_c_try_compile "$LINENO"; then :
17184 libitm_cv_size_t_mangling=t
17185else
17186 libitm_cv_size_t_mangling=x
17187fi
17188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17189
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192
17193fi
17194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195
17196fi
17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198
17199fi
17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17201$as_echo "$libitm_cv_size_t_mangling" >&6; }
17202 if test $libitm_cv_size_t_mangling = x; then
17203 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17204 fi
17205
17206cat >>confdefs.h <<_ACEOF
17207#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17208_ACEOF
17209
17210
17211
17212# Get target configury.
17213. ${srcdir}/configure.tgt
01f3428c
RH
17214if test -n "$UNSUPPORTED"; then
17215 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17216fi
17217
0a35513e
AH
17218CFLAGS="$save_CFLAGS $XCFLAGS"
17219
17220# Check for __sync_val_compare_and_swap, but only after the target has
17221# had a chance to set XCFLAGS.
17222
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17224$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17225if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17226 $as_echo_n "(cached) " >&6
17227else
17228
17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230/* end confdefs.h. */
17231
17232int
17233main ()
17234{
17235int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17236 ;
17237 return 0;
17238}
17239_ACEOF
17240if ac_fn_c_try_link "$LINENO"; then :
17241 libitm_cv_have_sync_builtins=yes
17242else
17243 libitm_cv_have_sync_builtins=no
17244fi
17245rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247fi
17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17249$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17250 if test $libitm_cv_have_sync_builtins = yes; then
17251
17252$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17253
17254 fi
17255
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17257$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17258if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17259 $as_echo_n "(cached) " >&6
17260else
17261
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263/* end confdefs.h. */
17264#include <stdint.h>
17265int
17266main ()
17267{
17268uint64_t foo, bar;
17269 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274if ac_fn_c_try_link "$LINENO"; then :
17275 libitm_cv_have_64bit_sync_builtins=yes
17276else
17277 libitm_cv_have_64bit_sync_builtins=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281fi
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17283$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17284 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17285
17286$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17287
17288 fi
17289
430616e7 17290case "${target_cpu}" in
80713347 17291i[34567]86 | x86_64)
430616e7
RH
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17293$as_echo_n "checking if the assembler supports AVX... " >&6; }
17294if test "${libitm_cv_as_avx+set}" = set; then :
17295 $as_echo_n "(cached) " >&6
17296else
17297
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299/* end confdefs.h. */
17300
17301int
17302main ()
17303{
17304asm("vzeroupper");
17305 ;
17306 return 0;
17307}
17308_ACEOF
17309if ac_fn_c_try_compile "$LINENO"; then :
17310 libitm_cv_as_avx=yes
17311else
17312 libitm_cv_as_avx=no
17313fi
17314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315
17316fi
17317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17318$as_echo "$libitm_cv_as_avx" >&6; }
17319 if test x$libitm_cv_as_avx = xyes; then
17320
17321$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17322
17323 fi
17324 ;;
17325esac
17326
8cf36bb3
IS
17327
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17329$as_echo_n "checking whether weak refs work like ELF... " >&6; }
17330if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17331 $as_echo_n "(cached) " >&6
17332else
17333
17334 weakref_m4_saved_CFLAGS="$CFLAGS"
17335 case "${host}" in
17336 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17337 *) ;;
17338 esac
17339 if test "$cross_compiling" = yes; then :
17340
17341case "${host}" in
8cf36bb3
IS
17342 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17343 *) ac_cv_have_elf_style_weakref=yes;;
17344esac
17345else
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347/* end confdefs.h. */
17348
17349extern void fNotToBeFound(void) __attribute__((weak));
17350int main ()
17351{
17352 if (fNotToBeFound)
17353 return 1;
17354 else
17355 return 0;
17356}
17357
17358_ACEOF
17359if ac_fn_c_try_run "$LINENO"; then :
17360 ac_cv_have_elf_style_weakref=yes
17361else
17362 ac_cv_have_elf_style_weakref=no
17363fi
17364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17365 conftest.$ac_objext conftest.beam conftest.$ac_ext
17366fi
17367CFLAGS="$weakref_m4_saved_CFLAGS"
17368fi
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17370$as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17371if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17372
17373$as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17374
17375fi
17376
0a35513e
AH
17377# Cleanup and exit.
17378CFLAGS="$save_CFLAGS"
17379cat >confcache <<\_ACEOF
17380# This file is a shell script that caches the results of configure
17381# tests run on this system so they can be shared between configure
17382# scripts and configure runs, see configure's option --config-cache.
17383# It is not useful on other systems. If it contains results you don't
17384# want to keep, you may remove or edit it.
17385#
17386# config.status only pays attention to the cache file if you give it
17387# the --recheck option to rerun configure.
17388#
17389# `ac_cv_env_foo' variables (set or unset) will be overridden when
17390# loading this file, other *unset* `ac_cv_foo' will be assigned the
17391# following values.
17392
17393_ACEOF
17394
17395# The following way of writing the cache mishandles newlines in values,
17396# but we know of no workaround that is simple, portable, and efficient.
17397# So, we kill variables containing newlines.
17398# Ultrix sh set writes to stderr and can't be redirected directly,
17399# and sets the high bit in the cache file unless we assign to the vars.
17400(
17401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17402 eval ac_val=\$$ac_var
17403 case $ac_val in #(
17404 *${as_nl}*)
17405 case $ac_var in #(
17406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17408 esac
17409 case $ac_var in #(
17410 _ | IFS | as_nl) ;; #(
17411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17412 *) { eval $ac_var=; unset $ac_var;} ;;
17413 esac ;;
17414 esac
17415 done
17416
17417 (set) 2>&1 |
17418 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17419 *${as_nl}ac_space=\ *)
17420 # `set' does not quote correctly, so add quotes: double-quote
17421 # substitution turns \\\\ into \\, and sed turns \\ into \.
17422 sed -n \
17423 "s/'/'\\\\''/g;
17424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17425 ;; #(
17426 *)
17427 # `set' quotes correctly as required by POSIX, so do not add quotes.
17428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17429 ;;
17430 esac |
17431 sort
17432) |
17433 sed '
17434 /^ac_cv_env_/b end
17435 t clear
17436 :clear
17437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17438 t end
17439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17440 :end' >>confcache
17441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17442 if test -w "$cache_file"; then
17443 test "x$cache_file" != "x/dev/null" &&
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17445$as_echo "$as_me: updating cache $cache_file" >&6;}
17446 cat confcache >$cache_file
17447 else
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17449$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17450 fi
17451fi
17452rm -f confcache
17453
17454# Add -Wall -Werror if we are using GCC.
17455if test "x$GCC" = "xyes"; then
17456 XCFLAGS="$XCFLAGS -Wall -Werror"
17457fi
17458
17459XCFLAGS="$XCFLAGS $XPCFLAGS"
17460
17461
17462
17463
17464
17465if test ${multilib} = yes; then
17466 multilib_arg="--enable-multilib"
17467else
17468 multilib_arg=
17469fi
17470
17471# Set up the set of libraries that we need to link against for libitm.
255a9a1b 17472# Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
0a35513e
AH
17473# which will force linkage against -lpthread (or equivalent for the system).
17474# That's not 100% ideal, but about the best we can do easily.
17475if test $enable_shared = yes; then
17476 link_itm="-litm %{static: $LIBS}"
17477else
17478 link_itm="-litm $LIBS"
17479fi
17480
17481
aebac0ca
RH
17482 if test "$ARCH" = arm; then
17483 ARCH_ARM_TRUE=
17484 ARCH_ARM_FALSE='#'
17485else
17486 ARCH_ARM_TRUE='#'
17487 ARCH_ARM_FALSE=
17488fi
17489
0a35513e
AH
17490 if test "$ARCH" = x86; then
17491 ARCH_X86_TRUE=
17492 ARCH_X86_FALSE='#'
17493else
17494 ARCH_X86_TRUE='#'
17495 ARCH_X86_FALSE=
17496fi
17497
d4b17902
RH
17498 if test "$libitm_cv_as_avx" = yes; then
17499 ARCH_X86_AVX_TRUE=
17500 ARCH_X86_AVX_FALSE='#'
17501else
17502 ARCH_X86_AVX_TRUE='#'
17503 ARCH_X86_AVX_FALSE=
17504fi
17505
0a35513e
AH
17506 if test $enable_linux_futex = yes; then
17507 ARCH_FUTEX_TRUE=
17508 ARCH_FUTEX_FALSE='#'
17509else
17510 ARCH_FUTEX_TRUE='#'
17511 ARCH_FUTEX_FALSE=
17512fi
17513
17514
17515ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17516
17517cat >confcache <<\_ACEOF
17518# This file is a shell script that caches the results of configure
17519# tests run on this system so they can be shared between configure
17520# scripts and configure runs, see configure's option --config-cache.
17521# It is not useful on other systems. If it contains results you don't
17522# want to keep, you may remove or edit it.
17523#
17524# config.status only pays attention to the cache file if you give it
17525# the --recheck option to rerun configure.
17526#
17527# `ac_cv_env_foo' variables (set or unset) will be overridden when
17528# loading this file, other *unset* `ac_cv_foo' will be assigned the
17529# following values.
17530
17531_ACEOF
17532
17533# The following way of writing the cache mishandles newlines in values,
17534# but we know of no workaround that is simple, portable, and efficient.
17535# So, we kill variables containing newlines.
17536# Ultrix sh set writes to stderr and can't be redirected directly,
17537# and sets the high bit in the cache file unless we assign to the vars.
17538(
17539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17540 eval ac_val=\$$ac_var
17541 case $ac_val in #(
17542 *${as_nl}*)
17543 case $ac_var in #(
17544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17546 esac
17547 case $ac_var in #(
17548 _ | IFS | as_nl) ;; #(
17549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17550 *) { eval $ac_var=; unset $ac_var;} ;;
17551 esac ;;
17552 esac
17553 done
17554
17555 (set) 2>&1 |
17556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17557 *${as_nl}ac_space=\ *)
17558 # `set' does not quote correctly, so add quotes: double-quote
17559 # substitution turns \\\\ into \\, and sed turns \\ into \.
17560 sed -n \
17561 "s/'/'\\\\''/g;
17562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17563 ;; #(
17564 *)
17565 # `set' quotes correctly as required by POSIX, so do not add quotes.
17566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17567 ;;
17568 esac |
17569 sort
17570) |
17571 sed '
17572 /^ac_cv_env_/b end
17573 t clear
17574 :clear
17575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17576 t end
17577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17578 :end' >>confcache
17579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17580 if test -w "$cache_file"; then
17581 test "x$cache_file" != "x/dev/null" &&
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17583$as_echo "$as_me: updating cache $cache_file" >&6;}
17584 cat confcache >$cache_file
17585 else
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17588 fi
17589fi
17590rm -f confcache
17591
17592test "x$prefix" = xNONE && prefix=$ac_default_prefix
17593# Let make expand exec_prefix.
17594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17595
17596DEFS=-DHAVE_CONFIG_H
17597
17598ac_libobjs=
17599ac_ltlibobjs=
17600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17601 # 1. Remove the extension, and $U if already installed.
17602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17605 # will be set to the directory where LIBOBJS objects are built.
17606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17608done
17609LIBOBJS=$ac_libobjs
17610
17611LTLIBOBJS=$ac_ltlibobjs
17612
17613
17614if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17615 as_fn_error "conditional \"GENINSRC\" was never defined.
17616Usually this means the macro was only invoked conditionally." "$LINENO" 5
17617fi
17618 if test -n "$EXEEXT"; then
17619 am__EXEEXT_TRUE=
17620 am__EXEEXT_FALSE='#'
17621else
17622 am__EXEEXT_TRUE='#'
17623 am__EXEEXT_FALSE=
17624fi
17625
17626if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17627 as_fn_error "conditional \"AMDEP\" was never defined.
17628Usually this means the macro was only invoked conditionally." "$LINENO" 5
17629fi
17630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17631 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17632Usually this means the macro was only invoked conditionally." "$LINENO" 5
17633fi
17634if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17635 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17636Usually this means the macro was only invoked conditionally." "$LINENO" 5
17637fi
17638if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17639 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17640Usually this means the macro was only invoked conditionally." "$LINENO" 5
17641fi
17642if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17643 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17644Usually this means the macro was only invoked conditionally." "$LINENO" 5
17645fi
17646if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17647 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17648Usually this means the macro was only invoked conditionally." "$LINENO" 5
17649fi
17650
9ce91011
RO
17651if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17652 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17653Usually this means the macro was only invoked conditionally." "$LINENO" 5
17654fi
0a35513e
AH
17655if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17656 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17657Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658fi
adcd36bc
RO
17659if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17660 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17661Usually this means the macro was only invoked conditionally." "$LINENO" 5
17662fi
17663if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17664 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17665Usually this means the macro was only invoked conditionally." "$LINENO" 5
17666fi
aebac0ca
RH
17667if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17668 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17669Usually this means the macro was only invoked conditionally." "$LINENO" 5
17670fi
0a35513e
AH
17671if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17672 as_fn_error "conditional \"ARCH_X86\" was never defined.
17673Usually this means the macro was only invoked conditionally." "$LINENO" 5
17674fi
d4b17902
RH
17675if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17676 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17677Usually this means the macro was only invoked conditionally." "$LINENO" 5
17678fi
0a35513e
AH
17679if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17680 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17681Usually this means the macro was only invoked conditionally." "$LINENO" 5
17682fi
17683
17684: ${CONFIG_STATUS=./config.status}
17685ac_write_fail=0
17686ac_clean_files_save=$ac_clean_files
17687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17688{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17689$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17690as_write_fail=0
17691cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17692#! $SHELL
17693# Generated by $as_me.
17694# Run this file to recreate the current configuration.
17695# Compiler output produced by configure, useful for debugging
17696# configure, is in config.log if it exists.
17697
17698debug=false
17699ac_cs_recheck=false
17700ac_cs_silent=false
17701
17702SHELL=\${CONFIG_SHELL-$SHELL}
17703export SHELL
17704_ASEOF
17705cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17706## -------------------- ##
17707## M4sh Initialization. ##
17708## -------------------- ##
17709
17710# Be more Bourne compatible
17711DUALCASE=1; export DUALCASE # for MKS sh
17712if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17713 emulate sh
17714 NULLCMD=:
17715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17716 # is contrary to our usage. Disable this feature.
17717 alias -g '${1+"$@"}'='"$@"'
17718 setopt NO_GLOB_SUBST
17719else
17720 case `(set -o) 2>/dev/null` in #(
17721 *posix*) :
17722 set -o posix ;; #(
17723 *) :
17724 ;;
17725esac
17726fi
17727
17728
17729as_nl='
17730'
17731export as_nl
17732# Printing a long string crashes Solaris 7 /usr/bin/printf.
17733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17736# Prefer a ksh shell builtin over an external printf program on Solaris,
17737# but without wasting forks for bash or zsh.
17738if test -z "$BASH_VERSION$ZSH_VERSION" \
17739 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17740 as_echo='print -r --'
17741 as_echo_n='print -rn --'
17742elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17743 as_echo='printf %s\n'
17744 as_echo_n='printf %s'
17745else
17746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17748 as_echo_n='/usr/ucb/echo -n'
17749 else
17750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17751 as_echo_n_body='eval
17752 arg=$1;
17753 case $arg in #(
17754 *"$as_nl"*)
17755 expr "X$arg" : "X\\(.*\\)$as_nl";
17756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17757 esac;
17758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17759 '
17760 export as_echo_n_body
17761 as_echo_n='sh -c $as_echo_n_body as_echo'
17762 fi
17763 export as_echo_body
17764 as_echo='sh -c $as_echo_body as_echo'
17765fi
17766
17767# The user is always right.
17768if test "${PATH_SEPARATOR+set}" != set; then
17769 PATH_SEPARATOR=:
17770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17772 PATH_SEPARATOR=';'
17773 }
17774fi
17775
17776
17777# IFS
17778# We need space, tab and new line, in precisely that order. Quoting is
17779# there to prevent editors from complaining about space-tab.
17780# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17781# splitting by setting IFS to empty value.)
17782IFS=" "" $as_nl"
17783
17784# Find who we are. Look in the path if we contain no directory separator.
17785case $0 in #((
17786 *[\\/]* ) as_myself=$0 ;;
17787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17788for as_dir in $PATH
17789do
17790 IFS=$as_save_IFS
17791 test -z "$as_dir" && as_dir=.
17792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17793 done
17794IFS=$as_save_IFS
17795
17796 ;;
17797esac
17798# We did not find ourselves, most probably we were run as `sh COMMAND'
17799# in which case we are not to be found in the path.
17800if test "x$as_myself" = x; then
17801 as_myself=$0
17802fi
17803if test ! -f "$as_myself"; then
17804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17805 exit 1
17806fi
17807
17808# Unset variables that we do not need and which cause bugs (e.g. in
17809# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17810# suppresses any "Segmentation fault" message there. '((' could
17811# trigger a bug in pdksh 5.2.14.
17812for as_var in BASH_ENV ENV MAIL MAILPATH
17813do eval test x\${$as_var+set} = xset \
17814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17815done
17816PS1='$ '
17817PS2='> '
17818PS4='+ '
17819
17820# NLS nuisances.
17821LC_ALL=C
17822export LC_ALL
17823LANGUAGE=C
17824export LANGUAGE
17825
17826# CDPATH.
17827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17828
17829
17830# as_fn_error ERROR [LINENO LOG_FD]
17831# ---------------------------------
17832# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17833# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17834# script with status $?, using 1 if that was 0.
17835as_fn_error ()
17836{
17837 as_status=$?; test $as_status -eq 0 && as_status=1
17838 if test "$3"; then
17839 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17841 fi
17842 $as_echo "$as_me: error: $1" >&2
17843 as_fn_exit $as_status
17844} # as_fn_error
17845
17846
17847# as_fn_set_status STATUS
17848# -----------------------
17849# Set $? to STATUS, without forking.
17850as_fn_set_status ()
17851{
17852 return $1
17853} # as_fn_set_status
17854
17855# as_fn_exit STATUS
17856# -----------------
17857# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17858as_fn_exit ()
17859{
17860 set +e
17861 as_fn_set_status $1
17862 exit $1
17863} # as_fn_exit
17864
17865# as_fn_unset VAR
17866# ---------------
17867# Portably unset VAR.
17868as_fn_unset ()
17869{
17870 { eval $1=; unset $1;}
17871}
17872as_unset=as_fn_unset
17873# as_fn_append VAR VALUE
17874# ----------------------
17875# Append the text in VALUE to the end of the definition contained in VAR. Take
17876# advantage of any shell optimizations that allow amortized linear growth over
17877# repeated appends, instead of the typical quadratic growth present in naive
17878# implementations.
17879if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17880 eval 'as_fn_append ()
17881 {
17882 eval $1+=\$2
17883 }'
17884else
17885 as_fn_append ()
17886 {
17887 eval $1=\$$1\$2
17888 }
17889fi # as_fn_append
17890
17891# as_fn_arith ARG...
17892# ------------------
17893# Perform arithmetic evaluation on the ARGs, and store the result in the
17894# global $as_val. Take advantage of shells that can avoid forks. The arguments
17895# must be portable across $(()) and expr.
17896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17897 eval 'as_fn_arith ()
17898 {
17899 as_val=$(( $* ))
17900 }'
17901else
17902 as_fn_arith ()
17903 {
17904 as_val=`expr "$@" || test $? -eq 1`
17905 }
17906fi # as_fn_arith
17907
17908
17909if expr a : '\(a\)' >/dev/null 2>&1 &&
17910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17911 as_expr=expr
17912else
17913 as_expr=false
17914fi
17915
17916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17917 as_basename=basename
17918else
17919 as_basename=false
17920fi
17921
17922if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17923 as_dirname=dirname
17924else
17925 as_dirname=false
17926fi
17927
17928as_me=`$as_basename -- "$0" ||
17929$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17930 X"$0" : 'X\(//\)$' \| \
17931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17932$as_echo X/"$0" |
17933 sed '/^.*\/\([^/][^/]*\)\/*$/{
17934 s//\1/
17935 q
17936 }
17937 /^X\/\(\/\/\)$/{
17938 s//\1/
17939 q
17940 }
17941 /^X\/\(\/\).*/{
17942 s//\1/
17943 q
17944 }
17945 s/.*/./; q'`
17946
17947# Avoid depending upon Character Ranges.
17948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17951as_cr_digits='0123456789'
17952as_cr_alnum=$as_cr_Letters$as_cr_digits
17953
17954ECHO_C= ECHO_N= ECHO_T=
17955case `echo -n x` in #(((((
17956-n*)
17957 case `echo 'xy\c'` in
17958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17959 xy) ECHO_C='\c';;
17960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17961 ECHO_T=' ';;
17962 esac;;
17963*)
17964 ECHO_N='-n';;
17965esac
17966
17967rm -f conf$$ conf$$.exe conf$$.file
17968if test -d conf$$.dir; then
17969 rm -f conf$$.dir/conf$$.file
17970else
17971 rm -f conf$$.dir
17972 mkdir conf$$.dir 2>/dev/null
17973fi
17974if (echo >conf$$.file) 2>/dev/null; then
17975 if ln -s conf$$.file conf$$ 2>/dev/null; then
17976 as_ln_s='ln -s'
17977 # ... but there are two gotchas:
17978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17980 # In both cases, we have to default to `cp -p'.
17981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17982 as_ln_s='cp -p'
17983 elif ln conf$$.file conf$$ 2>/dev/null; then
17984 as_ln_s=ln
17985 else
17986 as_ln_s='cp -p'
17987 fi
17988else
17989 as_ln_s='cp -p'
17990fi
17991rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17992rmdir conf$$.dir 2>/dev/null
17993
17994
17995# as_fn_mkdir_p
17996# -------------
17997# Create "$as_dir" as a directory, including parents if necessary.
17998as_fn_mkdir_p ()
17999{
18000
18001 case $as_dir in #(
18002 -*) as_dir=./$as_dir;;
18003 esac
18004 test -d "$as_dir" || eval $as_mkdir_p || {
18005 as_dirs=
18006 while :; do
18007 case $as_dir in #(
18008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18009 *) as_qdir=$as_dir;;
18010 esac
18011 as_dirs="'$as_qdir' $as_dirs"
18012 as_dir=`$as_dirname -- "$as_dir" ||
18013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18014 X"$as_dir" : 'X\(//\)[^/]' \| \
18015 X"$as_dir" : 'X\(//\)$' \| \
18016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18017$as_echo X"$as_dir" |
18018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18019 s//\1/
18020 q
18021 }
18022 /^X\(\/\/\)[^/].*/{
18023 s//\1/
18024 q
18025 }
18026 /^X\(\/\/\)$/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\).*/{
18031 s//\1/
18032 q
18033 }
18034 s/.*/./; q'`
18035 test -d "$as_dir" && break
18036 done
18037 test -z "$as_dirs" || eval "mkdir $as_dirs"
18038 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18039
18040
18041} # as_fn_mkdir_p
18042if mkdir -p . 2>/dev/null; then
18043 as_mkdir_p='mkdir -p "$as_dir"'
18044else
18045 test -d ./-p && rmdir ./-p
18046 as_mkdir_p=false
18047fi
18048
18049if test -x / >/dev/null 2>&1; then
18050 as_test_x='test -x'
18051else
18052 if ls -dL / >/dev/null 2>&1; then
18053 as_ls_L_option=L
18054 else
18055 as_ls_L_option=
18056 fi
18057 as_test_x='
18058 eval sh -c '\''
18059 if test -d "$1"; then
18060 test -d "$1/.";
18061 else
18062 case $1 in #(
18063 -*)set "./$1";;
18064 esac;
18065 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18066 ???[sx]*):;;*)false;;esac;fi
18067 '\'' sh
18068 '
18069fi
18070as_executable_p=$as_test_x
18071
18072# Sed expression to map a string onto a valid CPP name.
18073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18074
18075# Sed expression to map a string onto a valid variable name.
18076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18077
18078
18079exec 6>&1
18080## ----------------------------------- ##
18081## Main body of $CONFIG_STATUS script. ##
18082## ----------------------------------- ##
18083_ASEOF
18084test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18085
18086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087# Save the log message, to keep $0 and so on meaningful, and to
18088# report actual input values of CONFIG_FILES etc. instead of their
18089# values after options handling.
18090ac_log="
18091This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18092generated by GNU Autoconf 2.64. Invocation command line was
18093
18094 CONFIG_FILES = $CONFIG_FILES
18095 CONFIG_HEADERS = $CONFIG_HEADERS
18096 CONFIG_LINKS = $CONFIG_LINKS
18097 CONFIG_COMMANDS = $CONFIG_COMMANDS
18098 $ $0 $@
18099
18100on `(hostname || uname -n) 2>/dev/null | sed 1q`
18101"
18102
18103_ACEOF
18104
18105case $ac_config_files in *"
18106"*) set x $ac_config_files; shift; ac_config_files=$*;;
18107esac
18108
18109case $ac_config_headers in *"
18110"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18111esac
18112
18113
18114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18115# Files that config.status was made for.
18116config_files="$ac_config_files"
18117config_headers="$ac_config_headers"
18118config_commands="$ac_config_commands"
18119
18120_ACEOF
18121
18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123ac_cs_usage="\
18124\`$as_me' instantiates files and other configuration actions
18125from templates according to the current configuration. Unless the files
18126and actions are specified as TAGs, all are instantiated by default.
18127
18128Usage: $0 [OPTION]... [TAG]...
18129
18130 -h, --help print this help, then exit
18131 -V, --version print version number and configuration settings, then exit
18132 -q, --quiet, --silent
18133 do not print progress messages
18134 -d, --debug don't remove temporary files
18135 --recheck update $as_me by reconfiguring in the same conditions
18136 --file=FILE[:TEMPLATE]
18137 instantiate the configuration file FILE
18138 --header=FILE[:TEMPLATE]
18139 instantiate the configuration header FILE
18140
18141Configuration files:
18142$config_files
18143
18144Configuration headers:
18145$config_headers
18146
18147Configuration commands:
18148$config_commands
18149
18150Report bugs to the package provider.
18151GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18152General help using GNU software: <http://www.gnu.org/gethelp/>."
18153
18154_ACEOF
18155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18156ac_cs_version="\\
18157GNU TM Runtime Library config.status 1.0
18158configured by $0, generated by GNU Autoconf 2.64,
18159 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18160
18161Copyright (C) 2009 Free Software Foundation, Inc.
18162This config.status script is free software; the Free Software Foundation
18163gives unlimited permission to copy, distribute and modify it."
18164
18165ac_pwd='$ac_pwd'
18166srcdir='$srcdir'
18167INSTALL='$INSTALL'
18168MKDIR_P='$MKDIR_P'
18169AWK='$AWK'
18170test -n "\$AWK" || AWK=awk
18171_ACEOF
18172
18173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18174# The default lists apply if the user does not specify any file.
18175ac_need_defaults=:
18176while test $# != 0
18177do
18178 case $1 in
18179 --*=*)
18180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18182 ac_shift=:
18183 ;;
18184 *)
18185 ac_option=$1
18186 ac_optarg=$2
18187 ac_shift=shift
18188 ;;
18189 esac
18190
18191 case $ac_option in
18192 # Handling of the options.
18193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18194 ac_cs_recheck=: ;;
18195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18196 $as_echo "$ac_cs_version"; exit ;;
18197 --debug | --debu | --deb | --de | --d | -d )
18198 debug=: ;;
18199 --file | --fil | --fi | --f )
18200 $ac_shift
18201 case $ac_optarg in
18202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18203 esac
18204 as_fn_append CONFIG_FILES " '$ac_optarg'"
18205 ac_need_defaults=false;;
18206 --header | --heade | --head | --hea )
18207 $ac_shift
18208 case $ac_optarg in
18209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18210 esac
18211 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18212 ac_need_defaults=false;;
18213 --he | --h)
18214 # Conflict between --help and --header
18215 as_fn_error "ambiguous option: \`$1'
18216Try \`$0 --help' for more information.";;
18217 --help | --hel | -h )
18218 $as_echo "$ac_cs_usage"; exit ;;
18219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18221 ac_cs_silent=: ;;
18222
18223 # This is an error.
18224 -*) as_fn_error "unrecognized option: \`$1'
18225Try \`$0 --help' for more information." ;;
18226
18227 *) as_fn_append ac_config_targets " $1"
18228 ac_need_defaults=false ;;
18229
18230 esac
18231 shift
18232done
18233
18234ac_configure_extra_args=
18235
18236if $ac_cs_silent; then
18237 exec 6>/dev/null
18238 ac_configure_extra_args="$ac_configure_extra_args --silent"
18239fi
18240
18241_ACEOF
18242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243if \$ac_cs_recheck; then
18244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18245 shift
18246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18247 CONFIG_SHELL='$SHELL'
18248 export CONFIG_SHELL
18249 exec "\$@"
18250fi
18251
18252_ACEOF
18253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18254exec 5>>config.log
18255{
18256 echo
18257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18258## Running $as_me. ##
18259_ASBOX
18260 $as_echo "$ac_log"
18261} >&5
18262
18263_ACEOF
18264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265#
18266# INIT-COMMANDS
18267#
18268
18269srcdir="$srcdir"
18270host="$host"
18271target="$target"
18272with_multisubdir="$with_multisubdir"
18273with_multisrctop="$with_multisrctop"
18274with_target_subdir="$with_target_subdir"
18275ac_configure_args="${multilib_arg} ${ac_configure_args}"
18276multi_basedir="$multi_basedir"
18277CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18278CC="$CC"
18279CXX="$CXX"
18280GFORTRAN="$GFORTRAN"
18281GCJ="$GCJ"
18282AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18283
18284
18285# The HP-UX ksh and POSIX shell print the target directory to stdout
18286# if CDPATH is set.
18287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18288
18289sed_quote_subst='$sed_quote_subst'
18290double_quote_subst='$double_quote_subst'
18291delay_variable_subst='$delay_variable_subst'
18292macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18293macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18294enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18296pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18297enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18298SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18299ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18300host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18301host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18302host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18303build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18304build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18305build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18306SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18307Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18308GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18309EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18310FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18311LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18312NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18313LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18314max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18315ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18316exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18317lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18318lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18319lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18320reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18321reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18322OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18323deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18324file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18325AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18326AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18327STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18328RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18329old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18330old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18331old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18332lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18333CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18334CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18335compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18336GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18337lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18338lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18339lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18340lt_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"`'
18341objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18342MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18343lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18345lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18346lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18347lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18348need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18372hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18373hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18374hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18375hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18376hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18377hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18378hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18379inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18380link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18381fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18382always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18383export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18384exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18385include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18386prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18387file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18388variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18389need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18390need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18391version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18392runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18393shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18394shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18395libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18396library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18397soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18398install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18399postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18400postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18401finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18402finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18403hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18404sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18405sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18412compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18413predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18414postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18415predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18416postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18417compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18418LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18419reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18420reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18421old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18422compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18423GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18424lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18425lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18426lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18427lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18428lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18429archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18430enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18431export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18432whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18433compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18434old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18435old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18436archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18437archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18438module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18439module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18440with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18441allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18442no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18443hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18444hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18445hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18446hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18447hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18448hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18449hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18450hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18451inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18452link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18453fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18454always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18455export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18456exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18457include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18458prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18459file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18460hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18461compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18462predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18463postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18464predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18465postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18466compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18467
18468LTCC='$LTCC'
18469LTCFLAGS='$LTCFLAGS'
18470compiler='$compiler_DEFAULT'
18471
18472# A function that is used when there is no print builtin or printf.
18473func_fallback_echo ()
18474{
18475 eval 'cat <<_LTECHO_EOF
18476\$1
18477_LTECHO_EOF'
18478}
18479
18480# Quote evaled strings.
18481for var in SHELL \
18482ECHO \
18483SED \
18484GREP \
18485EGREP \
18486FGREP \
18487LD \
18488NM \
18489LN_S \
18490lt_SP2NL \
18491lt_NL2SP \
18492reload_flag \
18493OBJDUMP \
18494deplibs_check_method \
18495file_magic_cmd \
18496AR \
18497AR_FLAGS \
18498STRIP \
18499RANLIB \
18500CC \
18501CFLAGS \
18502compiler \
18503lt_cv_sys_global_symbol_pipe \
18504lt_cv_sys_global_symbol_to_cdecl \
18505lt_cv_sys_global_symbol_to_c_name_address \
18506lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18507lt_prog_compiler_no_builtin_flag \
18508lt_prog_compiler_wl \
18509lt_prog_compiler_pic \
18510lt_prog_compiler_static \
18511lt_cv_prog_compiler_c_o \
18512need_locks \
18513DSYMUTIL \
18514NMEDIT \
18515LIPO \
18516OTOOL \
18517OTOOL64 \
18518shrext_cmds \
18519export_dynamic_flag_spec \
18520whole_archive_flag_spec \
18521compiler_needs_object \
18522with_gnu_ld \
18523allow_undefined_flag \
18524no_undefined_flag \
18525hardcode_libdir_flag_spec \
18526hardcode_libdir_flag_spec_ld \
18527hardcode_libdir_separator \
18528fix_srcfile_path \
18529exclude_expsyms \
18530include_expsyms \
18531file_list_spec \
18532variables_saved_for_relink \
18533libname_spec \
18534library_names_spec \
18535soname_spec \
18536install_override_mode \
18537finish_eval \
18538old_striplib \
18539striplib \
18540compiler_lib_search_dirs \
18541predep_objects \
18542postdep_objects \
18543predeps \
18544postdeps \
18545compiler_lib_search_path \
18546LD_CXX \
18547reload_flag_CXX \
18548compiler_CXX \
18549lt_prog_compiler_no_builtin_flag_CXX \
18550lt_prog_compiler_wl_CXX \
18551lt_prog_compiler_pic_CXX \
18552lt_prog_compiler_static_CXX \
18553lt_cv_prog_compiler_c_o_CXX \
18554export_dynamic_flag_spec_CXX \
18555whole_archive_flag_spec_CXX \
18556compiler_needs_object_CXX \
18557with_gnu_ld_CXX \
18558allow_undefined_flag_CXX \
18559no_undefined_flag_CXX \
18560hardcode_libdir_flag_spec_CXX \
18561hardcode_libdir_flag_spec_ld_CXX \
18562hardcode_libdir_separator_CXX \
18563fix_srcfile_path_CXX \
18564exclude_expsyms_CXX \
18565include_expsyms_CXX \
18566file_list_spec_CXX \
18567compiler_lib_search_dirs_CXX \
18568predep_objects_CXX \
18569postdep_objects_CXX \
18570predeps_CXX \
18571postdeps_CXX \
18572compiler_lib_search_path_CXX; do
18573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18574 *[\\\\\\\`\\"\\\$]*)
18575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18576 ;;
18577 *)
18578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18579 ;;
18580 esac
18581done
18582
18583# Double-quote double-evaled strings.
18584for var in reload_cmds \
18585old_postinstall_cmds \
18586old_postuninstall_cmds \
18587old_archive_cmds \
18588extract_expsyms_cmds \
18589old_archive_from_new_cmds \
18590old_archive_from_expsyms_cmds \
18591archive_cmds \
18592archive_expsym_cmds \
18593module_cmds \
18594module_expsym_cmds \
18595export_symbols_cmds \
18596prelink_cmds \
18597postinstall_cmds \
18598postuninstall_cmds \
18599finish_cmds \
18600sys_lib_search_path_spec \
18601sys_lib_dlsearch_path_spec \
18602reload_cmds_CXX \
18603old_archive_cmds_CXX \
18604old_archive_from_new_cmds_CXX \
18605old_archive_from_expsyms_cmds_CXX \
18606archive_cmds_CXX \
18607archive_expsym_cmds_CXX \
18608module_cmds_CXX \
18609module_expsym_cmds_CXX \
18610export_symbols_cmds_CXX \
18611prelink_cmds_CXX; do
18612 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18613 *[\\\\\\\`\\"\\\$]*)
18614 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18615 ;;
18616 *)
18617 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18618 ;;
18619 esac
18620done
18621
18622ac_aux_dir='$ac_aux_dir'
18623xsi_shell='$xsi_shell'
18624lt_shell_append='$lt_shell_append'
18625
18626# See if we are running on zsh, and set the options which allow our
18627# commands through without removal of \ escapes INIT.
18628if test -n "\${ZSH_VERSION+set}" ; then
18629 setopt NO_GLOB_SUBST
18630fi
18631
18632
18633 PACKAGE='$PACKAGE'
18634 VERSION='$VERSION'
18635 TIMESTAMP='$TIMESTAMP'
18636 RM='$RM'
18637 ofile='$ofile'
18638
18639
18640
18641
18642
18643
18644GCC="$GCC"
18645CC="$CC"
18646acx_cv_header_stdint="$acx_cv_header_stdint"
18647acx_cv_type_int8_t="$acx_cv_type_int8_t"
18648acx_cv_type_int16_t="$acx_cv_type_int16_t"
18649acx_cv_type_int32_t="$acx_cv_type_int32_t"
18650acx_cv_type_int64_t="$acx_cv_type_int64_t"
18651acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18652ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18653ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18654ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18655ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18656ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18657ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18658ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18659ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18660
18661
18662_ACEOF
18663
18664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18665
18666# Handling of arguments.
18667for ac_config_target in $ac_config_targets
18668do
18669 case $ac_config_target in
18670 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18671 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18672 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18673 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18674 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18676 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18677 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18678
18679 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18680 esac
18681done
18682
18683
18684# If the user did not use the arguments to specify the items to instantiate,
18685# then the envvar interface is used. Set only those that are not.
18686# We use the long form for the default assignment because of an extremely
18687# bizarre bug on SunOS 4.1.3.
18688if $ac_need_defaults; then
18689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18692fi
18693
18694# Have a temporary directory for convenience. Make it in the build tree
18695# simply because there is no reason against having it here, and in addition,
18696# creating and moving files from /tmp can sometimes cause problems.
18697# Hook for its removal unless debugging.
18698# Note that there is a small window in which the directory will not be cleaned:
18699# after its creation but before its name has been assigned to `$tmp'.
18700$debug ||
18701{
18702 tmp=
18703 trap 'exit_status=$?
18704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18705' 0
18706 trap 'as_fn_exit 1' 1 2 13 15
18707}
18708# Create a (secure) tmp directory for tmp files.
18709
18710{
18711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18712 test -n "$tmp" && test -d "$tmp"
18713} ||
18714{
18715 tmp=./conf$$-$RANDOM
18716 (umask 077 && mkdir "$tmp")
18717} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18718
18719# Set up the scripts for CONFIG_FILES section.
18720# No need to generate them if there are no CONFIG_FILES.
18721# This happens for instance with `./config.status config.h'.
18722if test -n "$CONFIG_FILES"; then
18723
18724
18725ac_cr=`echo X | tr X '\015'`
18726# On cygwin, bash can eat \r inside `` if the user requested igncr.
18727# But we know of no other shell where ac_cr would be empty at this
18728# point, so we can use a bashism as a fallback.
18729if test "x$ac_cr" = x; then
18730 eval ac_cr=\$\'\\r\'
18731fi
18732ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18733if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18734 ac_cs_awk_cr='\r'
18735else
18736 ac_cs_awk_cr=$ac_cr
18737fi
18738
18739echo 'BEGIN {' >"$tmp/subs1.awk" &&
18740_ACEOF
18741
18742
18743{
18744 echo "cat >conf$$subs.awk <<_ACEOF" &&
18745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18746 echo "_ACEOF"
18747} >conf$$subs.sh ||
18748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18749ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18750ac_delim='%!_!# '
18751for ac_last_try in false false false false false :; do
18752 . ./conf$$subs.sh ||
18753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18754
18755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18756 if test $ac_delim_n = $ac_delim_num; then
18757 break
18758 elif $ac_last_try; then
18759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18760 else
18761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18762 fi
18763done
18764rm -f conf$$subs.sh
18765
18766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18767cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18768_ACEOF
18769sed -n '
18770h
18771s/^/S["/; s/!.*/"]=/
18772p
18773g
18774s/^[^!]*!//
18775:repl
18776t repl
18777s/'"$ac_delim"'$//
18778t delim
18779:nl
18780h
18781s/\(.\{148\}\).*/\1/
18782t more1
18783s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18784p
18785n
18786b repl
18787:more1
18788s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18789p
18790g
18791s/.\{148\}//
18792t nl
18793:delim
18794h
18795s/\(.\{148\}\).*/\1/
18796t more2
18797s/["\\]/\\&/g; s/^/"/; s/$/"/
18798p
18799b
18800:more2
18801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18802p
18803g
18804s/.\{148\}//
18805t delim
18806' <conf$$subs.awk | sed '
18807/^[^""]/{
18808 N
18809 s/\n//
18810}
18811' >>$CONFIG_STATUS || ac_write_fail=1
18812rm -f conf$$subs.awk
18813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814_ACAWK
18815cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18816 for (key in S) S_is_set[key] = 1
18817 FS = "\a"
18818
18819}
18820{
18821 line = $ 0
18822 nfields = split(line, field, "@")
18823 substed = 0
18824 len = length(field[1])
18825 for (i = 2; i < nfields; i++) {
18826 key = field[i]
18827 keylen = length(key)
18828 if (S_is_set[key]) {
18829 value = S[key]
18830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18831 len += length(value) + length(field[++i])
18832 substed = 1
18833 } else
18834 len += 1 + keylen
18835 }
18836
18837 print line
18838}
18839
18840_ACAWK
18841_ACEOF
18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18845else
18846 cat
18847fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18848 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18849_ACEOF
18850
18851# VPATH may cause trouble with some makes, so we remove $(srcdir),
18852# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18853# trailing colons and then remove the whole line if VPATH becomes empty
18854# (actually we leave an empty line to preserve line numbers).
18855if test "x$srcdir" = x.; then
18856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18857s/:*\$(srcdir):*/:/
18858s/:*\${srcdir}:*/:/
18859s/:*@srcdir@:*/:/
18860s/^\([^=]*=[ ]*\):*/\1/
18861s/:*$//
18862s/^[^=]*=[ ]*$//
18863}'
18864fi
18865
18866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867fi # test -n "$CONFIG_FILES"
18868
18869# Set up the scripts for CONFIG_HEADERS section.
18870# No need to generate them if there are no CONFIG_HEADERS.
18871# This happens for instance with `./config.status Makefile'.
18872if test -n "$CONFIG_HEADERS"; then
18873cat >"$tmp/defines.awk" <<\_ACAWK ||
18874BEGIN {
18875_ACEOF
18876
18877# Transform confdefs.h into an awk script `defines.awk', embedded as
18878# here-document in config.status, that substitutes the proper values into
18879# config.h.in to produce config.h.
18880
18881# Create a delimiter string that does not exist in confdefs.h, to ease
18882# handling of long lines.
18883ac_delim='%!_!# '
18884for ac_last_try in false false :; do
18885 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18886 if test -z "$ac_t"; then
18887 break
18888 elif $ac_last_try; then
18889 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18890 else
18891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18892 fi
18893done
18894
18895# For the awk script, D is an array of macro values keyed by name,
18896# likewise P contains macro parameters if any. Preserve backslash
18897# newline sequences.
18898
18899ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18900sed -n '
18901s/.\{148\}/&'"$ac_delim"'/g
18902t rset
18903:rset
18904s/^[ ]*#[ ]*define[ ][ ]*/ /
18905t def
18906d
18907:def
18908s/\\$//
18909t bsnl
18910s/["\\]/\\&/g
18911s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18912D["\1"]=" \3"/p
18913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18914d
18915:bsnl
18916s/["\\]/\\&/g
18917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18918D["\1"]=" \3\\\\\\n"\\/p
18919t cont
18920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18921t cont
18922d
18923:cont
18924n
18925s/.\{148\}/&'"$ac_delim"'/g
18926t clear
18927:clear
18928s/\\$//
18929t bsnlc
18930s/["\\]/\\&/g; s/^/"/; s/$/"/p
18931d
18932:bsnlc
18933s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18934b cont
18935' <confdefs.h | sed '
18936s/'"$ac_delim"'/"\\\
18937"/g' >>$CONFIG_STATUS || ac_write_fail=1
18938
18939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18940 for (key in D) D_is_set[key] = 1
18941 FS = "\a"
18942}
18943/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18944 line = \$ 0
18945 split(line, arg, " ")
18946 if (arg[1] == "#") {
18947 defundef = arg[2]
18948 mac1 = arg[3]
18949 } else {
18950 defundef = substr(arg[1], 2)
18951 mac1 = arg[2]
18952 }
18953 split(mac1, mac2, "(") #)
18954 macro = mac2[1]
18955 prefix = substr(line, 1, index(line, defundef) - 1)
18956 if (D_is_set[macro]) {
18957 # Preserve the white space surrounding the "#".
18958 print prefix "define", macro P[macro] D[macro]
18959 next
18960 } else {
18961 # Replace #undef with comments. This is necessary, for example,
18962 # in the case of _POSIX_SOURCE, which is predefined and required
18963 # on some systems where configure will not decide to define it.
18964 if (defundef == "undef") {
18965 print "/*", prefix defundef, macro, "*/"
18966 next
18967 }
18968 }
18969}
18970{ print }
18971_ACAWK
18972_ACEOF
18973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18974 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18975fi # test -n "$CONFIG_HEADERS"
18976
18977
18978eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18979shift
18980for ac_tag
18981do
18982 case $ac_tag in
18983 :[FHLC]) ac_mode=$ac_tag; continue;;
18984 esac
18985 case $ac_mode$ac_tag in
18986 :[FHL]*:*);;
18987 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18988 :[FH]-) ac_tag=-:-;;
18989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18990 esac
18991 ac_save_IFS=$IFS
18992 IFS=:
18993 set x $ac_tag
18994 IFS=$ac_save_IFS
18995 shift
18996 ac_file=$1
18997 shift
18998
18999 case $ac_mode in
19000 :L) ac_source=$1;;
19001 :[FH])
19002 ac_file_inputs=
19003 for ac_f
19004 do
19005 case $ac_f in
19006 -) ac_f="$tmp/stdin";;
19007 *) # Look for the file first in the build tree, then in the source tree
19008 # (if the path is not absolute). The absolute path cannot be DOS-style,
19009 # because $ac_f cannot contain `:'.
19010 test -f "$ac_f" ||
19011 case $ac_f in
19012 [\\/$]*) false;;
19013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19014 esac ||
19015 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19016 esac
19017 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19018 as_fn_append ac_file_inputs " '$ac_f'"
19019 done
19020
19021 # Let's still pretend it is `configure' which instantiates (i.e., don't
19022 # use $as_me), people would be surprised to read:
19023 # /* config.h. Generated by config.status. */
19024 configure_input='Generated from '`
19025 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19026 `' by configure.'
19027 if test x"$ac_file" != x-; then
19028 configure_input="$ac_file. $configure_input"
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19030$as_echo "$as_me: creating $ac_file" >&6;}
19031 fi
19032 # Neutralize special characters interpreted by sed in replacement strings.
19033 case $configure_input in #(
19034 *\&* | *\|* | *\\* )
19035 ac_sed_conf_input=`$as_echo "$configure_input" |
19036 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19037 *) ac_sed_conf_input=$configure_input;;
19038 esac
19039
19040 case $ac_tag in
19041 *:-:* | *:-) cat >"$tmp/stdin" \
19042 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19043 esac
19044 ;;
19045 esac
19046
19047 ac_dir=`$as_dirname -- "$ac_file" ||
19048$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19049 X"$ac_file" : 'X\(//\)[^/]' \| \
19050 X"$ac_file" : 'X\(//\)$' \| \
19051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19052$as_echo X"$ac_file" |
19053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19054 s//\1/
19055 q
19056 }
19057 /^X\(\/\/\)[^/].*/{
19058 s//\1/
19059 q
19060 }
19061 /^X\(\/\/\)$/{
19062 s//\1/
19063 q
19064 }
19065 /^X\(\/\).*/{
19066 s//\1/
19067 q
19068 }
19069 s/.*/./; q'`
19070 as_dir="$ac_dir"; as_fn_mkdir_p
19071 ac_builddir=.
19072
19073case "$ac_dir" in
19074.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19075*)
19076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19077 # A ".." for each directory in $ac_dir_suffix.
19078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19079 case $ac_top_builddir_sub in
19080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19082 esac ;;
19083esac
19084ac_abs_top_builddir=$ac_pwd
19085ac_abs_builddir=$ac_pwd$ac_dir_suffix
19086# for backward compatibility:
19087ac_top_builddir=$ac_top_build_prefix
19088
19089case $srcdir in
19090 .) # We are building in place.
19091 ac_srcdir=.
19092 ac_top_srcdir=$ac_top_builddir_sub
19093 ac_abs_top_srcdir=$ac_pwd ;;
19094 [\\/]* | ?:[\\/]* ) # Absolute name.
19095 ac_srcdir=$srcdir$ac_dir_suffix;
19096 ac_top_srcdir=$srcdir
19097 ac_abs_top_srcdir=$srcdir ;;
19098 *) # Relative name.
19099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19100 ac_top_srcdir=$ac_top_build_prefix$srcdir
19101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19102esac
19103ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19104
19105
19106 case $ac_mode in
19107 :F)
19108 #
19109 # CONFIG_FILE
19110 #
19111
19112 case $INSTALL in
19113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19114 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19115 esac
19116 ac_MKDIR_P=$MKDIR_P
19117 case $MKDIR_P in
19118 [\\/$]* | ?:[\\/]* ) ;;
19119 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19120 esac
19121_ACEOF
19122
19123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19124# If the template does not know about datarootdir, expand it.
19125# FIXME: This hack should be removed a few years after 2.60.
19126ac_datarootdir_hack=; ac_datarootdir_seen=
19127ac_sed_dataroot='
19128/datarootdir/ {
19129 p
19130 q
19131}
19132/@datadir@/p
19133/@docdir@/p
19134/@infodir@/p
19135/@localedir@/p
19136/@mandir@/p'
19137case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19138*datarootdir*) ac_datarootdir_seen=yes;;
19139*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19141$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19142_ACEOF
19143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19144 ac_datarootdir_hack='
19145 s&@datadir@&$datadir&g
19146 s&@docdir@&$docdir&g
19147 s&@infodir@&$infodir&g
19148 s&@localedir@&$localedir&g
19149 s&@mandir@&$mandir&g
19150 s&\\\${datarootdir}&$datarootdir&g' ;;
19151esac
19152_ACEOF
19153
19154# Neutralize VPATH when `$srcdir' = `.'.
19155# Shell code in configure.ac might set extrasub.
19156# FIXME: do we really want to maintain this feature?
19157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19158ac_sed_extra="$ac_vpsub
19159$extrasub
19160_ACEOF
19161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19162:t
19163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19164s|@configure_input@|$ac_sed_conf_input|;t t
19165s&@top_builddir@&$ac_top_builddir_sub&;t t
19166s&@top_build_prefix@&$ac_top_build_prefix&;t t
19167s&@srcdir@&$ac_srcdir&;t t
19168s&@abs_srcdir@&$ac_abs_srcdir&;t t
19169s&@top_srcdir@&$ac_top_srcdir&;t t
19170s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19171s&@builddir@&$ac_builddir&;t t
19172s&@abs_builddir@&$ac_abs_builddir&;t t
19173s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19174s&@INSTALL@&$ac_INSTALL&;t t
19175s&@MKDIR_P@&$ac_MKDIR_P&;t t
19176$ac_datarootdir_hack
19177"
19178eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19179 || as_fn_error "could not create $ac_file" "$LINENO" 5
19180
19181test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19182 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19183 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19185which seems to be undefined. Please make sure it is defined." >&5
19186$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19187which seems to be undefined. Please make sure it is defined." >&2;}
19188
19189 rm -f "$tmp/stdin"
19190 case $ac_file in
19191 -) cat "$tmp/out" && rm -f "$tmp/out";;
19192 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19193 esac \
19194 || as_fn_error "could not create $ac_file" "$LINENO" 5
19195 ;;
19196 :H)
19197 #
19198 # CONFIG_HEADER
19199 #
19200 if test x"$ac_file" != x-; then
19201 {
19202 $as_echo "/* $configure_input */" \
19203 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19204 } >"$tmp/config.h" \
19205 || as_fn_error "could not create $ac_file" "$LINENO" 5
19206 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19208$as_echo "$as_me: $ac_file is unchanged" >&6;}
19209 else
19210 rm -f "$ac_file"
19211 mv "$tmp/config.h" "$ac_file" \
19212 || as_fn_error "could not create $ac_file" "$LINENO" 5
19213 fi
19214 else
19215 $as_echo "/* $configure_input */" \
19216 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19217 || as_fn_error "could not create -" "$LINENO" 5
19218 fi
19219# Compute "$ac_file"'s index in $config_headers.
19220_am_arg="$ac_file"
19221_am_stamp_count=1
19222for _am_header in $config_headers :; do
19223 case $_am_header in
19224 $_am_arg | $_am_arg:* )
19225 break ;;
19226 * )
19227 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19228 esac
19229done
19230echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19231$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19232 X"$_am_arg" : 'X\(//\)[^/]' \| \
19233 X"$_am_arg" : 'X\(//\)$' \| \
19234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19235$as_echo X"$_am_arg" |
19236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19237 s//\1/
19238 q
19239 }
19240 /^X\(\/\/\)[^/].*/{
19241 s//\1/
19242 q
19243 }
19244 /^X\(\/\/\)$/{
19245 s//\1/
19246 q
19247 }
19248 /^X\(\/\).*/{
19249 s//\1/
19250 q
19251 }
19252 s/.*/./; q'`/stamp-h$_am_stamp_count
19253 ;;
19254
19255 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19256$as_echo "$as_me: executing $ac_file commands" >&6;}
19257 ;;
19258 esac
19259
19260
19261 case $ac_file$ac_mode in
19262 "default-1":C)
19263# Only add multilib support code if we just rebuilt the top-level
19264# Makefile.
19265case " $CONFIG_FILES " in
19266 *" Makefile "*)
19267 ac_file=Makefile . ${multi_basedir}/config-ml.in
19268 ;;
19269esac ;;
19270 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19271 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19272 # are listed without --file. Let's play safe and only enable the eval
19273 # if we detect the quoting.
19274 case $CONFIG_FILES in
19275 *\'*) eval set x "$CONFIG_FILES" ;;
19276 *) set x $CONFIG_FILES ;;
19277 esac
19278 shift
19279 for mf
19280 do
19281 # Strip MF so we end up with the name of the file.
19282 mf=`echo "$mf" | sed -e 's/:.*$//'`
19283 # Check whether this is an Automake generated Makefile or not.
19284 # We used to match only the files named `Makefile.in', but
19285 # some people rename them; so instead we look at the file content.
19286 # Grep'ing the first line is not enough: some people post-process
19287 # each Makefile.in and add a new line on top of each file to say so.
19288 # Grep'ing the whole file is not good either: AIX grep has a line
19289 # limit of 2048, but all sed's we know have understand at least 4000.
19290 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19291 dirpart=`$as_dirname -- "$mf" ||
19292$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19293 X"$mf" : 'X\(//\)[^/]' \| \
19294 X"$mf" : 'X\(//\)$' \| \
19295 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19296$as_echo X"$mf" |
19297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19298 s//\1/
19299 q
19300 }
19301 /^X\(\/\/\)[^/].*/{
19302 s//\1/
19303 q
19304 }
19305 /^X\(\/\/\)$/{
19306 s//\1/
19307 q
19308 }
19309 /^X\(\/\).*/{
19310 s//\1/
19311 q
19312 }
19313 s/.*/./; q'`
19314 else
19315 continue
19316 fi
19317 # Extract the definition of DEPDIR, am__include, and am__quote
19318 # from the Makefile without running `make'.
19319 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19320 test -z "$DEPDIR" && continue
19321 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19322 test -z "am__include" && continue
19323 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19324 # When using ansi2knr, U may be empty or an underscore; expand it
19325 U=`sed -n 's/^U = //p' < "$mf"`
19326 # Find all dependency output files, they are included files with
19327 # $(DEPDIR) in their names. We invoke sed twice because it is the
19328 # simplest approach to changing $(DEPDIR) to its actual value in the
19329 # expansion.
19330 for file in `sed -n "
19331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19333 # Make sure the directory exists.
19334 test -f "$dirpart/$file" && continue
19335 fdir=`$as_dirname -- "$file" ||
19336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19337 X"$file" : 'X\(//\)[^/]' \| \
19338 X"$file" : 'X\(//\)$' \| \
19339 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19340$as_echo X"$file" |
19341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19342 s//\1/
19343 q
19344 }
19345 /^X\(\/\/\)[^/].*/{
19346 s//\1/
19347 q
19348 }
19349 /^X\(\/\/\)$/{
19350 s//\1/
19351 q
19352 }
19353 /^X\(\/\).*/{
19354 s//\1/
19355 q
19356 }
19357 s/.*/./; q'`
19358 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19359 # echo "creating $dirpart/$file"
19360 echo '# dummy' > "$dirpart/$file"
19361 done
19362 done
19363}
19364 ;;
19365 "libtool":C)
19366
19367 # See if we are running on zsh, and set the options which allow our
19368 # commands through without removal of \ escapes.
19369 if test -n "${ZSH_VERSION+set}" ; then
19370 setopt NO_GLOB_SUBST
19371 fi
19372
19373 cfgfile="${ofile}T"
19374 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19375 $RM "$cfgfile"
19376
19377 cat <<_LT_EOF >> "$cfgfile"
19378#! $SHELL
19379
19380# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19381# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19383# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19384#
19385# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19386# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19387# Written by Gordon Matzigkeit, 1996
19388#
19389# This file is part of GNU Libtool.
19390#
19391# GNU Libtool is free software; you can redistribute it and/or
19392# modify it under the terms of the GNU General Public License as
19393# published by the Free Software Foundation; either version 2 of
19394# the License, or (at your option) any later version.
19395#
19396# As a special exception to the GNU General Public License,
19397# if you distribute this file as part of a program or library that
19398# is built using GNU Libtool, you may include this file under the
19399# same distribution terms that you use for the rest of that program.
19400#
19401# GNU Libtool is distributed in the hope that it will be useful,
19402# but WITHOUT ANY WARRANTY; without even the implied warranty of
19403# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19404# GNU General Public License for more details.
19405#
19406# You should have received a copy of the GNU General Public License
19407# along with GNU Libtool; see the file COPYING. If not, a copy
19408# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19409# obtained by writing to the Free Software Foundation, Inc.,
19410# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19411
19412
19413# The names of the tagged configurations supported by this script.
19414available_tags="CXX "
19415
19416# ### BEGIN LIBTOOL CONFIG
19417
19418# Which release of libtool.m4 was used?
19419macro_version=$macro_version
19420macro_revision=$macro_revision
19421
19422# Whether or not to build shared libraries.
19423build_libtool_libs=$enable_shared
19424
19425# Whether or not to build static libraries.
19426build_old_libs=$enable_static
19427
19428# What type of objects to build.
19429pic_mode=$pic_mode
19430
19431# Whether or not to optimize for fast installation.
19432fast_install=$enable_fast_install
19433
19434# Shell to use when invoking shell scripts.
19435SHELL=$lt_SHELL
19436
19437# An echo program that protects backslashes.
19438ECHO=$lt_ECHO
19439
19440# The host system.
19441host_alias=$host_alias
19442host=$host
19443host_os=$host_os
19444
19445# The build system.
19446build_alias=$build_alias
19447build=$build
19448build_os=$build_os
19449
19450# A sed program that does not truncate output.
19451SED=$lt_SED
19452
19453# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19454Xsed="\$SED -e 1s/^X//"
19455
19456# A grep program that handles long lines.
19457GREP=$lt_GREP
19458
19459# An ERE matcher.
19460EGREP=$lt_EGREP
19461
19462# A literal string matcher.
19463FGREP=$lt_FGREP
19464
19465# A BSD- or MS-compatible name lister.
19466NM=$lt_NM
19467
19468# Whether we need soft or hard links.
19469LN_S=$lt_LN_S
19470
19471# What is the maximum length of a command?
19472max_cmd_len=$max_cmd_len
19473
19474# Object file suffix (normally "o").
19475objext=$ac_objext
19476
19477# Executable file suffix (normally "").
19478exeext=$exeext
19479
19480# whether the shell understands "unset".
19481lt_unset=$lt_unset
19482
19483# turn spaces into newlines.
19484SP2NL=$lt_lt_SP2NL
19485
19486# turn newlines into spaces.
19487NL2SP=$lt_lt_NL2SP
19488
19489# An object symbol dumper.
19490OBJDUMP=$lt_OBJDUMP
19491
19492# Method to check whether dependent libraries are shared objects.
19493deplibs_check_method=$lt_deplibs_check_method
19494
19495# Command to use when deplibs_check_method == "file_magic".
19496file_magic_cmd=$lt_file_magic_cmd
19497
19498# The archiver.
19499AR=$lt_AR
19500AR_FLAGS=$lt_AR_FLAGS
19501
19502# A symbol stripping program.
19503STRIP=$lt_STRIP
19504
19505# Commands used to install an old-style archive.
19506RANLIB=$lt_RANLIB
19507old_postinstall_cmds=$lt_old_postinstall_cmds
19508old_postuninstall_cmds=$lt_old_postuninstall_cmds
19509
19510# Whether to use a lock for old archive extraction.
19511lock_old_archive_extraction=$lock_old_archive_extraction
19512
19513# A C compiler.
19514LTCC=$lt_CC
19515
19516# LTCC compiler flags.
19517LTCFLAGS=$lt_CFLAGS
19518
19519# Take the output of nm and produce a listing of raw symbols and C names.
19520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19521
19522# Transform the output of nm in a proper C declaration.
19523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19524
19525# Transform the output of nm in a C name address pair.
19526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19527
19528# Transform the output of nm in a C name address pair when lib prefix is needed.
19529global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19530
19531# The name of the directory that contains temporary libtool files.
19532objdir=$objdir
19533
19534# Used to examine libraries when file_magic_cmd begins with "file".
19535MAGIC_CMD=$MAGIC_CMD
19536
19537# Must we lock files when doing compilation?
19538need_locks=$lt_need_locks
19539
19540# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19541DSYMUTIL=$lt_DSYMUTIL
19542
19543# Tool to change global to local symbols on Mac OS X.
19544NMEDIT=$lt_NMEDIT
19545
19546# Tool to manipulate fat objects and archives on Mac OS X.
19547LIPO=$lt_LIPO
19548
19549# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19550OTOOL=$lt_OTOOL
19551
19552# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19553OTOOL64=$lt_OTOOL64
19554
19555# Old archive suffix (normally "a").
19556libext=$libext
19557
19558# Shared library suffix (normally ".so").
19559shrext_cmds=$lt_shrext_cmds
19560
19561# The commands to extract the exported symbol list from a shared archive.
19562extract_expsyms_cmds=$lt_extract_expsyms_cmds
19563
19564# Variables whose values should be saved in libtool wrapper scripts and
19565# restored at link time.
19566variables_saved_for_relink=$lt_variables_saved_for_relink
19567
19568# Do we need the "lib" prefix for modules?
19569need_lib_prefix=$need_lib_prefix
19570
19571# Do we need a version for libraries?
19572need_version=$need_version
19573
19574# Library versioning type.
19575version_type=$version_type
19576
19577# Shared library runtime path variable.
19578runpath_var=$runpath_var
19579
19580# Shared library path variable.
19581shlibpath_var=$shlibpath_var
19582
19583# Is shlibpath searched before the hard-coded library search path?
19584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19585
19586# Format of library name prefix.
19587libname_spec=$lt_libname_spec
19588
19589# List of archive names. First name is the real one, the rest are links.
19590# The last name is the one that the linker finds with -lNAME
19591library_names_spec=$lt_library_names_spec
19592
19593# The coded name of the library, if different from the real name.
19594soname_spec=$lt_soname_spec
19595
19596# Permission mode override for installation of shared libraries.
19597install_override_mode=$lt_install_override_mode
19598
19599# Command to use after installation of a shared archive.
19600postinstall_cmds=$lt_postinstall_cmds
19601
19602# Command to use after uninstallation of a shared archive.
19603postuninstall_cmds=$lt_postuninstall_cmds
19604
19605# Commands used to finish a libtool library installation in a directory.
19606finish_cmds=$lt_finish_cmds
19607
19608# As "finish_cmds", except a single script fragment to be evaled but
19609# not shown.
19610finish_eval=$lt_finish_eval
19611
19612# Whether we should hardcode library paths into libraries.
19613hardcode_into_libs=$hardcode_into_libs
19614
19615# Compile-time system search path for libraries.
19616sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19617
19618# Run-time system search path for libraries.
19619sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19620
19621# Whether dlopen is supported.
19622dlopen_support=$enable_dlopen
19623
19624# Whether dlopen of programs is supported.
19625dlopen_self=$enable_dlopen_self
19626
19627# Whether dlopen of statically linked programs is supported.
19628dlopen_self_static=$enable_dlopen_self_static
19629
19630# Commands to strip libraries.
19631old_striplib=$lt_old_striplib
19632striplib=$lt_striplib
19633
19634
19635# The linker used to build libraries.
19636LD=$lt_LD
19637
19638# How to create reloadable object files.
19639reload_flag=$lt_reload_flag
19640reload_cmds=$lt_reload_cmds
19641
19642# Commands used to build an old-style archive.
19643old_archive_cmds=$lt_old_archive_cmds
19644
19645# A language specific compiler.
19646CC=$lt_compiler
19647
19648# Is the compiler the GNU compiler?
19649with_gcc=$GCC
19650
19651# Compiler flag to turn off builtin functions.
19652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19653
19654# How to pass a linker flag through the compiler.
19655wl=$lt_lt_prog_compiler_wl
19656
19657# Additional compiler flags for building library objects.
19658pic_flag=$lt_lt_prog_compiler_pic
19659
19660# Compiler flag to prevent dynamic linking.
19661link_static_flag=$lt_lt_prog_compiler_static
19662
19663# Does compiler simultaneously support -c and -o options?
19664compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19665
19666# Whether or not to add -lc for building shared libraries.
19667build_libtool_need_lc=$archive_cmds_need_lc
19668
19669# Whether or not to disallow shared libs when runtime libs are static.
19670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19671
19672# Compiler flag to allow reflexive dlopens.
19673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19674
19675# Compiler flag to generate shared objects directly from archives.
19676whole_archive_flag_spec=$lt_whole_archive_flag_spec
19677
19678# Whether the compiler copes with passing no objects directly.
19679compiler_needs_object=$lt_compiler_needs_object
19680
19681# Create an old-style archive from a shared archive.
19682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19683
19684# Create a temporary old-style archive to link instead of a shared archive.
19685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19686
19687# Commands used to build a shared archive.
19688archive_cmds=$lt_archive_cmds
19689archive_expsym_cmds=$lt_archive_expsym_cmds
19690
19691# Commands used to build a loadable module if different from building
19692# a shared archive.
19693module_cmds=$lt_module_cmds
19694module_expsym_cmds=$lt_module_expsym_cmds
19695
19696# Whether we are building with GNU ld or not.
19697with_gnu_ld=$lt_with_gnu_ld
19698
19699# Flag that allows shared libraries with undefined symbols to be built.
19700allow_undefined_flag=$lt_allow_undefined_flag
19701
19702# Flag that enforces no undefined symbols.
19703no_undefined_flag=$lt_no_undefined_flag
19704
19705# Flag to hardcode \$libdir into a binary during linking.
19706# This must work even if \$libdir does not exist
19707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19708
19709# If ld is used when linking, flag to hardcode \$libdir into a binary
19710# during linking. This must work even if \$libdir does not exist.
19711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19712
19713# Whether we need a single "-rpath" flag with a separated argument.
19714hardcode_libdir_separator=$lt_hardcode_libdir_separator
19715
19716# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19717# DIR into the resulting binary.
19718hardcode_direct=$hardcode_direct
19719
19720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19721# DIR into the resulting binary and the resulting library dependency is
19722# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19723# library is relocated.
19724hardcode_direct_absolute=$hardcode_direct_absolute
19725
19726# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19727# into the resulting binary.
19728hardcode_minus_L=$hardcode_minus_L
19729
19730# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19731# into the resulting binary.
19732hardcode_shlibpath_var=$hardcode_shlibpath_var
19733
19734# Set to "yes" if building a shared library automatically hardcodes DIR
19735# into the library and all subsequent libraries and executables linked
19736# against it.
19737hardcode_automatic=$hardcode_automatic
19738
19739# Set to yes if linker adds runtime paths of dependent libraries
19740# to runtime path list.
19741inherit_rpath=$inherit_rpath
19742
19743# Whether libtool must link a program against all its dependency libraries.
19744link_all_deplibs=$link_all_deplibs
19745
19746# Fix the shell variable \$srcfile for the compiler.
19747fix_srcfile_path=$lt_fix_srcfile_path
19748
19749# Set to "yes" if exported symbols are required.
19750always_export_symbols=$always_export_symbols
19751
19752# The commands to list exported symbols.
19753export_symbols_cmds=$lt_export_symbols_cmds
19754
19755# Symbols that should not be listed in the preloaded symbols.
19756exclude_expsyms=$lt_exclude_expsyms
19757
19758# Symbols that must always be exported.
19759include_expsyms=$lt_include_expsyms
19760
19761# Commands necessary for linking programs (against libraries) with templates.
19762prelink_cmds=$lt_prelink_cmds
19763
19764# Specify filename containing input files.
19765file_list_spec=$lt_file_list_spec
19766
19767# How to hardcode a shared library path into an executable.
19768hardcode_action=$hardcode_action
19769
19770# The directories searched by this compiler when creating a shared library.
19771compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19772
19773# Dependencies to place before and after the objects being linked to
19774# create a shared library.
19775predep_objects=$lt_predep_objects
19776postdep_objects=$lt_postdep_objects
19777predeps=$lt_predeps
19778postdeps=$lt_postdeps
19779
19780# The library search path used internally by the compiler when linking
19781# a shared library.
19782compiler_lib_search_path=$lt_compiler_lib_search_path
19783
19784# ### END LIBTOOL CONFIG
19785
19786_LT_EOF
19787
19788 case $host_os in
19789 aix3*)
19790 cat <<\_LT_EOF >> "$cfgfile"
19791# AIX sometimes has problems with the GCC collect2 program. For some
19792# reason, if we set the COLLECT_NAMES environment variable, the problems
19793# vanish in a puff of smoke.
19794if test "X${COLLECT_NAMES+set}" != Xset; then
19795 COLLECT_NAMES=
19796 export COLLECT_NAMES
19797fi
19798_LT_EOF
19799 ;;
19800 esac
19801
19802
19803ltmain="$ac_aux_dir/ltmain.sh"
19804
19805
19806 # We use sed instead of cat because bash on DJGPP gets confused if
19807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19808 # text mode, it properly converts lines to CR/LF. This bash problem
19809 # is reportedly fixed, but why not run on old versions too?
19810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19811 || (rm -f "$cfgfile"; exit 1)
19812
19813 case $xsi_shell in
19814 yes)
19815 cat << \_LT_EOF >> "$cfgfile"
19816
19817# func_dirname file append nondir_replacement
19818# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19819# otherwise set result to NONDIR_REPLACEMENT.
19820func_dirname ()
19821{
19822 case ${1} in
19823 */*) func_dirname_result="${1%/*}${2}" ;;
19824 * ) func_dirname_result="${3}" ;;
19825 esac
19826}
19827
19828# func_basename file
19829func_basename ()
19830{
19831 func_basename_result="${1##*/}"
19832}
19833
19834# func_dirname_and_basename file append nondir_replacement
19835# perform func_basename and func_dirname in a single function
19836# call:
19837# dirname: Compute the dirname of FILE. If nonempty,
19838# add APPEND to the result, otherwise set result
19839# to NONDIR_REPLACEMENT.
19840# value returned in "$func_dirname_result"
19841# basename: Compute filename of FILE.
19842# value retuned in "$func_basename_result"
19843# Implementation must be kept synchronized with func_dirname
19844# and func_basename. For efficiency, we do not delegate to
19845# those functions but instead duplicate the functionality here.
19846func_dirname_and_basename ()
19847{
19848 case ${1} in
19849 */*) func_dirname_result="${1%/*}${2}" ;;
19850 * ) func_dirname_result="${3}" ;;
19851 esac
19852 func_basename_result="${1##*/}"
19853}
19854
19855# func_stripname prefix suffix name
19856# strip PREFIX and SUFFIX off of NAME.
19857# PREFIX and SUFFIX must not contain globbing or regex special
19858# characters, hashes, percent signs, but SUFFIX may contain a leading
19859# dot (in which case that matches only a dot).
19860func_stripname ()
19861{
19862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19863 # positional parameters, so assign one to ordinary parameter first.
19864 func_stripname_result=${3}
19865 func_stripname_result=${func_stripname_result#"${1}"}
19866 func_stripname_result=${func_stripname_result%"${2}"}
19867}
19868
19869# func_opt_split
19870func_opt_split ()
19871{
19872 func_opt_split_opt=${1%%=*}
19873 func_opt_split_arg=${1#*=}
19874}
19875
19876# func_lo2o object
19877func_lo2o ()
19878{
19879 case ${1} in
19880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19881 *) func_lo2o_result=${1} ;;
19882 esac
19883}
19884
19885# func_xform libobj-or-source
19886func_xform ()
19887{
19888 func_xform_result=${1%.*}.lo
19889}
19890
19891# func_arith arithmetic-term...
19892func_arith ()
19893{
19894 func_arith_result=$(( $* ))
19895}
19896
19897# func_len string
19898# STRING may not start with a hyphen.
19899func_len ()
19900{
19901 func_len_result=${#1}
19902}
19903
19904_LT_EOF
19905 ;;
19906 *) # Bourne compatible functions.
19907 cat << \_LT_EOF >> "$cfgfile"
19908
19909# func_dirname file append nondir_replacement
19910# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19911# otherwise set result to NONDIR_REPLACEMENT.
19912func_dirname ()
19913{
19914 # Extract subdirectory from the argument.
19915 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19916 if test "X$func_dirname_result" = "X${1}"; then
19917 func_dirname_result="${3}"
19918 else
19919 func_dirname_result="$func_dirname_result${2}"
19920 fi
19921}
19922
19923# func_basename file
19924func_basename ()
19925{
19926 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19927}
19928
19929
19930# func_stripname prefix suffix name
19931# strip PREFIX and SUFFIX off of NAME.
19932# PREFIX and SUFFIX must not contain globbing or regex special
19933# characters, hashes, percent signs, but SUFFIX may contain a leading
19934# dot (in which case that matches only a dot).
19935# func_strip_suffix prefix name
19936func_stripname ()
19937{
19938 case ${2} in
19939 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19940 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19941 esac
19942}
19943
19944# sed scripts:
19945my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19946my_sed_long_arg='1s/^-[^=]*=//'
19947
19948# func_opt_split
19949func_opt_split ()
19950{
19951 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19952 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19953}
19954
19955# func_lo2o object
19956func_lo2o ()
19957{
19958 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19959}
19960
19961# func_xform libobj-or-source
19962func_xform ()
19963{
19964 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19965}
19966
19967# func_arith arithmetic-term...
19968func_arith ()
19969{
19970 func_arith_result=`expr "$@"`
19971}
19972
19973# func_len string
19974# STRING may not start with a hyphen.
19975func_len ()
19976{
19977 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19978}
19979
19980_LT_EOF
19981esac
19982
19983case $lt_shell_append in
19984 yes)
19985 cat << \_LT_EOF >> "$cfgfile"
19986
19987# func_append var value
19988# Append VALUE to the end of shell variable VAR.
19989func_append ()
19990{
19991 eval "$1+=\$2"
19992}
19993_LT_EOF
19994 ;;
19995 *)
19996 cat << \_LT_EOF >> "$cfgfile"
19997
19998# func_append var value
19999# Append VALUE to the end of shell variable VAR.
20000func_append ()
20001{
20002 eval "$1=\$$1\$2"
20003}
20004
20005_LT_EOF
20006 ;;
20007 esac
20008
20009
20010 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20011 || (rm -f "$cfgfile"; exit 1)
20012
20013 mv -f "$cfgfile" "$ofile" ||
20014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20015 chmod +x "$ofile"
20016
20017
20018 cat <<_LT_EOF >> "$ofile"
20019
20020# ### BEGIN LIBTOOL TAG CONFIG: CXX
20021
20022# The linker used to build libraries.
20023LD=$lt_LD_CXX
20024
20025# How to create reloadable object files.
20026reload_flag=$lt_reload_flag_CXX
20027reload_cmds=$lt_reload_cmds_CXX
20028
20029# Commands used to build an old-style archive.
20030old_archive_cmds=$lt_old_archive_cmds_CXX
20031
20032# A language specific compiler.
20033CC=$lt_compiler_CXX
20034
20035# Is the compiler the GNU compiler?
20036with_gcc=$GCC_CXX
20037
20038# Compiler flag to turn off builtin functions.
20039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20040
20041# How to pass a linker flag through the compiler.
20042wl=$lt_lt_prog_compiler_wl_CXX
20043
20044# Additional compiler flags for building library objects.
20045pic_flag=$lt_lt_prog_compiler_pic_CXX
20046
20047# Compiler flag to prevent dynamic linking.
20048link_static_flag=$lt_lt_prog_compiler_static_CXX
20049
20050# Does compiler simultaneously support -c and -o options?
20051compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20052
20053# Whether or not to add -lc for building shared libraries.
20054build_libtool_need_lc=$archive_cmds_need_lc_CXX
20055
20056# Whether or not to disallow shared libs when runtime libs are static.
20057allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20058
20059# Compiler flag to allow reflexive dlopens.
20060export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20061
20062# Compiler flag to generate shared objects directly from archives.
20063whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20064
20065# Whether the compiler copes with passing no objects directly.
20066compiler_needs_object=$lt_compiler_needs_object_CXX
20067
20068# Create an old-style archive from a shared archive.
20069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20070
20071# Create a temporary old-style archive to link instead of a shared archive.
20072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20073
20074# Commands used to build a shared archive.
20075archive_cmds=$lt_archive_cmds_CXX
20076archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20077
20078# Commands used to build a loadable module if different from building
20079# a shared archive.
20080module_cmds=$lt_module_cmds_CXX
20081module_expsym_cmds=$lt_module_expsym_cmds_CXX
20082
20083# Whether we are building with GNU ld or not.
20084with_gnu_ld=$lt_with_gnu_ld_CXX
20085
20086# Flag that allows shared libraries with undefined symbols to be built.
20087allow_undefined_flag=$lt_allow_undefined_flag_CXX
20088
20089# Flag that enforces no undefined symbols.
20090no_undefined_flag=$lt_no_undefined_flag_CXX
20091
20092# Flag to hardcode \$libdir into a binary during linking.
20093# This must work even if \$libdir does not exist
20094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20095
20096# If ld is used when linking, flag to hardcode \$libdir into a binary
20097# during linking. This must work even if \$libdir does not exist.
20098hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20099
20100# Whether we need a single "-rpath" flag with a separated argument.
20101hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20102
20103# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20104# DIR into the resulting binary.
20105hardcode_direct=$hardcode_direct_CXX
20106
20107# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20108# DIR into the resulting binary and the resulting library dependency is
20109# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20110# library is relocated.
20111hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20112
20113# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20114# into the resulting binary.
20115hardcode_minus_L=$hardcode_minus_L_CXX
20116
20117# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20118# into the resulting binary.
20119hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20120
20121# Set to "yes" if building a shared library automatically hardcodes DIR
20122# into the library and all subsequent libraries and executables linked
20123# against it.
20124hardcode_automatic=$hardcode_automatic_CXX
20125
20126# Set to yes if linker adds runtime paths of dependent libraries
20127# to runtime path list.
20128inherit_rpath=$inherit_rpath_CXX
20129
20130# Whether libtool must link a program against all its dependency libraries.
20131link_all_deplibs=$link_all_deplibs_CXX
20132
20133# Fix the shell variable \$srcfile for the compiler.
20134fix_srcfile_path=$lt_fix_srcfile_path_CXX
20135
20136# Set to "yes" if exported symbols are required.
20137always_export_symbols=$always_export_symbols_CXX
20138
20139# The commands to list exported symbols.
20140export_symbols_cmds=$lt_export_symbols_cmds_CXX
20141
20142# Symbols that should not be listed in the preloaded symbols.
20143exclude_expsyms=$lt_exclude_expsyms_CXX
20144
20145# Symbols that must always be exported.
20146include_expsyms=$lt_include_expsyms_CXX
20147
20148# Commands necessary for linking programs (against libraries) with templates.
20149prelink_cmds=$lt_prelink_cmds_CXX
20150
20151# Specify filename containing input files.
20152file_list_spec=$lt_file_list_spec_CXX
20153
20154# How to hardcode a shared library path into an executable.
20155hardcode_action=$hardcode_action_CXX
20156
20157# The directories searched by this compiler when creating a shared library.
20158compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20159
20160# Dependencies to place before and after the objects being linked to
20161# create a shared library.
20162predep_objects=$lt_predep_objects_CXX
20163postdep_objects=$lt_postdep_objects_CXX
20164predeps=$lt_predeps_CXX
20165postdeps=$lt_postdeps_CXX
20166
20167# The library search path used internally by the compiler when linking
20168# a shared library.
20169compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20170
20171# ### END LIBTOOL TAG CONFIG: CXX
20172_LT_EOF
20173
20174 ;;
20175 "gstdint.h":C)
20176if test "$GCC" = yes; then
20177 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20178else
20179 echo "/* generated for $CC */" > tmp-stdint.h
20180fi
20181
20182sed 's/^ *//' >> tmp-stdint.h <<EOF
20183
20184 #ifndef GCC_GENERATED_STDINT_H
20185 #define GCC_GENERATED_STDINT_H 1
20186
20187 #include <sys/types.h>
20188EOF
20189
20190if test "$acx_cv_header_stdint" != stdint.h; then
20191 echo "#include <stddef.h>" >> tmp-stdint.h
20192fi
20193if test "$acx_cv_header_stdint" != stddef.h; then
20194 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20195fi
20196
20197sed 's/^ *//' >> tmp-stdint.h <<EOF
20198 /* glibc uses these symbols as guards to prevent redefinitions. */
20199 #ifdef __int8_t_defined
20200 #define _INT8_T
20201 #define _INT16_T
20202 #define _INT32_T
20203 #endif
20204 #ifdef __uint32_t_defined
20205 #define _UINT32_T
20206 #endif
20207
20208EOF
20209
20210# ----------------- done header, emit basic int types -------------
20211if test "$acx_cv_header_stdint" = stddef.h; then
20212 sed 's/^ *//' >> tmp-stdint.h <<EOF
20213
20214 #ifndef _UINT8_T
20215 #define _UINT8_T
20216 #ifndef __uint8_t_defined
20217 #define __uint8_t_defined
20218 #ifndef uint8_t
20219 typedef unsigned $acx_cv_type_int8_t uint8_t;
20220 #endif
20221 #endif
20222 #endif
20223
20224 #ifndef _UINT16_T
20225 #define _UINT16_T
20226 #ifndef __uint16_t_defined
20227 #define __uint16_t_defined
20228 #ifndef uint16_t
20229 typedef unsigned $acx_cv_type_int16_t uint16_t;
20230 #endif
20231 #endif
20232 #endif
20233
20234 #ifndef _UINT32_T
20235 #define _UINT32_T
20236 #ifndef __uint32_t_defined
20237 #define __uint32_t_defined
20238 #ifndef uint32_t
20239 typedef unsigned $acx_cv_type_int32_t uint32_t;
20240 #endif
20241 #endif
20242 #endif
20243
20244 #ifndef _INT8_T
20245 #define _INT8_T
20246 #ifndef __int8_t_defined
20247 #define __int8_t_defined
20248 #ifndef int8_t
20249 typedef $acx_cv_type_int8_t int8_t;
20250 #endif
20251 #endif
20252 #endif
20253
20254 #ifndef _INT16_T
20255 #define _INT16_T
20256 #ifndef __int16_t_defined
20257 #define __int16_t_defined
20258 #ifndef int16_t
20259 typedef $acx_cv_type_int16_t int16_t;
20260 #endif
20261 #endif
20262 #endif
20263
20264 #ifndef _INT32_T
20265 #define _INT32_T
20266 #ifndef __int32_t_defined
20267 #define __int32_t_defined
20268 #ifndef int32_t
20269 typedef $acx_cv_type_int32_t int32_t;
20270 #endif
20271 #endif
20272 #endif
20273EOF
20274elif test "$ac_cv_type_u_int32_t" = yes; then
20275 sed 's/^ *//' >> tmp-stdint.h <<EOF
20276
20277 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20278 #ifndef _INT8_T
20279 #define _INT8_T
20280 #endif
20281 #ifndef _INT16_T
20282 #define _INT16_T
20283 #endif
20284 #ifndef _INT32_T
20285 #define _INT32_T
20286 #endif
20287
20288 #ifndef _UINT8_T
20289 #define _UINT8_T
20290 #ifndef __uint8_t_defined
20291 #define __uint8_t_defined
20292 #ifndef uint8_t
20293 typedef u_int8_t uint8_t;
20294 #endif
20295 #endif
20296 #endif
20297
20298 #ifndef _UINT16_T
20299 #define _UINT16_T
20300 #ifndef __uint16_t_defined
20301 #define __uint16_t_defined
20302 #ifndef uint16_t
20303 typedef u_int16_t uint16_t;
20304 #endif
20305 #endif
20306 #endif
20307
20308 #ifndef _UINT32_T
20309 #define _UINT32_T
20310 #ifndef __uint32_t_defined
20311 #define __uint32_t_defined
20312 #ifndef uint32_t
20313 typedef u_int32_t uint32_t;
20314 #endif
20315 #endif
20316 #endif
20317EOF
20318else
20319 sed 's/^ *//' >> tmp-stdint.h <<EOF
20320
20321 /* Some systems have guard macros to prevent redefinitions, define them. */
20322 #ifndef _INT8_T
20323 #define _INT8_T
20324 #endif
20325 #ifndef _INT16_T
20326 #define _INT16_T
20327 #endif
20328 #ifndef _INT32_T
20329 #define _INT32_T
20330 #endif
20331 #ifndef _UINT8_T
20332 #define _UINT8_T
20333 #endif
20334 #ifndef _UINT16_T
20335 #define _UINT16_T
20336 #endif
20337 #ifndef _UINT32_T
20338 #define _UINT32_T
20339 #endif
20340EOF
20341fi
20342
20343# ------------- done basic int types, emit int64_t types ------------
20344if test "$ac_cv_type_uint64_t" = yes; then
20345 sed 's/^ *//' >> tmp-stdint.h <<EOF
20346
20347 /* system headers have good uint64_t and int64_t */
20348 #ifndef _INT64_T
20349 #define _INT64_T
20350 #endif
20351 #ifndef _UINT64_T
20352 #define _UINT64_T
20353 #endif
20354EOF
20355elif test "$ac_cv_type_u_int64_t" = yes; then
20356 sed 's/^ *//' >> tmp-stdint.h <<EOF
20357
20358 /* system headers have an u_int64_t (and int64_t) */
20359 #ifndef _INT64_T
20360 #define _INT64_T
20361 #endif
20362 #ifndef _UINT64_T
20363 #define _UINT64_T
20364 #ifndef __uint64_t_defined
20365 #define __uint64_t_defined
20366 #ifndef uint64_t
20367 typedef u_int64_t uint64_t;
20368 #endif
20369 #endif
20370 #endif
20371EOF
20372elif test -n "$acx_cv_type_int64_t"; then
20373 sed 's/^ *//' >> tmp-stdint.h <<EOF
20374
20375 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20376 #ifndef _INT64_T
20377 #define _INT64_T
20378 #ifndef int64_t
20379 typedef $acx_cv_type_int64_t int64_t;
20380 #endif
20381 #endif
20382 #ifndef _UINT64_T
20383 #define _UINT64_T
20384 #ifndef __uint64_t_defined
20385 #define __uint64_t_defined
20386 #ifndef uint64_t
20387 typedef unsigned $acx_cv_type_int64_t uint64_t;
20388 #endif
20389 #endif
20390 #endif
20391EOF
20392else
20393 sed 's/^ *//' >> tmp-stdint.h <<EOF
20394
20395 /* some common heuristics for int64_t, using compiler-specific tests */
20396 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20397 #ifndef _INT64_T
20398 #define _INT64_T
20399 #ifndef __int64_t_defined
20400 #ifndef int64_t
20401 typedef long long int64_t;
20402 #endif
20403 #endif
20404 #endif
20405 #ifndef _UINT64_T
20406 #define _UINT64_T
20407 #ifndef uint64_t
20408 typedef unsigned long long uint64_t;
20409 #endif
20410 #endif
20411
20412 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20413 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20414 does not implement __extension__. But that compiler doesn't define
20415 __GNUC_MINOR__. */
20416 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20417 # define __extension__
20418 # endif
20419
20420 # ifndef _INT64_T
20421 # define _INT64_T
20422 # ifndef int64_t
20423 __extension__ typedef long long int64_t;
20424 # endif
20425 # endif
20426 # ifndef _UINT64_T
20427 # define _UINT64_T
20428 # ifndef uint64_t
20429 __extension__ typedef unsigned long long uint64_t;
20430 # endif
20431 # endif
20432
20433 #elif !defined __STRICT_ANSI__
20434 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20435
20436 # ifndef _INT64_T
20437 # define _INT64_T
20438 # ifndef int64_t
20439 typedef __int64 int64_t;
20440 # endif
20441 # endif
20442 # ifndef _UINT64_T
20443 # define _UINT64_T
20444 # ifndef uint64_t
20445 typedef unsigned __int64 uint64_t;
20446 # endif
20447 # endif
20448 # endif /* compiler */
20449
20450 #endif /* ANSI version */
20451EOF
20452fi
20453
20454# ------------- done int64_t types, emit intptr types ------------
20455if test "$ac_cv_type_uintptr_t" != yes; then
20456 sed 's/^ *//' >> tmp-stdint.h <<EOF
20457
20458 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20459 #ifndef __uintptr_t_defined
20460 #ifndef uintptr_t
20461 typedef u$acx_cv_type_intptr_t uintptr_t;
20462 #endif
20463 #endif
20464 #ifndef __intptr_t_defined
20465 #ifndef intptr_t
20466 typedef $acx_cv_type_intptr_t intptr_t;
20467 #endif
20468 #endif
20469EOF
20470fi
20471
20472# ------------- done intptr types, emit int_least types ------------
20473if test "$ac_cv_type_int_least32_t" != yes; then
20474 sed 's/^ *//' >> tmp-stdint.h <<EOF
20475
20476 /* Define int_least types */
20477 typedef int8_t int_least8_t;
20478 typedef int16_t int_least16_t;
20479 typedef int32_t int_least32_t;
20480 #ifdef _INT64_T
20481 typedef int64_t int_least64_t;
20482 #endif
20483
20484 typedef uint8_t uint_least8_t;
20485 typedef uint16_t uint_least16_t;
20486 typedef uint32_t uint_least32_t;
20487 #ifdef _UINT64_T
20488 typedef uint64_t uint_least64_t;
20489 #endif
20490EOF
20491fi
20492
20493# ------------- done intptr types, emit int_fast types ------------
20494if test "$ac_cv_type_int_fast32_t" != yes; then
20495 sed 's/^ *//' >> tmp-stdint.h <<EOF
20496
20497 /* Define int_fast types. short is often slow */
20498 typedef int8_t int_fast8_t;
20499 typedef int int_fast16_t;
20500 typedef int32_t int_fast32_t;
20501 #ifdef _INT64_T
20502 typedef int64_t int_fast64_t;
20503 #endif
20504
20505 typedef uint8_t uint_fast8_t;
20506 typedef unsigned int uint_fast16_t;
20507 typedef uint32_t uint_fast32_t;
20508 #ifdef _UINT64_T
20509 typedef uint64_t uint_fast64_t;
20510 #endif
20511EOF
20512fi
20513
20514if test "$ac_cv_type_uintmax_t" != yes; then
20515 sed 's/^ *//' >> tmp-stdint.h <<EOF
20516
20517 /* Define intmax based on what we found */
20518 #ifndef intmax_t
20519 #ifdef _INT64_T
20520 typedef int64_t intmax_t;
20521 #else
20522 typedef long intmax_t;
20523 #endif
20524 #endif
20525 #ifndef uintmax_t
20526 #ifdef _UINT64_T
20527 typedef uint64_t uintmax_t;
20528 #else
20529 typedef unsigned long uintmax_t;
20530 #endif
20531 #endif
20532EOF
20533fi
20534
20535sed 's/^ *//' >> tmp-stdint.h <<EOF
20536
20537 #endif /* GCC_GENERATED_STDINT_H */
20538EOF
20539
20540if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20541 rm -f tmp-stdint.h
20542else
20543 mv -f tmp-stdint.h gstdint.h
20544fi
20545
20546 ;;
20547
20548 esac
20549done # for ac_tag
20550
20551
20552as_fn_exit 0
20553_ACEOF
20554ac_clean_files=$ac_clean_files_save
20555
20556test $ac_write_fail = 0 ||
20557 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20558
20559
20560# configure is writing to config.log, and then calls config.status.
20561# config.status does its own redirection, appending to config.log.
20562# Unfortunately, on DOS this fails, as config.log is still kept open
20563# by configure, so config.status won't be able to write to it; its
20564# output is simply discarded. So we exec the FD to /dev/null,
20565# effectively closing config.log, so it can be properly (re)opened and
20566# appended to by config.status. When coming back to configure, we
20567# need to make the FD available again.
20568if test "$no_create" != yes; then
20569 ac_cs_success=:
20570 ac_config_status_args=
20571 test "$silent" = yes &&
20572 ac_config_status_args="$ac_config_status_args --quiet"
20573 exec 5>/dev/null
20574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20575 exec 5>>config.log
20576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20577 # would make configure fail if this is the last instruction.
20578 $ac_cs_success || as_fn_exit $?
20579fi
20580if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20582$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20583fi
20584