]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
The type of a string slice is the type of the string being sliced.
[thirdparty/gcc.git] / libquadmath / configure
CommitLineData
1ec601bf
FXC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
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='GCC Quad-precision Math Library'
558PACKAGE_TARNAME='libquadmath'
559PACKAGE_VERSION='0.1'
560PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
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
4c993c44
TB
604GENINSRC_FALSE
605GENINSRC_TRUE
1ec601bf
FXC
606BUILD_LIBQUADMATH_FALSE
607BUILD_LIBQUADMATH_TRUE
608LIBQUAD_USE_SYMVER_SUN_FALSE
609LIBQUAD_USE_SYMVER_SUN_TRUE
610LIBQUAD_USE_SYMVER_GNU_FALSE
611LIBQUAD_USE_SYMVER_GNU_TRUE
612LIBQUAD_USE_SYMVER_FALSE
613LIBQUAD_USE_SYMVER_TRUE
614toolexeclibdir
615toolexecdir
616multi_basedir
617MAINT
618MAINTAINER_MODE_FALSE
619MAINTAINER_MODE_TRUE
620enable_static
621enable_shared
7de6ba7a 622lt_host_flags
1ec601bf
FXC
623CPP
624OTOOL64
625OTOOL
626LIPO
627NMEDIT
628DSYMUTIL
629RANLIB
630AR
631OBJDUMP
632LN_S
633NM
634ac_ct_DUMPBIN
635DUMPBIN
636LD
637FGREP
638EGREP
639GREP
640SED
1ec601bf
FXC
641am__fastdepCC_FALSE
642am__fastdepCC_TRUE
643CCDEPMODE
644AMDEPBACKSLASH
645AMDEP_FALSE
646AMDEP_TRUE
647am__quote
648am__include
649DEPDIR
650OBJEXT
651EXEEXT
652ac_ct_CC
653CPPFLAGS
654LDFLAGS
655CFLAGS
656CC
fabfcf5e 657LIBTOOL
4c993c44
TB
658BUILD_INFO_FALSE
659BUILD_INFO_TRUE
1ec601bf
FXC
660am__untar
661am__tar
662AMTAR
663am__leading_dot
664SET_MAKE
665AWK
666mkdir_p
667MKDIR_P
668INSTALL_STRIP_PROGRAM
669STRIP
670install_sh
671MAKEINFO
672AUTOHEADER
673AUTOMAKE
674AUTOCONF
675ACLOCAL
676VERSION
677PACKAGE
678CYGPATH_W
679am__isrc
680INSTALL_DATA
681INSTALL_SCRIPT
682INSTALL_PROGRAM
fabfcf5e 683target_noncanonical
1ec601bf
FXC
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
1ec601bf
FXC
737enable_version_specific_runtime_libs
738enable_shared
739enable_static
740with_pic
741enable_fast_install
fabfcf5e 742enable_dependency_tracking
1ec601bf
FXC
743with_gnu_ld
744enable_libtool_lock
745enable_maintainer_mode
746enable_multilib
4c993c44 747enable_generated_files_in_srcdir
1ec601bf
FXC
748'
749 ac_precious_vars='build_alias
750host_alias
751target_alias
752CC
753CFLAGS
754LDFLAGS
755LIBS
756CPPFLAGS
757CPP'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101"with_$ac_useropt"
1102"*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information."
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165done
1166
1167if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1170fi
1171
1172if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178fi
1179
1180# Check all directory arguments for consistency.
1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264else
1265 ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352_ACEOF
1353
1354 cat <<\_ACEOF
1355
1356Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360
1361System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4c993c44
TB
1378 --enable-version-specific-runtime-libs
1379 specify that runtime libraries should be installed
1380 in a compiler-specific directory
1ec601bf
FXC
1381 --enable-shared[=PKGS] build shared libraries [default=yes]
1382 --enable-static[=PKGS] build static libraries [default=yes]
1383 --enable-fast-install[=PKGS]
1384 optimize for fast installation [default=yes]
fabfcf5e
KT
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1ec601bf
FXC
1387 --disable-libtool-lock avoid locking (might break parallel builds)
1388 --enable-maintainer-mode enable make rules and dependencies not useful
1389 (and sometimes confusing) to the casual installer
1390 --enable-multilib build many library versions (default)
4c993c44
TB
1391 --enable-generated-files-in-srcdir
1392 put copies of generated files in source dir intended
1393 for creating source tarballs for users without
1394 texinfo bison or flex
1ec601bf
FXC
1395
1396Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416Report bugs to the package provider.
1417_ACEOF
1418ac_status=$?
1419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
1444
1445case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458esac
1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474fi
1475
1476test -n "$ac_init_help" && exit $ac_status
1477if $ac_init_version; then
1478 cat <<\_ACEOF
1479GCC Quad-precision Math Library configure 0.1
1480generated by GNU Autoconf 2.64
1481
1482Copyright (C) 2009 Free Software Foundation, Inc.
1483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
1486 exit
1487fi
1488
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
1492
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
1497{
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
1528
1529} # ac_fn_c_try_compile
1530
1531# ac_fn_c_try_link LINENO
1532# -----------------------
1533# Try to link conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_link ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
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_link") 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_exeext && {
1557 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
1575} # ac_fn_c_try_link
1576
1577# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1578# -------------------------------------------------------
1579# Tests whether HEADER exists and can be compiled using the include files in
1580# INCLUDES, setting the cache variable VAR accordingly.
1581ac_fn_c_check_header_compile ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 $as_echo_n "(cached) " >&6
1588else
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590/* end confdefs.h. */
1591$4
1592#include <$2>
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595 eval "$3=yes"
1596else
1597 eval "$3=no"
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600fi
1601eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603$as_echo "$ac_res" >&6; }
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605
1606} # ac_fn_c_check_header_compile
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639fi
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_try_run LINENO
1646# ----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648# that executables *can* be run.
1649ac_fn_c_try_run ()
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=$ac_status
1680fi
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1684
1685} # ac_fn_c_try_run
1686
1687# ac_fn_c_check_func LINENO FUNC VAR
1688# ----------------------------------
1689# Tests whether FUNC exists, setting the cache variable VAR accordingly
1690ac_fn_c_check_func ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
1695if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1696 $as_echo_n "(cached) " >&6
1697else
fabfcf5e
KT
1698 if test x$gcc_no_link = xyes; then
1699 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1700fi
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1702/* end confdefs.h. */
1703/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1705#define $2 innocuous_$2
1706
1707/* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char $2 (); below.
1709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1710 <limits.h> exists even on freestanding compilers. */
1711
1712#ifdef __STDC__
1713# include <limits.h>
1714#else
1715# include <assert.h>
1716#endif
1717
1718#undef $2
1719
1720/* Override any GCC internal prototype to avoid an error.
1721 Use char because int might match the return type of a GCC
1722 builtin and then its argument prototype would still apply. */
1723#ifdef __cplusplus
1724extern "C"
1725#endif
1726char $2 ();
1727/* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730#if defined __stub_$2 || defined __stub___$2
1731choke me
1732#endif
1733
1734int
1735main ()
1736{
1737return $2 ();
1738 ;
1739 return 0;
1740}
1741_ACEOF
1742if ac_fn_c_try_link "$LINENO"; then :
1743 eval "$3=yes"
1744else
1745 eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext \
1748 conftest$ac_exeext conftest.$ac_ext
1749fi
1750eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752$as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
1755} # ac_fn_c_check_func
1756cat >config.log <<_ACEOF
1757This file contains any messages produced by compilers while
1758running configure, to aid debugging if configure makes a mistake.
1759
1760It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1761generated by GNU Autoconf 2.64. Invocation command line was
1762
1763 $ $0 $@
1764
1765_ACEOF
1766exec 5>>config.log
1767{
1768cat <<_ASUNAME
1769## --------- ##
1770## Platform. ##
1771## --------- ##
1772
1773hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1774uname -m = `(uname -m) 2>/dev/null || echo unknown`
1775uname -r = `(uname -r) 2>/dev/null || echo unknown`
1776uname -s = `(uname -s) 2>/dev/null || echo unknown`
1777uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778
1779/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1780/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781
1782/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1783/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1784/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1785/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1786/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1787/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1788/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1789
1790_ASUNAME
1791
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 $as_echo "PATH: $as_dir"
1798 done
1799IFS=$as_save_IFS
1800
1801} >&5
1802
1803cat >&5 <<_ACEOF
1804
1805
1806## ----------- ##
1807## Core tests. ##
1808## ----------- ##
1809
1810_ACEOF
1811
1812
1813# Keep a trace of the command line.
1814# Strip out --no-create and --no-recursion so they do not pile up.
1815# Strip out --silent because we don't want to record it for future runs.
1816# Also quote any args containing shell meta-characters.
1817# Make two passes to allow for proper duplicate-argument suppression.
1818ac_configure_args=
1819ac_configure_args0=
1820ac_configure_args1=
1821ac_must_keep_next=false
1822for ac_pass in 1 2
1823do
1824 for ac_arg
1825 do
1826 case $ac_arg in
1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1829 | -silent | --silent | --silen | --sile | --sil)
1830 continue ;;
1831 *\'*)
1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 case $ac_pass in
1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1836 2)
1837 as_fn_append ac_configure_args1 " '$ac_arg'"
1838 if test $ac_must_keep_next = true; then
1839 ac_must_keep_next=false # Got value, back to normal.
1840 else
1841 case $ac_arg in
1842 *=* | --config-cache | -C | -disable-* | --disable-* \
1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1845 | -with-* | --with-* | -without-* | --without-* | --x)
1846 case "$ac_configure_args0 " in
1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1848 esac
1849 ;;
1850 -* ) ac_must_keep_next=true ;;
1851 esac
1852 fi
1853 as_fn_append ac_configure_args " '$ac_arg'"
1854 ;;
1855 esac
1856 done
1857done
1858{ ac_configure_args0=; unset ac_configure_args0;}
1859{ ac_configure_args1=; unset ac_configure_args1;}
1860
1861# When interrupted or exit'd, cleanup temporary files, and complete
1862# config.log. We remove comments because anyway the quotes in there
1863# would cause problems or look ugly.
1864# WARNING: Use '\'' to represent an apostrophe within the trap.
1865# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1866trap 'exit_status=$?
1867 # Save into config.log some information that might help in debugging.
1868 {
1869 echo
1870
1871 cat <<\_ASBOX
1872## ---------------- ##
1873## Cache variables. ##
1874## ---------------- ##
1875_ASBOX
1876 echo
1877 # The following way of writing the cache mishandles newlines in values,
1878(
1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in #(
1882 *${as_nl}*)
1883 case $ac_var in #(
1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1886 esac
1887 case $ac_var in #(
1888 _ | IFS | as_nl) ;; #(
1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1890 *) { eval $ac_var=; unset $ac_var;} ;;
1891 esac ;;
1892 esac
1893 done
1894 (set) 2>&1 |
1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1896 *${as_nl}ac_space=\ *)
1897 sed -n \
1898 "s/'\''/'\''\\\\'\'''\''/g;
1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1900 ;; #(
1901 *)
1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1903 ;;
1904 esac |
1905 sort
1906)
1907 echo
1908
1909 cat <<\_ASBOX
1910## ----------------- ##
1911## Output variables. ##
1912## ----------------- ##
1913_ASBOX
1914 echo
1915 for ac_var in $ac_subst_vars
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924
1925 if test -n "$ac_subst_files"; then
1926 cat <<\_ASBOX
1927## ------------------- ##
1928## File substitutions. ##
1929## ------------------- ##
1930_ASBOX
1931 echo
1932 for ac_var in $ac_subst_files
1933 do
1934 eval ac_val=\$$ac_var
1935 case $ac_val in
1936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 esac
1938 $as_echo "$ac_var='\''$ac_val'\''"
1939 done | sort
1940 echo
1941 fi
1942
1943 if test -s confdefs.h; then
1944 cat <<\_ASBOX
1945## ----------- ##
1946## confdefs.h. ##
1947## ----------- ##
1948_ASBOX
1949 echo
1950 cat confdefs.h
1951 echo
1952 fi
1953 test "$ac_signal" != 0 &&
1954 $as_echo "$as_me: caught signal $ac_signal"
1955 $as_echo "$as_me: exit $exit_status"
1956 } >&5
1957 rm -f core *.core core.conftest.* &&
1958 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1959 exit $exit_status
1960' 0
1961for ac_signal in 1 2 13 15; do
1962 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1963done
1964ac_signal=0
1965
1966# confdefs.h avoids OS command line length limits that DEFS can exceed.
1967rm -f -r conftest* confdefs.h
1968
1969$as_echo "/* confdefs.h */" > confdefs.h
1970
1971# Predefined preprocessor variables.
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_NAME "$PACKAGE_NAME"
1975_ACEOF
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979_ACEOF
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_VERSION "$PACKAGE_VERSION"
1983_ACEOF
1984
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_STRING "$PACKAGE_STRING"
1987_ACEOF
1988
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991_ACEOF
1992
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_URL "$PACKAGE_URL"
1995_ACEOF
1996
1997
1998# Let the site file select an alternate cache file if it wants to.
1999# Prefer an explicitly selected file to automatically selected ones.
2000ac_site_file1=NONE
2001ac_site_file2=NONE
2002if test -n "$CONFIG_SITE"; then
2003 ac_site_file1=$CONFIG_SITE
2004elif test "x$prefix" != xNONE; then
2005 ac_site_file1=$prefix/share/config.site
2006 ac_site_file2=$prefix/etc/config.site
2007else
2008 ac_site_file1=$ac_default_prefix/share/config.site
2009 ac_site_file2=$ac_default_prefix/etc/config.site
2010fi
2011for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2012do
2013 test "x$ac_site_file" = xNONE && continue
2014 if test -r "$ac_site_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2016$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2017 sed 's/^/| /' "$ac_site_file" >&5
2018 . "$ac_site_file"
2019 fi
2020done
2021
2022if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special
2024 # files actually), so we avoid doing that.
2025 if test -f "$cache_file"; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027$as_echo "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033else
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035$as_echo "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037fi
2038
2039# Check that the precious variables saved in the cache have kept the same
2040# value.
2041ac_cache_corrupted=false
2042for ac_var in $ac_precious_vars; do
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
2047 case $ac_old_set,$ac_new_set in
2048 set,)
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051 ac_cache_corrupted=: ;;
2052 ,set)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2056 ,);;
2057 *)
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2070 fi
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2075 fi;;
2076 esac
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2079 case $ac_new_val in
2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2082 esac
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086 esac
2087 fi
2088done
2089if $ac_cache_corrupted; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2095fi
2096## -------------------- ##
2097## Main body of script. ##
2098## -------------------- ##
2099
2100ac_ext=c
2101ac_cpp='$CPP $CPPFLAGS'
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
2107
2108
2109
2110ac_config_headers="$ac_config_headers config.h"
2111
2112
2113# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2114#
2115# You will slowly go insane if you do not grok the following fact: when
2116# building this library, the top-level /target/ becomes the library's /host/.
2117#
2118# configure then causes --target to default to --host, exactly like any
2119# other package using autoconf. Therefore, 'target' and 'host' will
2120# always be the same. This makes sense both for native and cross compilers
2121# just think about it for a little while. :-)
2122#
2123# Also, if this library is being configured as part of a cross compiler, the
2124# top-level configure script will pass the "real" host as $with_cross_host.
2125#
2126# Do not delete or change the following two lines. For why, see
2127# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2128ac_aux_dir=
2129for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2130 for ac_t in install-sh install.sh shtool; do
2131 if test -f "$ac_dir/$ac_t"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/$ac_t -c"
2134 break 2
2135 fi
2136 done
2137done
2138if test -z "$ac_aux_dir"; then
2139 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2140fi
2141
2142# These three variables are undocumented and unsupported,
2143# and are intended to be withdrawn in a future Autoconf release.
2144# They can cause serious problems if a builder's source tree is in a directory
2145# whose full name contains unusual characters.
2146ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2147ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2148ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2149
2150
2151# Make sure we can run config.sub.
2152$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2153 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2154
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2156$as_echo_n "checking build system type... " >&6; }
2157if test "${ac_cv_build+set}" = set; then :
2158 $as_echo_n "(cached) " >&6
2159else
2160 ac_build_alias=$build_alias
2161test "x$ac_build_alias" = x &&
2162 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2163test "x$ac_build_alias" = x &&
2164 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2165ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2167
2168fi
2169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2170$as_echo "$ac_cv_build" >&6; }
2171case $ac_cv_build in
2172*-*-*) ;;
2173*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2174esac
2175build=$ac_cv_build
2176ac_save_IFS=$IFS; IFS='-'
2177set x $ac_cv_build
2178shift
2179build_cpu=$1
2180build_vendor=$2
2181shift; shift
2182# Remember, the first character of IFS is used to create $*,
2183# except with old shells:
2184build_os=$*
2185IFS=$ac_save_IFS
2186case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2190$as_echo_n "checking host system type... " >&6; }
2191if test "${ac_cv_host+set}" = set; then :
2192 $as_echo_n "(cached) " >&6
2193else
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2199fi
2200
2201fi
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2203$as_echo "$ac_cv_host" >&6; }
2204case $ac_cv_host in
2205*-*-*) ;;
2206*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2207esac
2208host=$ac_cv_host
2209ac_save_IFS=$IFS; IFS='-'
2210set x $ac_cv_host
2211shift
2212host_cpu=$1
2213host_vendor=$2
2214shift; shift
2215# Remember, the first character of IFS is used to create $*,
2216# except with old shells:
2217host_os=$*
2218IFS=$ac_save_IFS
2219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2223$as_echo_n "checking target system type... " >&6; }
2224if test "${ac_cv_target+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2229else
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2232fi
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2236$as_echo "$ac_cv_target" >&6; }
2237case $ac_cv_target in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2240esac
2241target=$ac_cv_target
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_target
2244shift
2245target_cpu=$1
2246target_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250target_os=$*
2251IFS=$ac_save_IFS
2252case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253
2254
2255# The aliases save the names the user supplied, while $host etc.
2256# will get canonicalized.
2257test -n "$target_alias" &&
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2259 NONENONEs,x,x, &&
2260 program_prefix=${target_alias}-
2261
fabfcf5e
KT
2262 case ${build_alias} in
2263 "") build_noncanonical=${build} ;;
2264 *) build_noncanonical=${build_alias} ;;
2265esac
2266
2267 case ${host_alias} in
2268 "") host_noncanonical=${build_noncanonical} ;;
2269 *) host_noncanonical=${host_alias} ;;
2270esac
2271
2272 case ${target_alias} in
2273 "") target_noncanonical=${host_noncanonical} ;;
2274 *) target_noncanonical=${target_alias} ;;
2275esac
2276
2277
2278
2279
1ec601bf
FXC
2280target_alias=${target_alias-$host_alias}
2281
fabfcf5e 2282
1ec601bf
FXC
2283am__api_version='1.11'
2284
2285# Find a good install program. We prefer a C program (faster),
2286# so one script is as good as another. But avoid the broken or
2287# incompatible versions:
2288# SysV /etc/install, /usr/sbin/install
2289# SunOS /usr/etc/install
2290# IRIX /sbin/install
2291# AIX /bin/install
2292# AmigaOS /C/install, which installs bootblocks on floppy discs
2293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2294# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2296# OS/2's system install, which has a completely different semantic
2297# ./install, which can be erroneously created by make from ./install.sh.
2298# Reject install programs that cannot install multiple files.
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2300$as_echo_n "checking for a BSD-compatible install... " >&6; }
2301if test -z "$INSTALL"; then
2302if test "${ac_cv_path_install+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2304else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 # Account for people who put trailing slashes in PATH elements.
2311case $as_dir/ in #((
2312 ./ | .// | /[cC]/* | \
2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2315 /usr/ucb/* ) ;;
2316 *)
2317 # OSF1 and SCO ODT 3.0 have their own names for install.
2318 # Don't use installbsd from OSF since it installs stuff as root
2319 # by default.
2320 for ac_prog in ginstall scoinst install; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2323 if test $ac_prog = install &&
2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2326 :
2327 elif test $ac_prog = install &&
2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329 # program-specific install script used by HP pwplus--don't use.
2330 :
2331 else
2332 rm -rf conftest.one conftest.two conftest.dir
2333 echo one > conftest.one
2334 echo two > conftest.two
2335 mkdir conftest.dir
2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2337 test -s conftest.one && test -s conftest.two &&
2338 test -s conftest.dir/conftest.one &&
2339 test -s conftest.dir/conftest.two
2340 then
2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2342 break 3
2343 fi
2344 fi
2345 fi
2346 done
2347 done
2348 ;;
2349esac
2350
2351 done
2352IFS=$as_save_IFS
2353
2354rm -rf conftest.one conftest.two conftest.dir
2355
2356fi
2357 if test "${ac_cv_path_install+set}" = set; then
2358 INSTALL=$ac_cv_path_install
2359 else
2360 # As a last resort, use the slow shell script. Don't cache a
2361 # value for INSTALL within a source directory, because that will
2362 # break other packages using the cache if that directory is
2363 # removed, or if the value is a relative name.
2364 INSTALL=$ac_install_sh
2365 fi
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2368$as_echo "$INSTALL" >&6; }
2369
2370# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2371# It thinks the first close brace ends the variable substitution.
2372test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2373
2374test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2375
2376test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2377
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2379$as_echo_n "checking whether build environment is sane... " >&6; }
2380# Just in case
2381sleep 1
2382echo timestamp > conftest.file
2383# Reject unsafe characters in $srcdir or the absolute working directory
2384# name. Accept space and tab only in the latter.
2385am_lf='
2386'
2387case `pwd` in
2388 *[\\\"\#\$\&\'\`$am_lf]*)
2389 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2390esac
2391case $srcdir in
2392 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2393 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2394esac
2395
2396# Do `set' in a subshell so we don't clobber the current shell's
2397# arguments. Must try -L first in case configure is actually a
2398# symlink; some systems play weird games with the mod time of symlinks
2399# (eg FreeBSD returns the mod time of the symlink's containing
2400# directory).
2401if (
2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2403 if test "$*" = "X"; then
2404 # -L didn't work.
2405 set X `ls -t "$srcdir/configure" conftest.file`
2406 fi
2407 rm -f conftest.file
2408 if test "$*" != "X $srcdir/configure conftest.file" \
2409 && test "$*" != "X conftest.file $srcdir/configure"; then
2410
2411 # If neither matched, then we have a broken ls. This can happen
2412 # if, for instance, CONFIG_SHELL is bash and it inherits a
2413 # broken ls alias from the environment. This has actually
2414 # happened. Such a system could not be considered "sane".
2415 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2416alias in your environment" "$LINENO" 5
2417 fi
2418
2419 test "$2" = conftest.file
2420 )
2421then
2422 # Ok.
2423 :
2424else
2425 as_fn_error "newly created file is older than distributed files!
2426Check your system clock" "$LINENO" 5
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2429$as_echo "yes" >&6; }
2430test "$program_prefix" != NONE &&
2431 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432# Use a double $ so make ignores it.
2433test "$program_suffix" != NONE &&
2434 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435# Double any \ or $.
2436# By default was `s,x,x', remove it if useless.
2437ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2439
2440# expand $ac_aux_dir to an absolute path
2441am_aux_dir=`cd $ac_aux_dir && pwd`
2442
2443if test x"${MISSING+set}" != xset; then
2444 case $am_aux_dir in
2445 *\ * | *\ *)
2446 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2447 *)
2448 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2449 esac
2450fi
2451# Use eval to expand $SHELL
2452if eval "$MISSING --run true"; then
2453 am_missing_run="$MISSING --run "
2454else
2455 am_missing_run=
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2457$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2458fi
2459
2460if test x"${install_sh}" != xset; then
2461 case $am_aux_dir in
2462 *\ * | *\ *)
2463 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2464 *)
2465 install_sh="\${SHELL} $am_aux_dir/install-sh"
2466 esac
2467fi
2468
2469# Installed binaries are usually stripped using `strip' when the user
2470# run `make install-strip'. However `strip' might not be the right
2471# tool to use in cross-compilation environments, therefore Automake
2472# will honor the `STRIP' environment variable to overrule this program.
2473if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476set dummy ${ac_tool_prefix}strip; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if test "${ac_cv_prog_STRIP+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2481else
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496done
2497 done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502STRIP=$ac_cv_prog_STRIP
2503if test -n "$STRIP"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2505$as_echo "$STRIP" >&6; }
2506else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512fi
2513if test -z "$ac_cv_prog_STRIP"; then
2514 ac_ct_STRIP=$STRIP
2515 # Extract the first word of "strip", so it can be a program name with args.
2516set dummy strip; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521else
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537 done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543if test -n "$ac_ct_STRIP"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2545$as_echo "$ac_ct_STRIP" >&6; }
2546else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551 if test "x$ac_ct_STRIP" = x; then
2552 STRIP=":"
2553 else
2554 case $cross_compiling:$ac_tool_warned in
2555yes:)
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560 STRIP=$ac_ct_STRIP
2561 fi
2562else
2563 STRIP="$ac_cv_prog_STRIP"
2564fi
2565
2566fi
2567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2570$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2571if test -z "$MKDIR_P"; then
2572 if test "${ac_cv_path_mkdir+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_prog in mkdir gmkdir; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2583 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2584 'mkdir (GNU coreutils) '* | \
2585 'mkdir (coreutils) '* | \
2586 'mkdir (fileutils) '4.1*)
2587 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2588 break 3;;
2589 esac
2590 done
2591 done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 test -d ./--version && rmdir ./--version
2605 MKDIR_P="$ac_install_sh -d"
2606 fi
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2609$as_echo "$MKDIR_P" >&6; }
2610
2611mkdir_p="$MKDIR_P"
2612case $mkdir_p in
2613 [\\/$]* | ?:[\\/]*) ;;
2614 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2615esac
2616
2617for ac_prog in gawk mawk nawk awk
2618do
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620set dummy $ac_prog; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if test "${ac_cv_prog_AWK+set}" = set; then :
2624 $as_echo_n "(cached) " >&6
2625else
2626 if test -n "$AWK"; then
2627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_AWK="$ac_prog"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641 done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646AWK=$ac_cv_prog_AWK
2647if test -n "$AWK"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2649$as_echo "$AWK" >&6; }
2650else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655
2656 test -n "$AWK" && break
2657done
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2660$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2661set x ${MAKE-make}
2662ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2663if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2665else
2666 cat >conftest.make <<\_ACEOF
2667SHELL = /bin/sh
2668all:
2669 @echo '@@@%%%=$(MAKE)=@@@%%%'
2670_ACEOF
2671# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2672case `${MAKE-make} -f conftest.make 2>/dev/null` in
2673 *@@@%%%=?*=@@@%%%*)
2674 eval ac_cv_prog_make_${ac_make}_set=yes;;
2675 *)
2676 eval ac_cv_prog_make_${ac_make}_set=no;;
2677esac
2678rm -f conftest.make
2679fi
2680if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2682$as_echo "yes" >&6; }
2683 SET_MAKE=
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687 SET_MAKE="MAKE=${MAKE-make}"
2688fi
2689
2690rm -rf .tst 2>/dev/null
2691mkdir .tst 2>/dev/null
2692if test -d .tst; then
2693 am__leading_dot=.
2694else
2695 am__leading_dot=_
2696fi
2697rmdir .tst 2>/dev/null
2698
2699if test "`cd $srcdir && pwd`" != "`pwd`"; then
2700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2701 # is not polluted with repeated "-I."
2702 am__isrc=' -I$(srcdir)'
2703 # test to see if srcdir already configured
2704 if test -f $srcdir/config.status; then
2705 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2706 fi
2707fi
2708
2709# test whether we have cygpath
2710if test -z "$CYGPATH_W"; then
2711 if (cygpath --version) >/dev/null 2>/dev/null; then
2712 CYGPATH_W='cygpath -w'
2713 else
2714 CYGPATH_W=echo
2715 fi
2716fi
2717
2718
2719# Define the identity of the package.
2720 PACKAGE='libquadmath'
2721 VERSION='0.1'
2722
2723
2724cat >>confdefs.h <<_ACEOF
2725#define PACKAGE "$PACKAGE"
2726_ACEOF
2727
2728
2729cat >>confdefs.h <<_ACEOF
2730#define VERSION "$VERSION"
2731_ACEOF
2732
2733# Some tools Automake needs.
2734
2735ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736
2737
2738AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739
2740
2741AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742
2743
2744AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745
2746
2747MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2748
2749# We need awk for the "check" target. The system "awk" is bad on
2750# some platforms.
2751# Always define AMTAR for backward compatibility.
2752
2753AMTAR=${AMTAR-"${am_missing_run}tar"}
2754
2755am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2756
2757
2758
2759
2760
2761
fabfcf5e
KT
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2763$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2764# Check whether --enable-version-specific-runtime-libs was given.
2765if test "${enable_version_specific_runtime_libs+set}" = set; then :
2766 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2767 yes) version_specific_libs=yes ;;
2768 no) version_specific_libs=no ;;
2769 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2770 esac
2771else
2772 version_specific_libs=no
2773fi
2774
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2776$as_echo "$version_specific_libs" >&6; }
2777
2778
2779
4c993c44
TB
2780# See if makeinfo has been installed and is modern enough
2781# that we can use it.
2782
2783 # Extract the first word of "makeinfo", so it can be a program name with args.
2784set dummy makeinfo; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 if test -n "$MAKEINFO"; then
2791 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_MAKEINFO="makeinfo"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805 done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810MAKEINFO=$ac_cv_prog_MAKEINFO
2811if test -n "$MAKEINFO"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2813$as_echo "$MAKEINFO" >&6; }
2814else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820 if test -n "$MAKEINFO"; then
2821 # Found it, now check the version.
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
2823$as_echo_n "checking for modern makeinfo... " >&6; }
2824if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826else
2827 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
2828 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2829
2830 case $ac_prog_version in
2831 '') gcc_cv_prog_makeinfo_modern=no;;
2832 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
2833 *) gcc_cv_prog_makeinfo_modern=no;;
2834 esac
2835
2836fi
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
2838$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
2839 else
2840 gcc_cv_prog_makeinfo_modern=no
2841 fi
2842 if test $gcc_cv_prog_makeinfo_modern = no; then
2843 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
2844 fi
2845
2846 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
2847 BUILD_INFO_TRUE=
2848 BUILD_INFO_FALSE='#'
2849else
2850 BUILD_INFO_TRUE='#'
2851 BUILD_INFO_FALSE=
2852fi
2853
2854
2855
fabfcf5e
KT
2856# Configure libtool
2857case `pwd` in
2858 *\ * | *\ *)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2860$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2861esac
2862
2863
2864
2865macro_version='2.2.7a'
2866macro_revision='1.3134'
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880ltmain="$ac_aux_dir/ltmain.sh"
2881
2882# Backslashify metacharacters that are still active within
2883# double-quoted strings.
2884sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2885
2886# Same as above, but do not quote variable references.
2887double_quote_subst='s/\(["`\\]\)/\\\1/g'
2888
2889# Sed substitution to delay expansion of an escaped shell variable in a
2890# double_quote_subst'ed string.
2891delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2892
2893# Sed substitution to delay expansion of an escaped single quote.
2894delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2895
2896# Sed substitution to avoid accidental globbing in evaled expressions
2897no_glob_subst='s/\*/\\\*/g'
2898
2899ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2900ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2901ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2902
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2904$as_echo_n "checking how to print strings... " >&6; }
2905# Test print first, because it will be a builtin if present.
2906if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2907 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2908 ECHO='print -r --'
2909elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2910 ECHO='printf %s\n'
2911else
2912 # Use this function as a fallback that always works.
2913 func_fallback_echo ()
2914 {
2915 eval 'cat <<_LTECHO_EOF
2916$1
2917_LTECHO_EOF'
2918 }
2919 ECHO='func_fallback_echo'
2920fi
2921
2922# func_echo_all arg...
2923# Invoke $ECHO with all args, space-separated.
2924func_echo_all ()
2925{
2926 $ECHO ""
2927}
2928
2929case "$ECHO" in
2930 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2931$as_echo "printf" >&6; } ;;
2932 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2933$as_echo "print -r" >&6; } ;;
2934 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2935$as_echo "cat" >&6; } ;;
2936esac
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951DEPDIR="${am__leading_dot}deps"
2952
2953ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956am_make=${MAKE-make}
2957cat > confinc << 'END'
2958am__doit:
2959 @echo this is the am__doit target
2960.PHONY: am__doit
2961END
2962# If we don't find an include directive, just comment out the code.
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2964$as_echo_n "checking for style of include used by $am_make... " >&6; }
2965am__include="#"
2966am__quote=
2967_am_result=none
2968# First try GNU make style include.
2969echo "include confinc" > confmf
2970# Ignore all kinds of additional output from `make'.
2971case `$am_make -s -f confmf 2> /dev/null` in #(
2972*the\ am__doit\ target*)
2973 am__include=include
2974 am__quote=
2975 _am_result=GNU
2976 ;;
2977esac
2978# Now try BSD make style include.
2979if test "$am__include" = "#"; then
2980 echo '.include "confinc"' > confmf
2981 case `$am_make -s -f confmf 2> /dev/null` in #(
2982 *the\ am__doit\ target*)
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 ;;
2987 esac
2988fi
2989
2990
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2992$as_echo "$_am_result" >&6; }
2993rm -f confinc confmf
2994
2995# Check whether --enable-dependency-tracking was given.
2996if test "${enable_dependency_tracking+set}" = set; then :
2997 enableval=$enable_dependency_tracking;
2998fi
2999
3000if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003fi
3004 if test "x$enable_dependency_tracking" != xno; then
3005 AMDEP_TRUE=
3006 AMDEP_FALSE='#'
3007else
3008 AMDEP_TRUE='#'
3009 AMDEP_FALSE=
3010fi
3011
3012
1ec601bf
FXC
3013ac_ext=c
3014ac_cpp='$CPP $CPPFLAGS'
3015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if test "${ac_cv_prog_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040done
3041 done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$ac_cv_prog_CC"; then
3058 ac_ct_CC=$CC
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060set dummy gcc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081 done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089$as_echo "$ac_ct_CC" >&6; }
3090else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104 CC=$ac_ct_CC
3105 fi
3106else
3107 CC="$ac_cv_prog_CC"
3108fi
3109
3110if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113set dummy ${ac_tool_prefix}cc; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if test "${ac_cv_prog_CC+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133done
3134 done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149 fi
3150fi
3151if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153set dummy cc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162 ac_prog_rejected=no
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3172 continue
3173 fi
3174 ac_cv_prog_CC="cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179 done
3180IFS=$as_save_IFS
3181
3182if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3185 shift
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3190 shift
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 fi
3193fi
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206fi
3207if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232done
3233 done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248 test -n "$CC" && break
3249 done
3250fi
3251if test -z "$CC"; then
3252 ac_ct_CC=$CC
3253 for ac_prog in cl.exe
3254do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276done
3277 done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285$as_echo "$ac_ct_CC" >&6; }
3286else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292 test -n "$ac_ct_CC" && break
3293done
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304 CC=$ac_ct_CC
3305 fi
3306fi
3307
3308fi
3309
3310
3311test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313as_fn_error "no acceptable C compiler found in \$PATH
3314See \`config.log' for more details." "$LINENO" 5; }
3315
3316# Provide some information about the compiler.
3317$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318set X $ac_compile
3319ac_compiler=$2
3320for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329 ac_status=$?
3330 if test -s conftest.err; then
3331 sed '10a\
3332... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3335 rm -f conftest.er1 conftest.err
3336 fi
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339done
3340
3341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h. */
3343
fabfcf5e
KT
3344int
3345main ()
3346{
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352# FIXME: Cleanup?
3353if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3354 (eval $ac_link) 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 gcc_no_link=no
3359else
3360 gcc_no_link=yes
3361fi
3362if test x$gcc_no_link = xyes; then
3363 # Setting cross_compile will disable run tests; it will
3364 # also disable AC_CHECK_FILE but that's generally
3365 # correct if we can't link.
3366 cross_compiling=yes
3367 EXEEXT=
3368else
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h. */
3371
1ec601bf
FXC
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380ac_clean_files_save=$ac_clean_files
3381ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3382# Try to create an executable without -o first, disregard a.out.
3383# It will help us diagnose broken compilers, and finding out an intuition
3384# of exeext.
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3386$as_echo_n "checking for C compiler default output file name... " >&6; }
3387ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388
3389# The possible output files:
3390ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3391
3392ac_rmfiles=
3393for ac_file in $ac_files
3394do
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3398 esac
3399done
3400rm -f $ac_rmfiles
3401
3402if { { ac_try="$ac_link_default"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link_default") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3415# in a Makefile. We should not override ac_cv_exeext if it was cached,
3416# so that the user can short-circuit this test for compilers unknown to
3417# Autoconf.
3418for ac_file in $ac_files ''
3419do
3420 test -f "$ac_file" || continue
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3423 ;;
3424 [ab].out )
3425 # We found the default executable, but exeext='' is most
3426 # certainly right.
3427 break;;
3428 *.* )
3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3430 then :; else
3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 fi
3433 # We set ac_cv_exeext here because the later test for it is not
3434 # safe: cross compilers may not add the suffix if given an `-o'
3435 # argument, so we may need to know it at that point already.
3436 # Even if this section looks crufty: it has the advantage of
3437 # actually working.
3438 break;;
3439 * )
3440 break;;
3441 esac
3442done
3443test "$ac_cv_exeext" = no && ac_cv_exeext=
3444
3445else
3446 ac_file=''
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3449$as_echo "$ac_file" >&6; }
3450if test -z "$ac_file"; then :
3451 $as_echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
3454{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456{ as_fn_set_status 77
3457as_fn_error "C compiler cannot create executables
3458See \`config.log' for more details." "$LINENO" 5; }; }
3459fi
3460ac_exeext=$ac_cv_exeext
3461
3462# Check that the compiler produces executables we can run. If not, either
3463# the compiler is broken, or we cross compile.
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3465$as_echo_n "checking whether the C compiler works... " >&6; }
3466# If not cross compiling, check that we can run a simple program.
3467if test "$cross_compiling" != yes; then
3468 if { ac_try='./$ac_file'
3469 { { case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474$as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; }; then
3479 cross_compiling=no
3480 else
3481 if test "$cross_compiling" = maybe; then
3482 cross_compiling=yes
3483 else
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486as_fn_error "cannot run C compiled programs.
3487If you meant to cross compile, use \`--host'.
3488See \`config.log' for more details." "$LINENO" 5; }
3489 fi
3490 fi
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494
3495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3496ac_clean_files=$ac_clean_files_save
3497# Check that the compiler produces executables we can run. If not, either
3498# the compiler is broken, or we cross compile.
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500$as_echo_n "checking whether we are cross compiling... " >&6; }
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3502$as_echo "$cross_compiling" >&6; }
3503
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505$as_echo_n "checking for suffix of executables... " >&6; }
3506if { { ac_try="$ac_link"
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519# work properly (i.e., refer to `conftest.exe'), while it won't with
3520# `rm'.
3521for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529done
3530else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error "cannot compute suffix of executables: cannot compile and link
3534See \`config.log' for more details." "$LINENO" 5; }
3535fi
3536rm -f conftest$ac_cv_exeext
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538$as_echo "$ac_cv_exeext" >&6; }
3539
3540rm -f conftest.$ac_ext
3541EXEEXT=$ac_cv_exeext
3542ac_exeext=$EXEEXT
fabfcf5e 3543fi
1ec601bf
FXC
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545$as_echo_n "checking for suffix of object files... " >&6; }
3546if test "${ac_cv_objext+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.o conftest.obj
3561if { { ac_try="$ac_compile"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compile") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 for ac_file in conftest.o conftest.obj conftest.*; do
3573 test -f "$ac_file" || continue;
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3577 break;;
3578 esac
3579done
3580else
3581 $as_echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586as_fn_error "cannot compute suffix of object files: cannot compile
3587See \`config.log' for more details." "$LINENO" 5; }
3588fi
3589rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3592$as_echo "$ac_cv_objext" >&6; }
3593OBJEXT=$ac_cv_objext
3594ac_objext=$OBJEXT
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3597if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606#ifndef __GNUC__
3607 choke me
3608#endif
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_compiler_gnu=yes
3616else
3617 ac_compiler_gnu=no
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3625if test $ac_compiler_gnu = yes; then
3626 GCC=yes
3627else
3628 GCC=
3629fi
3630ac_test_CFLAGS=${CFLAGS+set}
3631ac_save_CFLAGS=$CFLAGS
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3633$as_echo_n "checking whether $CC accepts -g... " >&6; }
3634if test "${ac_cv_prog_cc_g+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 ac_save_c_werror_flag=$ac_c_werror_flag
3638 ac_c_werror_flag=yes
3639 ac_cv_prog_cc_g=no
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_g=yes
3654else
3655 CFLAGS=""
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h. */
3658
3659int
3660main ()
3661{
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668
3669else
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h. */
3674
3675int
3676main ()
3677{
3678
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3694$as_echo "$ac_cv_prog_cc_g" >&6; }
3695if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS=$ac_save_CFLAGS
3697elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3699 CFLAGS="-g -O2"
3700 else
3701 CFLAGS="-g"
3702 fi
3703else
3704 if test "$GCC" = yes; then
3705 CFLAGS="-O2"
3706 else
3707 CFLAGS=
3708 fi
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3712if test "${ac_cv_prog_cc_c89+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714else
3715 ac_cv_prog_cc_c89=no
3716ac_save_CC=$CC
3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719#include <stdarg.h>
3720#include <stdio.h>
3721#include <sys/types.h>
3722#include <sys/stat.h>
3723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3724struct buf { int x; };
3725FILE * (*rcsopen) (struct buf *, struct stat *, int);
3726static char *e (p, i)
3727 char **p;
3728 int i;
3729{
3730 return p[i];
3731}
3732static char *f (char * (*g) (char **, int), char **p, ...)
3733{
3734 char *s;
3735 va_list v;
3736 va_start (v,p);
3737 s = g (p, va_arg (v,int));
3738 va_end (v);
3739 return s;
3740}
3741
3742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3743 function prototypes and stuff, but not '\xHH' hex character constants.
3744 These don't provoke an error unfortunately, instead are silently treated
3745 as 'x'. The following induces an error, until -std is added to get
3746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3747 array size at least. It's necessary to write '\x00'==0 to get something
3748 that's true only with -std. */
3749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3750
3751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3752 inside strings and character constants. */
3753#define FOO(x) 'x'
3754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3755
3756int test (int i, double x);
3757struct s1 {int (*f) (int a);};
3758struct s2 {int (*f) (double a);};
3759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760int argc;
3761char **argv;
3762int
3763main ()
3764{
3765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3772do
3773 CC="$ac_save_CC $ac_arg"
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_c89=$ac_arg
3776fi
3777rm -f core conftest.err conftest.$ac_objext
3778 test "x$ac_cv_prog_cc_c89" != "xno" && break
3779done
3780rm -f conftest.$ac_ext
3781CC=$ac_save_CC
3782
3783fi
3784# AC_CACHE_VAL
3785case "x$ac_cv_prog_cc_c89" in
3786 x)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3788$as_echo "none needed" >&6; } ;;
3789 xno)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3791$as_echo "unsupported" >&6; } ;;
3792 *)
3793 CC="$CC $ac_cv_prog_cc_c89"
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3795$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3796esac
3797if test "x$ac_cv_prog_cc_c89" != xno; then :
3798
3799fi
3800
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf 3806
fabfcf5e 3807depcc="$CC" am_compiler_list=
1ec601bf 3808
fabfcf5e
KT
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3810$as_echo_n "checking dependency style of $depcc... " >&6; }
3811if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813else
3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3815 # We make a subdir and do the tests there. Otherwise we can end up
3816 # making bogus files that we don't know about and never remove. For
3817 # instance it was reported that on HP-UX the gcc test will end up
3818 # making a dummy file named `D' -- because `-MD' means `put the output
3819 # in D'.
3820 mkdir conftest.dir
3821 # Copy depcomp to subdir because otherwise we won't find it if we're
3822 # using a relative directory.
3823 cp "$am_depcomp" conftest.dir
3824 cd conftest.dir
3825 # We will build objects and dependencies in a subdirectory because
3826 # it helps to detect inapplicable dependency modes. For instance
3827 # both Tru64's cc and ICC support -MD to output dependencies as a
3828 # side effect of compilation, but ICC will put the dependencies in
3829 # the current directory while Tru64 will put them in the object
3830 # directory.
3831 mkdir sub
1ec601bf
FXC
3832
3833 am_cv_CC_dependencies_compiler_type=none
3834 if test "$am_compiler_list" = ""; then
3835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3836 fi
3837 am__universal=false
3838 case " $depcc " in #(
3839 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3840 esac
3841
3842 for depmode in $am_compiler_list; do
3843 # Setup a source with many dependencies, because some compilers
3844 # like to wrap large dependency lists on column 80 (with \), and
3845 # we should not choose a depcomp mode which is confused by this.
3846 #
3847 # We need to recreate these files for each test, as the compiler may
3848 # overwrite some of them when testing with obscure command lines.
3849 # This happens at least with the AIX C compiler.
3850 : > sub/conftest.c
3851 for i in 1 2 3 4 5 6; do
3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3854 # Solaris 8's {/usr,}/bin/sh.
3855 touch sub/conftst$i.h
3856 done
3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3858
3859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860 # mode. It turns out that the SunPro C++ compiler does not properly
3861 # handle `-M -o', and we need to detect this. Also, some Intel
3862 # versions had trouble with output in subdirs
3863 am__obj=sub/conftest.${OBJEXT-o}
3864 am__minus_obj="-o $am__obj"
3865 case $depmode in
3866 gcc)
3867 # This depmode causes a compiler race in universal mode.
3868 test "$am__universal" = false || continue
3869 ;;
3870 nosideeffect)
3871 # after this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested
3873 if test "x$enable_dependency_tracking" = xyes; then
3874 continue
3875 else
3876 break
3877 fi
3878 ;;
3879 msvisualcpp | msvcmsys)
3880 # This compiler won't grok `-c -o', but also, the minuso test has
3881 # not run yet. These depmodes are late enough in the game, and
3882 # so weak that their functioning should not be impacted.
3883 am__obj=conftest.${OBJEXT-o}
3884 am__minus_obj=
3885 ;;
3886 none) break ;;
3887 esac
3888 if depmode=$depmode \
3889 source=sub/conftest.c object=$am__obj \
3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3892 >/dev/null 2>conftest.err &&
3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3897 # icc doesn't choke on unknown options, it will just issue warnings
3898 # or remarks (even with -Werror). So we grep stderr for any message
3899 # that says an option was ignored or not supported.
3900 # When given -MP, icc 7.0 and 7.1 complain thusly:
3901 # icc: Command line warning: ignoring option '-M'; no argument required
3902 # The diagnosis changed in icc 8.0:
3903 # icc: Command line remark: option '-MP' not supported
3904 if (grep 'ignoring option' conftest.err ||
3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3906 am_cv_CC_dependencies_compiler_type=$depmode
3907 break
3908 fi
3909 fi
3910 done
3911
3912 cd ..
3913 rm -rf conftest.dir
3914else
3915 am_cv_CC_dependencies_compiler_type=none
3916fi
3917
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3920$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922
3923 if
3924 test "x$enable_dependency_tracking" != xno \
3925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3926 am__fastdepCC_TRUE=
3927 am__fastdepCC_FALSE='#'
3928else
3929 am__fastdepCC_TRUE='#'
3930 am__fastdepCC_FALSE=
3931fi
3932
3933
fabfcf5e
KT
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3935$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3936if test "${ac_cv_path_SED+set}" = set; then :
1ec601bf
FXC
3937 $as_echo_n "(cached) " >&6
3938else
fabfcf5e
KT
3939 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3940 for ac_i in 1 2 3 4 5 6 7; do
3941 ac_script="$ac_script$as_nl$ac_script"
3942 done
3943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3944 { ac_script=; unset ac_script;}
3945 if test -z "$SED"; then
3946 ac_path_SED_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in sed gsed; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3957# Check for GNU ac_path_SED and select it if it is found.
3958 # Check for GNU $ac_path_SED
3959case `"$ac_path_SED" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3962*)
3963 ac_count=0
3964 $as_echo_n 0123456789 >"conftest.in"
3965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 $as_echo '' >> "conftest.nl"
3971 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 as_fn_arith $ac_count + 1 && ac_count=$as_val
3974 if test $ac_count -gt ${ac_path_SED_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_SED="$ac_path_SED"
3977 ac_path_SED_max=$ac_count
1ec601bf 3978 fi
fabfcf5e
KT
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
3984
3985 $ac_path_SED_found && break 3
3986 done
3987 done
3988 done
3989IFS=$as_save_IFS
3990 if test -z "$ac_cv_path_SED"; then
3991 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1ec601bf
FXC
3992 fi
3993else
fabfcf5e 3994 ac_cv_path_SED=$SED
1ec601bf 3995fi
1ec601bf
FXC
3996
3997fi
fabfcf5e
KT
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3999$as_echo "$ac_cv_path_SED" >&6; }
4000 SED="$ac_cv_path_SED"
4001 rm -f conftest.sed
1ec601bf 4002
fabfcf5e
KT
4003test -z "$SED" && SED=sed
4004Xsed="$SED -e 1s/^X//"
1ec601bf
FXC
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4017$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4018if test "${ac_cv_path_GREP+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020else
4021 if test -z "$GREP"; then
4022 ac_path_GREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in grep ggrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033# Check for GNU ac_path_GREP and select it if it is found.
4034 # Check for GNU $ac_path_GREP
4035case `"$ac_path_GREP" --version 2>&1` in
4036*GNU*)
4037 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4038*)
4039 ac_count=0
4040 $as_echo_n 0123456789 >"conftest.in"
4041 while :
4042 do
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 $as_echo 'GREP' >> "conftest.nl"
4047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 as_fn_arith $ac_count + 1 && ac_count=$as_val
4050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_GREP="$ac_path_GREP"
4053 ac_path_GREP_max=$ac_count
4054 fi
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059esac
4060
4061 $ac_path_GREP_found && break 3
4062 done
4063 done
4064 done
4065IFS=$as_save_IFS
4066 if test -z "$ac_cv_path_GREP"; then
4067 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068 fi
4069else
4070 ac_cv_path_GREP=$GREP
4071fi
4072
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4075$as_echo "$ac_cv_path_GREP" >&6; }
4076 GREP="$ac_cv_path_GREP"
4077
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4080$as_echo_n "checking for egrep... " >&6; }
4081if test "${ac_cv_path_EGREP+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083else
4084 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4085 then ac_cv_path_EGREP="$GREP -E"
4086 else
4087 if test -z "$EGREP"; then
4088 ac_path_EGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in egrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099# Check for GNU ac_path_EGREP and select it if it is found.
4100 # Check for GNU $ac_path_EGREP
4101case `"$ac_path_EGREP" --version 2>&1` in
4102*GNU*)
4103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104*)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'EGREP' >> "conftest.nl"
4113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_EGREP="$ac_path_EGREP"
4119 ac_path_EGREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125esac
4126
4127 $ac_path_EGREP_found && break 3
4128 done
4129 done
4130 done
4131IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_EGREP"; then
4133 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134 fi
4135else
4136 ac_cv_path_EGREP=$EGREP
4137fi
4138
4139 fi
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4142$as_echo "$ac_cv_path_EGREP" >&6; }
4143 EGREP="$ac_cv_path_EGREP"
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4147$as_echo_n "checking for fgrep... " >&6; }
4148if test "${ac_cv_path_FGREP+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150else
4151 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4152 then ac_cv_path_FGREP="$GREP -F"
4153 else
4154 if test -z "$FGREP"; then
4155 ac_path_FGREP_found=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_prog in fgrep; do
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4165 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4166# Check for GNU ac_path_FGREP and select it if it is found.
4167 # Check for GNU $ac_path_FGREP
4168case `"$ac_path_FGREP" --version 2>&1` in
4169*GNU*)
4170 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4171*)
4172 ac_count=0
4173 $as_echo_n 0123456789 >"conftest.in"
4174 while :
4175 do
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'FGREP' >> "conftest.nl"
4180 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182 as_fn_arith $ac_count + 1 && ac_count=$as_val
4183 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_FGREP="$ac_path_FGREP"
4186 ac_path_FGREP_max=$ac_count
4187 fi
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4190 done
4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192esac
4193
4194 $ac_path_FGREP_found && break 3
4195 done
4196 done
4197 done
4198IFS=$as_save_IFS
4199 if test -z "$ac_cv_path_FGREP"; then
4200 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 fi
4202else
4203 ac_cv_path_FGREP=$FGREP
4204fi
4205
4206 fi
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4209$as_echo "$ac_cv_path_FGREP" >&6; }
4210 FGREP="$ac_cv_path_FGREP"
4211
4212
4213test -z "$GREP" && GREP=grep
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233# Check whether --with-gnu-ld was given.
4234if test "${with_gnu_ld+set}" = set; then :
4235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4236else
4237 with_gnu_ld=no
4238fi
4239
4240ac_prog=ld
4241if test "$GCC" = yes; then
4242 # Check if gcc -print-prog-name=ld gives a path.
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4244$as_echo_n "checking for ld used by $CC... " >&6; }
4245 case $host in
4246 *-*-mingw*)
4247 # gcc leaves a trailing carriage return which upsets mingw
4248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4249 *)
4250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4251 esac
4252 case $ac_prog in
4253 # Accept absolute paths.
4254 [\\/]* | ?:[\\/]*)
4255 re_direlt='/[^/][^/]*/\.\./'
4256 # Canonicalize the pathname of ld
4257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4260 done
4261 test -z "$LD" && LD="$ac_prog"
4262 ;;
4263 "")
4264 # If it fails, then pretend we aren't using GCC.
4265 ac_prog=ld
4266 ;;
4267 *)
4268 # If it is relative, then search for the first ld in PATH.
4269 with_gnu_ld=unknown
4270 ;;
4271 esac
4272elif test "$with_gnu_ld" = yes; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4274$as_echo_n "checking for GNU ld... " >&6; }
4275else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4277$as_echo_n "checking for non-GNU ld... " >&6; }
4278fi
4279if test "${lt_cv_path_LD+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281else
4282 if test -z "$LD"; then
4283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4284 for ac_dir in $PATH; do
4285 IFS="$lt_save_ifs"
4286 test -z "$ac_dir" && ac_dir=.
4287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4288 lt_cv_path_LD="$ac_dir/$ac_prog"
4289 # Check to see if the program is GNU ld. I'd rather use --version,
4290 # but apparently some variants of GNU ld only accept -v.
4291 # Break only if it was the GNU/non-GNU ld that we prefer.
4292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4293 *GNU* | *'with BFD'*)
4294 test "$with_gnu_ld" != no && break
4295 ;;
4296 *)
4297 test "$with_gnu_ld" != yes && break
4298 ;;
4299 esac
4300 fi
4301 done
4302 IFS="$lt_save_ifs"
4303else
4304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4305fi
4306fi
4307
4308LD="$lt_cv_path_LD"
4309if test -n "$LD"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4311$as_echo "$LD" >&6; }
4312else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
4315fi
4316test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4318$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4319if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4323case `$LD -v 2>&1 </dev/null` in
4324*GNU* | *'with BFD'*)
4325 lt_cv_prog_gnu_ld=yes
4326 ;;
4327*)
4328 lt_cv_prog_gnu_ld=no
4329 ;;
4330esac
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4333$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4334with_gnu_ld=$lt_cv_prog_gnu_ld
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4345$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4346if test "${lt_cv_path_NM+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 if test -n "$NM"; then
4350 # Let the user override the test.
4351 lt_cv_path_NM="$NM"
4352else
4353 lt_nm_to_check="${ac_tool_prefix}nm"
4354 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4355 lt_nm_to_check="$lt_nm_to_check nm"
4356 fi
4357 for lt_tmp_nm in $lt_nm_to_check; do
4358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4359 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4360 IFS="$lt_save_ifs"
4361 test -z "$ac_dir" && ac_dir=.
4362 tmp_nm="$ac_dir/$lt_tmp_nm"
4363 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4364 # Check to see if the nm accepts a BSD-compat flag.
4365 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4366 # nm: unknown option "B" ignored
4367 # Tru64's nm complains that /dev/null is an invalid object file
4368 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4369 */dev/null* | *'Invalid file or object type'*)
4370 lt_cv_path_NM="$tmp_nm -B"
4371 break
4372 ;;
4373 *)
4374 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4375 */dev/null*)
4376 lt_cv_path_NM="$tmp_nm -p"
4377 break
4378 ;;
4379 *)
4380 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4381 continue # so that we can try to find one that supports BSD flags
4382 ;;
4383 esac
4384 ;;
4385 esac
4386 fi
4387 done
4388 IFS="$lt_save_ifs"
4389 done
4390 : ${lt_cv_path_NM=no}
4391fi
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4394$as_echo "$lt_cv_path_NM" >&6; }
4395if test "$lt_cv_path_NM" != "no"; then
4396 NM="$lt_cv_path_NM"
4397else
4398 # Didn't find any BSD compatible name lister, look for dumpbin.
4399 if test -n "$DUMPBIN"; then :
4400 # Let the user override the test.
4401 else
4402 if test -n "$ac_tool_prefix"; then
4403 for ac_prog in dumpbin "link -dump"
4404 do
4405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4406set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 if test -n "$DUMPBIN"; then
4413 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427 done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432DUMPBIN=$ac_cv_prog_DUMPBIN
4433if test -n "$DUMPBIN"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4435$as_echo "$DUMPBIN" >&6; }
4436else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439fi
4440
4441
4442 test -n "$DUMPBIN" && break
4443 done
4444fi
4445if test -z "$DUMPBIN"; then
4446 ac_ct_DUMPBIN=$DUMPBIN
4447 for ac_prog in dumpbin "link -dump"
4448do
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450set dummy $ac_prog; ac_word=$2
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455else
4456 if test -n "$ac_ct_DUMPBIN"; then
4457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471 done
4472IFS=$as_save_IFS
4473
4474fi
4475fi
4476ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4477if test -n "$ac_ct_DUMPBIN"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4479$as_echo "$ac_ct_DUMPBIN" >&6; }
4480else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483fi
4484
4485
4486 test -n "$ac_ct_DUMPBIN" && break
4487done
4488
4489 if test "x$ac_ct_DUMPBIN" = x; then
4490 DUMPBIN=":"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493yes:)
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496ac_tool_warned=yes ;;
4497esac
4498 DUMPBIN=$ac_ct_DUMPBIN
4499 fi
4500fi
4501
4502 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4503 *COFF*)
4504 DUMPBIN="$DUMPBIN -symbols"
4505 ;;
4506 *)
4507 DUMPBIN=:
4508 ;;
4509 esac
4510 fi
4511
4512 if test "$DUMPBIN" != ":"; then
4513 NM="$DUMPBIN"
4514 fi
4515fi
4516test -z "$NM" && NM=nm
4517
4518
4519
4520
4521
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4524$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4525if test "${lt_cv_nm_interface+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527else
4528 lt_cv_nm_interface="BSD nm"
4529 echo "int some_variable = 0;" > conftest.$ac_ext
4530 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4531 (eval "$ac_compile" 2>conftest.err)
4532 cat conftest.err >&5
4533 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4534 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4535 cat conftest.err >&5
4536 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4537 cat conftest.out >&5
4538 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4539 lt_cv_nm_interface="MS dumpbin"
4540 fi
4541 rm -f conftest*
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4544$as_echo "$lt_cv_nm_interface" >&6; }
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4547$as_echo_n "checking whether ln -s works... " >&6; }
4548LN_S=$as_ln_s
4549if test "$LN_S" = "ln -s"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551$as_echo "yes" >&6; }
4552else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4554$as_echo "no, using $LN_S" >&6; }
4555fi
4556
4557# find the maximum length of command line arguments
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4559$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4560if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562else
4563 i=0
4564 teststring="ABCD"
4565
4566 case $build_os in
4567 msdosdjgpp*)
4568 # On DJGPP, this test can blow up pretty badly due to problems in libc
4569 # (any single argument exceeding 2000 bytes causes a buffer overrun
4570 # during glob expansion). Even if it were fixed, the result of this
4571 # check would be larger than it should be.
4572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4573 ;;
4574
4575 gnu*)
4576 # Under GNU Hurd, this test is not required because there is
4577 # no limit to the length of command line arguments.
4578 # Libtool will interpret -1 as no limit whatsoever
4579 lt_cv_sys_max_cmd_len=-1;
4580 ;;
4581
4582 cygwin* | mingw* | cegcc*)
4583 # On Win9x/ME, this test blows up -- it succeeds, but takes
4584 # about 5 minutes as the teststring grows exponentially.
4585 # Worse, since 9x/ME are not pre-emptively multitasking,
4586 # you end up with a "frozen" computer, even though with patience
4587 # the test eventually succeeds (with a max line length of 256k).
4588 # Instead, let's just punt: use the minimum linelength reported by
4589 # all of the supported platforms: 8192 (on NT/2K/XP).
4590 lt_cv_sys_max_cmd_len=8192;
4591 ;;
4592
4593 mint*)
4594 # On MiNT this can take a long time and run out of memory.
4595 lt_cv_sys_max_cmd_len=8192;
4596 ;;
4597
4598 amigaos*)
4599 # On AmigaOS with pdksh, this test takes hours, literally.
4600 # So we just punt and use a minimum line length of 8192.
4601 lt_cv_sys_max_cmd_len=8192;
4602 ;;
4603
4604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4605 # This has been around since 386BSD, at least. Likely further.
4606 if test -x /sbin/sysctl; then
4607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4608 elif test -x /usr/sbin/sysctl; then
4609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4610 else
4611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4612 fi
4613 # And add a safety zone
4614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4616 ;;
4617
4618 interix*)
4619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4620 lt_cv_sys_max_cmd_len=196608
4621 ;;
4622
4623 osf*)
4624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4626 # nice to cause kernel panics so lets avoid the loop below.
4627 # First set a reasonable default.
4628 lt_cv_sys_max_cmd_len=16384
4629 #
4630 if test -x /sbin/sysconfig; then
4631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4632 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4633 esac
4634 fi
4635 ;;
4636 sco3.2v5*)
4637 lt_cv_sys_max_cmd_len=102400
4638 ;;
4639 sysv5* | sco5v6* | sysv4.2uw2*)
4640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4641 if test -n "$kargmax"; then
4642 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4643 else
4644 lt_cv_sys_max_cmd_len=32768
4645 fi
4646 ;;
4647 *)
4648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4649 if test -n "$lt_cv_sys_max_cmd_len"; then
4650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4652 else
4653 # Make teststring a little bigger before we do anything with it.
4654 # a 1K string should be a reasonable start.
4655 for i in 1 2 3 4 5 6 7 8 ; do
4656 teststring=$teststring$teststring
4657 done
4658 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4659 # If test is not a shell built-in, we'll probably end up computing a
4660 # maximum length that is only half of the actual maximum length, but
4661 # we can't tell.
4662 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4663 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4664 test $i != 17 # 1/2 MB should be enough
4665 do
4666 i=`expr $i + 1`
4667 teststring=$teststring$teststring
4668 done
4669 # Only check the string length outside the loop.
4670 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4671 teststring=
4672 # Add a significant safety factor because C++ compilers can tack on
4673 # massive amounts of additional arguments before passing them to the
4674 # linker. It appears as though 1/2 is a usable value.
4675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4676 fi
4677 ;;
4678 esac
4679
4680fi
4681
4682if test -n $lt_cv_sys_max_cmd_len ; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4684$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4685else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4687$as_echo "none" >&6; }
4688fi
4689max_cmd_len=$lt_cv_sys_max_cmd_len
4690
4691
4692
4693
4694
4695
4696: ${CP="cp -f"}
4697: ${MV="mv -f"}
4698: ${RM="rm -f"}
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4701$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4702# Try some XSI features
4703xsi_shell=no
4704( _lt_dummy="a/b/c"
4705 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4706 = c,a/b,, \
4707 && eval 'test $(( 1 + 1 )) -eq 2 \
4708 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4709 && xsi_shell=yes
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4711$as_echo "$xsi_shell" >&6; }
4712
4713
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4715$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4716lt_shell_append=no
4717( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4718 >/dev/null 2>&1 \
4719 && lt_shell_append=yes
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4721$as_echo "$lt_shell_append" >&6; }
4722
4723
4724if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4725 lt_unset=unset
4726else
4727 lt_unset=false
4728fi
4729
4730
4731
4732
4733
4734# test EBCDIC or ASCII
4735case `echo X|tr X '\101'` in
4736 A) # ASCII based system
4737 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4738 lt_SP2NL='tr \040 \012'
4739 lt_NL2SP='tr \015\012 \040\040'
4740 ;;
4741 *) # EBCDIC based system
4742 lt_SP2NL='tr \100 \n'
4743 lt_NL2SP='tr \r\n \100\100'
4744 ;;
4745esac
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4756$as_echo_n "checking for $LD option to reload object files... " >&6; }
4757if test "${lt_cv_ld_reload_flag+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759else
4760 lt_cv_ld_reload_flag='-r'
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4763$as_echo "$lt_cv_ld_reload_flag" >&6; }
4764reload_flag=$lt_cv_ld_reload_flag
4765case $reload_flag in
4766"" | " "*) ;;
4767*) reload_flag=" $reload_flag" ;;
4768esac
4769reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770case $host_os in
4771 darwin*)
4772 if test "$GCC" = yes; then
4773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4774 else
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776 fi
4777 ;;
4778esac
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788if test -n "$ac_tool_prefix"; then
4789 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4790set dummy ${ac_tool_prefix}objdump; ac_word=$2
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792$as_echo_n "checking for $ac_word... " >&6; }
4793if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795else
4796 if test -n "$OBJDUMP"; then
4797 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4798else
4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4809 fi
4810done
4811 done
4812IFS=$as_save_IFS
4813
4814fi
4815fi
4816OBJDUMP=$ac_cv_prog_OBJDUMP
4817if test -n "$OBJDUMP"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4819$as_echo "$OBJDUMP" >&6; }
4820else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
4823fi
4824
4825
4826fi
4827if test -z "$ac_cv_prog_OBJDUMP"; then
4828 ac_ct_OBJDUMP=$OBJDUMP
4829 # Extract the first word of "objdump", so it can be a program name with args.
4830set dummy objdump; ac_word=$2
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832$as_echo_n "checking for $ac_word... " >&6; }
4833if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835else
4836 if test -n "$ac_ct_OBJDUMP"; then
4837 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4838else
4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850done
4851 done
4852IFS=$as_save_IFS
4853
4854fi
4855fi
4856ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4857if test -n "$ac_ct_OBJDUMP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4859$as_echo "$ac_ct_OBJDUMP" >&6; }
4860else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862$as_echo "no" >&6; }
4863fi
4864
4865 if test "x$ac_ct_OBJDUMP" = x; then
4866 OBJDUMP="false"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869yes:)
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872ac_tool_warned=yes ;;
4873esac
4874 OBJDUMP=$ac_ct_OBJDUMP
4875 fi
4876else
4877 OBJDUMP="$ac_cv_prog_OBJDUMP"
4878fi
4879
4880test -z "$OBJDUMP" && OBJDUMP=objdump
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4891$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4892if test "${lt_cv_deplibs_check_method+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894else
4895 lt_cv_file_magic_cmd='$MAGIC_CMD'
4896lt_cv_file_magic_test_file=
4897lt_cv_deplibs_check_method='unknown'
4898# Need to set the preceding variable on all platforms that support
4899# interlibrary dependencies.
4900# 'none' -- dependencies not supported.
4901# `unknown' -- same as none, but documents that we really don't know.
4902# 'pass_all' -- all dependencies passed with no checks.
4903# 'test_compile' -- check by making test program.
4904# 'file_magic [[regex]]' -- check by looking for files in library path
4905# which responds to the $file_magic_cmd with a given extended regex.
4906# If you have `file' or equivalent on your system and you're not sure
4907# whether `pass_all' will *always* work, you probably want this one.
4908
4909case $host_os in
4910aix[4-9]*)
4911 lt_cv_deplibs_check_method=pass_all
4912 ;;
4913
4914beos*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918bsdi[45]*)
4919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4920 lt_cv_file_magic_cmd='/usr/bin/file -L'
4921 lt_cv_file_magic_test_file=/shlib/libc.so
4922 ;;
4923
4924cygwin*)
4925 # func_win32_libid is a shell function defined in ltmain.sh
4926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4927 lt_cv_file_magic_cmd='func_win32_libid'
4928 ;;
4929
4930mingw* | pw32*)
4931 # Base MSYS/MinGW do not provide the 'file' command needed by
4932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4933 # unless we find 'file', for example because we are cross-compiling.
4934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4937 lt_cv_file_magic_cmd='func_win32_libid'
4938 else
4939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4940 lt_cv_file_magic_cmd='$OBJDUMP -f'
4941 fi
4942 ;;
4943
4944cegcc*)
4945 # use the weaker test based on 'objdump'. See mingw*.
4946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4947 lt_cv_file_magic_cmd='$OBJDUMP -f'
4948 ;;
4949
4950darwin* | rhapsody*)
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
4953
4954freebsd* | dragonfly*)
4955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4956 case $host_cpu in
4957 i*86 )
4958 # Not sure whether the presence of OpenBSD here was a mistake.
4959 # Let's accept both of them until this is cleared up.
4960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4961 lt_cv_file_magic_cmd=/usr/bin/file
4962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4963 ;;
4964 esac
4965 else
4966 lt_cv_deplibs_check_method=pass_all
4967 fi
4968 ;;
4969
4970gnu*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974haiku*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978hpux10.20* | hpux11*)
4979 lt_cv_file_magic_cmd=/usr/bin/file
4980 case $host_cpu in
4981 ia64*)
4982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4983 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4984 ;;
4985 hppa*64*)
4986 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]'
4987 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4988 ;;
4989 *)
4990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4991 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4992 ;;
4993 esac
4994 ;;
4995
4996interix[3-9]*)
4997 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4999 ;;
5000
5001irix5* | irix6* | nonstopux*)
5002 case $LD in
5003 *-32|*"-32 ") libmagic=32-bit;;
5004 *-n32|*"-n32 ") libmagic=N32;;
5005 *-64|*"-64 ") libmagic=64-bit;;
5006 *) libmagic=never-match;;
5007 esac
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010
5011# This must be Linux ELF.
5012linux* | k*bsd*-gnu | kopensolaris*-gnu)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016netbsd*)
5017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5019 else
5020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5021 fi
5022 ;;
5023
5024newos6*)
5025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5026 lt_cv_file_magic_cmd=/usr/bin/file
5027 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5028 ;;
5029
5030*nto* | *qnx*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034openbsd*)
5035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5037 else
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5039 fi
5040 ;;
5041
5042osf3* | osf4* | osf5*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046rdos*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050solaris*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053
5054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057
5058sysv4 | sysv4.3*)
5059 case $host_vendor in
5060 motorola)
5061 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]'
5062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5063 ;;
5064 ncr)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067 sequent)
5068 lt_cv_file_magic_cmd='/bin/file'
5069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5070 ;;
5071 sni)
5072 lt_cv_file_magic_cmd='/bin/file'
5073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5074 lt_cv_file_magic_test_file=/lib/libc.so
5075 ;;
5076 siemens)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079 pc)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082 esac
5083 ;;
5084
5085tpf*)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088esac
5089
5090fi
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5092$as_echo "$lt_cv_deplibs_check_method" >&6; }
5093file_magic_cmd=$lt_cv_file_magic_cmd
5094deplibs_check_method=$lt_cv_deplibs_check_method
5095test -z "$deplibs_check_method" && deplibs_check_method=unknown
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108if test -n "$ac_tool_prefix"; then
5109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5110set dummy ${ac_tool_prefix}ar; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if test "${ac_cv_prog_AR+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 if test -n "$AR"; then
5117 ac_cv_prog_AR="$AR" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_prog_AR="${ac_tool_prefix}ar"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130done
5131 done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136AR=$ac_cv_prog_AR
5137if test -n "$AR"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139$as_echo "$AR" >&6; }
5140else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146fi
5147if test -z "$ac_cv_prog_AR"; then
5148 ac_ct_AR=$AR
5149 # Extract the first word of "ar", so it can be a program name with args.
5150set dummy ar; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 if test -n "$ac_ct_AR"; then
5157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_AR="ar"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171 done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176ac_ct_AR=$ac_cv_prog_ac_ct_AR
5177if test -n "$ac_ct_AR"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5179$as_echo "$ac_ct_AR" >&6; }
5180else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185 if test "x$ac_ct_AR" = x; then
5186 AR="false"
5187 else
5188 case $cross_compiling:$ac_tool_warned in
5189yes:)
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192ac_tool_warned=yes ;;
5193esac
5194 AR=$ac_ct_AR
5195 fi
5196else
5197 AR="$ac_cv_prog_AR"
5198fi
5199
5200test -z "$AR" && AR=ar
5201test -z "$AR_FLAGS" && AR_FLAGS=cru
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5215set dummy ${ac_tool_prefix}strip; ac_word=$2
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217$as_echo_n "checking for $ac_word... " >&6; }
5218if test "${ac_cv_prog_STRIP+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220else
5221 if test -n "$STRIP"; then
5222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235done
5236 done
5237IFS=$as_save_IFS
5238
5239fi
5240fi
5241STRIP=$ac_cv_prog_STRIP
5242if test -n "$STRIP"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5244$as_echo "$STRIP" >&6; }
5245else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247$as_echo "no" >&6; }
5248fi
5249
5250
5251fi
5252if test -z "$ac_cv_prog_STRIP"; then
5253 ac_ct_STRIP=$STRIP
5254 # Extract the first word of "strip", so it can be a program name with args.
5255set dummy strip; ac_word=$2
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257$as_echo_n "checking for $ac_word... " >&6; }
5258if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260else
5261 if test -n "$ac_ct_STRIP"; then
5262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_ac_ct_STRIP="strip"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276 done
5277IFS=$as_save_IFS
5278
5279fi
5280fi
5281ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5282if test -n "$ac_ct_STRIP"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5284$as_echo "$ac_ct_STRIP" >&6; }
5285else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288fi
5289
5290 if test "x$ac_ct_STRIP" = x; then
5291 STRIP=":"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294yes:)
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299 STRIP=$ac_ct_STRIP
5300 fi
5301else
5302 STRIP="$ac_cv_prog_STRIP"
5303fi
5304
5305test -z "$STRIP" && STRIP=:
5306
5307
5308
5309
5310
5311
5312if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5314set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316$as_echo_n "checking for $ac_word... " >&6; }
5317if test "${ac_cv_prog_RANLIB+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319else
5320 if test -n "$RANLIB"; then
5321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334done
5335 done
5336IFS=$as_save_IFS
5337
5338fi
5339fi
5340RANLIB=$ac_cv_prog_RANLIB
5341if test -n "$RANLIB"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5343$as_echo "$RANLIB" >&6; }
5344else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350fi
5351if test -z "$ac_cv_prog_RANLIB"; then
5352 ac_ct_RANLIB=$RANLIB
5353 # Extract the first word of "ranlib", so it can be a program name with args.
5354set dummy ranlib; ac_word=$2
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356$as_echo_n "checking for $ac_word... " >&6; }
5357if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 if test -n "$ac_ct_RANLIB"; then
5361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_RANLIB="ranlib"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374done
5375 done
5376IFS=$as_save_IFS
5377
5378fi
5379fi
5380ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381if test -n "$ac_ct_RANLIB"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5383$as_echo "$ac_ct_RANLIB" >&6; }
5384else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386$as_echo "no" >&6; }
5387fi
5388
5389 if test "x$ac_ct_RANLIB" = x; then
5390 RANLIB=":"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393yes:)
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396ac_tool_warned=yes ;;
5397esac
5398 RANLIB=$ac_ct_RANLIB
5399 fi
5400else
5401 RANLIB="$ac_cv_prog_RANLIB"
5402fi
5403
5404test -z "$RANLIB" && RANLIB=:
5405
5406
5407
5408
5409
5410
5411# Determine commands to create old-style static archives.
5412old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5413old_postinstall_cmds='chmod 644 $oldlib'
5414old_postuninstall_cmds=
5415
5416if test -n "$RANLIB"; then
5417 case $host_os in
5418 openbsd*)
5419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5420 ;;
5421 *)
5422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5423 ;;
5424 esac
5425 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5426fi
5427
5428case $host_os in
5429 darwin*)
5430 lock_old_archive_extraction=yes ;;
5431 *)
5432 lock_old_archive_extraction=no ;;
5433esac
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473# If no C compiler was specified, use CC.
5474LTCC=${LTCC-"$CC"}
5475
5476# If no C compiler flags were specified, use CFLAGS.
5477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5478
5479# Allow CC to be a program name with arguments.
5480compiler=$CC
5481
5482
5483# Check for command to grab the raw symbol name followed by C symbol from nm.
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5485$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5486if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488else
5489
5490# These are sane defaults that work on at least a few old systems.
5491# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5492
5493# Character class describing NM global symbol codes.
5494symcode='[BCDEGRST]'
5495
5496# Regexp to match symbols that can be accessed directly from C.
5497sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5498
5499# Define system-specific variables.
5500case $host_os in
5501aix*)
5502 symcode='[BCDT]'
5503 ;;
5504cygwin* | mingw* | pw32* | cegcc*)
5505 symcode='[ABCDGISTW]'
5506 ;;
5507hpux*)
5508 if test "$host_cpu" = ia64; then
5509 symcode='[ABCDEGRST]'
5510 fi
5511 ;;
5512irix* | nonstopux*)
5513 symcode='[BCDEGRST]'
5514 ;;
5515osf*)
5516 symcode='[BCDEGQRST]'
5517 ;;
5518solaris*)
5519 symcode='[BDRT]'
5520 ;;
5521sco3.2v5*)
5522 symcode='[DT]'
5523 ;;
5524sysv4.2uw2*)
5525 symcode='[DT]'
5526 ;;
5527sysv5* | sco5v6* | unixware* | OpenUNIX*)
5528 symcode='[ABDT]'
5529 ;;
5530sysv4)
5531 symcode='[DFNSTU]'
5532 ;;
5533esac
5534
5535# If we're using GNU nm, then use its standard symbol codes.
5536case `$NM -V 2>&1` in
5537*GNU* | *'with BFD'*)
5538 symcode='[ABCDGIRSTW]' ;;
5539esac
5540
5541# Transform an extracted symbol line into a proper C declaration.
5542# Some systems (esp. on ia64) link data and code symbols differently,
5543# so use this general approach.
5544lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5545
5546# Transform an extracted symbol line into symbol name and symbol address
5547lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5548lt_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'"
5549
5550# Handle CRLF in mingw tool chain
5551opt_cr=
5552case $build_os in
5553mingw*)
5554 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5555 ;;
5556esac
5557
5558# Try without a prefix underscore, then with it.
5559for ac_symprfx in "" "_"; do
5560
5561 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5562 symxfrm="\\1 $ac_symprfx\\2 \\2"
5563
5564 # Write the raw and C identifiers.
5565 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5566 # Fake it for dumpbin and say T for any non-static function
5567 # and D for any global variable.
5568 # Also find C++ and __fastcall symbols from MSVC++,
5569 # which start with @ or ?.
5570 lt_cv_sys_global_symbol_pipe="$AWK '"\
5571" {last_section=section; section=\$ 3};"\
5572" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5573" \$ 0!~/External *\|/{next};"\
5574" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5575" {if(hide[section]) next};"\
5576" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5577" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5578" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5579" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5580" ' prfx=^$ac_symprfx"
5581 else
5582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5583 fi
5584
5585 # Check to see that the pipe works correctly.
5586 pipe_works=no
5587
5588 rm -f conftest*
5589 cat > conftest.$ac_ext <<_LT_EOF
5590#ifdef __cplusplus
5591extern "C" {
5592#endif
5593char nm_test_var;
5594void nm_test_func(void);
5595void nm_test_func(void){}
5596#ifdef __cplusplus
5597}
5598#endif
5599int main(){nm_test_var='a';nm_test_func();return(0);}
5600_LT_EOF
5601
5602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5603 (eval $ac_compile) 2>&5
5604 ac_status=$?
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }; then
5607 # Now try to grab the symbols.
5608 nlist=conftest.nm
5609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5610 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; } && test -s "$nlist"; then
5614 # Try sorting and uniquifying the output.
5615 if sort "$nlist" | uniq > "$nlist"T; then
5616 mv -f "$nlist"T "$nlist"
5617 else
5618 rm -f "$nlist"T
5619 fi
5620
5621 # Make sure that we snagged all the symbols we need.
5622 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5623 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5624 cat <<_LT_EOF > conftest.$ac_ext
5625#ifdef __cplusplus
5626extern "C" {
5627#endif
5628
5629_LT_EOF
5630 # Now generate the symbol file.
5631 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5632
5633 cat <<_LT_EOF >> conftest.$ac_ext
5634
5635/* The mapping between symbol names and symbols. */
5636const struct {
5637 const char *name;
5638 void *address;
5639}
5640lt__PROGRAM__LTX_preloaded_symbols[] =
5641{
5642 { "@PROGRAM@", (void *) 0 },
5643_LT_EOF
5644 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5645 cat <<\_LT_EOF >> conftest.$ac_ext
5646 {0, (void *) 0}
5647};
5648
5649/* This works around a problem in FreeBSD linker */
5650#ifdef FREEBSD_WORKAROUND
5651static const void *lt_preloaded_setup() {
5652 return lt__PROGRAM__LTX_preloaded_symbols;
5653}
5654#endif
5655
5656#ifdef __cplusplus
5657}
5658#endif
5659_LT_EOF
5660 # Now try linking the two files.
5661 mv conftest.$ac_objext conftstm.$ac_objext
5662 lt_save_LIBS="$LIBS"
5663 lt_save_CFLAGS="$CFLAGS"
5664 LIBS="conftstm.$ac_objext"
5665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5667 (eval $ac_link) 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5671 pipe_works=yes
5672 fi
5673 LIBS="$lt_save_LIBS"
5674 CFLAGS="$lt_save_CFLAGS"
5675 else
5676 echo "cannot find nm_test_func in $nlist" >&5
5677 fi
5678 else
5679 echo "cannot find nm_test_var in $nlist" >&5
5680 fi
5681 else
5682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5683 fi
5684 else
5685 echo "$progname: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 fi
5688 rm -rf conftest* conftst*
5689
5690 # Do not use the global_symbol_pipe unless it works.
5691 if test "$pipe_works" = yes; then
5692 break
5693 else
5694 lt_cv_sys_global_symbol_pipe=
5695 fi
5696done
5697
5698fi
5699
5700if test -z "$lt_cv_sys_global_symbol_pipe"; then
5701 lt_cv_sys_global_symbol_to_cdecl=
5702fi
5703if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5705$as_echo "failed" >&6; }
5706else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5708$as_echo "ok" >&6; }
5709fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733# Check whether --enable-libtool-lock was given.
5734if test "${enable_libtool_lock+set}" = set; then :
5735 enableval=$enable_libtool_lock;
5736fi
5737
5738test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5739
5740# Some flags need to be propagated to the compiler or linker for good
5741# libtool support.
5742case $host in
5743ia64-*-hpux*)
5744 # Find out which ABI we are using.
5745 echo 'int i;' > conftest.$ac_ext
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5748 ac_status=$?
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 case `/usr/bin/file conftest.$ac_objext` in
5752 *ELF-32*)
5753 HPUX_IA64_MODE="32"
5754 ;;
5755 *ELF-64*)
5756 HPUX_IA64_MODE="64"
5757 ;;
5758 esac
5759 fi
5760 rm -rf conftest*
5761 ;;
5762*-*-irix6*)
5763 # Find out which ABI we are using.
5764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }; then
5770 if test "$lt_cv_prog_gnu_ld" = yes; then
5771 case `/usr/bin/file conftest.$ac_objext` in
5772 *32-bit*)
5773 LD="${LD-ld} -melf32bsmip"
5774 ;;
5775 *N32*)
5776 LD="${LD-ld} -melf32bmipn32"
5777 ;;
5778 *64-bit*)
5779 LD="${LD-ld} -melf64bmip"
5780 ;;
5781 esac
5782 else
5783 case `/usr/bin/file conftest.$ac_objext` in
5784 *32-bit*)
5785 LD="${LD-ld} -32"
5786 ;;
5787 *N32*)
5788 LD="${LD-ld} -n32"
5789 ;;
5790 *64-bit*)
5791 LD="${LD-ld} -64"
5792 ;;
5793 esac
5794 fi
5795 fi
5796 rm -rf conftest*
5797 ;;
5798
5799x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5800s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5801 # Find out which ABI we are using.
5802 echo 'int i;' > conftest.$ac_ext
5803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5804 (eval $ac_compile) 2>&5
5805 ac_status=$?
5806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5807 test $ac_status = 0; }; then
5808 case `/usr/bin/file conftest.o` in
5809 *32-bit*)
5810 case $host in
5811 x86_64-*kfreebsd*-gnu)
5812 LD="${LD-ld} -m elf_i386_fbsd"
5813 ;;
5814 x86_64-*linux*)
5815 LD="${LD-ld} -m elf_i386"
5816 ;;
5817 ppc64-*linux*|powerpc64-*linux*)
5818 LD="${LD-ld} -m elf32ppclinux"
5819 ;;
5820 s390x-*linux*)
5821 LD="${LD-ld} -m elf_s390"
5822 ;;
5823 sparc64-*linux*)
5824 LD="${LD-ld} -m elf32_sparc"
5825 ;;
5826 esac
5827 ;;
5828 *64-bit*)
5829 case $host in
5830 x86_64-*kfreebsd*-gnu)
5831 LD="${LD-ld} -m elf_x86_64_fbsd"
5832 ;;
5833 x86_64-*linux*)
5834 LD="${LD-ld} -m elf_x86_64"
5835 ;;
5836 ppc*-*linux*|powerpc*-*linux*)
5837 LD="${LD-ld} -m elf64ppc"
5838 ;;
5839 s390*-*linux*|s390*-*tpf*)
5840 LD="${LD-ld} -m elf64_s390"
5841 ;;
5842 sparc*-*linux*)
5843 LD="${LD-ld} -m elf64_sparc"
5844 ;;
5845 esac
5846 ;;
5847 esac
5848 fi
5849 rm -rf conftest*
5850 ;;
5851
5852*-*-sco3.2v5*)
5853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5854 SAVE_CFLAGS="$CFLAGS"
5855 CFLAGS="$CFLAGS -belf"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5857$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5858if test "${lt_cv_cc_needs_belf+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860else
5861 ac_ext=c
5862ac_cpp='$CPP $CPPFLAGS'
5863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866
fabfcf5e
KT
5867 if test x$gcc_no_link = xyes; then
5868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5869fi
5870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
5871/* end confdefs.h. */
5872
5873int
5874main ()
5875{
5876
5877 ;
5878 return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882 lt_cv_cc_needs_belf=yes
5883else
5884 lt_cv_cc_needs_belf=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 ac_ext=c
5889ac_cpp='$CPP $CPPFLAGS'
5890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5896$as_echo "$lt_cv_cc_needs_belf" >&6; }
5897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5899 CFLAGS="$SAVE_CFLAGS"
5900 fi
5901 ;;
5902sparc*-*solaris*)
5903 # Find out which ABI we are using.
5904 echo 'int i;' > conftest.$ac_ext
5905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5906 (eval $ac_compile) 2>&5
5907 ac_status=$?
5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909 test $ac_status = 0; }; then
5910 case `/usr/bin/file conftest.o` in
5911 *64-bit*)
5912 case $lt_cv_prog_gnu_ld in
5913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5914 *)
5915 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5916 LD="${LD-ld} -64"
5917 fi
5918 ;;
5919 esac
5920 ;;
5921 esac
5922 fi
5923 rm -rf conftest*
5924 ;;
5925esac
5926
5927need_locks="$enable_libtool_lock"
5928
5929
5930 case $host_os in
5931 rhapsody* | darwin*)
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5934set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940 if test -n "$DSYMUTIL"; then
5941 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955 done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960DSYMUTIL=$ac_cv_prog_DSYMUTIL
5961if test -n "$DSYMUTIL"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5963$as_echo "$DSYMUTIL" >&6; }
5964else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969
5970fi
5971if test -z "$ac_cv_prog_DSYMUTIL"; then
5972 ac_ct_DSYMUTIL=$DSYMUTIL
5973 # Extract the first word of "dsymutil", so it can be a program name with args.
5974set dummy dsymutil; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979else
5980 if test -n "$ac_ct_DSYMUTIL"; then
5981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994done
5995 done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6001if test -n "$ac_ct_DSYMUTIL"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6003$as_echo "$ac_ct_DSYMUTIL" >&6; }
6004else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009 if test "x$ac_ct_DSYMUTIL" = x; then
6010 DSYMUTIL=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013yes:)
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016ac_tool_warned=yes ;;
6017esac
6018 DSYMUTIL=$ac_ct_DSYMUTIL
6019 fi
6020else
6021 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6022fi
6023
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6026set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031else
6032 if test -n "$NMEDIT"; then
6033 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046done
6047 done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052NMEDIT=$ac_cv_prog_NMEDIT
6053if test -n "$NMEDIT"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6055$as_echo "$NMEDIT" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061
6062fi
6063if test -z "$ac_cv_prog_NMEDIT"; then
6064 ac_ct_NMEDIT=$NMEDIT
6065 # Extract the first word of "nmedit", so it can be a program name with args.
6066set dummy nmedit; ac_word=$2
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
6069if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071else
6072 if test -n "$ac_ct_NMEDIT"; then
6073 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087 done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6093if test -n "$ac_ct_NMEDIT"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6095$as_echo "$ac_ct_NMEDIT" >&6; }
6096else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101 if test "x$ac_ct_NMEDIT" = x; then
6102 NMEDIT=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105yes:)
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108ac_tool_warned=yes ;;
6109esac
6110 NMEDIT=$ac_ct_NMEDIT
6111 fi
6112else
6113 NMEDIT="$ac_cv_prog_NMEDIT"
6114fi
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6118set dummy ${ac_tool_prefix}lipo; ac_word=$2
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if test "${ac_cv_prog_LIPO+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123else
6124 if test -n "$LIPO"; then
6125 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138done
6139 done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144LIPO=$ac_cv_prog_LIPO
6145if test -n "$LIPO"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6147$as_echo "$LIPO" >&6; }
6148else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
6151fi
6152
6153
6154fi
6155if test -z "$ac_cv_prog_LIPO"; then
6156 ac_ct_LIPO=$LIPO
6157 # Extract the first word of "lipo", so it can be a program name with args.
6158set dummy lipo; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
6161if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 if test -n "$ac_ct_LIPO"; then
6165 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_LIPO="lipo"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178done
6179 done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6185if test -n "$ac_ct_LIPO"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6187$as_echo "$ac_ct_LIPO" >&6; }
6188else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193 if test "x$ac_ct_LIPO" = x; then
6194 LIPO=":"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197yes:)
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200ac_tool_warned=yes ;;
6201esac
6202 LIPO=$ac_ct_LIPO
6203 fi
6204else
6205 LIPO="$ac_cv_prog_LIPO"
6206fi
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}otool; ac_word=$2
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_OTOOL+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215else
6216 if test -n "$OTOOL"; then
6217 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230done
6231 done
6232IFS=$as_save_IFS
6233
6234fi
6235fi
6236OTOOL=$ac_cv_prog_OTOOL
6237if test -n "$OTOOL"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6239$as_echo "$OTOOL" >&6; }
6240else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245
6246fi
6247if test -z "$ac_cv_prog_OTOOL"; then
6248 ac_ct_OTOOL=$OTOOL
6249 # Extract the first word of "otool", so it can be a program name with args.
6250set dummy otool; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255else
6256 if test -n "$ac_ct_OTOOL"; then
6257 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_OTOOL="otool"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270done
6271 done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6277if test -n "$ac_ct_OTOOL"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6279$as_echo "$ac_ct_OTOOL" >&6; }
6280else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
6283fi
6284
6285 if test "x$ac_ct_OTOOL" = x; then
6286 OTOOL=":"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289yes:)
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 OTOOL=$ac_ct_OTOOL
6295 fi
6296else
6297 OTOOL="$ac_cv_prog_OTOOL"
6298fi
6299
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6302set dummy ${ac_tool_prefix}otool64; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307else
6308 if test -n "$OTOOL64"; then
6309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
6323 done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328OTOOL64=$ac_cv_prog_OTOOL64
6329if test -n "$OTOOL64"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6331$as_echo "$OTOOL64" >&6; }
6332else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_prog_OTOOL64"; then
6340 ac_ct_OTOOL64=$OTOOL64
6341 # Extract the first word of "otool64", so it can be a program name with args.
6342set dummy otool64; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 if test -n "$ac_ct_OTOOL64"; then
6349 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_OTOOL64="otool64"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363 done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6369if test -n "$ac_ct_OTOOL64"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6371$as_echo "$ac_ct_OTOOL64" >&6; }
6372else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377 if test "x$ac_ct_OTOOL64" = x; then
6378 OTOOL64=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384ac_tool_warned=yes ;;
6385esac
6386 OTOOL64=$ac_ct_OTOOL64
6387 fi
6388else
6389 OTOOL64="$ac_cv_prog_OTOOL64"
6390fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6419$as_echo_n "checking for -single_module linker flag... " >&6; }
6420if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422else
6423 lt_cv_apple_cc_single_mod=no
6424 if test -z "${LT_MULTI_MODULE}"; then
6425 # By default we will add the -single_module flag. You can override
6426 # by either setting the environment variable LT_MULTI_MODULE
6427 # non-empty at configure time, or by adding -multi_module to the
6428 # link flags.
6429 rm -rf libconftest.dylib*
6430 echo "int foo(void){return 1;}" > conftest.c
6431 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432-dynamiclib -Wl,-single_module conftest.c" >&5
6433 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6434 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6435 _lt_result=$?
6436 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6437 lt_cv_apple_cc_single_mod=yes
6438 else
6439 cat conftest.err >&5
6440 fi
6441 rm -rf libconftest.dylib*
6442 rm -f conftest.*
6443 fi
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6446$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6448$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6449if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451else
6452 lt_cv_ld_exported_symbols_list=no
6453 save_LDFLAGS=$LDFLAGS
6454 echo "_main" > conftest.sym
6455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
fabfcf5e
KT
6456 if test x$gcc_no_link = xyes; then
6457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6458fi
6459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
6460/* end confdefs.h. */
6461
6462int
6463main ()
6464{
6465
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470if ac_fn_c_try_link "$LINENO"; then :
6471 lt_cv_ld_exported_symbols_list=yes
6472else
6473 lt_cv_ld_exported_symbols_list=no
6474fi
6475rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6477 LDFLAGS="$save_LDFLAGS"
6478
6479fi
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6483$as_echo_n "checking for -force_load linker flag... " >&6; }
6484if test "${lt_cv_ld_force_load+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6486else
6487 lt_cv_ld_force_load=no
6488 cat > conftest.c << _LT_EOF
6489int forced_loaded() { return 2;}
6490_LT_EOF
6491 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6492 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6493 echo "$AR cru libconftest.a conftest.o" >&5
6494 $AR cru libconftest.a conftest.o 2>&5
6495 cat > conftest.c << _LT_EOF
6496int main() { return 0;}
6497_LT_EOF
6498 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6499 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6500 _lt_result=$?
6501 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6502 lt_cv_ld_force_load=yes
6503 else
6504 cat conftest.err >&5
6505 fi
6506 rm -f conftest.err libconftest.a conftest conftest.c
6507 rm -rf conftest.dSYM
6508
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6511$as_echo "$lt_cv_ld_force_load" >&6; }
6512 case $host_os in
6513 rhapsody* | darwin1.[012])
6514 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6515 darwin1.*)
6516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6517 darwin*) # darwin 5.x on
6518 # if running on 10.5 or later, the deployment target defaults
6519 # to the OS version, if on x86, and 10.4, the deployment
6520 # target defaults to 10.4. Don't you love it?
6521 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6522 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6523 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6524 10.[012]*)
6525 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6526 10.*)
6527 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6528 esac
6529 ;;
6530 esac
6531 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6532 _lt_dar_single_mod='$single_module'
6533 fi
6534 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6535 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6536 else
6537 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6538 fi
6539 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6540 _lt_dsymutil='~$DSYMUTIL $lib || :'
6541 else
6542 _lt_dsymutil=
6543 fi
6544 ;;
6545 esac
6546
6547ac_ext=c
6548ac_cpp='$CPP $CPPFLAGS'
6549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6553$as_echo_n "checking how to run the C preprocessor... " >&6; }
6554# On Suns, sometimes $CPP names a directory.
6555if test -n "$CPP" && test -d "$CPP"; then
6556 CPP=
6557fi
6558if test -z "$CPP"; then
6559 if test "${ac_cv_prog_CPP+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561else
6562 # Double quotes because CPP needs to be expanded
6563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6564 do
6565 ac_preproc_ok=false
6566for ac_c_preproc_warn_flag in '' yes
6567do
6568 # Use a header file that comes with gcc, so configuring glibc
6569 # with a fresh cross-compiler works.
6570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571 # <limits.h> exists even on freestanding compilers.
6572 # On the NeXT, cc -E runs the code through the compiler's parser,
6573 # not just through cpp. "Syntax error" is here to catch this case.
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h. */
6576#ifdef __STDC__
6577# include <limits.h>
6578#else
6579# include <assert.h>
6580#endif
6581 Syntax error
6582_ACEOF
6583if ac_fn_c_try_cpp "$LINENO"; then :
6584
6585else
6586 # Broken: fails on valid input.
6587continue
6588fi
6589rm -f conftest.err conftest.$ac_ext
6590
6591 # OK, works on sane cases. Now check whether nonexistent headers
6592 # can be detected and how.
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h. */
6595#include <ac_nonexistent.h>
6596_ACEOF
6597if ac_fn_c_try_cpp "$LINENO"; then :
6598 # Broken: success on invalid input.
6599continue
6600else
6601 # Passes both tests.
6602ac_preproc_ok=:
6603break
6604fi
6605rm -f conftest.err conftest.$ac_ext
6606
6607done
6608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609rm -f conftest.err conftest.$ac_ext
6610if $ac_preproc_ok; then :
6611 break
6612fi
6613
6614 done
6615 ac_cv_prog_CPP=$CPP
6616
6617fi
6618 CPP=$ac_cv_prog_CPP
6619else
6620 ac_cv_prog_CPP=$CPP
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6623$as_echo "$CPP" >&6; }
6624ac_preproc_ok=false
6625for ac_c_preproc_warn_flag in '' yes
6626do
6627 # Use a header file that comes with gcc, so configuring glibc
6628 # with a fresh cross-compiler works.
6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630 # <limits.h> exists even on freestanding compilers.
6631 # On the NeXT, cc -E runs the code through the compiler's parser,
6632 # not just through cpp. "Syntax error" is here to catch this case.
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h. */
6635#ifdef __STDC__
6636# include <limits.h>
6637#else
6638# include <assert.h>
6639#endif
6640 Syntax error
6641_ACEOF
6642if ac_fn_c_try_cpp "$LINENO"; then :
6643
6644else
6645 # Broken: fails on valid input.
6646continue
6647fi
6648rm -f conftest.err conftest.$ac_ext
6649
6650 # OK, works on sane cases. Now check whether nonexistent headers
6651 # can be detected and how.
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654#include <ac_nonexistent.h>
6655_ACEOF
6656if ac_fn_c_try_cpp "$LINENO"; then :
6657 # Broken: success on invalid input.
6658continue
6659else
6660 # Passes both tests.
6661ac_preproc_ok=:
6662break
6663fi
6664rm -f conftest.err conftest.$ac_ext
6665
6666done
6667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6668rm -f conftest.err conftest.$ac_ext
6669if $ac_preproc_ok; then :
6670
6671else
6672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6674as_fn_error "C preprocessor \"$CPP\" fails sanity check
6675See \`config.log' for more details." "$LINENO" 5; }
6676fi
6677
6678ac_ext=c
6679ac_cpp='$CPP $CPPFLAGS'
6680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
6684
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6686$as_echo_n "checking for ANSI C header files... " >&6; }
6687if test "${ac_cv_header_stdc+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692#include <stdlib.h>
6693#include <stdarg.h>
6694#include <string.h>
6695#include <float.h>
6696
6697int
6698main ()
6699{
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705if ac_fn_c_try_compile "$LINENO"; then :
6706 ac_cv_header_stdc=yes
6707else
6708 ac_cv_header_stdc=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711
6712if test $ac_cv_header_stdc = yes; then
6713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h. */
6716#include <string.h>
6717
6718_ACEOF
6719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "memchr" >/dev/null 2>&1; then :
6721
6722else
6723 ac_cv_header_stdc=no
6724fi
6725rm -f conftest*
6726
6727fi
6728
6729if test $ac_cv_header_stdc = yes; then
6730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733#include <stdlib.h>
6734
6735_ACEOF
6736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737 $EGREP "free" >/dev/null 2>&1; then :
6738
6739else
6740 ac_cv_header_stdc=no
6741fi
6742rm -f conftest*
6743
6744fi
6745
6746if test $ac_cv_header_stdc = yes; then
6747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6748 if test "$cross_compiling" = yes; then :
6749 :
6750else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h. */
6753#include <ctype.h>
6754#include <stdlib.h>
6755#if ((' ' & 0x0FF) == 0x020)
6756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6758#else
6759# define ISLOWER(c) \
6760 (('a' <= (c) && (c) <= 'i') \
6761 || ('j' <= (c) && (c) <= 'r') \
6762 || ('s' <= (c) && (c) <= 'z'))
6763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6764#endif
6765
6766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6767int
6768main ()
6769{
6770 int i;
6771 for (i = 0; i < 256; i++)
6772 if (XOR (islower (i), ISLOWER (i))
6773 || toupper (i) != TOUPPER (i))
6774 return 2;
6775 return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_run "$LINENO"; then :
6779
6780else
6781 ac_cv_header_stdc=no
6782fi
6783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6784 conftest.$ac_objext conftest.beam conftest.$ac_ext
6785fi
6786
6787fi
6788fi
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6790$as_echo "$ac_cv_header_stdc" >&6; }
6791if test $ac_cv_header_stdc = yes; then
6792
6793$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6794
6795fi
6796
6797# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6798for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6799 inttypes.h stdint.h unistd.h
6800do :
6801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6803"
6804eval as_val=\$$as_ac_Header
6805 if test "x$as_val" = x""yes; then :
6806 cat >>confdefs.h <<_ACEOF
6807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808_ACEOF
6809
6810fi
6811
6812done
6813
6814
6815for ac_header in dlfcn.h
6816do :
6817 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6818"
6819if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6820 cat >>confdefs.h <<_ACEOF
6821#define HAVE_DLFCN_H 1
6822_ACEOF
6823
6824fi
6825
6826done
6827
6828
6829
6830
6831
6832# Set options
6833
6834
6835
6836 enable_dlopen=no
6837
6838
6839 enable_win32_dll=no
6840
6841
6842 # Check whether --enable-shared was given.
6843if test "${enable_shared+set}" = set; then :
6844 enableval=$enable_shared; p=${PACKAGE-default}
6845 case $enableval in
6846 yes) enable_shared=yes ;;
6847 no) enable_shared=no ;;
6848 *)
6849 enable_shared=no
6850 # Look at the argument we got. We use all the common list separators.
6851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6852 for pkg in $enableval; do
6853 IFS="$lt_save_ifs"
6854 if test "X$pkg" = "X$p"; then
6855 enable_shared=yes
6856 fi
6857 done
6858 IFS="$lt_save_ifs"
6859 ;;
6860 esac
6861else
6862 enable_shared=yes
6863fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # Check whether --enable-static was given.
6874if test "${enable_static+set}" = set; then :
6875 enableval=$enable_static; p=${PACKAGE-default}
6876 case $enableval in
6877 yes) enable_static=yes ;;
6878 no) enable_static=no ;;
6879 *)
6880 enable_static=no
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6884 IFS="$lt_save_ifs"
6885 if test "X$pkg" = "X$p"; then
6886 enable_static=yes
6887 fi
6888 done
6889 IFS="$lt_save_ifs"
6890 ;;
6891 esac
6892else
6893 enable_static=yes
6894fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905# Check whether --with-pic was given.
6906if test "${with_pic+set}" = set; then :
6907 withval=$with_pic; pic_mode="$withval"
6908else
6909 pic_mode=default
6910fi
6911
6912
6913test -z "$pic_mode" && pic_mode=default
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-fast-install was given.
6922if test "${enable_fast_install+set}" = set; then :
6923 enableval=$enable_fast_install; p=${PACKAGE-default}
6924 case $enableval in
6925 yes) enable_fast_install=yes ;;
6926 no) enable_fast_install=no ;;
6927 *)
6928 enable_fast_install=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6932 IFS="$lt_save_ifs"
6933 if test "X$pkg" = "X$p"; then
6934 enable_fast_install=yes
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 ;;
6939 esac
6940else
6941 enable_fast_install=yes
6942fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954# This can be used to rebuild libtool when needed
6955LIBTOOL_DEPS="$ltmain"
6956
6957# Always use our own libtool.
6958LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985test -z "$LN_S" && LN_S="ln -s"
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000if test -n "${ZSH_VERSION+set}" ; then
7001 setopt NO_GLOB_SUBST
7002fi
7003
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7005$as_echo_n "checking for objdir... " >&6; }
7006if test "${lt_cv_objdir+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008else
7009 rm -f .libs 2>/dev/null
7010mkdir .libs 2>/dev/null
7011if test -d .libs; then
7012 lt_cv_objdir=.libs
7013else
7014 # MS-DOS does not allow filenames that begin with a dot.
7015 lt_cv_objdir=_libs
7016fi
7017rmdir .libs 2>/dev/null
7018fi
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7020$as_echo "$lt_cv_objdir" >&6; }
7021objdir=$lt_cv_objdir
7022
7023
7024
7025
7026
7027cat >>confdefs.h <<_ACEOF
7028#define LT_OBJDIR "$lt_cv_objdir/"
7029_ACEOF
7030
7031
7032
7033
7034case $host_os in
7035aix3*)
7036 # AIX sometimes has problems with the GCC collect2 program. For some
7037 # reason, if we set the COLLECT_NAMES environment variable, the problems
7038 # vanish in a puff of smoke.
7039 if test "X${COLLECT_NAMES+set}" != Xset; then
7040 COLLECT_NAMES=
7041 export COLLECT_NAMES
7042 fi
7043 ;;
7044esac
7045
7046# Global variables:
7047ofile=libtool
7048can_build_shared=yes
7049
7050# All known linkers require a `.a' archive for static linking (except MSVC,
7051# which needs '.lib').
7052libext=a
7053
7054with_gnu_ld="$lt_cv_prog_gnu_ld"
7055
7056old_CC="$CC"
7057old_CFLAGS="$CFLAGS"
7058
7059# Set sane defaults for various variables
7060test -z "$CC" && CC=cc
7061test -z "$LTCC" && LTCC=$CC
7062test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7063test -z "$LD" && LD=ld
7064test -z "$ac_objext" && ac_objext=o
7065
7066for cc_temp in $compiler""; do
7067 case $cc_temp in
7068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7070 \-*) ;;
7071 *) break;;
7072 esac
7073done
7074cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7075
7076
7077# Only perform the check for file, if the check method requires it
7078test -z "$MAGIC_CMD" && MAGIC_CMD=file
7079case $deplibs_check_method in
7080file_magic*)
7081 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7083$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7084if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086else
7087 case $MAGIC_CMD in
7088[\\/*] | ?:[\\/]*)
7089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7090 ;;
7091*)
7092 lt_save_MAGIC_CMD="$MAGIC_CMD"
7093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7095 for ac_dir in $ac_dummy; do
7096 IFS="$lt_save_ifs"
7097 test -z "$ac_dir" && ac_dir=.
7098 if test -f $ac_dir/${ac_tool_prefix}file; then
7099 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7100 if test -n "$file_magic_test_file"; then
7101 case $deplibs_check_method in
7102 "file_magic "*)
7103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7106 $EGREP "$file_magic_regex" > /dev/null; then
7107 :
7108 else
7109 cat <<_LT_EOF 1>&2
7110
7111*** Warning: the command libtool uses to detect shared libraries,
7112*** $file_magic_cmd, produces output that libtool cannot recognize.
7113*** The result is that libtool may fail to recognize shared libraries
7114*** as such. This will affect the creation of libtool libraries that
7115*** depend on shared libraries, but programs linked with such libtool
7116*** libraries will work regardless of this problem. Nevertheless, you
7117*** may want to report the problem to your system manager and/or to
7118*** bug-libtool@gnu.org
7119
7120_LT_EOF
7121 fi ;;
7122 esac
7123 fi
7124 break
7125 fi
7126 done
7127 IFS="$lt_save_ifs"
7128 MAGIC_CMD="$lt_save_MAGIC_CMD"
7129 ;;
7130esac
7131fi
7132
7133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7134if test -n "$MAGIC_CMD"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7136$as_echo "$MAGIC_CMD" >&6; }
7137else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142
7143
7144
7145
7146if test -z "$lt_cv_path_MAGIC_CMD"; then
7147 if test -n "$ac_tool_prefix"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7149$as_echo_n "checking for file... " >&6; }
7150if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 case $MAGIC_CMD in
7154[\\/*] | ?:[\\/]*)
7155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7156 ;;
7157*)
7158 lt_save_MAGIC_CMD="$MAGIC_CMD"
7159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7161 for ac_dir in $ac_dummy; do
7162 IFS="$lt_save_ifs"
7163 test -z "$ac_dir" && ac_dir=.
7164 if test -f $ac_dir/file; then
7165 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7166 if test -n "$file_magic_test_file"; then
7167 case $deplibs_check_method in
7168 "file_magic "*)
7169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7172 $EGREP "$file_magic_regex" > /dev/null; then
7173 :
7174 else
7175 cat <<_LT_EOF 1>&2
7176
7177*** Warning: the command libtool uses to detect shared libraries,
7178*** $file_magic_cmd, produces output that libtool cannot recognize.
7179*** The result is that libtool may fail to recognize shared libraries
7180*** as such. This will affect the creation of libtool libraries that
7181*** depend on shared libraries, but programs linked with such libtool
7182*** libraries will work regardless of this problem. Nevertheless, you
7183*** may want to report the problem to your system manager and/or to
7184*** bug-libtool@gnu.org
7185
7186_LT_EOF
7187 fi ;;
7188 esac
7189 fi
7190 break
7191 fi
7192 done
7193 IFS="$lt_save_ifs"
7194 MAGIC_CMD="$lt_save_MAGIC_CMD"
7195 ;;
7196esac
7197fi
7198
7199MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7200if test -n "$MAGIC_CMD"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7202$as_echo "$MAGIC_CMD" >&6; }
7203else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205$as_echo "no" >&6; }
7206fi
7207
7208
7209 else
7210 MAGIC_CMD=:
7211 fi
7212fi
7213
7214 fi
7215 ;;
7216esac
7217
7218# Use C for the default configuration in the libtool script
7219
7220lt_save_CC="$CC"
7221ac_ext=c
7222ac_cpp='$CPP $CPPFLAGS'
7223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
7227
7228# Source file extension for C test sources.
7229ac_ext=c
7230
7231# Object file extension for compiled C test sources.
7232objext=o
7233objext=$objext
7234
7235# Code to be used in simple compile tests
7236lt_simple_compile_test_code="int some_variable = 0;"
7237
7238# Code to be used in simple link tests
7239lt_simple_link_test_code='int main(){return(0);}'
7240
7241
7242
7243
7244
7245
7246
7247# If no C compiler was specified, use CC.
7248LTCC=${LTCC-"$CC"}
7249
7250# If no C compiler flags were specified, use CFLAGS.
7251LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253# Allow CC to be a program name with arguments.
7254compiler=$CC
7255
7256# Save the default compiler, since it gets overwritten when the other
7257# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7258compiler_DEFAULT=$CC
7259
7260# save warnings/boilerplate of simple test code
7261ac_outfile=conftest.$ac_objext
7262echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7263eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7264_lt_compiler_boilerplate=`cat conftest.err`
7265$RM conftest*
7266
7267ac_outfile=conftest.$ac_objext
7268echo "$lt_simple_link_test_code" >conftest.$ac_ext
7269eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7270_lt_linker_boilerplate=`cat conftest.err`
7271$RM -r conftest*
7272
7273
7274## CAVEAT EMPTOR:
7275## There is no encapsulation within the following macros, do not change
7276## the running order or otherwise move them around unless you know exactly
7277## what you are doing...
7278if test -n "$compiler"; then
7279
7280lt_prog_compiler_no_builtin_flag=
7281
7282if test "$GCC" = yes; then
7283 case $cc_basename in
7284 nvcc*)
7285 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7286 *)
7287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7288 esac
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7291$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7292if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294else
7295 lt_cv_prog_compiler_rtti_exceptions=no
7296 ac_outfile=conftest.$ac_objext
7297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7298 lt_compiler_flag="-fno-rtti -fno-exceptions"
7299 # Insert the option either (1) after the last *FLAGS variable, or
7300 # (2) before a word containing "conftest.", or (3) at the end.
7301 # Note that $ac_compile itself does not contain backslashes and begins
7302 # with a dollar sign (not a hyphen), so the echo should work correctly.
7303 # The option is referenced via a variable to avoid confusing sed.
7304 lt_compile=`echo "$ac_compile" | $SED \
7305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7307 -e 's:$: $lt_compiler_flag:'`
7308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7309 (eval "$lt_compile" 2>conftest.err)
7310 ac_status=$?
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 if (exit $ac_status) && test -s "$ac_outfile"; then
7314 # The compiler can only warn and ignore the option if not recognized
7315 # So say no if there are warnings other than the usual output.
7316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7319 lt_cv_prog_compiler_rtti_exceptions=yes
7320 fi
7321 fi
7322 $RM conftest*
7323
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7326$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7327
7328if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7329 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7330else
7331 :
7332fi
7333
7334fi
7335
7336
7337
7338
7339
7340
7341 lt_prog_compiler_wl=
7342lt_prog_compiler_pic=
7343lt_prog_compiler_static=
7344
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7346$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7347
7348 if test "$GCC" = yes; then
7349 lt_prog_compiler_wl='-Wl,'
7350 lt_prog_compiler_static='-static'
7351
7352 case $host_os in
7353 aix*)
7354 # All AIX code is PIC.
7355 if test "$host_cpu" = ia64; then
7356 # AIX 5 now supports IA64 processor
7357 lt_prog_compiler_static='-Bstatic'
7358 fi
7359 ;;
7360
7361 amigaos*)
7362 case $host_cpu in
7363 powerpc)
7364 # see comment about AmigaOS4 .so support
7365 lt_prog_compiler_pic='-fPIC'
7366 ;;
7367 m68k)
7368 # FIXME: we need at least 68020 code to build shared libraries, but
7369 # adding the `-m68020' flag to GCC prevents building anything better,
7370 # like `-m68040'.
7371 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7372 ;;
7373 esac
7374 ;;
7375
7376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7377 # PIC is the default for these OSes.
7378 ;;
7379
7380 mingw* | cygwin* | pw32* | os2* | cegcc*)
7381 # This hack is so that the source file can tell whether it is being
7382 # built for inclusion in a dll (and should export symbols for example).
7383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7384 # (--disable-auto-import) libraries
7385 lt_prog_compiler_pic='-DDLL_EXPORT'
7386 ;;
7387
7388 darwin* | rhapsody*)
7389 # PIC is the default on this platform
7390 # Common symbols not allowed in MH_DYLIB files
7391 lt_prog_compiler_pic='-fno-common'
7392 ;;
7393
7394 haiku*)
7395 # PIC is the default for Haiku.
7396 # The "-static" flag exists, but is broken.
7397 lt_prog_compiler_static=
7398 ;;
7399
7400 hpux*)
7401 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7402 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7403 # sets the default TLS model and affects inlining.
7404 case $host_cpu in
7405 hppa*64*)
7406 # +Z the default
7407 ;;
7408 *)
7409 lt_prog_compiler_pic='-fPIC'
7410 ;;
7411 esac
7412 ;;
7413
7414 interix[3-9]*)
7415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7416 # Instead, we relocate shared libraries at runtime.
7417 ;;
7418
7419 msdosdjgpp*)
7420 # Just because we use GCC doesn't mean we suddenly get shared libraries
7421 # on systems that don't support them.
7422 lt_prog_compiler_can_build_shared=no
7423 enable_shared=no
7424 ;;
7425
7426 *nto* | *qnx*)
7427 # QNX uses GNU C++, but need to define -shared option too, otherwise
7428 # it will coredump.
7429 lt_prog_compiler_pic='-fPIC -shared'
7430 ;;
7431
7432 sysv4*MP*)
7433 if test -d /usr/nec; then
7434 lt_prog_compiler_pic=-Kconform_pic
7435 fi
7436 ;;
7437
7438 *)
7439 lt_prog_compiler_pic='-fPIC'
7440 ;;
7441 esac
7442
7443 case $cc_basename in
7444 nvcc*) # Cuda Compiler Driver 2.2
7445 lt_prog_compiler_wl='-Xlinker '
7446 lt_prog_compiler_pic='-Xcompiler -fPIC'
7447 ;;
7448 esac
7449 else
7450 # PORTME Check for flag to pass linker flags through the system compiler.
7451 case $host_os in
7452 aix*)
7453 lt_prog_compiler_wl='-Wl,'
7454 if test "$host_cpu" = ia64; then
7455 # AIX 5 now supports IA64 processor
7456 lt_prog_compiler_static='-Bstatic'
7457 else
7458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7459 fi
7460 ;;
7461
7462 mingw* | cygwin* | pw32* | os2* | cegcc*)
7463 # This hack is so that the source file can tell whether it is being
7464 # built for inclusion in a dll (and should export symbols for example).
7465 lt_prog_compiler_pic='-DDLL_EXPORT'
7466 ;;
7467
7468 hpux9* | hpux10* | hpux11*)
7469 lt_prog_compiler_wl='-Wl,'
7470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7471 # not for PA HP-UX.
7472 case $host_cpu in
7473 hppa*64*|ia64*)
7474 # +Z the default
7475 ;;
7476 *)
7477 lt_prog_compiler_pic='+Z'
7478 ;;
7479 esac
7480 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7481 lt_prog_compiler_static='${wl}-a ${wl}archive'
7482 ;;
7483
7484 irix5* | irix6* | nonstopux*)
7485 lt_prog_compiler_wl='-Wl,'
7486 # PIC (with -KPIC) is the default.
7487 lt_prog_compiler_static='-non_shared'
7488 ;;
7489
7490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7491 case $cc_basename in
7492 # old Intel for x86_64 which still supported -KPIC.
7493 ecc*)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-KPIC'
7496 lt_prog_compiler_static='-static'
7497 ;;
7498 # icc used to be incompatible with GCC.
7499 # ICC 10 doesn't accept -KPIC any more.
7500 icc* | ifort*)
7501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_pic='-fPIC'
7503 lt_prog_compiler_static='-static'
7504 ;;
7505 # Lahey Fortran 8.1.
7506 lf95*)
7507 lt_prog_compiler_wl='-Wl,'
7508 lt_prog_compiler_pic='--shared'
7509 lt_prog_compiler_static='--static'
7510 ;;
7511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7512 # Portland Group compilers (*not* the Pentium gcc compiler,
7513 # which looks to be a dead project)
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_pic='-fpic'
7516 lt_prog_compiler_static='-Bstatic'
7517 ;;
7518 ccc*)
7519 lt_prog_compiler_wl='-Wl,'
7520 # All Alpha code is PIC.
7521 lt_prog_compiler_static='-non_shared'
7522 ;;
7523 xl* | bgxl* | bgf* | mpixl*)
7524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7525 lt_prog_compiler_wl='-Wl,'
7526 lt_prog_compiler_pic='-qpic'
7527 lt_prog_compiler_static='-qstaticlink'
7528 ;;
7529 *)
7530 case `$CC -V 2>&1 | sed 5q` in
7531 *Sun\ F* | *Sun*Fortran*)
7532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7533 lt_prog_compiler_pic='-KPIC'
7534 lt_prog_compiler_static='-Bstatic'
7535 lt_prog_compiler_wl=''
7536 ;;
7537 *Sun\ C*)
7538 # Sun C 5.9
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-Bstatic'
7541 lt_prog_compiler_wl='-Wl,'
7542 ;;
7543 esac
7544 ;;
7545 esac
7546 ;;
7547
7548 newsos6)
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7551 ;;
7552
7553 *nto* | *qnx*)
7554 # QNX uses GNU C++, but need to define -shared option too, otherwise
7555 # it will coredump.
7556 lt_prog_compiler_pic='-fPIC -shared'
7557 ;;
7558
7559 osf3* | osf4* | osf5*)
7560 lt_prog_compiler_wl='-Wl,'
7561 # All OSF/1 code is PIC.
7562 lt_prog_compiler_static='-non_shared'
7563 ;;
7564
7565 rdos*)
7566 lt_prog_compiler_static='-non_shared'
7567 ;;
7568
7569 solaris*)
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 case $cc_basename in
7573 f77* | f90* | f95*)
7574 lt_prog_compiler_wl='-Qoption ld ';;
7575 *)
7576 lt_prog_compiler_wl='-Wl,';;
7577 esac
7578 ;;
7579
7580 sunos4*)
7581 lt_prog_compiler_wl='-Qoption ld '
7582 lt_prog_compiler_pic='-PIC'
7583 lt_prog_compiler_static='-Bstatic'
7584 ;;
7585
7586 sysv4 | sysv4.2uw2* | sysv4.3*)
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_pic='-KPIC'
7589 lt_prog_compiler_static='-Bstatic'
7590 ;;
7591
7592 sysv4*MP*)
7593 if test -d /usr/nec ;then
7594 lt_prog_compiler_pic='-Kconform_pic'
7595 lt_prog_compiler_static='-Bstatic'
7596 fi
7597 ;;
7598
7599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7600 lt_prog_compiler_wl='-Wl,'
7601 lt_prog_compiler_pic='-KPIC'
7602 lt_prog_compiler_static='-Bstatic'
7603 ;;
7604
7605 unicos*)
7606 lt_prog_compiler_wl='-Wl,'
7607 lt_prog_compiler_can_build_shared=no
7608 ;;
7609
7610 uts4*)
7611 lt_prog_compiler_pic='-pic'
7612 lt_prog_compiler_static='-Bstatic'
7613 ;;
7614
7615 *)
7616 lt_prog_compiler_can_build_shared=no
7617 ;;
7618 esac
7619 fi
7620
7621case $host_os in
7622 # For platforms which do not support PIC, -DPIC is meaningless:
7623 *djgpp*)
7624 lt_prog_compiler_pic=
7625 ;;
7626 *)
7627 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7628 ;;
7629esac
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7631$as_echo "$lt_prog_compiler_pic" >&6; }
7632
7633
7634
7635
7636
7637
7638#
7639# Check to make sure the PIC flag actually works.
7640#
7641if test -n "$lt_prog_compiler_pic"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7643$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7644if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646else
7647 lt_cv_prog_compiler_pic_works=no
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7651 # Insert the option either (1) after the last *FLAGS variable, or
7652 # (2) before a word containing "conftest.", or (3) at the end.
7653 # Note that $ac_compile itself does not contain backslashes and begins
7654 # with a dollar sign (not a hyphen), so the echo should work correctly.
7655 # The option is referenced via a variable to avoid confusing sed.
7656 lt_compile=`echo "$ac_compile" | $SED \
7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659 -e 's:$: $lt_compiler_flag:'`
7660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7661 (eval "$lt_compile" 2>conftest.err)
7662 ac_status=$?
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 if (exit $ac_status) && test -s "$ac_outfile"; then
7666 # The compiler can only warn and ignore the option if not recognized
7667 # So say no if there are warnings other than the usual output.
7668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671 lt_cv_prog_compiler_pic_works=yes
7672 fi
7673 fi
7674 $RM conftest*
7675
7676fi
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7678$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7679
7680if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7681 case $lt_prog_compiler_pic in
7682 "" | " "*) ;;
7683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7684 esac
7685else
7686 lt_prog_compiler_pic=
7687 lt_prog_compiler_can_build_shared=no
7688fi
7689
7690fi
7691
7692
7693
7694
7695
7696
7697#
7698# Check to make sure the static flag actually works.
7699#
7700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7702$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7703if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7705else
7706 lt_cv_prog_compiler_static_works=no
7707 save_LDFLAGS="$LDFLAGS"
7708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7711 # The linker can only warn and ignore the option if not recognized
7712 # So say no if there are warnings
7713 if test -s conftest.err; then
7714 # Append any errors to the config.log.
7715 cat conftest.err 1>&5
7716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718 if diff conftest.exp conftest.er2 >/dev/null; then
7719 lt_cv_prog_compiler_static_works=yes
7720 fi
7721 else
7722 lt_cv_prog_compiler_static_works=yes
7723 fi
7724 fi
7725 $RM -r conftest*
7726 LDFLAGS="$save_LDFLAGS"
7727
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7730$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7731
7732if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7733 :
7734else
7735 lt_prog_compiler_static=
7736fi
7737
7738
7739
7740
7741
7742
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7746if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748else
7749 lt_cv_prog_compiler_c_o=no
7750 $RM -r conftest 2>/dev/null
7751 mkdir conftest
7752 cd conftest
7753 mkdir out
7754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7755
7756 lt_compiler_flag="-o out/conftest2.$ac_objext"
7757 # Insert the option either (1) after the last *FLAGS variable, or
7758 # (2) before a word containing "conftest.", or (3) at the end.
7759 # Note that $ac_compile itself does not contain backslashes and begins
7760 # with a dollar sign (not a hyphen), so the echo should work correctly.
7761 lt_compile=`echo "$ac_compile" | $SED \
7762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7764 -e 's:$: $lt_compiler_flag:'`
7765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7766 (eval "$lt_compile" 2>out/conftest.err)
7767 ac_status=$?
7768 cat out/conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7771 then
7772 # The compiler can only warn and ignore the option if not recognized
7773 # So say no if there are warnings
7774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7777 lt_cv_prog_compiler_c_o=yes
7778 fi
7779 fi
7780 chmod u+w . 2>&5
7781 $RM conftest*
7782 # SGI C++ compiler will create directory out/ii_files/ for
7783 # template instantiation
7784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7785 $RM out/* && rmdir out
7786 cd ..
7787 $RM -r conftest
7788 $RM conftest*
7789
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7792$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7793
7794
7795
7796
7797
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7801if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803else
7804 lt_cv_prog_compiler_c_o=no
7805 $RM -r conftest 2>/dev/null
7806 mkdir conftest
7807 cd conftest
7808 mkdir out
7809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810
7811 lt_compiler_flag="-o out/conftest2.$ac_objext"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 lt_compile=`echo "$ac_compile" | $SED \
7817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 -e 's:$: $lt_compiler_flag:'`
7820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7821 (eval "$lt_compile" 2>out/conftest.err)
7822 ac_status=$?
7823 cat out/conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7826 then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings
7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_c_o=yes
7833 fi
7834 fi
7835 chmod u+w . 2>&5
7836 $RM conftest*
7837 # SGI C++ compiler will create directory out/ii_files/ for
7838 # template instantiation
7839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7840 $RM out/* && rmdir out
7841 cd ..
7842 $RM -r conftest
7843 $RM conftest*
7844
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7847$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7848
7849
7850
7851
7852hard_links="nottested"
7853if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7854 # do not overwrite the value of need_locks provided by the user
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7856$as_echo_n "checking if we can lock with hard links... " >&6; }
7857 hard_links=yes
7858 $RM conftest*
7859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7860 touch conftest.a
7861 ln conftest.a conftest.b 2>&5 || hard_links=no
7862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7864$as_echo "$hard_links" >&6; }
7865 if test "$hard_links" = no; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7867$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7868 need_locks=warn
7869 fi
7870else
7871 need_locks=no
7872fi
7873
7874
7875
7876
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7880$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7881
7882 runpath_var=
7883 allow_undefined_flag=
7884 always_export_symbols=no
7885 archive_cmds=
7886 archive_expsym_cmds=
7887 compiler_needs_object=no
7888 enable_shared_with_static_runtimes=no
7889 export_dynamic_flag_spec=
7890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7891 hardcode_automatic=no
7892 hardcode_direct=no
7893 hardcode_direct_absolute=no
7894 hardcode_libdir_flag_spec=
7895 hardcode_libdir_flag_spec_ld=
7896 hardcode_libdir_separator=
7897 hardcode_minus_L=no
7898 hardcode_shlibpath_var=unsupported
7899 inherit_rpath=no
7900 link_all_deplibs=unknown
7901 module_cmds=
7902 module_expsym_cmds=
7903 old_archive_from_new_cmds=
7904 old_archive_from_expsyms_cmds=
7905 thread_safe_flag_spec=
7906 whole_archive_flag_spec=
7907 # include_expsyms should be a list of space-separated symbols to be *always*
7908 # included in the symbol list
7909 include_expsyms=
7910 # exclude_expsyms can be an extended regexp of symbols to exclude
7911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913 # as well as any symbol that contains `d'.
7914 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916 # platforms (ab)use it in PIC code, but their linkers get confused if
7917 # the symbol is explicitly referenced. Since portable code cannot
7918 # rely on this symbol name, it's probably fine to never include it in
7919 # preloaded symbol tables.
7920 # Exclude shared library initialization/finalization symbols.
7921 extract_expsyms_cmds=
7922
7923 case $host_os in
7924 cygwin* | mingw* | pw32* | cegcc*)
7925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7926 # When not using gcc, we currently assume that we are using
7927 # Microsoft Visual C++.
7928 if test "$GCC" != yes; then
7929 with_gnu_ld=no
7930 fi
7931 ;;
7932 interix*)
7933 # we just hope/assume this is gcc and not c89 (= MSVC++)
7934 with_gnu_ld=yes
7935 ;;
7936 openbsd*)
7937 with_gnu_ld=no
7938 ;;
7939 esac
7940
7941 ld_shlibs=yes
7942
7943 # On some targets, GNU ld is compatible enough with the native linker
7944 # that we're better off using the native interface for both.
7945 lt_use_gnu_ld_interface=no
7946 if test "$with_gnu_ld" = yes; then
7947 case $host_os in
7948 aix*)
7949 # The AIX port of GNU ld has always aspired to compatibility
7950 # with the native linker. However, as the warning in the GNU ld
7951 # block says, versions before 2.19.5* couldn't really create working
7952 # shared libraries, regardless of the interface used.
7953 case `$LD -v 2>&1` in
7954 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7955 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7956 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7957 *)
7958 lt_use_gnu_ld_interface=yes
7959 ;;
7960 esac
7961 ;;
7962 *)
7963 lt_use_gnu_ld_interface=yes
7964 ;;
7965 esac
7966 fi
7967
7968 if test "$lt_use_gnu_ld_interface" = yes; then
7969 # If archive_cmds runs LD, not CC, wlarc should be empty
7970 wlarc='${wl}'
7971
7972 # Set some defaults for GNU ld with shared library support. These
7973 # are reset later if shared libraries are not supported. Putting them
7974 # here allows them to be overridden if necessary.
7975 runpath_var=LD_RUN_PATH
7976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977 export_dynamic_flag_spec='${wl}--export-dynamic'
7978 # ancient GNU ld didn't support --whole-archive et. al.
7979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7981 else
7982 whole_archive_flag_spec=
7983 fi
7984 supports_anon_versioning=no
7985 case `$LD -v 2>&1` in
7986 *GNU\ gold*) supports_anon_versioning=yes ;;
7987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7990 *\ 2.11.*) ;; # other 2.11 versions
7991 *) supports_anon_versioning=yes ;;
7992 esac
7993
7994 # See if GNU ld supports shared libraries.
7995 case $host_os in
7996 aix[3-9]*)
7997 # On AIX/PPC, the GNU linker is very broken
7998 if test "$host_cpu" != ia64; then
7999 ld_shlibs=no
8000 cat <<_LT_EOF 1>&2
8001
8002*** Warning: the GNU linker, at least up to release 2.19, is reported
8003*** to be unable to reliably create shared libraries on AIX.
8004*** Therefore, libtool is disabling shared libraries support. If you
8005*** really care for shared libraries, you may want to install binutils
8006*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8007*** You will then need to restart the configuration process.
8008
8009_LT_EOF
8010 fi
8011 ;;
8012
8013 amigaos*)
8014 case $host_cpu in
8015 powerpc)
8016 # see comment about AmigaOS4 .so support
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018 archive_expsym_cmds=''
8019 ;;
8020 m68k)
8021 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)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 ;;
8025 esac
8026 ;;
8027
8028 beos*)
8029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8030 allow_undefined_flag=unsupported
8031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8032 # support --undefined. This deserves some investigation. FIXME
8033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034 else
8035 ld_shlibs=no
8036 fi
8037 ;;
8038
8039 cygwin* | mingw* | pw32* | cegcc*)
8040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8041 # as there is no search path for DLLs.
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 export_dynamic_flag_spec='${wl}--export-all-symbols'
8044 allow_undefined_flag=unsupported
8045 always_export_symbols=no
8046 enable_shared_with_static_runtimes=yes
8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8048
8049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 # If the export-symbols file already is a .def file (1st line
8052 # is EXPORTS), use it as is; otherwise, prepend...
8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8054 cp $export_symbols $output_objdir/$soname.def;
8055 else
8056 echo EXPORTS > $output_objdir/$soname.def;
8057 cat $export_symbols >> $output_objdir/$soname.def;
8058 fi~
8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8060 else
8061 ld_shlibs=no
8062 fi
8063 ;;
8064
8065 haiku*)
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 link_all_deplibs=yes
8068 ;;
8069
8070 interix[3-9]*)
8071 hardcode_direct=no
8072 hardcode_shlibpath_var=no
8073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8074 export_dynamic_flag_spec='${wl}-E'
8075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8076 # Instead, shared libraries are loaded at an image base (0x10000000 by
8077 # default) and relocated if they conflict, which is a slow very memory
8078 # consuming and fragmenting process. To avoid this, we pick a random,
8079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8082 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'
8083 ;;
8084
8085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8086 tmp_diet=no
8087 if test "$host_os" = linux-dietlibc; then
8088 case $cc_basename in
8089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8090 esac
8091 fi
8092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8093 && test "$tmp_diet" = no
8094 then
8095 tmp_addflag=
8096 tmp_sharedflag='-shared'
8097 case $cc_basename,$host_cpu in
8098 pgcc*) # Portland Group C compiler
8099 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'
8100 tmp_addflag=' $pic_flag'
8101 ;;
8102 pgf77* | pgf90* | pgf95* | pgfortran*)
8103 # Portland Group f77 and f90 compilers
8104 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'
8105 tmp_addflag=' $pic_flag -Mnomain' ;;
8106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8107 tmp_addflag=' -i_dynamic' ;;
8108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8109 tmp_addflag=' -i_dynamic -nofor_main' ;;
8110 ifc* | ifort*) # Intel Fortran compiler
8111 tmp_addflag=' -nofor_main' ;;
8112 lf95*) # Lahey Fortran 8.1
8113 whole_archive_flag_spec=
8114 tmp_sharedflag='--shared' ;;
8115 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8116 tmp_sharedflag='-qmkshrobj'
8117 tmp_addflag= ;;
8118 nvcc*) # Cuda Compiler Driver 2.2
8119 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'
8120 compiler_needs_object=yes
8121 ;;
8122 esac
8123 case `$CC -V 2>&1 | sed 5q` in
8124 *Sun\ C*) # Sun C 5.9
8125 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'
8126 compiler_needs_object=yes
8127 tmp_sharedflag='-G' ;;
8128 *Sun\ F*) # Sun Fortran 8.3
8129 tmp_sharedflag='-G' ;;
8130 esac
8131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132
8133 if test "x$supports_anon_versioning" = xyes; then
8134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8136 echo "local: *; };" >> $output_objdir/$libname.ver~
8137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8138 fi
8139
8140 case $cc_basename in
8141 xlf* | bgf* | bgxlf* | mpixlf*)
8142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8144 hardcode_libdir_flag_spec=
8145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8147 if test "x$supports_anon_versioning" = xyes; then
8148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8150 echo "local: *; };" >> $output_objdir/$libname.ver~
8151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8152 fi
8153 ;;
8154 esac
8155 else
8156 ld_shlibs=no
8157 fi
8158 ;;
8159
8160 netbsd*)
8161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8163 wlarc=
8164 else
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8167 fi
8168 ;;
8169
8170 solaris*)
8171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8172 ld_shlibs=no
8173 cat <<_LT_EOF 1>&2
8174
8175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8176*** create shared libraries on Solaris systems. Therefore, libtool
8177*** is disabling shared libraries support. We urge you to upgrade GNU
8178*** binutils to release 2.9.1 or newer. Another option is to modify
8179*** your PATH or compiler configuration so that the native linker is
8180*** used, and then restart.
8181
8182_LT_EOF
8183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8186 else
8187 ld_shlibs=no
8188 fi
8189 ;;
8190
8191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8192 case `$LD -v 2>&1` in
8193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8194 ld_shlibs=no
8195 cat <<_LT_EOF 1>&2
8196
8197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8198*** reliably create shared libraries on SCO systems. Therefore, libtool
8199*** is disabling shared libraries support. We urge you to upgrade GNU
8200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8201*** your PATH or compiler configuration so that the native linker is
8202*** used, and then restart.
8203
8204_LT_EOF
8205 ;;
8206 *)
8207 # For security reasons, it is highly recommended that you always
8208 # use absolute paths for naming shared libraries, and exclude the
8209 # DT_RUNPATH tag from executables and libraries. But doing so
8210 # requires that you compile everything twice, which is a pain.
8211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 else
8216 ld_shlibs=no
8217 fi
8218 ;;
8219 esac
8220 ;;
8221
8222 sunos4*)
8223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8224 wlarc=
8225 hardcode_direct=yes
8226 hardcode_shlibpath_var=no
8227 ;;
8228
8229 *)
8230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233 else
8234 ld_shlibs=no
8235 fi
8236 ;;
8237 esac
8238
8239 if test "$ld_shlibs" = no; then
8240 runpath_var=
8241 hardcode_libdir_flag_spec=
8242 export_dynamic_flag_spec=
8243 whole_archive_flag_spec=
8244 fi
8245 else
8246 # PORTME fill in a description of your system's linker (not GNU ld)
8247 case $host_os in
8248 aix3*)
8249 allow_undefined_flag=unsupported
8250 always_export_symbols=yes
8251 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'
8252 # Note: this linker hardcodes the directories in LIBPATH if there
8253 # are no directories specified by -L.
8254 hardcode_minus_L=yes
8255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8256 # Neither direct hardcoding nor static linking is supported with a
8257 # broken collect2.
8258 hardcode_direct=unsupported
8259 fi
8260 ;;
8261
8262 aix[4-9]*)
8263 if test "$host_cpu" = ia64; then
8264 # On IA64, the linker does run time linking by default, so we don't
8265 # have to do anything special.
8266 aix_use_runtimelinking=no
8267 exp_sym_flag='-Bexport'
8268 no_entry_flag=""
8269 else
8270 # If we're using GNU nm, then we don't want the "-C" option.
8271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8272 # Also, AIX nm treats weak defined symbols like other global
8273 # defined symbols, whereas GNU nm marks them as "W".
8274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8275 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'
8276 else
8277 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'
8278 fi
8279 aix_use_runtimelinking=no
8280
8281 # Test if we are trying to use run time linking or normal
8282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8283 # need to do runtime linking.
8284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8285 for ld_flag in $LDFLAGS; do
8286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8287 aix_use_runtimelinking=yes
8288 break
8289 fi
8290 done
8291 ;;
8292 esac
8293
8294 exp_sym_flag='-bexport'
8295 no_entry_flag='-bnoentry'
8296 fi
8297
8298 # When large executables or shared objects are built, AIX ld can
8299 # have problems creating the table of contents. If linking a library
8300 # or program results in "error TOC overflow" add -mminimal-toc to
8301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8303
8304 archive_cmds=''
8305 hardcode_direct=yes
8306 hardcode_direct_absolute=yes
8307 hardcode_libdir_separator=':'
8308 link_all_deplibs=yes
8309 file_list_spec='${wl}-f,'
8310
8311 if test "$GCC" = yes; then
8312 case $host_os in aix4.[012]|aix4.[012].*)
8313 # We only want to do this on AIX 4.2 and lower, the check
8314 # below for broken collect2 doesn't work under 4.3+
8315 collect2name=`${CC} -print-prog-name=collect2`
8316 if test -f "$collect2name" &&
8317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8318 then
8319 # We have reworked collect2
8320 :
8321 else
8322 # We have old collect2
8323 hardcode_direct=unsupported
8324 # It fails to find uninstalled libraries when the uninstalled
8325 # path is not listed in the libpath. Setting hardcode_minus_L
8326 # to unsupported forces relinking
8327 hardcode_minus_L=yes
8328 hardcode_libdir_flag_spec='-L$libdir'
8329 hardcode_libdir_separator=
8330 fi
8331 ;;
8332 esac
8333 shared_flag='-shared'
8334 if test "$aix_use_runtimelinking" = yes; then
8335 shared_flag="$shared_flag "'${wl}-G'
8336 fi
8337 else
8338 # not using gcc
8339 if test "$host_cpu" = ia64; then
8340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8341 # chokes on -Wl,-G. The following line is correct:
8342 shared_flag='-G'
8343 else
8344 if test "$aix_use_runtimelinking" = yes; then
8345 shared_flag='${wl}-G'
8346 else
8347 shared_flag='${wl}-bM:SRE'
8348 fi
8349 fi
8350 fi
8351
8352 export_dynamic_flag_spec='${wl}-bexpall'
8353 # It seems that -bexpall does not export symbols beginning with
8354 # underscore (_), so it is better to generate a list of symbols to export.
8355 always_export_symbols=yes
8356 if test "$aix_use_runtimelinking" = yes; then
8357 # Warning - without using the other runtime loading flags (-brtl),
8358 # -berok will link without error, but may produce a broken library.
8359 allow_undefined_flag='-berok'
8360 # Determine the default libpath from the value encoded in an
8361 # empty executable.
fabfcf5e
KT
8362 if test x$gcc_no_link = xyes; then
8363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8364fi
8365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8366/* end confdefs.h. */
8367
8368int
8369main ()
8370{
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_link "$LINENO"; then :
8377
8378lt_aix_libpath_sed='
8379 /Import File Strings/,/^$/ {
8380 /^0/ {
8381 s/^0 *\(.*\)$/\1/
8382 p
8383 }
8384 }'
8385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386# Check for a 64-bit object if we didn't find anything.
8387if test -z "$aix_libpath"; then
8388 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389fi
8390fi
8391rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396 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"
8397 else
8398 if test "$host_cpu" = ia64; then
8399 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8400 allow_undefined_flag="-z nodefs"
8401 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"
8402 else
8403 # Determine the default libpath from the value encoded in an
8404 # empty executable.
fabfcf5e
KT
8405 if test x$gcc_no_link = xyes; then
8406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8407fi
8408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8409/* end confdefs.h. */
8410
8411int
8412main ()
8413{
8414
8415 ;
8416 return 0;
8417}
8418_ACEOF
8419if ac_fn_c_try_link "$LINENO"; then :
8420
8421lt_aix_libpath_sed='
8422 /Import File Strings/,/^$/ {
8423 /^0/ {
8424 s/^0 *\(.*\)$/\1/
8425 p
8426 }
8427 }'
8428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8429# Check for a 64-bit object if we didn't find anything.
8430if test -z "$aix_libpath"; then
8431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432fi
8433fi
8434rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439 # Warning - without using the other run time loading flags,
8440 # -berok will link without error, but may produce a broken library.
8441 no_undefined_flag=' ${wl}-bernotok'
8442 allow_undefined_flag=' ${wl}-berok'
8443 if test "$with_gnu_ld" = yes; then
8444 # We only use this code for GNU lds that support --whole-archive.
8445 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8446 else
8447 # Exported symbols can be pulled into shared objects from archives
8448 whole_archive_flag_spec='$convenience'
8449 fi
8450 archive_cmds_need_lc=yes
8451 # This is similar to how AIX traditionally builds its shared libraries.
8452 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'
8453 fi
8454 fi
8455 ;;
8456
8457 amigaos*)
8458 case $host_cpu in
8459 powerpc)
8460 # see comment about AmigaOS4 .so support
8461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 archive_expsym_cmds=''
8463 ;;
8464 m68k)
8465 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)'
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_minus_L=yes
8468 ;;
8469 esac
8470 ;;
8471
8472 bsdi[45]*)
8473 export_dynamic_flag_spec=-rdynamic
8474 ;;
8475
8476 cygwin* | mingw* | pw32* | cegcc*)
8477 # When not using gcc, we currently assume that we are using
8478 # Microsoft Visual C++.
8479 # hardcode_libdir_flag_spec is actually meaningless, as there is
8480 # no search path for DLLs.
8481 hardcode_libdir_flag_spec=' '
8482 allow_undefined_flag=unsupported
8483 # Tell ltmain to make .lib files, not .a files.
8484 libext=lib
8485 # Tell ltmain to make .dll files, not .so files.
8486 shrext_cmds=".dll"
8487 # FIXME: Setting linknames here is a bad hack.
8488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8489 # The linker will automatically build a .lib file if we build a DLL.
8490 old_archive_from_new_cmds='true'
8491 # FIXME: Should let the user specify the lib program.
8492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8493 fix_srcfile_path='`cygpath -w "$srcfile"`'
8494 enable_shared_with_static_runtimes=yes
8495 ;;
8496
8497 darwin* | rhapsody*)
8498
8499
8500 archive_cmds_need_lc=no
8501 hardcode_direct=no
8502 hardcode_automatic=yes
8503 hardcode_shlibpath_var=unsupported
8504 if test "$lt_cv_ld_force_load" = "yes"; then
8505 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\"`'
8506 else
8507 whole_archive_flag_spec=''
8508 fi
8509 link_all_deplibs=yes
8510 allow_undefined_flag="$_lt_dar_allow_undefined"
8511 case $cc_basename in
8512 ifort*) _lt_dar_can_shared=yes ;;
8513 *) _lt_dar_can_shared=$GCC ;;
8514 esac
8515 if test "$_lt_dar_can_shared" = "yes"; then
8516 output_verbose_link_cmd=func_echo_all
8517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8519 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}"
8520 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}"
8521
8522 else
8523 ld_shlibs=no
8524 fi
8525
8526 ;;
8527
8528 dgux*)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_shlibpath_var=no
8532 ;;
8533
8534 freebsd1*)
8535 ld_shlibs=no
8536 ;;
8537
8538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8539 # support. Future versions do this automatically, but an explicit c++rt0.o
8540 # does not break anything, and helps significantly (at the cost of a little
8541 # extra space).
8542 freebsd2.2*)
8543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8544 hardcode_libdir_flag_spec='-R$libdir'
8545 hardcode_direct=yes
8546 hardcode_shlibpath_var=no
8547 ;;
8548
8549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8550 freebsd2*)
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_direct=yes
8553 hardcode_minus_L=yes
8554 hardcode_shlibpath_var=no
8555 ;;
8556
8557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8558 freebsd* | dragonfly*)
8559 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8560 hardcode_libdir_flag_spec='-R$libdir'
8561 hardcode_direct=yes
8562 hardcode_shlibpath_var=no
8563 ;;
8564
8565 hpux9*)
8566 if test "$GCC" = yes; then
8567 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'
8568 else
8569 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'
8570 fi
8571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572 hardcode_libdir_separator=:
8573 hardcode_direct=yes
8574
8575 # hardcode_minus_L: Not really in the search PATH,
8576 # but as the default location of the library.
8577 hardcode_minus_L=yes
8578 export_dynamic_flag_spec='${wl}-E'
8579 ;;
8580
8581 hpux10*)
8582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8584 else
8585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8586 fi
8587 if test "$with_gnu_ld" = no; then
8588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8589 hardcode_libdir_flag_spec_ld='+b $libdir'
8590 hardcode_libdir_separator=:
8591 hardcode_direct=yes
8592 hardcode_direct_absolute=yes
8593 export_dynamic_flag_spec='${wl}-E'
8594 # hardcode_minus_L: Not really in the search PATH,
8595 # but as the default location of the library.
8596 hardcode_minus_L=yes
8597 fi
8598 ;;
8599
8600 hpux11*)
8601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8602 case $host_cpu in
8603 hppa*64*)
8604 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8605 ;;
8606 ia64*)
8607 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8608 ;;
8609 *)
8610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8611 ;;
8612 esac
8613 else
8614 case $host_cpu in
8615 hppa*64*)
8616 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 ;;
8618 ia64*)
8619 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8620 ;;
8621 *)
8622
8623 # Older versions of the 11.00 compiler do not understand -b yet
8624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8626$as_echo_n "checking if $CC understands -b... " >&6; }
8627if test "${lt_cv_prog_compiler__b+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629else
8630 lt_cv_prog_compiler__b=no
8631 save_LDFLAGS="$LDFLAGS"
8632 LDFLAGS="$LDFLAGS -b"
8633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8635 # The linker can only warn and ignore the option if not recognized
8636 # So say no if there are warnings
8637 if test -s conftest.err; then
8638 # Append any errors to the config.log.
8639 cat conftest.err 1>&5
8640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642 if diff conftest.exp conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler__b=yes
8644 fi
8645 else
8646 lt_cv_prog_compiler__b=yes
8647 fi
8648 fi
8649 $RM -r conftest*
8650 LDFLAGS="$save_LDFLAGS"
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8654$as_echo "$lt_cv_prog_compiler__b" >&6; }
8655
8656if test x"$lt_cv_prog_compiler__b" = xyes; then
8657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8658else
8659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8660fi
8661
8662 ;;
8663 esac
8664 fi
8665 if test "$with_gnu_ld" = no; then
8666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8667 hardcode_libdir_separator=:
8668
8669 case $host_cpu in
8670 hppa*64*|ia64*)
8671 hardcode_direct=no
8672 hardcode_shlibpath_var=no
8673 ;;
8674 *)
8675 hardcode_direct=yes
8676 hardcode_direct_absolute=yes
8677 export_dynamic_flag_spec='${wl}-E'
8678
8679 # hardcode_minus_L: Not really in the search PATH,
8680 # but as the default location of the library.
8681 hardcode_minus_L=yes
8682 ;;
8683 esac
8684 fi
8685 ;;
8686
8687 irix5* | irix6* | nonstopux*)
8688 if test "$GCC" = yes; then
8689 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'
8690 # Try to use the -exported_symbol ld option, if it does not
8691 # work, assume that -exports_file does not work either and
8692 # implicitly export all symbols.
8693 save_LDFLAGS="$LDFLAGS"
8694 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
fabfcf5e
KT
8695 if test x$gcc_no_link = xyes; then
8696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8697fi
8698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8699/* end confdefs.h. */
8700int foo(void) {}
8701_ACEOF
8702if ac_fn_c_try_link "$LINENO"; then :
8703 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'
8704
8705fi
8706rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LDFLAGS="$save_LDFLAGS"
8709 else
8710 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'
8711 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'
8712 fi
8713 archive_cmds_need_lc='no'
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 hardcode_libdir_separator=:
8716 inherit_rpath=yes
8717 link_all_deplibs=yes
8718 ;;
8719
8720 netbsd*)
8721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8723 else
8724 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8725 fi
8726 hardcode_libdir_flag_spec='-R$libdir'
8727 hardcode_direct=yes
8728 hardcode_shlibpath_var=no
8729 ;;
8730
8731 newsos6)
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_direct=yes
8734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735 hardcode_libdir_separator=:
8736 hardcode_shlibpath_var=no
8737 ;;
8738
8739 *nto* | *qnx*)
8740 ;;
8741
8742 openbsd*)
8743 if test -f /usr/libexec/ld.so; then
8744 hardcode_direct=yes
8745 hardcode_shlibpath_var=no
8746 hardcode_direct_absolute=yes
8747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751 export_dynamic_flag_spec='${wl}-E'
8752 else
8753 case $host_os in
8754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_libdir_flag_spec='-R$libdir'
8757 ;;
8758 *)
8759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761 ;;
8762 esac
8763 fi
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768
8769 os2*)
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_minus_L=yes
8772 allow_undefined_flag=unsupported
8773 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'
8774 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8775 ;;
8776
8777 osf3*)
8778 if test "$GCC" = yes; then
8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780 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'
8781 else
8782 allow_undefined_flag=' -expect_unresolved \*'
8783 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'
8784 fi
8785 archive_cmds_need_lc='no'
8786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8787 hardcode_libdir_separator=:
8788 ;;
8789
8790 osf4* | osf5*) # as osf3* with the addition of -msym flag
8791 if test "$GCC" = yes; then
8792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8793 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'
8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 else
8796 allow_undefined_flag=' -expect_unresolved \*'
8797 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'
8798 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~
8799 $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'
8800
8801 # Both c and cxx compiler support -rpath directly
8802 hardcode_libdir_flag_spec='-rpath $libdir'
8803 fi
8804 archive_cmds_need_lc='no'
8805 hardcode_libdir_separator=:
8806 ;;
8807
8808 solaris*)
8809 no_undefined_flag=' -z defs'
8810 if test "$GCC" = yes; then
8811 wlarc='${wl}'
8812 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8814 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8815 else
8816 case `$CC -V 2>&1` in
8817 *"Compilers 5.0"*)
8818 wlarc=''
8819 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8822 ;;
8823 *)
8824 wlarc='${wl}'
8825 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8827 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8828 ;;
8829 esac
8830 fi
8831 hardcode_libdir_flag_spec='-R$libdir'
8832 hardcode_shlibpath_var=no
8833 case $host_os in
8834 solaris2.[0-5] | solaris2.[0-5].*) ;;
8835 *)
8836 # The compiler driver will combine and reorder linker options,
8837 # but understands `-z linker_flag'. GCC discards it without `$wl',
8838 # but is careful enough not to reorder.
8839 # Supported since Solaris 2.6 (maybe 2.5.1?)
8840 if test "$GCC" = yes; then
8841 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8842 else
8843 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8844 fi
8845 ;;
8846 esac
8847 link_all_deplibs=yes
8848 ;;
8849
8850 sunos4*)
8851 if test "x$host_vendor" = xsequent; then
8852 # Use $CC to link under sequent, because it throws in some extra .o
8853 # files that make .init and .fini sections work.
8854 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8855 else
8856 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8857 fi
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 hardcode_direct=yes
8860 hardcode_minus_L=yes
8861 hardcode_shlibpath_var=no
8862 ;;
8863
8864 sysv4)
8865 case $host_vendor in
8866 sni)
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_direct=yes # is this really true???
8869 ;;
8870 siemens)
8871 ## LD is ld it makes a PLAMLIB
8872 ## CC just makes a GrossModule.
8873 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8874 reload_cmds='$CC -r -o $output$reload_objs'
8875 hardcode_direct=no
8876 ;;
8877 motorola)
8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8880 ;;
8881 esac
8882 runpath_var='LD_RUN_PATH'
8883 hardcode_shlibpath_var=no
8884 ;;
8885
8886 sysv4.3*)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_shlibpath_var=no
8889 export_dynamic_flag_spec='-Bexport'
8890 ;;
8891
8892 sysv4*MP*)
8893 if test -d /usr/nec; then
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_shlibpath_var=no
8896 runpath_var=LD_RUN_PATH
8897 hardcode_runpath_var=yes
8898 ld_shlibs=yes
8899 fi
8900 ;;
8901
8902 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8903 no_undefined_flag='${wl}-z,text'
8904 archive_cmds_need_lc=no
8905 hardcode_shlibpath_var=no
8906 runpath_var='LD_RUN_PATH'
8907
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 else
8912 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8914 fi
8915 ;;
8916
8917 sysv5* | sco3.2v5* | sco5v6*)
8918 # Note: We can NOT use -z defs as we might desire, because we do not
8919 # link with -lc, and that would cause any symbols used from libc to
8920 # always be unresolved, which means just about no library would
8921 # ever link correctly. If we're not using GNU ld we use -z text
8922 # though, which does catch some bad symbols but isn't as heavy-handed
8923 # as -z defs.
8924 no_undefined_flag='${wl}-z,text'
8925 allow_undefined_flag='${wl}-z,nodefs'
8926 archive_cmds_need_lc=no
8927 hardcode_shlibpath_var=no
8928 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8929 hardcode_libdir_separator=':'
8930 link_all_deplibs=yes
8931 export_dynamic_flag_spec='${wl}-Bexport'
8932 runpath_var='LD_RUN_PATH'
8933
8934 if test "$GCC" = yes; then
8935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 else
8938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 fi
8941 ;;
8942
8943 uts4*)
8944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 *)
8950 ld_shlibs=no
8951 ;;
8952 esac
8953
8954 if test x$host_vendor = xsni; then
8955 case $host in
8956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8957 export_dynamic_flag_spec='${wl}-Blargedynsym'
8958 ;;
8959 esac
8960 fi
8961 fi
8962
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8964$as_echo "$ld_shlibs" >&6; }
8965test "$ld_shlibs" = no && can_build_shared=no
8966
8967with_gnu_ld=$with_gnu_ld
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983#
8984# Do we need to explicitly link libc?
8985#
8986case "x$archive_cmds_need_lc" in
8987x|xyes)
8988 # Assume -lc should be added
8989 archive_cmds_need_lc=yes
8990
8991 if test "$enable_shared" = yes && test "$GCC" = yes; then
8992 case $archive_cmds in
8993 *'~'*)
8994 # FIXME: we may have to deal with multi-command sequences.
8995 ;;
8996 '$CC '*)
8997 # Test whether the compiler implicitly links with -lc since on some
8998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8999 # to ld, don't add -lc before -lgcc.
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9001$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9002if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004else
9005 $RM conftest*
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9009 (eval $ac_compile) 2>&5
9010 ac_status=$?
9011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9012 test $ac_status = 0; } 2>conftest.err; then
9013 soname=conftest
9014 lib=conftest
9015 libobjs=conftest.$ac_objext
9016 deplibs=
9017 wl=$lt_prog_compiler_wl
9018 pic_flag=$lt_prog_compiler_pic
9019 compiler_flags=-v
9020 linker_flags=-v
9021 verstring=
9022 output_objdir=.
9023 libname=conftest
9024 lt_save_allow_undefined_flag=$allow_undefined_flag
9025 allow_undefined_flag=
9026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9027 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9028 ac_status=$?
9029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9030 test $ac_status = 0; }
9031 then
9032 lt_cv_archive_cmds_need_lc=no
9033 else
9034 lt_cv_archive_cmds_need_lc=yes
9035 fi
9036 allow_undefined_flag=$lt_save_allow_undefined_flag
9037 else
9038 cat conftest.err 1>&5
9039 fi
9040 $RM conftest*
9041
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9044$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9045 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9046 ;;
9047 esac
9048 fi
9049 ;;
9050esac
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9209$as_echo_n "checking dynamic linker characteristics... " >&6; }
9210
9211if test "$GCC" = yes; then
9212 case $host_os in
9213 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9214 *) lt_awk_arg="/^libraries:/" ;;
9215 esac
9216 case $host_os in
9217 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9218 *) lt_sed_strip_eq="s,=/,/,g" ;;
9219 esac
9220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9221 case $lt_search_path_spec in
9222 *\;*)
9223 # if the path contains ";" then we assume it to be the separator
9224 # otherwise default to the standard path separator (i.e. ":") - it is
9225 # assumed that no part of a normal pathname contains ";" but that should
9226 # okay in the real world where ";" in dirpaths is itself problematic.
9227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9228 ;;
9229 *)
9230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9231 ;;
9232 esac
9233 # Ok, now we have the path, separated by spaces, we can step through it
9234 # and add multilib dir if necessary.
9235 lt_tmp_lt_search_path_spec=
9236 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9237 for lt_sys_path in $lt_search_path_spec; do
9238 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9240 else
9241 test -d "$lt_sys_path" && \
9242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9243 fi
9244 done
9245 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9246BEGIN {RS=" "; FS="/|\n";} {
9247 lt_foo="";
9248 lt_count=0;
9249 for (lt_i = NF; lt_i > 0; lt_i--) {
9250 if ($lt_i != "" && $lt_i != ".") {
9251 if ($lt_i == "..") {
9252 lt_count++;
9253 } else {
9254 if (lt_count == 0) {
9255 lt_foo="/" $lt_i lt_foo;
9256 } else {
9257 lt_count--;
9258 }
9259 }
9260 }
9261 }
9262 if (lt_foo != "") { lt_freq[lt_foo]++; }
9263 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9264}'`
9265 # AWK program above erroneously prepends '/' to C:/dos/paths
9266 # for these hosts.
9267 case $host_os in
9268 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9269 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9270 esac
9271 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9272else
9273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9274fi
9275library_names_spec=
9276libname_spec='lib$name'
9277soname_spec=
9278shrext_cmds=".so"
9279postinstall_cmds=
9280postuninstall_cmds=
9281finish_cmds=
9282finish_eval=
9283shlibpath_var=
9284shlibpath_overrides_runpath=unknown
9285version_type=none
9286dynamic_linker="$host_os ld.so"
9287sys_lib_dlsearch_path_spec="/lib /usr/lib"
9288need_lib_prefix=unknown
9289hardcode_into_libs=no
9290
9291# when you set need_version to no, make sure it does not cause -set_version
9292# flags to be left without arguments
9293need_version=unknown
9294
9295case $host_os in
9296aix3*)
9297 version_type=linux
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9299 shlibpath_var=LIBPATH
9300
9301 # AIX 3 has no versioning support, so we append a major version to the name.
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 ;;
9304
9305aix[4-9]*)
9306 version_type=linux
9307 need_lib_prefix=no
9308 need_version=no
9309 hardcode_into_libs=yes
9310 if test "$host_cpu" = ia64; then
9311 # AIX 5 supports IA64
9312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 else
9315 # With GCC up to 2.95.x, collect2 would create an import file
9316 # for dependence libraries. The import file would start with
9317 # the line `#! .'. This would cause the generated library to
9318 # depend on `.', always an invalid library. This was fixed in
9319 # development snapshots of GCC prior to 3.0.
9320 case $host_os in
9321 aix4 | aix4.[01] | aix4.[01].*)
9322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9323 echo ' yes '
9324 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9325 :
9326 else
9327 can_build_shared=no
9328 fi
9329 ;;
9330 esac
9331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9332 # soname into executable. Probably we can add versioning support to
9333 # collect2, so additional links can be useful in future.
9334 if test "$aix_use_runtimelinking" = yes; then
9335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9336 # instead of lib<name>.a to let people know that these are not
9337 # typical AIX shared libraries.
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 else
9340 # We preserve .a as extension for shared libraries through AIX4.2
9341 # and later when we are not doing run time linking.
9342 library_names_spec='${libname}${release}.a $libname.a'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 fi
9345 shlibpath_var=LIBPATH
9346 fi
9347 ;;
9348
9349amigaos*)
9350 case $host_cpu in
9351 powerpc)
9352 # Since July 2007 AmigaOS4 officially supports .so libraries.
9353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 ;;
9356 m68k)
9357 library_names_spec='$libname.ixlibrary $libname.a'
9358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9359 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'
9360 ;;
9361 esac
9362 ;;
9363
9364beos*)
9365 library_names_spec='${libname}${shared_ext}'
9366 dynamic_linker="$host_os ld.so"
9367 shlibpath_var=LIBRARY_PATH
9368 ;;
9369
9370bsdi[45]*)
9371 version_type=linux
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9379 # the default ld.so.conf also contains /usr/contrib/lib and
9380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9381 # libtool to hard-code these into programs
9382 ;;
9383
9384cygwin* | mingw* | pw32* | cegcc*)
9385 version_type=windows
9386 shrext_cmds=".dll"
9387 need_version=no
9388 need_lib_prefix=no
9389
9390 case $GCC,$host_os in
9391 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9392 library_names_spec='$libname.dll.a'
9393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9394 postinstall_cmds='base_file=`basename \${file}`~
9395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9396 dldir=$destdir/`dirname \$dlpath`~
9397 test -d \$dldir || mkdir -p \$dldir~
9398 $install_prog $dir/$dlname \$dldir/$dlname~
9399 chmod a+x \$dldir/$dlname~
9400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9402 fi'
9403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9404 dlpath=$dir/\$dldll~
9405 $RM \$dlpath'
9406 shlibpath_overrides_runpath=yes
9407
9408 case $host_os in
9409 cygwin*)
9410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9414 ;;
9415 mingw* | cegcc*)
9416 # MinGW DLLs use traditional 'lib' prefix
9417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418 ;;
9419 pw32*)
9420 # pw32 DLLs use 'pw' prefix rather than 'lib'
9421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422 ;;
9423 esac
9424 ;;
9425
9426 *)
9427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9428 ;;
9429 esac
9430 dynamic_linker='Win32 ld.exe'
9431 # FIXME: first we should search . and the directory the executable is in
9432 shlibpath_var=PATH
9433 ;;
9434
9435darwin* | rhapsody*)
9436 dynamic_linker="$host_os dyld"
9437 version_type=darwin
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9441 soname_spec='${libname}${release}${major}$shared_ext'
9442 shlibpath_overrides_runpath=yes
9443 shlibpath_var=DYLD_LIBRARY_PATH
9444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9445
9446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9448 ;;
9449
9450dgux*)
9451 version_type=linux
9452 need_lib_prefix=no
9453 need_version=no
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 ;;
9458
9459freebsd1*)
9460 dynamic_linker=no
9461 ;;
9462
9463freebsd* | dragonfly*)
9464 # DragonFly does not have aout. When/if they implement a new
9465 # versioning mechanism, adjust this.
9466 if test -x /usr/bin/objformat; then
9467 objformat=`/usr/bin/objformat`
9468 else
9469 case $host_os in
9470 freebsd[123]*) objformat=aout ;;
9471 *) objformat=elf ;;
9472 esac
9473 fi
9474 version_type=freebsd-$objformat
9475 case $version_type in
9476 freebsd-elf*)
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9478 need_version=no
9479 need_lib_prefix=no
9480 ;;
9481 freebsd-*)
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9483 need_version=yes
9484 ;;
9485 esac
9486 shlibpath_var=LD_LIBRARY_PATH
9487 case $host_os in
9488 freebsd2*)
9489 shlibpath_overrides_runpath=yes
9490 ;;
9491 freebsd3.[01]* | freebsdelf3.[01]*)
9492 shlibpath_overrides_runpath=yes
9493 hardcode_into_libs=yes
9494 ;;
9495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9497 shlibpath_overrides_runpath=no
9498 hardcode_into_libs=yes
9499 ;;
9500 *) # from 4.6 on, and DragonFly
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 ;;
9504 esac
9505 ;;
9506
9507gnu*)
9508 version_type=linux
9509 need_lib_prefix=no
9510 need_version=no
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 hardcode_into_libs=yes
9515 ;;
9516
9517haiku*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 dynamic_linker="$host_os runtime_loader"
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9527 hardcode_into_libs=yes
9528 ;;
9529
9530hpux9* | hpux10* | hpux11*)
9531 # Give a soname corresponding to the major version so that dld.sl refuses to
9532 # link against other versions.
9533 version_type=sunos
9534 need_lib_prefix=no
9535 need_version=no
9536 case $host_cpu in
9537 ia64*)
9538 shrext_cmds='.so'
9539 hardcode_into_libs=yes
9540 dynamic_linker="$host_os dld.so"
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 if test "X$HPUX_IA64_MODE" = X32; then
9546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9547 else
9548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9549 fi
9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9551 ;;
9552 hppa*64*)
9553 shrext_cmds='.sl'
9554 hardcode_into_libs=yes
9555 dynamic_linker="$host_os dld.sl"
9556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9562 ;;
9563 *)
9564 shrext_cmds='.sl'
9565 dynamic_linker="$host_os dld.sl"
9566 shlibpath_var=SHLIB_PATH
9567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 ;;
9571 esac
9572 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9573 postinstall_cmds='chmod 555 $lib'
9574 # or fails outright, so override atomically:
9575 install_override_mode=555
9576 ;;
9577
9578interix[3-9]*)
9579 version_type=linux
9580 need_lib_prefix=no
9581 need_version=no
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 ;;
9589
9590irix5* | irix6* | nonstopux*)
9591 case $host_os in
9592 nonstopux*) version_type=nonstopux ;;
9593 *)
9594 if test "$lt_cv_prog_gnu_ld" = yes; then
9595 version_type=linux
9596 else
9597 version_type=irix
9598 fi ;;
9599 esac
9600 need_lib_prefix=no
9601 need_version=no
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 case $host_os in
9605 irix5* | nonstopux*)
9606 libsuff= shlibsuff=
9607 ;;
9608 *)
9609 case $LD in # libtool.m4 will add one of these switches to LD
9610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9611 libsuff= shlibsuff= libmagic=32-bit;;
9612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9613 libsuff=32 shlibsuff=N32 libmagic=N32;;
9614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9616 *) libsuff= shlibsuff= libmagic=never-match;;
9617 esac
9618 ;;
9619 esac
9620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9621 shlibpath_overrides_runpath=no
9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624 hardcode_into_libs=yes
9625 ;;
9626
9627# No shared lib support for Linux oldld, aout, or coff.
9628linux*oldld* | linux*aout* | linux*coff*)
9629 dynamic_linker=no
9630 ;;
9631
9632# This must be Linux ELF.
9633linux* | k*bsd*-gnu | kopensolaris*-gnu)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=no
9642
9643 # Some binutils ld are patched to set DT_RUNPATH
9644 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9646else
9647 lt_cv_shlibpath_overrides_runpath=no
9648 save_LDFLAGS=$LDFLAGS
9649 save_libdir=$libdir
9650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
fabfcf5e
KT
9652 if test x$gcc_no_link = xyes; then
9653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9654fi
9655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
9656/* end confdefs.h. */
9657
9658int
9659main ()
9660{
9661
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_link "$LINENO"; then :
9667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9668 lt_cv_shlibpath_overrides_runpath=yes
9669fi
9670fi
9671rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LDFLAGS=$save_LDFLAGS
9674 libdir=$save_libdir
9675
9676fi
9677
9678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9679
9680 # This implies no fast_install, which is unacceptable.
9681 # Some rework will be needed to allow for fast_install
9682 # before this can be enabled.
9683 hardcode_into_libs=yes
9684
9685 # Append ld.so.conf contents to the search path
9686 if test -f /etc/ld.so.conf; then
9687 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' ' '`
9688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9689 fi
9690
9691 # We used to test for /lib/ld.so.1 and disable shared libraries on
9692 # powerpc, because MkLinux only supported shared libraries with the
9693 # GNU dynamic linker. Since this was broken with cross compilers,
9694 # most powerpc-linux boxes support dynamic linking these days and
9695 # people can always --disable-shared, the test was removed, and we
9696 # assume the GNU/Linux dynamic linker is in use.
9697 dynamic_linker='GNU/Linux ld.so'
9698 ;;
9699
9700netbsd*)
9701 version_type=sunos
9702 need_lib_prefix=no
9703 need_version=no
9704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9707 dynamic_linker='NetBSD (a.out) ld.so'
9708 else
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 dynamic_linker='NetBSD ld.elf_so'
9712 fi
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes
9715 hardcode_into_libs=yes
9716 ;;
9717
9718newsos6)
9719 version_type=linux
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 shlibpath_overrides_runpath=yes
9723 ;;
9724
9725*nto* | *qnx*)
9726 version_type=qnx
9727 need_lib_prefix=no
9728 need_version=no
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=no
9733 hardcode_into_libs=yes
9734 dynamic_linker='ldqnx.so'
9735 ;;
9736
9737openbsd*)
9738 version_type=sunos
9739 sys_lib_dlsearch_path_spec="/usr/lib"
9740 need_lib_prefix=no
9741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9742 case $host_os in
9743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9744 *) need_version=no ;;
9745 esac
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9750 case $host_os in
9751 openbsd2.[89] | openbsd2.[89].*)
9752 shlibpath_overrides_runpath=no
9753 ;;
9754 *)
9755 shlibpath_overrides_runpath=yes
9756 ;;
9757 esac
9758 else
9759 shlibpath_overrides_runpath=yes
9760 fi
9761 ;;
9762
9763os2*)
9764 libname_spec='$name'
9765 shrext_cmds=".dll"
9766 need_lib_prefix=no
9767 library_names_spec='$libname${shared_ext} $libname.a'
9768 dynamic_linker='OS/2 ld.exe'
9769 shlibpath_var=LIBPATH
9770 ;;
9771
9772osf3* | osf4* | osf5*)
9773 version_type=osf
9774 need_lib_prefix=no
9775 need_version=no
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9781 ;;
9782
9783rdos*)
9784 dynamic_linker=no
9785 ;;
9786
9787solaris*)
9788 version_type=linux
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 hardcode_into_libs=yes
9796 # ldd complains unless libraries are executable
9797 postinstall_cmds='chmod +x $lib'
9798 ;;
9799
9800sunos4*)
9801 version_type=sunos
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9806 if test "$with_gnu_ld" = yes; then
9807 need_lib_prefix=no
9808 fi
9809 need_version=yes
9810 ;;
9811
9812sysv4 | sysv4.3*)
9813 version_type=linux
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 case $host_vendor in
9818 sni)
9819 shlibpath_overrides_runpath=no
9820 need_lib_prefix=no
9821 runpath_var=LD_RUN_PATH
9822 ;;
9823 siemens)
9824 need_lib_prefix=no
9825 ;;
9826 motorola)
9827 need_lib_prefix=no
9828 need_version=no
9829 shlibpath_overrides_runpath=no
9830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9831 ;;
9832 esac
9833 ;;
9834
9835sysv4*MP*)
9836 if test -d /usr/nec ;then
9837 version_type=linux
9838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9839 soname_spec='$libname${shared_ext}.$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 fi
9842 ;;
9843
9844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9845 version_type=freebsd-elf
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=yes
9852 hardcode_into_libs=yes
9853 if test "$with_gnu_ld" = yes; then
9854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9855 else
9856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9857 case $host_os in
9858 sco3.2v5*)
9859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9860 ;;
9861 esac
9862 fi
9863 sys_lib_dlsearch_path_spec='/usr/lib'
9864 ;;
9865
9866tpf*)
9867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9868 version_type=linux
9869 need_lib_prefix=no
9870 need_version=no
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=no
9874 hardcode_into_libs=yes
9875 ;;
9876
9877uts4*)
9878 version_type=linux
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 ;;
9883
9884*)
9885 dynamic_linker=no
9886 ;;
9887esac
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9889$as_echo "$dynamic_linker" >&6; }
9890test "$dynamic_linker" = no && can_build_shared=no
9891
9892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9893if test "$GCC" = yes; then
9894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9895fi
9896
9897if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9899fi
9900if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9902fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9996$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9997hardcode_action=
9998if test -n "$hardcode_libdir_flag_spec" ||
9999 test -n "$runpath_var" ||
10000 test "X$hardcode_automatic" = "Xyes" ; then
10001
10002 # We can hardcode non-existent directories.
10003 if test "$hardcode_direct" != no &&
10004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10005 # have to relink, otherwise we might link with an installed library
10006 # when we should be linking with a yet-to-be-installed one
10007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10008 test "$hardcode_minus_L" != no; then
10009 # Linking always hardcodes the temporary library directory.
10010 hardcode_action=relink
10011 else
10012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10013 hardcode_action=immediate
10014 fi
10015else
10016 # We cannot hardcode anything, or else we can only hardcode existing
10017 # directories.
10018 hardcode_action=unsupported
10019fi
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10021$as_echo "$hardcode_action" >&6; }
10022
10023if test "$hardcode_action" = relink ||
10024 test "$inherit_rpath" = yes; then
10025 # Fast installation is not supported
10026 enable_fast_install=no
10027elif test "$shlibpath_overrides_runpath" = yes ||
10028 test "$enable_shared" = no; then
10029 # Fast installation is not necessary
10030 enable_fast_install=needless
10031fi
10032
10033
10034
10035
10036
10037
10038 if test "x$enable_dlopen" != xyes; then
10039 enable_dlopen=unknown
10040 enable_dlopen_self=unknown
10041 enable_dlopen_self_static=unknown
10042else
10043 lt_cv_dlopen=no
10044 lt_cv_dlopen_libs=
10045
10046 case $host_os in
10047 beos*)
10048 lt_cv_dlopen="load_add_on"
10049 lt_cv_dlopen_libs=
10050 lt_cv_dlopen_self=yes
10051 ;;
10052
10053 mingw* | pw32* | cegcc*)
10054 lt_cv_dlopen="LoadLibrary"
10055 lt_cv_dlopen_libs=
10056 ;;
10057
10058 cygwin*)
10059 lt_cv_dlopen="dlopen"
10060 lt_cv_dlopen_libs=
10061 ;;
10062
10063 darwin*)
10064 # if libdl is installed we need to link against it
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10066$as_echo_n "checking for dlopen in -ldl... " >&6; }
10067if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069else
10070 ac_check_lib_save_LIBS=$LIBS
10071LIBS="-ldl $LIBS"
fabfcf5e
KT
10072if test x$gcc_no_link = xyes; then
10073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10074fi
1ec601bf
FXC
10075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076/* end confdefs.h. */
10077
10078/* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081#ifdef __cplusplus
10082extern "C"
10083#endif
10084char dlopen ();
10085int
10086main ()
10087{
10088return dlopen ();
10089 ;
10090 return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094 ac_cv_lib_dl_dlopen=yes
10095else
10096 ac_cv_lib_dl_dlopen=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100LIBS=$ac_check_lib_save_LIBS
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10104if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10106else
10107
10108 lt_cv_dlopen="dyld"
10109 lt_cv_dlopen_libs=
10110 lt_cv_dlopen_self=yes
10111
10112fi
10113
10114 ;;
10115
10116 *)
10117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10118if test "x$ac_cv_func_shl_load" = x""yes; then :
10119 lt_cv_dlopen="shl_load"
10120else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10122$as_echo_n "checking for shl_load in -ldld... " >&6; }
10123if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125else
10126 ac_check_lib_save_LIBS=$LIBS
10127LIBS="-ldld $LIBS"
fabfcf5e
KT
10128if test x$gcc_no_link = xyes; then
10129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10130fi
1ec601bf
FXC
10131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h. */
10133
10134/* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10137#ifdef __cplusplus
10138extern "C"
10139#endif
10140char shl_load ();
10141int
10142main ()
10143{
10144return shl_load ();
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149if ac_fn_c_try_link "$LINENO"; then :
10150 ac_cv_lib_dld_shl_load=yes
10151else
10152 ac_cv_lib_dld_shl_load=no
10153fi
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156LIBS=$ac_check_lib_save_LIBS
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10159$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10160if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10162else
10163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10164if test "x$ac_cv_func_dlopen" = x""yes; then :
10165 lt_cv_dlopen="dlopen"
10166else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10168$as_echo_n "checking for dlopen in -ldl... " >&6; }
10169if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171else
10172 ac_check_lib_save_LIBS=$LIBS
10173LIBS="-ldl $LIBS"
fabfcf5e
KT
10174if test x$gcc_no_link = xyes; then
10175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10176fi
1ec601bf
FXC
10177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h. */
10179
10180/* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10183#ifdef __cplusplus
10184extern "C"
10185#endif
10186char dlopen ();
10187int
10188main ()
10189{
10190return dlopen ();
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"; then :
10196 ac_cv_lib_dl_dlopen=yes
10197else
10198 ac_cv_lib_dl_dlopen=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202LIBS=$ac_check_lib_save_LIBS
10203fi
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10205$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10206if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10208else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10210$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10211if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213else
10214 ac_check_lib_save_LIBS=$LIBS
10215LIBS="-lsvld $LIBS"
fabfcf5e
KT
10216if test x$gcc_no_link = xyes; then
10217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10218fi
1ec601bf
FXC
10219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h. */
10221
10222/* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228char dlopen ();
10229int
10230main ()
10231{
10232return dlopen ();
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238 ac_cv_lib_svld_dlopen=yes
10239else
10240 ac_cv_lib_svld_dlopen=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244LIBS=$ac_check_lib_save_LIBS
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10247$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10248if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10250else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10252$as_echo_n "checking for dld_link in -ldld... " >&6; }
10253if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255else
10256 ac_check_lib_save_LIBS=$LIBS
10257LIBS="-ldld $LIBS"
fabfcf5e
KT
10258if test x$gcc_no_link = xyes; then
10259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10260fi
1ec601bf
FXC
10261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262/* end confdefs.h. */
10263
10264/* Override any GCC internal prototype to avoid an error.
10265 Use char because int might match the return type of a GCC
10266 builtin and then its argument prototype would still apply. */
10267#ifdef __cplusplus
10268extern "C"
10269#endif
10270char dld_link ();
10271int
10272main ()
10273{
10274return dld_link ();
10275 ;
10276 return 0;
10277}
10278_ACEOF
10279if ac_fn_c_try_link "$LINENO"; then :
10280 ac_cv_lib_dld_dld_link=yes
10281else
10282 ac_cv_lib_dld_dld_link=no
10283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286LIBS=$ac_check_lib_save_LIBS
10287fi
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10289$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10290if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10292fi
10293
10294
10295fi
10296
10297
10298fi
10299
10300
10301fi
10302
10303
10304fi
10305
10306
10307fi
10308
10309 ;;
10310 esac
10311
10312 if test "x$lt_cv_dlopen" != xno; then
10313 enable_dlopen=yes
10314 else
10315 enable_dlopen=no
10316 fi
10317
10318 case $lt_cv_dlopen in
10319 dlopen)
10320 save_CPPFLAGS="$CPPFLAGS"
10321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10322
10323 save_LDFLAGS="$LDFLAGS"
10324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10325
10326 save_LIBS="$LIBS"
10327 LIBS="$lt_cv_dlopen_libs $LIBS"
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10330$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10331if test "${lt_cv_dlopen_self+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333else
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self=cross
10336else
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<_LT_EOF
4c993c44 10340#line 10340 "configure"
1ec601bf
FXC
10341#include "confdefs.h"
10342
10343#if HAVE_DLFCN_H
10344#include <dlfcn.h>
10345#endif
10346
10347#include <stdio.h>
10348
10349#ifdef RTLD_GLOBAL
10350# define LT_DLGLOBAL RTLD_GLOBAL
10351#else
10352# ifdef DL_GLOBAL
10353# define LT_DLGLOBAL DL_GLOBAL
10354# else
10355# define LT_DLGLOBAL 0
10356# endif
10357#endif
10358
10359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361#ifndef LT_DLLAZY_OR_NOW
10362# ifdef RTLD_LAZY
10363# define LT_DLLAZY_OR_NOW RTLD_LAZY
10364# else
10365# ifdef DL_LAZY
10366# define LT_DLLAZY_OR_NOW DL_LAZY
10367# else
10368# ifdef RTLD_NOW
10369# define LT_DLLAZY_OR_NOW RTLD_NOW
10370# else
10371# ifdef DL_NOW
10372# define LT_DLLAZY_OR_NOW DL_NOW
10373# else
10374# define LT_DLLAZY_OR_NOW 0
10375# endif
10376# endif
10377# endif
10378# endif
10379#endif
10380
10381/* When -fvisbility=hidden is used, assume the code has been annotated
10382 correspondingly for the symbols needed. */
10383#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10384void fnord () __attribute__((visibility("default")));
10385#endif
10386
10387void fnord () { int i=42; }
10388int main ()
10389{
10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 int status = $lt_dlunknown;
10392
10393 if (self)
10394 {
10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 else
10397 {
10398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10399 else puts (dlerror ());
10400 }
10401 /* dlclose (self); */
10402 }
10403 else
10404 puts (dlerror ());
10405
10406 return status;
10407}
10408_LT_EOF
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10414 (./conftest; exit; ) >&5 2>/dev/null
10415 lt_status=$?
10416 case x$lt_status in
10417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10420 esac
10421 else :
10422 # compilation failed
10423 lt_cv_dlopen_self=no
10424 fi
10425fi
10426rm -fr conftest*
10427
10428
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10431$as_echo "$lt_cv_dlopen_self" >&6; }
10432
10433 if test "x$lt_cv_dlopen_self" = xyes; then
10434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10436$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10437if test "${lt_cv_dlopen_self_static+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439else
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self_static=cross
10442else
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<_LT_EOF
4c993c44 10446#line 10446 "configure"
1ec601bf
FXC
10447#include "confdefs.h"
10448
10449#if HAVE_DLFCN_H
10450#include <dlfcn.h>
10451#endif
10452
10453#include <stdio.h>
10454
10455#ifdef RTLD_GLOBAL
10456# define LT_DLGLOBAL RTLD_GLOBAL
10457#else
10458# ifdef DL_GLOBAL
10459# define LT_DLGLOBAL DL_GLOBAL
10460# else
10461# define LT_DLGLOBAL 0
10462# endif
10463#endif
10464
10465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467#ifndef LT_DLLAZY_OR_NOW
10468# ifdef RTLD_LAZY
10469# define LT_DLLAZY_OR_NOW RTLD_LAZY
10470# else
10471# ifdef DL_LAZY
10472# define LT_DLLAZY_OR_NOW DL_LAZY
10473# else
10474# ifdef RTLD_NOW
10475# define LT_DLLAZY_OR_NOW RTLD_NOW
10476# else
10477# ifdef DL_NOW
10478# define LT_DLLAZY_OR_NOW DL_NOW
10479# else
10480# define LT_DLLAZY_OR_NOW 0
10481# endif
10482# endif
10483# endif
10484# endif
10485#endif
10486
10487/* When -fvisbility=hidden is used, assume the code has been annotated
10488 correspondingly for the symbols needed. */
10489#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10490void fnord () __attribute__((visibility("default")));
10491#endif
10492
10493void fnord () { int i=42; }
10494int main ()
10495{
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10498
10499 if (self)
10500 {
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10502 else
10503 {
10504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10505 else puts (dlerror ());
10506 }
10507 /* dlclose (self); */
10508 }
10509 else
10510 puts (dlerror ());
10511
10512 return status;
10513}
10514_LT_EOF
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self_static=no
10530 fi
10531fi
10532rm -fr conftest*
10533
10534
10535fi
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10537$as_echo "$lt_cv_dlopen_self_static" >&6; }
10538 fi
10539
10540 CPPFLAGS="$save_CPPFLAGS"
10541 LDFLAGS="$save_LDFLAGS"
10542 LIBS="$save_LIBS"
10543 ;;
10544 esac
10545
10546 case $lt_cv_dlopen_self in
10547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10548 *) enable_dlopen_self=unknown ;;
10549 esac
10550
10551 case $lt_cv_dlopen_self_static in
10552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10553 *) enable_dlopen_self_static=unknown ;;
10554 esac
10555fi
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573striplib=
10574old_striplib=
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10576$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10577if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10581$as_echo "yes" >&6; }
10582else
10583# FIXME - insert some real tests, host_os isn't really good enough
10584 case $host_os in
10585 darwin*)
10586 if test -n "$STRIP" ; then
10587 striplib="$STRIP -x"
10588 old_striplib="$STRIP -S"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590$as_echo "yes" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593$as_echo "no" >&6; }
10594 fi
10595 ;;
10596 *)
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
10599 ;;
10600 esac
10601fi
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 # Report which library types will actually be built
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10616$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10618$as_echo "$can_build_shared" >&6; }
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10621$as_echo_n "checking whether to build shared libraries... " >&6; }
10622 test "$can_build_shared" = "no" && enable_shared=no
10623
10624 # On AIX, shared libraries and static libraries use the same namespace, and
10625 # are all built from PIC.
10626 case $host_os in
10627 aix3*)
10628 test "$enable_shared" = yes && enable_static=no
10629 if test -n "$RANLIB"; then
10630 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10631 postinstall_cmds='$RANLIB $lib'
10632 fi
fabfcf5e
KT
10633 ;;
10634
10635 aix[4-9]*)
10636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10637 test "$enable_shared" = yes && enable_static=no
10638 fi
10639 ;;
10640 esac
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10642$as_echo "$enable_shared" >&6; }
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10645$as_echo_n "checking whether to build static libraries... " >&6; }
10646 # Make sure either enable_shared or enable_static is yes.
10647 test "$enable_shared" = yes || enable_static=yes
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10649$as_echo "$enable_static" >&6; }
10650
10651
10652
10653
10654fi
10655ac_ext=c
10656ac_cpp='$CPP $CPPFLAGS'
10657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661CC="$lt_save_CC"
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 ac_config_commands="$ac_config_commands libtool"
10676
10677
10678
10679
10680# Only expand once:
10681
10682
10683
10684
10685
7de6ba7a
DK
10686case $host in
10687 *-cygwin* | *-mingw*)
10688 # 'host' will be top-level target in the case of a target lib,
10689 # we must compare to with_cross_host to decide if this is a native
10690 # or cross-compiler and select where to install dlls appropriately.
10691 if test -n "$with_cross_host" &&
10692 test x"$with_cross_host" != x"no"; then
10693 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10694 else
10695 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10696 fi
10697 ;;
10698 *)
10699 lt_host_flags=
10700 ;;
10701esac
10702
10703
10704
10705
10706
10707
fabfcf5e
KT
10708
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10710$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10711 # Check whether --enable-maintainer-mode was given.
10712if test "${enable_maintainer_mode+set}" = set; then :
10713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10714else
10715 USE_MAINTAINER_MODE=no
10716fi
10717
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10719$as_echo "$USE_MAINTAINER_MODE" >&6; }
10720 if test $USE_MAINTAINER_MODE = yes; then
10721 MAINTAINER_MODE_TRUE=
10722 MAINTAINER_MODE_FALSE='#'
10723else
10724 MAINTAINER_MODE_TRUE='#'
10725 MAINTAINER_MODE_FALSE=
10726fi
10727
10728 MAINT=$MAINTAINER_MODE_TRUE
10729
10730
10731# Default to --enable-multilib
10732# Check whether --enable-multilib was given.
10733if test "${enable_multilib+set}" = set; then :
10734 enableval=$enable_multilib; case "$enableval" in
10735 yes) multilib=yes ;;
10736 no) multilib=no ;;
10737 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10738 esac
10739else
10740 multilib=yes
10741fi
10742
10743
10744# We may get other options which we leave undocumented:
10745# --with-target-subdir, --with-multisrctop, --with-multisubdir
10746# See config-ml.in if you want the gory details.
10747
10748if test "$srcdir" = "."; then
10749 if test "$with_target_subdir" != "."; then
10750 multi_basedir="$srcdir/$with_multisrctop../.."
10751 else
10752 multi_basedir="$srcdir/$with_multisrctop.."
10753 fi
10754else
10755 multi_basedir="$srcdir/.."
10756fi
10757
10758
10759# Even if the default multilib is not a cross compilation,
10760# it may be that some of the other multilibs are.
10761if test $cross_compiling = no && test $multilib = yes \
10762 && test "x${with_multisubdir}" != x ; then
10763 cross_compiling=maybe
10764fi
10765
10766ac_config_commands="$ac_config_commands default-1"
10767
10768
10769ac_ext=c
10770ac_cpp='$CPP $CPPFLAGS'
10771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
10775# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10776# We must force CC to /not/ be precious variables; otherwise
10777# the wrong, non-multilib-adjusted value will be used in multilibs.
10778# As a side effect, we have to subst CFLAGS ourselves.
10779
10780
10781
10782ac_ext=c
10783ac_cpp='$CPP $CPPFLAGS'
10784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10786ac_compiler_gnu=$ac_cv_c_compiler_gnu
10787if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10789set dummy ${ac_tool_prefix}gcc; ac_word=$2
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
10792if test "${ac_cv_prog_CC+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10794else
10795 if test -n "$CC"; then
10796 ac_cv_prog_CC="$CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810 done
10811IFS=$as_save_IFS
10812
10813fi
10814fi
10815CC=$ac_cv_prog_CC
10816if test -n "$CC"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10818$as_echo "$CC" >&6; }
10819else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
10822fi
10823
10824
10825fi
10826if test -z "$ac_cv_prog_CC"; then
10827 ac_ct_CC=$CC
10828 # Extract the first word of "gcc", so it can be a program name with args.
10829set dummy gcc; ac_word=$2
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831$as_echo_n "checking for $ac_word... " >&6; }
10832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 if test -n "$ac_ct_CC"; then
10836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10837else
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_ac_ct_CC="gcc"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850 done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855ac_ct_CC=$ac_cv_prog_ac_ct_CC
10856if test -n "$ac_ct_CC"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10858$as_echo "$ac_ct_CC" >&6; }
10859else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862fi
10863
10864 if test "x$ac_ct_CC" = x; then
10865 CC=""
10866 else
10867 case $cross_compiling:$ac_tool_warned in
10868yes:)
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10871ac_tool_warned=yes ;;
10872esac
10873 CC=$ac_ct_CC
10874 fi
10875else
10876 CC="$ac_cv_prog_CC"
10877fi
10878
10879if test -z "$CC"; then
10880 if test -n "$ac_tool_prefix"; then
10881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10882set dummy ${ac_tool_prefix}cc; ac_word=$2
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884$as_echo_n "checking for $ac_word... " >&6; }
10885if test "${ac_cv_prog_CC+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887else
10888 if test -n "$CC"; then
10889 ac_cv_prog_CC="$CC" # Let the user override the test.
10890else
10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $PATH
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_prog_CC="${ac_tool_prefix}cc"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902done
10903 done
10904IFS=$as_save_IFS
10905
10906fi
10907fi
10908CC=$ac_cv_prog_CC
10909if test -n "$CC"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10911$as_echo "$CC" >&6; }
10912else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
10915fi
10916
10917
10918 fi
10919fi
10920if test -z "$CC"; then
10921 # Extract the first word of "cc", so it can be a program name with args.
10922set dummy cc; ac_word=$2
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
10925if test "${ac_cv_prog_CC+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927else
10928 if test -n "$CC"; then
10929 ac_cv_prog_CC="$CC" # Let the user override the test.
10930else
10931 ac_prog_rejected=no
10932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $PATH
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10940 ac_prog_rejected=yes
10941 continue
10942 fi
10943 ac_cv_prog_CC="cc"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947done
10948 done
10949IFS=$as_save_IFS
10950
10951if test $ac_prog_rejected = yes; then
10952 # We found a bogon in the path, so make sure we never use it.
10953 set dummy $ac_cv_prog_CC
10954 shift
10955 if test $# != 0; then
10956 # We chose a different compiler from the bogus one.
10957 # However, it has the same basename, so the bogon will be chosen
10958 # first if we set CC to just the basename; use the full file name.
10959 shift
10960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10961 fi
10962fi
10963fi
10964fi
10965CC=$ac_cv_prog_CC
10966if test -n "$CC"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10968$as_echo "$CC" >&6; }
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974
10975fi
10976if test -z "$CC"; then
10977 if test -n "$ac_tool_prefix"; then
10978 for ac_prog in cl.exe
10979 do
10980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_prog_CC+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986else
10987 if test -n "$CC"; then
10988 ac_cv_prog_CC="$CC" # Let the user override the test.
10989else
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001done
11002 done
11003IFS=$as_save_IFS
11004
11005fi
11006fi
11007CC=$ac_cv_prog_CC
11008if test -n "$CC"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11010$as_echo "$CC" >&6; }
11011else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
11014fi
11015
11016
11017 test -n "$CC" && break
11018 done
11019fi
11020if test -z "$CC"; then
11021 ac_ct_CC=$CC
11022 for ac_prog in cl.exe
11023do
11024 # Extract the first word of "$ac_prog", so it can be a program name with args.
11025set dummy $ac_prog; ac_word=$2
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027$as_echo_n "checking for $ac_word... " >&6; }
11028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030else
11031 if test -n "$ac_ct_CC"; then
11032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11033else
11034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041 ac_cv_prog_ac_ct_CC="$ac_prog"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045done
11046 done
11047IFS=$as_save_IFS
11048
11049fi
11050fi
11051ac_ct_CC=$ac_cv_prog_ac_ct_CC
11052if test -n "$ac_ct_CC"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11054$as_echo "$ac_ct_CC" >&6; }
11055else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057$as_echo "no" >&6; }
11058fi
11059
11060
11061 test -n "$ac_ct_CC" && break
11062done
11063
11064 if test "x$ac_ct_CC" = x; then
11065 CC=""
11066 else
11067 case $cross_compiling:$ac_tool_warned in
11068yes:)
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11071ac_tool_warned=yes ;;
11072esac
11073 CC=$ac_ct_CC
11074 fi
11075fi
11076
11077fi
11078
11079
11080test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11082as_fn_error "no acceptable C compiler found in \$PATH
11083See \`config.log' for more details." "$LINENO" 5; }
11084
11085# Provide some information about the compiler.
11086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11087set X $ac_compile
11088ac_compiler=$2
11089for ac_option in --version -v -V -qversion; do
11090 { { ac_try="$ac_compiler $ac_option >&5"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11096$as_echo "$ac_try_echo"; } >&5
11097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11098 ac_status=$?
11099 if test -s conftest.err; then
11100 sed '10a\
11101... rest of stderr output deleted ...
11102 10q' conftest.err >conftest.er1
11103 cat conftest.er1 >&5
11104 rm -f conftest.er1 conftest.err
11105 fi
11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107 test $ac_status = 0; }
11108done
11109
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11111$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11112if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114else
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116/* end confdefs.h. */
11117
11118int
11119main ()
11120{
11121#ifndef __GNUC__
11122 choke me
11123#endif
11124
11125 ;
11126 return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_compile "$LINENO"; then :
11130 ac_compiler_gnu=yes
11131else
11132 ac_compiler_gnu=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135ac_cv_c_compiler_gnu=$ac_compiler_gnu
11136
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11139$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11140if test $ac_compiler_gnu = yes; then
11141 GCC=yes
11142else
11143 GCC=
11144fi
11145ac_test_CFLAGS=${CFLAGS+set}
11146ac_save_CFLAGS=$CFLAGS
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11148$as_echo_n "checking whether $CC accepts -g... " >&6; }
11149if test "${ac_cv_prog_cc_g+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151else
11152 ac_save_c_werror_flag=$ac_c_werror_flag
11153 ac_c_werror_flag=yes
11154 ac_cv_prog_cc_g=no
11155 CFLAGS="-g"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h. */
11158
11159int
11160main ()
11161{
11162
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167if ac_fn_c_try_compile "$LINENO"; then :
11168 ac_cv_prog_cc_g=yes
11169else
11170 CFLAGS=""
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h. */
11173
11174int
11175main ()
11176{
11177
11178 ;
11179 return 0;
11180}
11181_ACEOF
11182if ac_fn_c_try_compile "$LINENO"; then :
11183
11184else
11185 ac_c_werror_flag=$ac_save_c_werror_flag
11186 CFLAGS="-g"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h. */
11189
11190int
11191main ()
11192{
11193
11194 ;
11195 return 0;
11196}
11197_ACEOF
11198if ac_fn_c_try_compile "$LINENO"; then :
11199 ac_cv_prog_cc_g=yes
11200fi
11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202fi
11203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204fi
11205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 ac_c_werror_flag=$ac_save_c_werror_flag
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11209$as_echo "$ac_cv_prog_cc_g" >&6; }
11210if test "$ac_test_CFLAGS" = set; then
11211 CFLAGS=$ac_save_CFLAGS
11212elif test $ac_cv_prog_cc_g = yes; then
11213 if test "$GCC" = yes; then
11214 CFLAGS="-g -O2"
11215 else
11216 CFLAGS="-g"
11217 fi
11218else
11219 if test "$GCC" = yes; then
11220 CFLAGS="-O2"
11221 else
11222 CFLAGS=
11223 fi
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11226$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11227if test "${ac_cv_prog_cc_c89+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229else
11230 ac_cv_prog_cc_c89=no
11231ac_save_CC=$CC
11232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233/* end confdefs.h. */
11234#include <stdarg.h>
11235#include <stdio.h>
11236#include <sys/types.h>
11237#include <sys/stat.h>
11238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11239struct buf { int x; };
11240FILE * (*rcsopen) (struct buf *, struct stat *, int);
11241static char *e (p, i)
11242 char **p;
11243 int i;
11244{
11245 return p[i];
11246}
11247static char *f (char * (*g) (char **, int), char **p, ...)
11248{
11249 char *s;
11250 va_list v;
11251 va_start (v,p);
11252 s = g (p, va_arg (v,int));
11253 va_end (v);
11254 return s;
11255}
11256
11257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11258 function prototypes and stuff, but not '\xHH' hex character constants.
11259 These don't provoke an error unfortunately, instead are silently treated
11260 as 'x'. The following induces an error, until -std is added to get
11261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11262 array size at least. It's necessary to write '\x00'==0 to get something
11263 that's true only with -std. */
11264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11265
11266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11267 inside strings and character constants. */
11268#define FOO(x) 'x'
11269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11270
11271int test (int i, double x);
11272struct s1 {int (*f) (int a);};
11273struct s2 {int (*f) (double a);};
11274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11275int argc;
11276char **argv;
11277int
11278main ()
11279{
11280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11287do
11288 CC="$ac_save_CC $ac_arg"
11289 if ac_fn_c_try_compile "$LINENO"; then :
11290 ac_cv_prog_cc_c89=$ac_arg
11291fi
11292rm -f core conftest.err conftest.$ac_objext
11293 test "x$ac_cv_prog_cc_c89" != "xno" && break
11294done
11295rm -f conftest.$ac_ext
11296CC=$ac_save_CC
11297
11298fi
11299# AC_CACHE_VAL
11300case "x$ac_cv_prog_cc_c89" in
11301 x)
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11303$as_echo "none needed" >&6; } ;;
11304 xno)
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11306$as_echo "unsupported" >&6; } ;;
11307 *)
11308 CC="$CC $ac_cv_prog_cc_c89"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11310$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11311esac
11312if test "x$ac_cv_prog_cc_c89" != xno; then :
11313
11314fi
11315
11316ac_ext=c
11317ac_cpp='$CPP $CPPFLAGS'
11318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320ac_compiler_gnu=$ac_cv_c_compiler_gnu
11321
11322depcc="$CC" am_compiler_list=
11323
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11325$as_echo_n "checking dependency style of $depcc... " >&6; }
11326if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328else
11329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11330 # We make a subdir and do the tests there. Otherwise we can end up
11331 # making bogus files that we don't know about and never remove. For
11332 # instance it was reported that on HP-UX the gcc test will end up
11333 # making a dummy file named `D' -- because `-MD' means `put the output
11334 # in D'.
11335 mkdir conftest.dir
11336 # Copy depcomp to subdir because otherwise we won't find it if we're
11337 # using a relative directory.
11338 cp "$am_depcomp" conftest.dir
11339 cd conftest.dir
11340 # We will build objects and dependencies in a subdirectory because
11341 # it helps to detect inapplicable dependency modes. For instance
11342 # both Tru64's cc and ICC support -MD to output dependencies as a
11343 # side effect of compilation, but ICC will put the dependencies in
11344 # the current directory while Tru64 will put them in the object
11345 # directory.
11346 mkdir sub
11347
11348 am_cv_CC_dependencies_compiler_type=none
11349 if test "$am_compiler_list" = ""; then
11350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11351 fi
11352 am__universal=false
11353 case " $depcc " in #(
11354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11355 esac
11356
11357 for depmode in $am_compiler_list; do
11358 # Setup a source with many dependencies, because some compilers
11359 # like to wrap large dependency lists on column 80 (with \), and
11360 # we should not choose a depcomp mode which is confused by this.
11361 #
11362 # We need to recreate these files for each test, as the compiler may
11363 # overwrite some of them when testing with obscure command lines.
11364 # This happens at least with the AIX C compiler.
11365 : > sub/conftest.c
11366 for i in 1 2 3 4 5 6; do
11367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11368 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11369 # Solaris 8's {/usr,}/bin/sh.
11370 touch sub/conftst$i.h
11371 done
11372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11373
11374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11375 # mode. It turns out that the SunPro C++ compiler does not properly
11376 # handle `-M -o', and we need to detect this. Also, some Intel
11377 # versions had trouble with output in subdirs
11378 am__obj=sub/conftest.${OBJEXT-o}
11379 am__minus_obj="-o $am__obj"
11380 case $depmode in
11381 gcc)
11382 # This depmode causes a compiler race in universal mode.
11383 test "$am__universal" = false || continue
11384 ;;
11385 nosideeffect)
11386 # after this tag, mechanisms are not by side-effect, so they'll
11387 # only be used when explicitly requested
11388 if test "x$enable_dependency_tracking" = xyes; then
11389 continue
11390 else
11391 break
11392 fi
11393 ;;
11394 msvisualcpp | msvcmsys)
11395 # This compiler won't grok `-c -o', but also, the minuso test has
11396 # not run yet. These depmodes are late enough in the game, and
11397 # so weak that their functioning should not be impacted.
11398 am__obj=conftest.${OBJEXT-o}
11399 am__minus_obj=
11400 ;;
11401 none) break ;;
11402 esac
11403 if depmode=$depmode \
11404 source=sub/conftest.c object=$am__obj \
11405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11407 >/dev/null 2>conftest.err &&
11408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11412 # icc doesn't choke on unknown options, it will just issue warnings
11413 # or remarks (even with -Werror). So we grep stderr for any message
11414 # that says an option was ignored or not supported.
11415 # When given -MP, icc 7.0 and 7.1 complain thusly:
11416 # icc: Command line warning: ignoring option '-M'; no argument required
11417 # The diagnosis changed in icc 8.0:
11418 # icc: Command line remark: option '-MP' not supported
11419 if (grep 'ignoring option' conftest.err ||
11420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11421 am_cv_CC_dependencies_compiler_type=$depmode
11422 break
11423 fi
11424 fi
11425 done
11426
11427 cd ..
11428 rm -rf conftest.dir
11429else
11430 am_cv_CC_dependencies_compiler_type=none
11431fi
11432
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11435$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11436CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11437
11438 if
11439 test "x$enable_dependency_tracking" != xno \
11440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11441 am__fastdepCC_TRUE=
11442 am__fastdepCC_FALSE='#'
11443else
11444 am__fastdepCC_TRUE='#'
11445 am__fastdepCC_FALSE=
11446fi
11447
11448
11449
11450
11451
11452
11453if test "x$CC" != xcc; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11455$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11456else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11458$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11459fi
11460set dummy $CC; ac_cc=`$as_echo "$2" |
11461 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11462if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11463 $as_echo_n "(cached) " >&6
11464else
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h. */
11467
11468int
11469main ()
11470{
11471
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476# Make sure it works both with $CC and with simple cc.
11477# We do the test twice because some compilers refuse to overwrite an
11478# existing .o file with -o, though they will create one.
11479ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11480rm -f conftest2.*
11481if { { case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484esac
11485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11486$as_echo "$ac_try_echo"; } >&5
11487 (eval "$ac_try") 2>&5
11488 ac_status=$?
11489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11490 test $ac_status = 0; } &&
11491 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11496$as_echo "$ac_try_echo"; } >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; };
11501then
11502 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11503 if test "x$CC" != xcc; then
11504 # Test first that cc exists at all.
11505 if { ac_try='cc -c conftest.$ac_ext >&5'
11506 { { case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11511$as_echo "$ac_try_echo"; } >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515 test $ac_status = 0; }; }; then
11516 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11517 rm -f conftest2.*
11518 if { { case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11523$as_echo "$ac_try_echo"; } >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; } &&
11528 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11533$as_echo "$ac_try_echo"; } >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11537 test $ac_status = 0; };
11538 then
11539 # cc works too.
11540 :
11541 else
11542 # cc exists but doesn't like -o.
11543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11544 fi
11545 fi
11546 fi
11547else
11548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11549fi
11550rm -f core conftest*
1ec601bf 11551
fabfcf5e
KT
11552fi
11553if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11555$as_echo "yes" >&6; }
11556else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
1ec601bf 11559
fabfcf5e
KT
11560$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11561
11562fi
1ec601bf 11563
fabfcf5e
KT
11564# FIXME: we rely on the cache variable name because
11565# there is no other way.
11566set dummy $CC
11567am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11568eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11569if test "$am_t" != yes; then
11570 # Losing compiler, so override with the script.
11571 # FIXME: It is wrong to rewrite CC.
11572 # But if we don't then we get into trouble of one sort or another.
11573 # A longer-term fix would be to have automake use am__CC in this case,
11574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11575 CC="$am_aux_dir/compile $CC"
11576fi
1ec601bf
FXC
11577
11578
11579
fabfcf5e
KT
11580if test "x$GCC" != "xyes"; then
11581 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
1ec601bf
FXC
11582fi
11583ac_ext=c
11584ac_cpp='$CPP $CPPFLAGS'
11585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587ac_compiler_gnu=$ac_cv_c_compiler_gnu
fabfcf5e
KT
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11589$as_echo_n "checking how to run the C preprocessor... " >&6; }
11590# On Suns, sometimes $CPP names a directory.
11591if test -n "$CPP" && test -d "$CPP"; then
11592 CPP=
11593fi
11594if test -z "$CPP"; then
11595 if test "${ac_cv_prog_CPP+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 # Double quotes because CPP needs to be expanded
11599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11600 do
11601 ac_preproc_ok=false
11602for ac_c_preproc_warn_flag in '' yes
11603do
11604 # Use a header file that comes with gcc, so configuring glibc
11605 # with a fresh cross-compiler works.
11606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11607 # <limits.h> exists even on freestanding compilers.
11608 # On the NeXT, cc -E runs the code through the compiler's parser,
11609 # not just through cpp. "Syntax error" is here to catch this case.
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h. */
11612#ifdef __STDC__
11613# include <limits.h>
11614#else
11615# include <assert.h>
11616#endif
11617 Syntax error
11618_ACEOF
11619if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11620
1ec601bf 11621else
fabfcf5e
KT
11622 # Broken: fails on valid input.
11623continue
1ec601bf 11624fi
fabfcf5e 11625rm -f conftest.err conftest.$ac_ext
1ec601bf 11626
fabfcf5e
KT
11627 # OK, works on sane cases. Now check whether nonexistent headers
11628 # can be detected and how.
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h. */
11631#include <ac_nonexistent.h>
11632_ACEOF
11633if ac_fn_c_try_cpp "$LINENO"; then :
11634 # Broken: success on invalid input.
11635continue
1ec601bf 11636else
fabfcf5e
KT
11637 # Passes both tests.
11638ac_preproc_ok=:
11639break
1ec601bf 11640fi
fabfcf5e 11641rm -f conftest.err conftest.$ac_ext
1ec601bf 11642
fabfcf5e
KT
11643done
11644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11645rm -f conftest.err conftest.$ac_ext
11646if $ac_preproc_ok; then :
11647 break
11648fi
1ec601bf 11649
fabfcf5e
KT
11650 done
11651 ac_cv_prog_CPP=$CPP
1ec601bf 11652
fabfcf5e
KT
11653fi
11654 CPP=$ac_cv_prog_CPP
1ec601bf 11655else
fabfcf5e 11656 ac_cv_prog_CPP=$CPP
1ec601bf 11657fi
fabfcf5e
KT
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11659$as_echo "$CPP" >&6; }
11660ac_preproc_ok=false
11661for ac_c_preproc_warn_flag in '' yes
11662do
11663 # Use a header file that comes with gcc, so configuring glibc
11664 # with a fresh cross-compiler works.
11665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 # <limits.h> exists even on freestanding compilers.
11667 # On the NeXT, cc -E runs the code through the compiler's parser,
11668 # not just through cpp. "Syntax error" is here to catch this case.
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h. */
11671#ifdef __STDC__
11672# include <limits.h>
11673#else
11674# include <assert.h>
11675#endif
11676 Syntax error
11677_ACEOF
11678if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11679
fabfcf5e
KT
11680else
11681 # Broken: fails on valid input.
11682continue
11683fi
11684rm -f conftest.err conftest.$ac_ext
1ec601bf 11685
fabfcf5e
KT
11686 # OK, works on sane cases. Now check whether nonexistent headers
11687 # can be detected and how.
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h. */
11690#include <ac_nonexistent.h>
11691_ACEOF
11692if ac_fn_c_try_cpp "$LINENO"; then :
11693 # Broken: success on invalid input.
11694continue
1ec601bf 11695else
fabfcf5e
KT
11696 # Passes both tests.
11697ac_preproc_ok=:
11698break
1ec601bf 11699fi
fabfcf5e 11700rm -f conftest.err conftest.$ac_ext
1ec601bf 11701
fabfcf5e
KT
11702done
11703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11704rm -f conftest.err conftest.$ac_ext
11705if $ac_preproc_ok; then :
1ec601bf 11706
fabfcf5e
KT
11707else
11708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11710as_fn_error "C preprocessor \"$CPP\" fails sanity check
11711See \`config.log' for more details." "$LINENO" 5; }
1ec601bf
FXC
11712fi
11713
fabfcf5e
KT
11714ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf
FXC
11719
11720
11721# Calculate toolexeclibdir
11722# Also toolexecdir, though it's only used in toolexeclibdir
11723case ${version_specific_libs} in
11724 yes)
11725 # Need the gcc compiler version to know where to install libraries
11726 # and header files if --enable-version-specific-runtime-libs option
11727 # is selected.
11728 toolexecdir='$(libdir)/gcc/$(target_alias)'
11729 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11730 ;;
11731 no)
11732 if test -n "$with_cross_host" &&
11733 test x"$with_cross_host" != x"no"; then
11734 # Install a library built with a cross compiler in tooldir, not libdir.
11735 toolexecdir='$(exec_prefix)/$(target_alias)'
11736 toolexeclibdir='$(toolexecdir)/lib'
11737 else
11738 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11739 toolexeclibdir='$(libdir)'
11740 fi
11741 multi_os_directory=`$CC -print-multi-os-directory`
11742 case $multi_os_directory in
11743 .) ;; # Avoid trailing /.
11744 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11745 esac
11746 ;;
11747esac
11748
11749
11750
6f468984
TB
11751# If available, sqrtl and cbrtl speed up the calculation -
11752# but they are not required
11753if test x$gcc_no_link != xyes; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
1ec601bf
FXC
11755$as_echo_n "checking for sqrtl in -lm... " >&6; }
11756if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758else
11759 ac_check_lib_save_LIBS=$LIBS
11760LIBS="-lm $LIBS"
fabfcf5e
KT
11761if test x$gcc_no_link = xyes; then
11762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11763fi
1ec601bf
FXC
11764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h. */
11766
11767/* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770#ifdef __cplusplus
11771extern "C"
11772#endif
11773char sqrtl ();
11774int
11775main ()
11776{
11777return sqrtl ();
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_m_sqrtl=yes
11784else
11785 ac_cv_lib_m_sqrtl=no
11786fi
11787rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789LIBS=$ac_check_lib_save_LIBS
11790fi
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11792$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11793if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11794
11795$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11796
11797fi
11798
6f468984 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
1ec601bf
FXC
11800$as_echo_n "checking for cbrtl in -lm... " >&6; }
11801if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
11803else
11804 ac_check_lib_save_LIBS=$LIBS
11805LIBS="-lm $LIBS"
fabfcf5e
KT
11806if test x$gcc_no_link = xyes; then
11807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11808fi
1ec601bf
FXC
11809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811
11812/* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11815#ifdef __cplusplus
11816extern "C"
11817#endif
11818char cbrtl ();
11819int
11820main ()
11821{
11822return cbrtl ();
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827if ac_fn_c_try_link "$LINENO"; then :
11828 ac_cv_lib_m_cbrtl=yes
11829else
11830 ac_cv_lib_m_cbrtl=no
11831fi
11832rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
11837$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
11838if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
11839
11840$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11841
11842fi
11843
6f468984
TB
11844else
11845 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
11846
11847$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11848
11849 fi
11850 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
11851
11852$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11853
11854 fi
11855fi
1ec601bf
FXC
11856
11857# Check for symbol versioning (copied from libssp).
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
11859$as_echo_n "checking whether symbol versioning is supported... " >&6; }
fabfcf5e
KT
11860if test x$gcc_no_link = xyes; then
11861 # If we cannot link, we cannot build shared libraries, so do not use
11862 # symbol versioning.
11863 quadmath_use_symver=no
11864else
11865 save_LDFLAGS="$LDFLAGS"
11866 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
11867 cat > conftest.map <<EOF
1ec601bf
FXC
11868FOO_1.0 {
11869 global: *foo*; bar; local: *;
11870};
11871EOF
fabfcf5e
KT
11872 if test x$gcc_no_link = xyes; then
11873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11874fi
1ec601bf
FXC
11875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877int foo;
11878int
11879main ()
11880{
11881
11882 ;
11883 return 0;
11884}
11885_ACEOF
11886if ac_fn_c_try_link "$LINENO"; then :
11887 quadmath_use_symver=gnu
11888else
11889 quadmath_use_symver=no
11890fi
11891rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
11893 if test x$quadmath_use_symver = xno; then
11894 case "$target_os" in
11895 solaris2*)
11896 LDFLAGS="$save_LDFLAGS"
11897 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
11898 # Sun ld cannot handle wildcards and treats all entries as undefined.
11899 cat > conftest.map <<EOF
1ec601bf
FXC
11900FOO_1.0 {
11901 global: foo; local: *;
11902};
11903EOF
fabfcf5e
KT
11904 if test x$gcc_no_link = xyes; then
11905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11906fi
11907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
11908/* end confdefs.h. */
11909int foo;
11910int
11911main ()
11912{
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919 quadmath_use_symver=sun
11920else
11921 quadmath_use_symver=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
11925 ;;
11926 esac
11927 fi
11928 LDFLAGS="$save_LDFLAGS"
1ec601bf 11929fi
1ec601bf
FXC
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
11931$as_echo "$quadmath_use_symver" >&6; }
11932 if test "x$quadmath_use_symver" != xno; then
11933 LIBQUAD_USE_SYMVER_TRUE=
11934 LIBQUAD_USE_SYMVER_FALSE='#'
11935else
11936 LIBQUAD_USE_SYMVER_TRUE='#'
11937 LIBQUAD_USE_SYMVER_FALSE=
11938fi
11939
11940 if test "x$quadmath_use_symver" = xgnu; then
11941 LIBQUAD_USE_SYMVER_GNU_TRUE=
11942 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
11943else
11944 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
11945 LIBQUAD_USE_SYMVER_GNU_FALSE=
11946fi
11947
11948 if test "x$quadmath_use_symver" = xsun; then
11949 LIBQUAD_USE_SYMVER_SUN_TRUE=
11950 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
11951else
11952 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
11953 LIBQUAD_USE_SYMVER_SUN_FALSE=
11954fi
11955
11956
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
11958$as_echo_n "checking whether __float128 is supported... " >&6; }
abccc9a9
TB
11959if test "${libquad_cv_have_float128+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961else
11962 if test x$gcc_no_link = xyes; then
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964/* end confdefs.h. */
11965
11966 typedef _Complex float __attribute__((mode(TC))) __complex128;
11967
11968 __float128 foo (__float128 x)
11969 {
11970
11971 __complex128 z1, z2;
11972
11973 z1 = x;
11974 z2 = x / 7.Q;
11975 z2 /= z1;
11976
11977 return (__float128) z2;
11978 }
11979
11980 __float128 bar (__float128 x)
11981 {
11982 return x * __builtin_huge_valq ();
11983 }
11984
11985int
11986main ()
11987{
11988
11989 foo (1.2Q);
11990 bar (1.2Q);
11991
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_compile "$LINENO"; then :
11997
11998 libquad_cv_have_float128=yes
11999
12000else
12001
12002 libquad_cv_have_float128=no
12003
12004fi
12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006else
fabfcf5e
KT
12007 if test x$gcc_no_link = xyes; then
12008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12009fi
12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12011/* end confdefs.h. */
12012
12013 typedef _Complex float __attribute__((mode(TC))) __complex128;
12014
12015 __float128 foo (__float128 x)
12016 {
12017
12018 __complex128 z1, z2;
12019
12020 z1 = x;
12021 z2 = x / 7.Q;
12022 z2 /= z1;
12023
12024 return (__float128) z2;
12025 }
12026
12027 __float128 bar (__float128 x)
12028 {
12029 return x * __builtin_huge_valq ();
12030 }
12031
12032int
12033main ()
12034{
12035
12036 foo (1.2Q);
12037 bar (1.2Q);
12038
12039 ;
12040 return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_link "$LINENO"; then :
12044
abccc9a9 12045 libquad_cv_have_float128=yes
1ec601bf
FXC
12046
12047else
12048
abccc9a9 12049 libquad_cv_have_float128=no
1ec601bf
FXC
12050
12051fi
12052rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
abccc9a9
TB
12054fi
12055fi
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12057$as_echo "$libquad_cv_have_float128" >&6; }
12058 if test "x$libquad_cv_have_float128" = xyes; then
1ec601bf
FXC
12059 BUILD_LIBQUADMATH_TRUE=
12060 BUILD_LIBQUADMATH_FALSE='#'
12061else
12062 BUILD_LIBQUADMATH_TRUE='#'
12063 BUILD_LIBQUADMATH_FALSE=
12064fi
12065
12066
12067cat >confcache <<\_ACEOF
12068# This file is a shell script that caches the results of configure
12069# tests run on this system so they can be shared between configure
12070# scripts and configure runs, see configure's option --config-cache.
12071# It is not useful on other systems. If it contains results you don't
12072# want to keep, you may remove or edit it.
12073#
12074# config.status only pays attention to the cache file if you give it
12075# the --recheck option to rerun configure.
12076#
12077# `ac_cv_env_foo' variables (set or unset) will be overridden when
12078# loading this file, other *unset* `ac_cv_foo' will be assigned the
12079# following values.
12080
12081_ACEOF
12082
12083# The following way of writing the cache mishandles newlines in values,
12084# but we know of no workaround that is simple, portable, and efficient.
12085# So, we kill variables containing newlines.
12086# Ultrix sh set writes to stderr and can't be redirected directly,
12087# and sets the high bit in the cache file unless we assign to the vars.
12088(
12089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12090 eval ac_val=\$$ac_var
12091 case $ac_val in #(
12092 *${as_nl}*)
12093 case $ac_var in #(
12094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12096 esac
12097 case $ac_var in #(
12098 _ | IFS | as_nl) ;; #(
12099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12100 *) { eval $ac_var=; unset $ac_var;} ;;
12101 esac ;;
12102 esac
12103 done
12104
12105 (set) 2>&1 |
12106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12107 *${as_nl}ac_space=\ *)
12108 # `set' does not quote correctly, so add quotes: double-quote
12109 # substitution turns \\\\ into \\, and sed turns \\ into \.
12110 sed -n \
12111 "s/'/'\\\\''/g;
12112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12113 ;; #(
12114 *)
12115 # `set' quotes correctly as required by POSIX, so do not add quotes.
12116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12117 ;;
12118 esac |
12119 sort
12120) |
12121 sed '
12122 /^ac_cv_env_/b end
12123 t clear
12124 :clear
12125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12126 t end
12127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12128 :end' >>confcache
12129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12130 if test -w "$cache_file"; then
12131 test "x$cache_file" != "x/dev/null" &&
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12133$as_echo "$as_me: updating cache $cache_file" >&6;}
12134 cat confcache >$cache_file
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12137$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12138 fi
12139fi
12140rm -f confcache
12141
12142if test ${multilib} = yes; then
12143 multilib_arg="--enable-multilib"
12144else
12145 multilib_arg=
12146fi
12147
4c993c44
TB
12148
12149# We would like our source tree to be readonly. However when releases or
12150# pre-releases are generated, the flex/bison generated files as well as the
12151# various formats of manuals need to be included along with the rest of the
12152# sources. Therefore we have --enable-generated-files-in-srcdir to do
12153# just that.
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12155$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12156# Check whether --enable-generated-files-in-srcdir was given.
12157if test "${enable_generated_files_in_srcdir+set}" = set; then :
12158 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12159 yes) enable_generated_files_in_srcdir=yes ;;
12160 no) enable_generated_files_in_srcdir=no ;;
12161 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12162 esac
12163else
12164 enable_generated_files_in_srcdir=no
12165fi
12166
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12168$as_echo "$enable_generated_files_in_srcdir" >&6; }
12169 if test "$enable_generated_files_in_srcdir" = yes; then
12170 GENINSRC_TRUE=
12171 GENINSRC_FALSE='#'
12172else
12173 GENINSRC_TRUE='#'
12174 GENINSRC_FALSE=
12175fi
12176
12177
12178
1ec601bf
FXC
12179ac_config_files="$ac_config_files Makefile"
12180
12181cat >confcache <<\_ACEOF
12182# This file is a shell script that caches the results of configure
12183# tests run on this system so they can be shared between configure
12184# scripts and configure runs, see configure's option --config-cache.
12185# It is not useful on other systems. If it contains results you don't
12186# want to keep, you may remove or edit it.
12187#
12188# config.status only pays attention to the cache file if you give it
12189# the --recheck option to rerun configure.
12190#
12191# `ac_cv_env_foo' variables (set or unset) will be overridden when
12192# loading this file, other *unset* `ac_cv_foo' will be assigned the
12193# following values.
12194
12195_ACEOF
12196
12197# The following way of writing the cache mishandles newlines in values,
12198# but we know of no workaround that is simple, portable, and efficient.
12199# So, we kill variables containing newlines.
12200# Ultrix sh set writes to stderr and can't be redirected directly,
12201# and sets the high bit in the cache file unless we assign to the vars.
12202(
12203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12204 eval ac_val=\$$ac_var
12205 case $ac_val in #(
12206 *${as_nl}*)
12207 case $ac_var in #(
12208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12209$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12210 esac
12211 case $ac_var in #(
12212 _ | IFS | as_nl) ;; #(
12213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12214 *) { eval $ac_var=; unset $ac_var;} ;;
12215 esac ;;
12216 esac
12217 done
12218
12219 (set) 2>&1 |
12220 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12221 *${as_nl}ac_space=\ *)
12222 # `set' does not quote correctly, so add quotes: double-quote
12223 # substitution turns \\\\ into \\, and sed turns \\ into \.
12224 sed -n \
12225 "s/'/'\\\\''/g;
12226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12227 ;; #(
12228 *)
12229 # `set' quotes correctly as required by POSIX, so do not add quotes.
12230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12231 ;;
12232 esac |
12233 sort
12234) |
12235 sed '
12236 /^ac_cv_env_/b end
12237 t clear
12238 :clear
12239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12240 t end
12241 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12242 :end' >>confcache
12243if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12244 if test -w "$cache_file"; then
12245 test "x$cache_file" != "x/dev/null" &&
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12247$as_echo "$as_me: updating cache $cache_file" >&6;}
12248 cat confcache >$cache_file
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12251$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12252 fi
12253fi
12254rm -f confcache
12255
12256test "x$prefix" = xNONE && prefix=$ac_default_prefix
12257# Let make expand exec_prefix.
12258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12259
12260DEFS=-DHAVE_CONFIG_H
12261
12262ac_libobjs=
12263ac_ltlibobjs=
12264for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12265 # 1. Remove the extension, and $U if already installed.
12266 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12267 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12268 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12269 # will be set to the directory where LIBOBJS objects are built.
12270 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12271 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12272done
12273LIBOBJS=$ac_libobjs
12274
12275LTLIBOBJS=$ac_ltlibobjs
12276
12277
12278 if test -n "$EXEEXT"; then
12279 am__EXEEXT_TRUE=
12280 am__EXEEXT_FALSE='#'
12281else
12282 am__EXEEXT_TRUE='#'
12283 am__EXEEXT_FALSE=
12284fi
12285
4c993c44
TB
12286if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12287 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12288Usually this means the macro was only invoked conditionally." "$LINENO" 5
12289fi
1ec601bf
FXC
12290if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12291 as_fn_error "conditional \"AMDEP\" was never defined.
12292Usually this means the macro was only invoked conditionally." "$LINENO" 5
12293fi
12294if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12295 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12296Usually this means the macro was only invoked conditionally." "$LINENO" 5
12297fi
12298if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12299 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12300Usually this means the macro was only invoked conditionally." "$LINENO" 5
12301fi
fabfcf5e
KT
12302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12303 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12304Usually this means the macro was only invoked conditionally." "$LINENO" 5
12305fi
1ec601bf
FXC
12306if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12307 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12308Usually this means the macro was only invoked conditionally." "$LINENO" 5
12309fi
12310if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12311 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12312Usually this means the macro was only invoked conditionally." "$LINENO" 5
12313fi
12314if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12315 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12316Usually this means the macro was only invoked conditionally." "$LINENO" 5
12317fi
12318if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12319 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
4c993c44
TB
12320Usually this means the macro was only invoked conditionally." "$LINENO" 5
12321fi
12322if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12323 as_fn_error "conditional \"GENINSRC\" was never defined.
1ec601bf
FXC
12324Usually this means the macro was only invoked conditionally." "$LINENO" 5
12325fi
12326
12327: ${CONFIG_STATUS=./config.status}
12328ac_write_fail=0
12329ac_clean_files_save=$ac_clean_files
12330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12333as_write_fail=0
12334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12335#! $SHELL
12336# Generated by $as_me.
12337# Run this file to recreate the current configuration.
12338# Compiler output produced by configure, useful for debugging
12339# configure, is in config.log if it exists.
12340
12341debug=false
12342ac_cs_recheck=false
12343ac_cs_silent=false
12344
12345SHELL=\${CONFIG_SHELL-$SHELL}
12346export SHELL
12347_ASEOF
12348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12349## -------------------- ##
12350## M4sh Initialization. ##
12351## -------------------- ##
12352
12353# Be more Bourne compatible
12354DUALCASE=1; export DUALCASE # for MKS sh
12355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12356 emulate sh
12357 NULLCMD=:
12358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12359 # is contrary to our usage. Disable this feature.
12360 alias -g '${1+"$@"}'='"$@"'
12361 setopt NO_GLOB_SUBST
12362else
12363 case `(set -o) 2>/dev/null` in #(
12364 *posix*) :
12365 set -o posix ;; #(
12366 *) :
12367 ;;
12368esac
12369fi
12370
12371
12372as_nl='
12373'
12374export as_nl
12375# Printing a long string crashes Solaris 7 /usr/bin/printf.
12376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12379# Prefer a ksh shell builtin over an external printf program on Solaris,
12380# but without wasting forks for bash or zsh.
12381if test -z "$BASH_VERSION$ZSH_VERSION" \
12382 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12383 as_echo='print -r --'
12384 as_echo_n='print -rn --'
12385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12386 as_echo='printf %s\n'
12387 as_echo_n='printf %s'
12388else
12389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12391 as_echo_n='/usr/ucb/echo -n'
12392 else
12393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12394 as_echo_n_body='eval
12395 arg=$1;
12396 case $arg in #(
12397 *"$as_nl"*)
12398 expr "X$arg" : "X\\(.*\\)$as_nl";
12399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12400 esac;
12401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12402 '
12403 export as_echo_n_body
12404 as_echo_n='sh -c $as_echo_n_body as_echo'
12405 fi
12406 export as_echo_body
12407 as_echo='sh -c $as_echo_body as_echo'
12408fi
12409
12410# The user is always right.
12411if test "${PATH_SEPARATOR+set}" != set; then
12412 PATH_SEPARATOR=:
12413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12415 PATH_SEPARATOR=';'
12416 }
12417fi
12418
12419
12420# IFS
12421# We need space, tab and new line, in precisely that order. Quoting is
12422# there to prevent editors from complaining about space-tab.
12423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12424# splitting by setting IFS to empty value.)
12425IFS=" "" $as_nl"
12426
12427# Find who we are. Look in the path if we contain no directory separator.
12428case $0 in #((
12429 *[\\/]* ) as_myself=$0 ;;
12430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431for as_dir in $PATH
12432do
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12436 done
12437IFS=$as_save_IFS
12438
12439 ;;
12440esac
12441# We did not find ourselves, most probably we were run as `sh COMMAND'
12442# in which case we are not to be found in the path.
12443if test "x$as_myself" = x; then
12444 as_myself=$0
12445fi
12446if test ! -f "$as_myself"; then
12447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12448 exit 1
12449fi
12450
12451# Unset variables that we do not need and which cause bugs (e.g. in
12452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12453# suppresses any "Segmentation fault" message there. '((' could
12454# trigger a bug in pdksh 5.2.14.
12455for as_var in BASH_ENV ENV MAIL MAILPATH
12456do eval test x\${$as_var+set} = xset \
12457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12458done
12459PS1='$ '
12460PS2='> '
12461PS4='+ '
12462
12463# NLS nuisances.
12464LC_ALL=C
12465export LC_ALL
12466LANGUAGE=C
12467export LANGUAGE
12468
12469# CDPATH.
12470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12471
12472
12473# as_fn_error ERROR [LINENO LOG_FD]
12474# ---------------------------------
12475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12477# script with status $?, using 1 if that was 0.
12478as_fn_error ()
12479{
12480 as_status=$?; test $as_status -eq 0 && as_status=1
12481 if test "$3"; then
12482 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12484 fi
12485 $as_echo "$as_me: error: $1" >&2
12486 as_fn_exit $as_status
12487} # as_fn_error
12488
12489
12490# as_fn_set_status STATUS
12491# -----------------------
12492# Set $? to STATUS, without forking.
12493as_fn_set_status ()
12494{
12495 return $1
12496} # as_fn_set_status
12497
12498# as_fn_exit STATUS
12499# -----------------
12500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12501as_fn_exit ()
12502{
12503 set +e
12504 as_fn_set_status $1
12505 exit $1
12506} # as_fn_exit
12507
12508# as_fn_unset VAR
12509# ---------------
12510# Portably unset VAR.
12511as_fn_unset ()
12512{
12513 { eval $1=; unset $1;}
12514}
12515as_unset=as_fn_unset
12516# as_fn_append VAR VALUE
12517# ----------------------
12518# Append the text in VALUE to the end of the definition contained in VAR. Take
12519# advantage of any shell optimizations that allow amortized linear growth over
12520# repeated appends, instead of the typical quadratic growth present in naive
12521# implementations.
12522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12523 eval 'as_fn_append ()
12524 {
12525 eval $1+=\$2
12526 }'
12527else
12528 as_fn_append ()
12529 {
12530 eval $1=\$$1\$2
12531 }
12532fi # as_fn_append
12533
12534# as_fn_arith ARG...
12535# ------------------
12536# Perform arithmetic evaluation on the ARGs, and store the result in the
12537# global $as_val. Take advantage of shells that can avoid forks. The arguments
12538# must be portable across $(()) and expr.
12539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12540 eval 'as_fn_arith ()
12541 {
12542 as_val=$(( $* ))
12543 }'
12544else
12545 as_fn_arith ()
12546 {
12547 as_val=`expr "$@" || test $? -eq 1`
12548 }
12549fi # as_fn_arith
12550
12551
12552if expr a : '\(a\)' >/dev/null 2>&1 &&
12553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12554 as_expr=expr
12555else
12556 as_expr=false
12557fi
12558
12559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12560 as_basename=basename
12561else
12562 as_basename=false
12563fi
12564
12565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12566 as_dirname=dirname
12567else
12568 as_dirname=false
12569fi
12570
12571as_me=`$as_basename -- "$0" ||
12572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12573 X"$0" : 'X\(//\)$' \| \
12574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12575$as_echo X/"$0" |
12576 sed '/^.*\/\([^/][^/]*\)\/*$/{
12577 s//\1/
12578 q
12579 }
12580 /^X\/\(\/\/\)$/{
12581 s//\1/
12582 q
12583 }
12584 /^X\/\(\/\).*/{
12585 s//\1/
12586 q
12587 }
12588 s/.*/./; q'`
12589
12590# Avoid depending upon Character Ranges.
12591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12594as_cr_digits='0123456789'
12595as_cr_alnum=$as_cr_Letters$as_cr_digits
12596
12597ECHO_C= ECHO_N= ECHO_T=
12598case `echo -n x` in #(((((
12599-n*)
12600 case `echo 'xy\c'` in
12601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12602 xy) ECHO_C='\c';;
12603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12604 ECHO_T=' ';;
12605 esac;;
12606*)
12607 ECHO_N='-n';;
12608esac
12609
12610rm -f conf$$ conf$$.exe conf$$.file
12611if test -d conf$$.dir; then
12612 rm -f conf$$.dir/conf$$.file
12613else
12614 rm -f conf$$.dir
12615 mkdir conf$$.dir 2>/dev/null
12616fi
12617if (echo >conf$$.file) 2>/dev/null; then
12618 if ln -s conf$$.file conf$$ 2>/dev/null; then
12619 as_ln_s='ln -s'
12620 # ... but there are two gotchas:
12621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12623 # In both cases, we have to default to `cp -p'.
12624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12625 as_ln_s='cp -p'
12626 elif ln conf$$.file conf$$ 2>/dev/null; then
12627 as_ln_s=ln
12628 else
12629 as_ln_s='cp -p'
12630 fi
12631else
12632 as_ln_s='cp -p'
12633fi
12634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12635rmdir conf$$.dir 2>/dev/null
12636
12637
12638# as_fn_mkdir_p
12639# -------------
12640# Create "$as_dir" as a directory, including parents if necessary.
12641as_fn_mkdir_p ()
12642{
12643
12644 case $as_dir in #(
12645 -*) as_dir=./$as_dir;;
12646 esac
12647 test -d "$as_dir" || eval $as_mkdir_p || {
12648 as_dirs=
12649 while :; do
12650 case $as_dir in #(
12651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12652 *) as_qdir=$as_dir;;
12653 esac
12654 as_dirs="'$as_qdir' $as_dirs"
12655 as_dir=`$as_dirname -- "$as_dir" ||
12656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12657 X"$as_dir" : 'X\(//\)[^/]' \| \
12658 X"$as_dir" : 'X\(//\)$' \| \
12659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12660$as_echo X"$as_dir" |
12661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\/\)[^/].*/{
12666 s//\1/
12667 q
12668 }
12669 /^X\(\/\/\)$/{
12670 s//\1/
12671 q
12672 }
12673 /^X\(\/\).*/{
12674 s//\1/
12675 q
12676 }
12677 s/.*/./; q'`
12678 test -d "$as_dir" && break
12679 done
12680 test -z "$as_dirs" || eval "mkdir $as_dirs"
12681 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12682
12683
12684} # as_fn_mkdir_p
12685if mkdir -p . 2>/dev/null; then
12686 as_mkdir_p='mkdir -p "$as_dir"'
12687else
12688 test -d ./-p && rmdir ./-p
12689 as_mkdir_p=false
12690fi
12691
12692if test -x / >/dev/null 2>&1; then
12693 as_test_x='test -x'
12694else
12695 if ls -dL / >/dev/null 2>&1; then
12696 as_ls_L_option=L
12697 else
12698 as_ls_L_option=
12699 fi
12700 as_test_x='
12701 eval sh -c '\''
12702 if test -d "$1"; then
12703 test -d "$1/.";
12704 else
12705 case $1 in #(
12706 -*)set "./$1";;
12707 esac;
12708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12709 ???[sx]*):;;*)false;;esac;fi
12710 '\'' sh
12711 '
12712fi
12713as_executable_p=$as_test_x
12714
12715# Sed expression to map a string onto a valid CPP name.
12716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12717
12718# Sed expression to map a string onto a valid variable name.
12719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12720
12721
12722exec 6>&1
12723## ----------------------------------- ##
12724## Main body of $CONFIG_STATUS script. ##
12725## ----------------------------------- ##
12726_ASEOF
12727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12728
12729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12730# Save the log message, to keep $0 and so on meaningful, and to
12731# report actual input values of CONFIG_FILES etc. instead of their
12732# values after options handling.
12733ac_log="
12734This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
12735generated by GNU Autoconf 2.64. Invocation command line was
12736
12737 CONFIG_FILES = $CONFIG_FILES
12738 CONFIG_HEADERS = $CONFIG_HEADERS
12739 CONFIG_LINKS = $CONFIG_LINKS
12740 CONFIG_COMMANDS = $CONFIG_COMMANDS
12741 $ $0 $@
12742
12743on `(hostname || uname -n) 2>/dev/null | sed 1q`
12744"
12745
12746_ACEOF
12747
12748case $ac_config_files in *"
12749"*) set x $ac_config_files; shift; ac_config_files=$*;;
12750esac
12751
12752case $ac_config_headers in *"
12753"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12754esac
12755
12756
12757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12758# Files that config.status was made for.
12759config_files="$ac_config_files"
12760config_headers="$ac_config_headers"
12761config_commands="$ac_config_commands"
12762
12763_ACEOF
12764
12765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12766ac_cs_usage="\
12767\`$as_me' instantiates files and other configuration actions
12768from templates according to the current configuration. Unless the files
12769and actions are specified as TAGs, all are instantiated by default.
12770
12771Usage: $0 [OPTION]... [TAG]...
12772
12773 -h, --help print this help, then exit
12774 -V, --version print version number and configuration settings, then exit
12775 -q, --quiet, --silent
12776 do not print progress messages
12777 -d, --debug don't remove temporary files
12778 --recheck update $as_me by reconfiguring in the same conditions
12779 --file=FILE[:TEMPLATE]
12780 instantiate the configuration file FILE
12781 --header=FILE[:TEMPLATE]
12782 instantiate the configuration header FILE
12783
12784Configuration files:
12785$config_files
12786
12787Configuration headers:
12788$config_headers
12789
12790Configuration commands:
12791$config_commands
12792
12793Report bugs to the package provider."
12794
12795_ACEOF
12796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797ac_cs_version="\\
12798GCC Quad-precision Math Library config.status 0.1
12799configured by $0, generated by GNU Autoconf 2.64,
12800 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12801
12802Copyright (C) 2009 Free Software Foundation, Inc.
12803This config.status script is free software; the Free Software Foundation
12804gives unlimited permission to copy, distribute and modify it."
12805
12806ac_pwd='$ac_pwd'
12807srcdir='$srcdir'
12808INSTALL='$INSTALL'
12809MKDIR_P='$MKDIR_P'
12810AWK='$AWK'
12811test -n "\$AWK" || AWK=awk
12812_ACEOF
12813
12814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815# The default lists apply if the user does not specify any file.
12816ac_need_defaults=:
12817while test $# != 0
12818do
12819 case $1 in
12820 --*=*)
12821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12823 ac_shift=:
12824 ;;
12825 *)
12826 ac_option=$1
12827 ac_optarg=$2
12828 ac_shift=shift
12829 ;;
12830 esac
12831
12832 case $ac_option in
12833 # Handling of the options.
12834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12835 ac_cs_recheck=: ;;
12836 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12837 $as_echo "$ac_cs_version"; exit ;;
12838 --debug | --debu | --deb | --de | --d | -d )
12839 debug=: ;;
12840 --file | --fil | --fi | --f )
12841 $ac_shift
12842 case $ac_optarg in
12843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12844 esac
12845 as_fn_append CONFIG_FILES " '$ac_optarg'"
12846 ac_need_defaults=false;;
12847 --header | --heade | --head | --hea )
12848 $ac_shift
12849 case $ac_optarg in
12850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12851 esac
12852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12853 ac_need_defaults=false;;
12854 --he | --h)
12855 # Conflict between --help and --header
12856 as_fn_error "ambiguous option: \`$1'
12857Try \`$0 --help' for more information.";;
12858 --help | --hel | -h )
12859 $as_echo "$ac_cs_usage"; exit ;;
12860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12862 ac_cs_silent=: ;;
12863
12864 # This is an error.
12865 -*) as_fn_error "unrecognized option: \`$1'
12866Try \`$0 --help' for more information." ;;
12867
12868 *) as_fn_append ac_config_targets " $1"
12869 ac_need_defaults=false ;;
12870
12871 esac
12872 shift
12873done
12874
12875ac_configure_extra_args=
12876
12877if $ac_cs_silent; then
12878 exec 6>/dev/null
12879 ac_configure_extra_args="$ac_configure_extra_args --silent"
12880fi
12881
12882_ACEOF
12883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12884if \$ac_cs_recheck; then
12885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12886 shift
12887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12888 CONFIG_SHELL='$SHELL'
12889 export CONFIG_SHELL
12890 exec "\$@"
12891fi
12892
12893_ACEOF
12894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895exec 5>>config.log
12896{
12897 echo
12898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899## Running $as_me. ##
12900_ASBOX
12901 $as_echo "$ac_log"
12902} >&5
12903
12904_ACEOF
12905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12906#
12907# INIT-COMMANDS
12908#
12909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12910
12911
12912# The HP-UX ksh and POSIX shell print the target directory to stdout
12913# if CDPATH is set.
12914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12915
12916sed_quote_subst='$sed_quote_subst'
12917double_quote_subst='$double_quote_subst'
12918delay_variable_subst='$delay_variable_subst'
12919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12921enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12922enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12927host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12928host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12929host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12930build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12931build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12932build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12933SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12934Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12935GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12936EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12937FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12938LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12939NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12940LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12941max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12942ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12943exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12944lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12945lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12946lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12947reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12948reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12949OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12950deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12951file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12952AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12953AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12954STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12955RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12956old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12957old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12958old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12959lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12960CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12961CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12962compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12963GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12964lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12965lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12966lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12967lt_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"`'
12968objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12969MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12970lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12971lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12972lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12973lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12974lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12975need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12976DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12977NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12978LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12979OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12980OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12981libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12982shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12983extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12984archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12985enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12986export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12987whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12988compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12989old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12990old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12991archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12992archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12993module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12994module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12995with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12996allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12997no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12998hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12999hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13000hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13001hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13002hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13003hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13004hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13005hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13006inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13007link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13008fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13009always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13010export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13011exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13012include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13013prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13014file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13015variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13016need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13017need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13018version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13019runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13020shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13021shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13022libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13023library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13024soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13025install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13026postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13027postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13028finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13029finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13030hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13031sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13032sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13033hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13034enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13035enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13036enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13037old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13038striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13039
13040LTCC='$LTCC'
13041LTCFLAGS='$LTCFLAGS'
13042compiler='$compiler_DEFAULT'
13043
13044# A function that is used when there is no print builtin or printf.
13045func_fallback_echo ()
13046{
13047 eval 'cat <<_LTECHO_EOF
13048\$1
13049_LTECHO_EOF'
13050}
13051
13052# Quote evaled strings.
13053for var in SHELL \
13054ECHO \
13055SED \
13056GREP \
13057EGREP \
13058FGREP \
13059LD \
13060NM \
13061LN_S \
13062lt_SP2NL \
13063lt_NL2SP \
13064reload_flag \
13065OBJDUMP \
13066deplibs_check_method \
13067file_magic_cmd \
13068AR \
13069AR_FLAGS \
13070STRIP \
13071RANLIB \
13072CC \
13073CFLAGS \
13074compiler \
13075lt_cv_sys_global_symbol_pipe \
13076lt_cv_sys_global_symbol_to_cdecl \
13077lt_cv_sys_global_symbol_to_c_name_address \
13078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13079lt_prog_compiler_no_builtin_flag \
13080lt_prog_compiler_wl \
13081lt_prog_compiler_pic \
13082lt_prog_compiler_static \
13083lt_cv_prog_compiler_c_o \
13084need_locks \
13085DSYMUTIL \
13086NMEDIT \
13087LIPO \
13088OTOOL \
13089OTOOL64 \
13090shrext_cmds \
13091export_dynamic_flag_spec \
13092whole_archive_flag_spec \
13093compiler_needs_object \
13094with_gnu_ld \
13095allow_undefined_flag \
13096no_undefined_flag \
13097hardcode_libdir_flag_spec \
13098hardcode_libdir_flag_spec_ld \
13099hardcode_libdir_separator \
13100fix_srcfile_path \
13101exclude_expsyms \
13102include_expsyms \
13103file_list_spec \
13104variables_saved_for_relink \
13105libname_spec \
13106library_names_spec \
13107soname_spec \
13108install_override_mode \
13109finish_eval \
13110old_striplib \
13111striplib; do
13112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13113 *[\\\\\\\`\\"\\\$]*)
13114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13115 ;;
13116 *)
13117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13118 ;;
13119 esac
13120done
13121
13122# Double-quote double-evaled strings.
13123for var in reload_cmds \
13124old_postinstall_cmds \
13125old_postuninstall_cmds \
13126old_archive_cmds \
13127extract_expsyms_cmds \
13128old_archive_from_new_cmds \
13129old_archive_from_expsyms_cmds \
13130archive_cmds \
13131archive_expsym_cmds \
13132module_cmds \
13133module_expsym_cmds \
13134export_symbols_cmds \
13135prelink_cmds \
13136postinstall_cmds \
13137postuninstall_cmds \
13138finish_cmds \
13139sys_lib_search_path_spec \
13140sys_lib_dlsearch_path_spec; do
13141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13142 *[\\\\\\\`\\"\\\$]*)
13143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13144 ;;
13145 *)
13146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13147 ;;
13148 esac
13149done
13150
13151ac_aux_dir='$ac_aux_dir'
13152xsi_shell='$xsi_shell'
13153lt_shell_append='$lt_shell_append'
13154
13155# See if we are running on zsh, and set the options which allow our
13156# commands through without removal of \ escapes INIT.
13157if test -n "\${ZSH_VERSION+set}" ; then
13158 setopt NO_GLOB_SUBST
13159fi
13160
13161
13162 PACKAGE='$PACKAGE'
13163 VERSION='$VERSION'
13164 TIMESTAMP='$TIMESTAMP'
13165 RM='$RM'
13166 ofile='$ofile'
13167
13168
13169
13170
13171srcdir="$srcdir"
13172host="$host"
13173target="$target"
13174with_multisubdir="$with_multisubdir"
13175with_multisrctop="$with_multisrctop"
13176with_target_subdir="$with_target_subdir"
13177ac_configure_args="${multilib_arg} ${ac_configure_args}"
13178multi_basedir="$multi_basedir"
13179CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13180CC="$CC"
13181CXX="$CXX"
13182GFORTRAN="$GFORTRAN"
13183GCJ="$GCJ"
13184
13185_ACEOF
13186
13187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188
13189# Handling of arguments.
13190for ac_config_target in $ac_config_targets
13191do
13192 case $ac_config_target in
13193 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13194 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13195 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13196 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13198
13199 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13200 esac
13201done
13202
13203
13204# If the user did not use the arguments to specify the items to instantiate,
13205# then the envvar interface is used. Set only those that are not.
13206# We use the long form for the default assignment because of an extremely
13207# bizarre bug on SunOS 4.1.3.
13208if $ac_need_defaults; then
13209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13210 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13211 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13212fi
13213
13214# Have a temporary directory for convenience. Make it in the build tree
13215# simply because there is no reason against having it here, and in addition,
13216# creating and moving files from /tmp can sometimes cause problems.
13217# Hook for its removal unless debugging.
13218# Note that there is a small window in which the directory will not be cleaned:
13219# after its creation but before its name has been assigned to `$tmp'.
13220$debug ||
13221{
13222 tmp=
13223 trap 'exit_status=$?
13224 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13225' 0
13226 trap 'as_fn_exit 1' 1 2 13 15
13227}
13228# Create a (secure) tmp directory for tmp files.
13229
13230{
13231 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13232 test -n "$tmp" && test -d "$tmp"
13233} ||
13234{
13235 tmp=./conf$$-$RANDOM
13236 (umask 077 && mkdir "$tmp")
13237} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13238
13239# Set up the scripts for CONFIG_FILES section.
13240# No need to generate them if there are no CONFIG_FILES.
13241# This happens for instance with `./config.status config.h'.
13242if test -n "$CONFIG_FILES"; then
13243
13244
13245ac_cr=`echo X | tr X '\015'`
13246# On cygwin, bash can eat \r inside `` if the user requested igncr.
13247# But we know of no other shell where ac_cr would be empty at this
13248# point, so we can use a bashism as a fallback.
13249if test "x$ac_cr" = x; then
13250 eval ac_cr=\$\'\\r\'
13251fi
13252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13254 ac_cs_awk_cr='\r'
13255else
13256 ac_cs_awk_cr=$ac_cr
13257fi
13258
13259echo 'BEGIN {' >"$tmp/subs1.awk" &&
13260_ACEOF
13261
13262
13263{
13264 echo "cat >conf$$subs.awk <<_ACEOF" &&
13265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13266 echo "_ACEOF"
13267} >conf$$subs.sh ||
13268 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13269ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13270ac_delim='%!_!# '
13271for ac_last_try in false false false false false :; do
13272 . ./conf$$subs.sh ||
13273 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13274
13275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13276 if test $ac_delim_n = $ac_delim_num; then
13277 break
13278 elif $ac_last_try; then
13279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13280 else
13281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13282 fi
13283done
13284rm -f conf$$subs.sh
13285
13286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13287cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13288_ACEOF
13289sed -n '
13290h
13291s/^/S["/; s/!.*/"]=/
13292p
13293g
13294s/^[^!]*!//
13295:repl
13296t repl
13297s/'"$ac_delim"'$//
13298t delim
13299:nl
13300h
13301s/\(.\{148\}\).*/\1/
13302t more1
13303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13304p
13305n
13306b repl
13307:more1
13308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13309p
13310g
13311s/.\{148\}//
13312t nl
13313:delim
13314h
13315s/\(.\{148\}\).*/\1/
13316t more2
13317s/["\\]/\\&/g; s/^/"/; s/$/"/
13318p
13319b
13320:more2
13321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13322p
13323g
13324s/.\{148\}//
13325t delim
13326' <conf$$subs.awk | sed '
13327/^[^""]/{
13328 N
13329 s/\n//
13330}
13331' >>$CONFIG_STATUS || ac_write_fail=1
13332rm -f conf$$subs.awk
13333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334_ACAWK
13335cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13336 for (key in S) S_is_set[key] = 1
13337 FS = "\a"
13338
13339}
13340{
13341 line = $ 0
13342 nfields = split(line, field, "@")
13343 substed = 0
13344 len = length(field[1])
13345 for (i = 2; i < nfields; i++) {
13346 key = field[i]
13347 keylen = length(key)
13348 if (S_is_set[key]) {
13349 value = S[key]
13350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13351 len += length(value) + length(field[++i])
13352 substed = 1
13353 } else
13354 len += 1 + keylen
13355 }
13356
13357 print line
13358}
13359
13360_ACAWK
13361_ACEOF
13362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13365else
13366 cat
13367fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13368 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13369_ACEOF
13370
13371# VPATH may cause trouble with some makes, so we remove $(srcdir),
13372# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13373# trailing colons and then remove the whole line if VPATH becomes empty
13374# (actually we leave an empty line to preserve line numbers).
13375if test "x$srcdir" = x.; then
13376 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13377s/:*\$(srcdir):*/:/
13378s/:*\${srcdir}:*/:/
13379s/:*@srcdir@:*/:/
13380s/^\([^=]*=[ ]*\):*/\1/
13381s/:*$//
13382s/^[^=]*=[ ]*$//
13383}'
13384fi
13385
13386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13387fi # test -n "$CONFIG_FILES"
13388
13389# Set up the scripts for CONFIG_HEADERS section.
13390# No need to generate them if there are no CONFIG_HEADERS.
13391# This happens for instance with `./config.status Makefile'.
13392if test -n "$CONFIG_HEADERS"; then
13393cat >"$tmp/defines.awk" <<\_ACAWK ||
13394BEGIN {
13395_ACEOF
13396
13397# Transform confdefs.h into an awk script `defines.awk', embedded as
13398# here-document in config.status, that substitutes the proper values into
13399# config.h.in to produce config.h.
13400
13401# Create a delimiter string that does not exist in confdefs.h, to ease
13402# handling of long lines.
13403ac_delim='%!_!# '
13404for ac_last_try in false false :; do
13405 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13406 if test -z "$ac_t"; then
13407 break
13408 elif $ac_last_try; then
13409 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13410 else
13411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13412 fi
13413done
13414
13415# For the awk script, D is an array of macro values keyed by name,
13416# likewise P contains macro parameters if any. Preserve backslash
13417# newline sequences.
13418
13419ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13420sed -n '
13421s/.\{148\}/&'"$ac_delim"'/g
13422t rset
13423:rset
13424s/^[ ]*#[ ]*define[ ][ ]*/ /
13425t def
13426d
13427:def
13428s/\\$//
13429t bsnl
13430s/["\\]/\\&/g
13431s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13432D["\1"]=" \3"/p
13433s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13434d
13435:bsnl
13436s/["\\]/\\&/g
13437s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13438D["\1"]=" \3\\\\\\n"\\/p
13439t cont
13440s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13441t cont
13442d
13443:cont
13444n
13445s/.\{148\}/&'"$ac_delim"'/g
13446t clear
13447:clear
13448s/\\$//
13449t bsnlc
13450s/["\\]/\\&/g; s/^/"/; s/$/"/p
13451d
13452:bsnlc
13453s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13454b cont
13455' <confdefs.h | sed '
13456s/'"$ac_delim"'/"\\\
13457"/g' >>$CONFIG_STATUS || ac_write_fail=1
13458
13459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13460 for (key in D) D_is_set[key] = 1
13461 FS = "\a"
13462}
13463/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13464 line = \$ 0
13465 split(line, arg, " ")
13466 if (arg[1] == "#") {
13467 defundef = arg[2]
13468 mac1 = arg[3]
13469 } else {
13470 defundef = substr(arg[1], 2)
13471 mac1 = arg[2]
13472 }
13473 split(mac1, mac2, "(") #)
13474 macro = mac2[1]
13475 prefix = substr(line, 1, index(line, defundef) - 1)
13476 if (D_is_set[macro]) {
13477 # Preserve the white space surrounding the "#".
13478 print prefix "define", macro P[macro] D[macro]
13479 next
13480 } else {
13481 # Replace #undef with comments. This is necessary, for example,
13482 # in the case of _POSIX_SOURCE, which is predefined and required
13483 # on some systems where configure will not decide to define it.
13484 if (defundef == "undef") {
13485 print "/*", prefix defundef, macro, "*/"
13486 next
13487 }
13488 }
13489}
13490{ print }
13491_ACAWK
13492_ACEOF
13493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13494 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13495fi # test -n "$CONFIG_HEADERS"
13496
13497
13498eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13499shift
13500for ac_tag
13501do
13502 case $ac_tag in
13503 :[FHLC]) ac_mode=$ac_tag; continue;;
13504 esac
13505 case $ac_mode$ac_tag in
13506 :[FHL]*:*);;
13507 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13508 :[FH]-) ac_tag=-:-;;
13509 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13510 esac
13511 ac_save_IFS=$IFS
13512 IFS=:
13513 set x $ac_tag
13514 IFS=$ac_save_IFS
13515 shift
13516 ac_file=$1
13517 shift
13518
13519 case $ac_mode in
13520 :L) ac_source=$1;;
13521 :[FH])
13522 ac_file_inputs=
13523 for ac_f
13524 do
13525 case $ac_f in
13526 -) ac_f="$tmp/stdin";;
13527 *) # Look for the file first in the build tree, then in the source tree
13528 # (if the path is not absolute). The absolute path cannot be DOS-style,
13529 # because $ac_f cannot contain `:'.
13530 test -f "$ac_f" ||
13531 case $ac_f in
13532 [\\/$]*) false;;
13533 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13534 esac ||
13535 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13536 esac
13537 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13538 as_fn_append ac_file_inputs " '$ac_f'"
13539 done
13540
13541 # Let's still pretend it is `configure' which instantiates (i.e., don't
13542 # use $as_me), people would be surprised to read:
13543 # /* config.h. Generated by config.status. */
13544 configure_input='Generated from '`
13545 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13546 `' by configure.'
13547 if test x"$ac_file" != x-; then
13548 configure_input="$ac_file. $configure_input"
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13550$as_echo "$as_me: creating $ac_file" >&6;}
13551 fi
13552 # Neutralize special characters interpreted by sed in replacement strings.
13553 case $configure_input in #(
13554 *\&* | *\|* | *\\* )
13555 ac_sed_conf_input=`$as_echo "$configure_input" |
13556 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13557 *) ac_sed_conf_input=$configure_input;;
13558 esac
13559
13560 case $ac_tag in
13561 *:-:* | *:-) cat >"$tmp/stdin" \
13562 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13563 esac
13564 ;;
13565 esac
13566
13567 ac_dir=`$as_dirname -- "$ac_file" ||
13568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13569 X"$ac_file" : 'X\(//\)[^/]' \| \
13570 X"$ac_file" : 'X\(//\)$' \| \
13571 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13572$as_echo X"$ac_file" |
13573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13574 s//\1/
13575 q
13576 }
13577 /^X\(\/\/\)[^/].*/{
13578 s//\1/
13579 q
13580 }
13581 /^X\(\/\/\)$/{
13582 s//\1/
13583 q
13584 }
13585 /^X\(\/\).*/{
13586 s//\1/
13587 q
13588 }
13589 s/.*/./; q'`
13590 as_dir="$ac_dir"; as_fn_mkdir_p
13591 ac_builddir=.
13592
13593case "$ac_dir" in
13594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13595*)
13596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13597 # A ".." for each directory in $ac_dir_suffix.
13598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13599 case $ac_top_builddir_sub in
13600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13602 esac ;;
13603esac
13604ac_abs_top_builddir=$ac_pwd
13605ac_abs_builddir=$ac_pwd$ac_dir_suffix
13606# for backward compatibility:
13607ac_top_builddir=$ac_top_build_prefix
13608
13609case $srcdir in
13610 .) # We are building in place.
13611 ac_srcdir=.
13612 ac_top_srcdir=$ac_top_builddir_sub
13613 ac_abs_top_srcdir=$ac_pwd ;;
13614 [\\/]* | ?:[\\/]* ) # Absolute name.
13615 ac_srcdir=$srcdir$ac_dir_suffix;
13616 ac_top_srcdir=$srcdir
13617 ac_abs_top_srcdir=$srcdir ;;
13618 *) # Relative name.
13619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13620 ac_top_srcdir=$ac_top_build_prefix$srcdir
13621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13622esac
13623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13624
13625
13626 case $ac_mode in
13627 :F)
13628 #
13629 # CONFIG_FILE
13630 #
13631
13632 case $INSTALL in
13633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13634 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13635 esac
13636 ac_MKDIR_P=$MKDIR_P
13637 case $MKDIR_P in
13638 [\\/$]* | ?:[\\/]* ) ;;
13639 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13640 esac
13641_ACEOF
13642
13643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644# If the template does not know about datarootdir, expand it.
13645# FIXME: This hack should be removed a few years after 2.60.
13646ac_datarootdir_hack=; ac_datarootdir_seen=
13647ac_sed_dataroot='
13648/datarootdir/ {
13649 p
13650 q
13651}
13652/@datadir@/p
13653/@docdir@/p
13654/@infodir@/p
13655/@localedir@/p
13656/@mandir@/p'
13657case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13658*datarootdir*) ac_datarootdir_seen=yes;;
13659*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13661$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13662_ACEOF
13663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13664 ac_datarootdir_hack='
13665 s&@datadir@&$datadir&g
13666 s&@docdir@&$docdir&g
13667 s&@infodir@&$infodir&g
13668 s&@localedir@&$localedir&g
13669 s&@mandir@&$mandir&g
13670 s&\\\${datarootdir}&$datarootdir&g' ;;
13671esac
13672_ACEOF
13673
13674# Neutralize VPATH when `$srcdir' = `.'.
13675# Shell code in configure.ac might set extrasub.
13676# FIXME: do we really want to maintain this feature?
13677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678ac_sed_extra="$ac_vpsub
13679$extrasub
13680_ACEOF
13681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13682:t
13683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13684s|@configure_input@|$ac_sed_conf_input|;t t
13685s&@top_builddir@&$ac_top_builddir_sub&;t t
13686s&@top_build_prefix@&$ac_top_build_prefix&;t t
13687s&@srcdir@&$ac_srcdir&;t t
13688s&@abs_srcdir@&$ac_abs_srcdir&;t t
13689s&@top_srcdir@&$ac_top_srcdir&;t t
13690s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13691s&@builddir@&$ac_builddir&;t t
13692s&@abs_builddir@&$ac_abs_builddir&;t t
13693s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13694s&@INSTALL@&$ac_INSTALL&;t t
13695s&@MKDIR_P@&$ac_MKDIR_P&;t t
13696$ac_datarootdir_hack
13697"
13698eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13699 || as_fn_error "could not create $ac_file" "$LINENO" 5
13700
13701test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13702 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13703 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13705which seems to be undefined. Please make sure it is defined." >&5
13706$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13707which seems to be undefined. Please make sure it is defined." >&2;}
13708
13709 rm -f "$tmp/stdin"
13710 case $ac_file in
13711 -) cat "$tmp/out" && rm -f "$tmp/out";;
13712 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13713 esac \
13714 || as_fn_error "could not create $ac_file" "$LINENO" 5
13715 ;;
13716 :H)
13717 #
13718 # CONFIG_HEADER
13719 #
13720 if test x"$ac_file" != x-; then
13721 {
13722 $as_echo "/* $configure_input */" \
13723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13724 } >"$tmp/config.h" \
13725 || as_fn_error "could not create $ac_file" "$LINENO" 5
13726 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13728$as_echo "$as_me: $ac_file is unchanged" >&6;}
13729 else
13730 rm -f "$ac_file"
13731 mv "$tmp/config.h" "$ac_file" \
13732 || as_fn_error "could not create $ac_file" "$LINENO" 5
13733 fi
13734 else
13735 $as_echo "/* $configure_input */" \
13736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13737 || as_fn_error "could not create -" "$LINENO" 5
13738 fi
13739# Compute "$ac_file"'s index in $config_headers.
13740_am_arg="$ac_file"
13741_am_stamp_count=1
13742for _am_header in $config_headers :; do
13743 case $_am_header in
13744 $_am_arg | $_am_arg:* )
13745 break ;;
13746 * )
13747 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13748 esac
13749done
13750echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13751$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13752 X"$_am_arg" : 'X\(//\)[^/]' \| \
13753 X"$_am_arg" : 'X\(//\)$' \| \
13754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13755$as_echo X"$_am_arg" |
13756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13757 s//\1/
13758 q
13759 }
13760 /^X\(\/\/\)[^/].*/{
13761 s//\1/
13762 q
13763 }
13764 /^X\(\/\/\)$/{
13765 s//\1/
13766 q
13767 }
13768 /^X\(\/\).*/{
13769 s//\1/
13770 q
13771 }
13772 s/.*/./; q'`/stamp-h$_am_stamp_count
13773 ;;
13774
13775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13776$as_echo "$as_me: executing $ac_file commands" >&6;}
13777 ;;
13778 esac
13779
13780
13781 case $ac_file$ac_mode in
13782 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13783 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13784 # are listed without --file. Let's play safe and only enable the eval
13785 # if we detect the quoting.
13786 case $CONFIG_FILES in
13787 *\'*) eval set x "$CONFIG_FILES" ;;
13788 *) set x $CONFIG_FILES ;;
13789 esac
13790 shift
13791 for mf
13792 do
13793 # Strip MF so we end up with the name of the file.
13794 mf=`echo "$mf" | sed -e 's/:.*$//'`
13795 # Check whether this is an Automake generated Makefile or not.
13796 # We used to match only the files named `Makefile.in', but
13797 # some people rename them; so instead we look at the file content.
13798 # Grep'ing the first line is not enough: some people post-process
13799 # each Makefile.in and add a new line on top of each file to say so.
13800 # Grep'ing the whole file is not good either: AIX grep has a line
13801 # limit of 2048, but all sed's we know have understand at least 4000.
13802 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13803 dirpart=`$as_dirname -- "$mf" ||
13804$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13805 X"$mf" : 'X\(//\)[^/]' \| \
13806 X"$mf" : 'X\(//\)$' \| \
13807 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13808$as_echo X"$mf" |
13809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13810 s//\1/
13811 q
13812 }
13813 /^X\(\/\/\)[^/].*/{
13814 s//\1/
13815 q
13816 }
13817 /^X\(\/\/\)$/{
13818 s//\1/
13819 q
13820 }
13821 /^X\(\/\).*/{
13822 s//\1/
13823 q
13824 }
13825 s/.*/./; q'`
13826 else
13827 continue
13828 fi
13829 # Extract the definition of DEPDIR, am__include, and am__quote
13830 # from the Makefile without running `make'.
13831 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13832 test -z "$DEPDIR" && continue
13833 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13834 test -z "am__include" && continue
13835 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13836 # When using ansi2knr, U may be empty or an underscore; expand it
13837 U=`sed -n 's/^U = //p' < "$mf"`
13838 # Find all dependency output files, they are included files with
13839 # $(DEPDIR) in their names. We invoke sed twice because it is the
13840 # simplest approach to changing $(DEPDIR) to its actual value in the
13841 # expansion.
13842 for file in `sed -n "
13843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13845 # Make sure the directory exists.
13846 test -f "$dirpart/$file" && continue
13847 fdir=`$as_dirname -- "$file" ||
13848$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13849 X"$file" : 'X\(//\)[^/]' \| \
13850 X"$file" : 'X\(//\)$' \| \
13851 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13852$as_echo X"$file" |
13853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13854 s//\1/
13855 q
13856 }
13857 /^X\(\/\/\)[^/].*/{
13858 s//\1/
13859 q
13860 }
13861 /^X\(\/\/\)$/{
13862 s//\1/
13863 q
13864 }
13865 /^X\(\/\).*/{
13866 s//\1/
13867 q
13868 }
13869 s/.*/./; q'`
13870 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13871 # echo "creating $dirpart/$file"
13872 echo '# dummy' > "$dirpart/$file"
13873 done
13874 done
13875}
13876 ;;
13877 "libtool":C)
13878
13879 # See if we are running on zsh, and set the options which allow our
13880 # commands through without removal of \ escapes.
13881 if test -n "${ZSH_VERSION+set}" ; then
13882 setopt NO_GLOB_SUBST
13883 fi
13884
13885 cfgfile="${ofile}T"
13886 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13887 $RM "$cfgfile"
13888
13889 cat <<_LT_EOF >> "$cfgfile"
13890#! $SHELL
13891
13892# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13893# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13894# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13895# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13896#
13897# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13898# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13899# Written by Gordon Matzigkeit, 1996
13900#
13901# This file is part of GNU Libtool.
13902#
13903# GNU Libtool is free software; you can redistribute it and/or
13904# modify it under the terms of the GNU General Public License as
13905# published by the Free Software Foundation; either version 2 of
13906# the License, or (at your option) any later version.
13907#
13908# As a special exception to the GNU General Public License,
13909# if you distribute this file as part of a program or library that
13910# is built using GNU Libtool, you may include this file under the
13911# same distribution terms that you use for the rest of that program.
13912#
13913# GNU Libtool is distributed in the hope that it will be useful,
13914# but WITHOUT ANY WARRANTY; without even the implied warranty of
13915# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13916# GNU General Public License for more details.
13917#
13918# You should have received a copy of the GNU General Public License
13919# along with GNU Libtool; see the file COPYING. If not, a copy
13920# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13921# obtained by writing to the Free Software Foundation, Inc.,
13922# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13923
13924
13925# The names of the tagged configurations supported by this script.
13926available_tags=""
13927
13928# ### BEGIN LIBTOOL CONFIG
13929
13930# Which release of libtool.m4 was used?
13931macro_version=$macro_version
13932macro_revision=$macro_revision
13933
13934# Whether or not to build shared libraries.
13935build_libtool_libs=$enable_shared
13936
13937# Whether or not to build static libraries.
13938build_old_libs=$enable_static
13939
13940# What type of objects to build.
13941pic_mode=$pic_mode
13942
13943# Whether or not to optimize for fast installation.
13944fast_install=$enable_fast_install
13945
13946# Shell to use when invoking shell scripts.
13947SHELL=$lt_SHELL
13948
13949# An echo program that protects backslashes.
13950ECHO=$lt_ECHO
13951
13952# The host system.
13953host_alias=$host_alias
13954host=$host
13955host_os=$host_os
13956
13957# The build system.
13958build_alias=$build_alias
13959build=$build
13960build_os=$build_os
13961
13962# A sed program that does not truncate output.
13963SED=$lt_SED
13964
13965# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13966Xsed="\$SED -e 1s/^X//"
13967
13968# A grep program that handles long lines.
13969GREP=$lt_GREP
13970
13971# An ERE matcher.
13972EGREP=$lt_EGREP
13973
13974# A literal string matcher.
13975FGREP=$lt_FGREP
13976
13977# A BSD- or MS-compatible name lister.
13978NM=$lt_NM
13979
13980# Whether we need soft or hard links.
13981LN_S=$lt_LN_S
13982
13983# What is the maximum length of a command?
13984max_cmd_len=$max_cmd_len
13985
13986# Object file suffix (normally "o").
13987objext=$ac_objext
13988
13989# Executable file suffix (normally "").
13990exeext=$exeext
13991
13992# whether the shell understands "unset".
13993lt_unset=$lt_unset
13994
13995# turn spaces into newlines.
13996SP2NL=$lt_lt_SP2NL
13997
13998# turn newlines into spaces.
13999NL2SP=$lt_lt_NL2SP
14000
14001# An object symbol dumper.
14002OBJDUMP=$lt_OBJDUMP
14003
14004# Method to check whether dependent libraries are shared objects.
14005deplibs_check_method=$lt_deplibs_check_method
14006
14007# Command to use when deplibs_check_method == "file_magic".
14008file_magic_cmd=$lt_file_magic_cmd
14009
14010# The archiver.
14011AR=$lt_AR
14012AR_FLAGS=$lt_AR_FLAGS
14013
14014# A symbol stripping program.
14015STRIP=$lt_STRIP
14016
14017# Commands used to install an old-style archive.
14018RANLIB=$lt_RANLIB
14019old_postinstall_cmds=$lt_old_postinstall_cmds
14020old_postuninstall_cmds=$lt_old_postuninstall_cmds
14021
14022# Whether to use a lock for old archive extraction.
14023lock_old_archive_extraction=$lock_old_archive_extraction
14024
14025# A C compiler.
14026LTCC=$lt_CC
14027
14028# LTCC compiler flags.
14029LTCFLAGS=$lt_CFLAGS
14030
14031# Take the output of nm and produce a listing of raw symbols and C names.
14032global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14033
14034# Transform the output of nm in a proper C declaration.
14035global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14036
14037# Transform the output of nm in a C name address pair.
14038global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14039
14040# Transform the output of nm in a C name address pair when lib prefix is needed.
14041global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14042
14043# The name of the directory that contains temporary libtool files.
14044objdir=$objdir
14045
14046# Used to examine libraries when file_magic_cmd begins with "file".
14047MAGIC_CMD=$MAGIC_CMD
14048
14049# Must we lock files when doing compilation?
14050need_locks=$lt_need_locks
14051
14052# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14053DSYMUTIL=$lt_DSYMUTIL
14054
14055# Tool to change global to local symbols on Mac OS X.
14056NMEDIT=$lt_NMEDIT
14057
14058# Tool to manipulate fat objects and archives on Mac OS X.
14059LIPO=$lt_LIPO
14060
14061# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14062OTOOL=$lt_OTOOL
14063
14064# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14065OTOOL64=$lt_OTOOL64
14066
14067# Old archive suffix (normally "a").
14068libext=$libext
14069
14070# Shared library suffix (normally ".so").
14071shrext_cmds=$lt_shrext_cmds
14072
14073# The commands to extract the exported symbol list from a shared archive.
14074extract_expsyms_cmds=$lt_extract_expsyms_cmds
14075
14076# Variables whose values should be saved in libtool wrapper scripts and
14077# restored at link time.
14078variables_saved_for_relink=$lt_variables_saved_for_relink
14079
14080# Do we need the "lib" prefix for modules?
14081need_lib_prefix=$need_lib_prefix
14082
14083# Do we need a version for libraries?
14084need_version=$need_version
14085
14086# Library versioning type.
14087version_type=$version_type
14088
14089# Shared library runtime path variable.
14090runpath_var=$runpath_var
14091
14092# Shared library path variable.
14093shlibpath_var=$shlibpath_var
14094
14095# Is shlibpath searched before the hard-coded library search path?
14096shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14097
14098# Format of library name prefix.
14099libname_spec=$lt_libname_spec
14100
14101# List of archive names. First name is the real one, the rest are links.
14102# The last name is the one that the linker finds with -lNAME
14103library_names_spec=$lt_library_names_spec
14104
14105# The coded name of the library, if different from the real name.
14106soname_spec=$lt_soname_spec
14107
14108# Permission mode override for installation of shared libraries.
14109install_override_mode=$lt_install_override_mode
14110
14111# Command to use after installation of a shared archive.
14112postinstall_cmds=$lt_postinstall_cmds
14113
14114# Command to use after uninstallation of a shared archive.
14115postuninstall_cmds=$lt_postuninstall_cmds
14116
14117# Commands used to finish a libtool library installation in a directory.
14118finish_cmds=$lt_finish_cmds
14119
14120# As "finish_cmds", except a single script fragment to be evaled but
14121# not shown.
14122finish_eval=$lt_finish_eval
14123
14124# Whether we should hardcode library paths into libraries.
14125hardcode_into_libs=$hardcode_into_libs
14126
14127# Compile-time system search path for libraries.
14128sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14129
14130# Run-time system search path for libraries.
14131sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14132
14133# Whether dlopen is supported.
14134dlopen_support=$enable_dlopen
14135
14136# Whether dlopen of programs is supported.
14137dlopen_self=$enable_dlopen_self
14138
14139# Whether dlopen of statically linked programs is supported.
14140dlopen_self_static=$enable_dlopen_self_static
14141
14142# Commands to strip libraries.
14143old_striplib=$lt_old_striplib
14144striplib=$lt_striplib
14145
14146
14147# The linker used to build libraries.
14148LD=$lt_LD
14149
14150# How to create reloadable object files.
14151reload_flag=$lt_reload_flag
14152reload_cmds=$lt_reload_cmds
14153
14154# Commands used to build an old-style archive.
14155old_archive_cmds=$lt_old_archive_cmds
14156
14157# A language specific compiler.
14158CC=$lt_compiler
14159
14160# Is the compiler the GNU compiler?
14161with_gcc=$GCC
14162
14163# Compiler flag to turn off builtin functions.
14164no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14165
14166# How to pass a linker flag through the compiler.
14167wl=$lt_lt_prog_compiler_wl
14168
14169# Additional compiler flags for building library objects.
14170pic_flag=$lt_lt_prog_compiler_pic
14171
14172# Compiler flag to prevent dynamic linking.
14173link_static_flag=$lt_lt_prog_compiler_static
14174
14175# Does compiler simultaneously support -c and -o options?
14176compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14177
14178# Whether or not to add -lc for building shared libraries.
14179build_libtool_need_lc=$archive_cmds_need_lc
14180
14181# Whether or not to disallow shared libs when runtime libs are static.
14182allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14183
14184# Compiler flag to allow reflexive dlopens.
14185export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14186
14187# Compiler flag to generate shared objects directly from archives.
14188whole_archive_flag_spec=$lt_whole_archive_flag_spec
14189
14190# Whether the compiler copes with passing no objects directly.
14191compiler_needs_object=$lt_compiler_needs_object
14192
14193# Create an old-style archive from a shared archive.
14194old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14195
14196# Create a temporary old-style archive to link instead of a shared archive.
14197old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14198
14199# Commands used to build a shared archive.
14200archive_cmds=$lt_archive_cmds
14201archive_expsym_cmds=$lt_archive_expsym_cmds
14202
14203# Commands used to build a loadable module if different from building
14204# a shared archive.
14205module_cmds=$lt_module_cmds
14206module_expsym_cmds=$lt_module_expsym_cmds
14207
14208# Whether we are building with GNU ld or not.
14209with_gnu_ld=$lt_with_gnu_ld
14210
14211# Flag that allows shared libraries with undefined symbols to be built.
14212allow_undefined_flag=$lt_allow_undefined_flag
14213
14214# Flag that enforces no undefined symbols.
14215no_undefined_flag=$lt_no_undefined_flag
14216
14217# Flag to hardcode \$libdir into a binary during linking.
14218# This must work even if \$libdir does not exist
14219hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14220
14221# If ld is used when linking, flag to hardcode \$libdir into a binary
14222# during linking. This must work even if \$libdir does not exist.
14223hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14224
14225# Whether we need a single "-rpath" flag with a separated argument.
14226hardcode_libdir_separator=$lt_hardcode_libdir_separator
14227
14228# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14229# DIR into the resulting binary.
14230hardcode_direct=$hardcode_direct
14231
14232# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14233# DIR into the resulting binary and the resulting library dependency is
14234# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14235# library is relocated.
14236hardcode_direct_absolute=$hardcode_direct_absolute
14237
14238# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14239# into the resulting binary.
14240hardcode_minus_L=$hardcode_minus_L
14241
14242# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14243# into the resulting binary.
14244hardcode_shlibpath_var=$hardcode_shlibpath_var
14245
14246# Set to "yes" if building a shared library automatically hardcodes DIR
14247# into the library and all subsequent libraries and executables linked
14248# against it.
14249hardcode_automatic=$hardcode_automatic
14250
14251# Set to yes if linker adds runtime paths of dependent libraries
14252# to runtime path list.
14253inherit_rpath=$inherit_rpath
14254
14255# Whether libtool must link a program against all its dependency libraries.
14256link_all_deplibs=$link_all_deplibs
14257
14258# Fix the shell variable \$srcfile for the compiler.
14259fix_srcfile_path=$lt_fix_srcfile_path
14260
14261# Set to "yes" if exported symbols are required.
14262always_export_symbols=$always_export_symbols
14263
14264# The commands to list exported symbols.
14265export_symbols_cmds=$lt_export_symbols_cmds
14266
14267# Symbols that should not be listed in the preloaded symbols.
14268exclude_expsyms=$lt_exclude_expsyms
14269
14270# Symbols that must always be exported.
14271include_expsyms=$lt_include_expsyms
14272
14273# Commands necessary for linking programs (against libraries) with templates.
14274prelink_cmds=$lt_prelink_cmds
14275
14276# Specify filename containing input files.
14277file_list_spec=$lt_file_list_spec
14278
14279# How to hardcode a shared library path into an executable.
14280hardcode_action=$hardcode_action
14281
14282# ### END LIBTOOL CONFIG
14283
14284_LT_EOF
14285
14286 case $host_os in
14287 aix3*)
14288 cat <<\_LT_EOF >> "$cfgfile"
14289# AIX sometimes has problems with the GCC collect2 program. For some
14290# reason, if we set the COLLECT_NAMES environment variable, the problems
14291# vanish in a puff of smoke.
14292if test "X${COLLECT_NAMES+set}" != Xset; then
14293 COLLECT_NAMES=
14294 export COLLECT_NAMES
14295fi
14296_LT_EOF
14297 ;;
14298 esac
14299
14300
14301ltmain="$ac_aux_dir/ltmain.sh"
14302
14303
14304 # We use sed instead of cat because bash on DJGPP gets confused if
14305 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14306 # text mode, it properly converts lines to CR/LF. This bash problem
14307 # is reportedly fixed, but why not run on old versions too?
14308 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14309 || (rm -f "$cfgfile"; exit 1)
14310
14311 case $xsi_shell in
14312 yes)
14313 cat << \_LT_EOF >> "$cfgfile"
14314
14315# func_dirname file append nondir_replacement
14316# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14317# otherwise set result to NONDIR_REPLACEMENT.
14318func_dirname ()
14319{
14320 case ${1} in
14321 */*) func_dirname_result="${1%/*}${2}" ;;
14322 * ) func_dirname_result="${3}" ;;
14323 esac
14324}
14325
14326# func_basename file
14327func_basename ()
14328{
14329 func_basename_result="${1##*/}"
14330}
14331
14332# func_dirname_and_basename file append nondir_replacement
14333# perform func_basename and func_dirname in a single function
14334# call:
14335# dirname: Compute the dirname of FILE. If nonempty,
14336# add APPEND to the result, otherwise set result
14337# to NONDIR_REPLACEMENT.
14338# value returned in "$func_dirname_result"
14339# basename: Compute filename of FILE.
14340# value retuned in "$func_basename_result"
14341# Implementation must be kept synchronized with func_dirname
14342# and func_basename. For efficiency, we do not delegate to
14343# those functions but instead duplicate the functionality here.
14344func_dirname_and_basename ()
14345{
14346 case ${1} in
14347 */*) func_dirname_result="${1%/*}${2}" ;;
14348 * ) func_dirname_result="${3}" ;;
14349 esac
14350 func_basename_result="${1##*/}"
14351}
14352
14353# func_stripname prefix suffix name
14354# strip PREFIX and SUFFIX off of NAME.
14355# PREFIX and SUFFIX must not contain globbing or regex special
14356# characters, hashes, percent signs, but SUFFIX may contain a leading
14357# dot (in which case that matches only a dot).
14358func_stripname ()
14359{
14360 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14361 # positional parameters, so assign one to ordinary parameter first.
14362 func_stripname_result=${3}
14363 func_stripname_result=${func_stripname_result#"${1}"}
14364 func_stripname_result=${func_stripname_result%"${2}"}
14365}
14366
14367# func_opt_split
14368func_opt_split ()
14369{
14370 func_opt_split_opt=${1%%=*}
14371 func_opt_split_arg=${1#*=}
14372}
14373
14374# func_lo2o object
14375func_lo2o ()
14376{
14377 case ${1} in
14378 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14379 *) func_lo2o_result=${1} ;;
14380 esac
14381}
14382
14383# func_xform libobj-or-source
14384func_xform ()
14385{
14386 func_xform_result=${1%.*}.lo
14387}
14388
14389# func_arith arithmetic-term...
14390func_arith ()
14391{
14392 func_arith_result=$(( $* ))
14393}
14394
14395# func_len string
14396# STRING may not start with a hyphen.
14397func_len ()
14398{
14399 func_len_result=${#1}
14400}
14401
14402_LT_EOF
14403 ;;
14404 *) # Bourne compatible functions.
14405 cat << \_LT_EOF >> "$cfgfile"
14406
14407# func_dirname file append nondir_replacement
14408# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14409# otherwise set result to NONDIR_REPLACEMENT.
14410func_dirname ()
14411{
14412 # Extract subdirectory from the argument.
14413 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14414 if test "X$func_dirname_result" = "X${1}"; then
14415 func_dirname_result="${3}"
14416 else
14417 func_dirname_result="$func_dirname_result${2}"
14418 fi
14419}
14420
14421# func_basename file
14422func_basename ()
14423{
14424 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14425}
14426
14427
14428# func_stripname prefix suffix name
14429# strip PREFIX and SUFFIX off of NAME.
14430# PREFIX and SUFFIX must not contain globbing or regex special
14431# characters, hashes, percent signs, but SUFFIX may contain a leading
14432# dot (in which case that matches only a dot).
14433# func_strip_suffix prefix name
14434func_stripname ()
14435{
14436 case ${2} in
14437 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14438 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14439 esac
14440}
14441
14442# sed scripts:
14443my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14444my_sed_long_arg='1s/^-[^=]*=//'
14445
14446# func_opt_split
14447func_opt_split ()
14448{
14449 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14450 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14451}
14452
14453# func_lo2o object
14454func_lo2o ()
14455{
14456 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14457}
14458
14459# func_xform libobj-or-source
14460func_xform ()
14461{
14462 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14463}
14464
14465# func_arith arithmetic-term...
14466func_arith ()
14467{
14468 func_arith_result=`expr "$@"`
14469}
14470
14471# func_len string
14472# STRING may not start with a hyphen.
14473func_len ()
14474{
14475 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14476}
14477
14478_LT_EOF
14479esac
14480
14481case $lt_shell_append in
14482 yes)
14483 cat << \_LT_EOF >> "$cfgfile"
14484
14485# func_append var value
14486# Append VALUE to the end of shell variable VAR.
14487func_append ()
14488{
14489 eval "$1+=\$2"
14490}
14491_LT_EOF
14492 ;;
14493 *)
14494 cat << \_LT_EOF >> "$cfgfile"
14495
14496# func_append var value
14497# Append VALUE to the end of shell variable VAR.
14498func_append ()
14499{
14500 eval "$1=\$$1\$2"
14501}
14502
14503_LT_EOF
14504 ;;
14505 esac
14506
14507
14508 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14509 || (rm -f "$cfgfile"; exit 1)
14510
14511 mv -f "$cfgfile" "$ofile" ||
14512 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14513 chmod +x "$ofile"
14514
14515 ;;
14516 "default-1":C)
14517# Only add multilib support code if we just rebuilt the top-level
14518# Makefile.
14519case " $CONFIG_FILES " in
14520 *" Makefile "*)
14521 ac_file=Makefile . ${multi_basedir}/config-ml.in
14522 ;;
14523esac ;;
14524
14525 esac
14526done # for ac_tag
14527
14528
14529as_fn_exit 0
14530_ACEOF
14531ac_clean_files=$ac_clean_files_save
14532
14533test $ac_write_fail = 0 ||
14534 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14535
14536
14537# configure is writing to config.log, and then calls config.status.
14538# config.status does its own redirection, appending to config.log.
14539# Unfortunately, on DOS this fails, as config.log is still kept open
14540# by configure, so config.status won't be able to write to it; its
14541# output is simply discarded. So we exec the FD to /dev/null,
14542# effectively closing config.log, so it can be properly (re)opened and
14543# appended to by config.status. When coming back to configure, we
14544# need to make the FD available again.
14545if test "$no_create" != yes; then
14546 ac_cs_success=:
14547 ac_config_status_args=
14548 test "$silent" = yes &&
14549 ac_config_status_args="$ac_config_status_args --quiet"
14550 exec 5>/dev/null
14551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14552 exec 5>>config.log
14553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554 # would make configure fail if this is the last instruction.
14555 $ac_cs_success || as_fn_exit $?
14556fi
14557if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14559$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14560fi
14561