]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
Remove freebsd1 from libtool.m4 macros and config.rpath.
[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
642d2873
TB
658REPORT_BUGS_TEXI
659REPORT_BUGS_TO
4c993c44
TB
660BUILD_INFO_FALSE
661BUILD_INFO_TRUE
1ec601bf
FXC
662am__untar
663am__tar
664AMTAR
665am__leading_dot
666SET_MAKE
667AWK
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671STRIP
672install_sh
673MAKEINFO
674AUTOHEADER
675AUTOMAKE
676AUTOCONF
677ACLOCAL
678VERSION
679PACKAGE
680CYGPATH_W
681am__isrc
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
fabfcf5e 685target_noncanonical
1ec601bf
FXC
686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698target_alias
699host_alias
700build_alias
701LIBS
702ECHO_T
703ECHO_N
704ECHO_C
705DEFS
706mandir
707localedir
708libdir
709psdir
710pdfdir
711dvidir
712htmldir
713infodir
714docdir
715oldincludedir
716includedir
717localstatedir
718sharedstatedir
719sysconfdir
720datadir
721datarootdir
722libexecdir
723sbindir
724bindir
725program_transform_name
726prefix
727exec_prefix
728PACKAGE_URL
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
736ac_subst_files=''
737ac_user_opts='
738enable_option_checking
1ec601bf 739enable_version_specific_runtime_libs
642d2873 740with_bugurl
1ec601bf
FXC
741enable_shared
742enable_static
743with_pic
744enable_fast_install
fabfcf5e 745enable_dependency_tracking
1ec601bf
FXC
746with_gnu_ld
747enable_libtool_lock
748enable_maintainer_mode
749enable_multilib
4c993c44 750enable_generated_files_in_srcdir
1ec601bf
FXC
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173fi
1174
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181fi
1182
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202done
1203
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
1227
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
1294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355_ACEOF
1356
1357 cat <<\_ACEOF
1358
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4c993c44
TB
1381 --enable-version-specific-runtime-libs
1382 specify that runtime libraries should be installed
1383 in a compiler-specific directory
1ec601bf
FXC
1384 --enable-shared[=PKGS] build shared libraries [default=yes]
1385 --enable-static[=PKGS] build static libraries [default=yes]
1386 --enable-fast-install[=PKGS]
1387 optimize for fast installation [default=yes]
fabfcf5e
KT
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1ec601bf
FXC
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-multilib build many library versions (default)
4c993c44
TB
1394 --enable-generated-files-in-srcdir
1395 put copies of generated files in source dir intended
1396 for creating source tarballs for users without
1397 texinfo bison or flex
1ec601bf
FXC
1398
1399Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
642d2873 1402 --with-bugurl=URL Direct users to URL to report a bug
1ec601bf
FXC
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1406
1407Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to the package provider.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482 cat <<\_ACEOF
1483GCC Quad-precision Math Library configure 0.1
1484generated by GNU Autoconf 2.64
1485
1486Copyright (C) 2009 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490 exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_c_try_compile LINENO
1498# --------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_compile ()
1501{
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524else
1525 $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529fi
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 return $ac_retval
1532
1533} # ac_fn_c_try_compile
1534
1535# ac_fn_c_try_link LINENO
1536# -----------------------
1537# Try to link conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_link ()
1539{
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext conftest$ac_exeext
1542 if { { ac_try="$ac_link"
1543case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_link") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest$ac_exeext && {
1561 test "$cross_compiling" = yes ||
1562 $as_test_x conftest$ac_exeext
1563 }; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570fi
1571 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1572 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1573 # interfere with the next link command; also delete a directory that is
1574 # left behind by Apple's compiler. We do this before executing the actions.
1575 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1578
1579} # ac_fn_c_try_link
1580
1581# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1582# -------------------------------------------------------
1583# Tests whether HEADER exists and can be compiled using the include files in
1584# INCLUDES, setting the cache variable VAR accordingly.
1585ac_fn_c_check_header_compile ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589$as_echo_n "checking for $2... " >&6; }
1590if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1591 $as_echo_n "(cached) " >&6
1592else
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h. */
1595$4
1596#include <$2>
1597_ACEOF
1598if ac_fn_c_try_compile "$LINENO"; then :
1599 eval "$3=yes"
1600else
1601 eval "$3=no"
1602fi
1603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604fi
1605eval ac_res=\$$3
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607$as_echo "$ac_res" >&6; }
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609
1610} # ac_fn_c_check_header_compile
1611
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } >/dev/null && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 return $ac_retval
1646
1647} # ac_fn_c_try_cpp
1648
1649# ac_fn_c_try_run LINENO
1650# ----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652# that executables *can* be run.
1653ac_fn_c_try_run ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=$ac_status
1684fi
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1688
1689} # ac_fn_c_try_run
1690
1691# ac_fn_c_check_func LINENO FUNC VAR
1692# ----------------------------------
1693# Tests whether FUNC exists, setting the cache variable VAR accordingly
1694ac_fn_c_check_func ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
1699if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1701else
fabfcf5e
KT
1702 if test x$gcc_no_link = xyes; then
1703 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1704fi
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1706/* end confdefs.h. */
1707/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1709#define $2 innocuous_$2
1710
1711/* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $2 (); below.
1713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1714 <limits.h> exists even on freestanding compilers. */
1715
1716#ifdef __STDC__
1717# include <limits.h>
1718#else
1719# include <assert.h>
1720#endif
1721
1722#undef $2
1723
1724/* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727#ifdef __cplusplus
1728extern "C"
1729#endif
1730char $2 ();
1731/* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734#if defined __stub_$2 || defined __stub___$2
1735choke me
1736#endif
1737
1738int
1739main ()
1740{
1741return $2 ();
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_link "$LINENO"; then :
1747 eval "$3=yes"
1748else
1749 eval "$3=no"
1750fi
1751rm -f core conftest.err conftest.$ac_objext \
1752 conftest$ac_exeext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759} # ac_fn_c_check_func
e8d42d28
JJ
1760
1761# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764# the include files in INCLUDES and setting the cache variable VAR
1765# accordingly.
1766ac_fn_c_check_header_mongrel ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
1772if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778else
1779 # Is the header compilable?
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781$as_echo_n "checking $2 usability... " >&6; }
1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789else
1790 ac_header_compiler=no
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794$as_echo "$ac_header_compiler" >&6; }
1795
1796# Is the header present?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798$as_echo_n "checking $2 presence... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805else
1806 ac_header_preproc=no
1807fi
1808rm -f conftest.err conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810$as_echo "$ac_header_preproc" >&6; }
1811
1812# So? What about this header?
1813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 yes:no: )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 ;;
1820 no:yes:* )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1824$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1828$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1837else
1838 eval "$3=\$ac_header_compiler"
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845
1846} # ac_fn_c_check_header_mongrel
1ec601bf
FXC
1847cat >config.log <<_ACEOF
1848This file contains any messages produced by compilers while
1849running configure, to aid debugging if configure makes a mistake.
1850
1851It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1852generated by GNU Autoconf 2.64. Invocation command line was
1853
1854 $ $0 $@
1855
1856_ACEOF
1857exec 5>>config.log
1858{
1859cat <<_ASUNAME
1860## --------- ##
1861## Platform. ##
1862## --------- ##
1863
1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881_ASUNAME
1882
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1889 done
1890IFS=$as_save_IFS
1891
1892} >&5
1893
1894cat >&5 <<_ACEOF
1895
1896
1897## ----------- ##
1898## Core tests. ##
1899## ----------- ##
1900
1901_ACEOF
1902
1903
1904# Keep a trace of the command line.
1905# Strip out --no-create and --no-recursion so they do not pile up.
1906# Strip out --silent because we don't want to record it for future runs.
1907# Also quote any args containing shell meta-characters.
1908# Make two passes to allow for proper duplicate-argument suppression.
1909ac_configure_args=
1910ac_configure_args0=
1911ac_configure_args1=
1912ac_must_keep_next=false
1913for ac_pass in 1 2
1914do
1915 for ac_arg
1916 do
1917 case $ac_arg in
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1921 continue ;;
1922 *\'*)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 case $ac_pass in
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 2)
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1931 else
1932 case $ac_arg in
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 esac
1940 ;;
1941 -* ) ac_must_keep_next=true ;;
1942 esac
1943 fi
1944 as_fn_append ac_configure_args " '$ac_arg'"
1945 ;;
1946 esac
1947 done
1948done
1949{ ac_configure_args0=; unset ac_configure_args0;}
1950{ ac_configure_args1=; unset ac_configure_args1;}
1951
1952# When interrupted or exit'd, cleanup temporary files, and complete
1953# config.log. We remove comments because anyway the quotes in there
1954# would cause problems or look ugly.
1955# WARNING: Use '\'' to represent an apostrophe within the trap.
1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1959 {
1960 echo
1961
1962 cat <<\_ASBOX
1963## ---------------- ##
1964## Cache variables. ##
1965## ---------------- ##
1966_ASBOX
1967 echo
1968 # The following way of writing the cache mishandles newlines in values,
1969(
1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in #(
1973 *${as_nl}*)
1974 case $ac_var in #(
1975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1976$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 esac
1978 case $ac_var in #(
1979 _ | IFS | as_nl) ;; #(
1980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1981 *) { eval $ac_var=; unset $ac_var;} ;;
1982 esac ;;
1983 esac
1984 done
1985 (set) 2>&1 |
1986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1987 *${as_nl}ac_space=\ *)
1988 sed -n \
1989 "s/'\''/'\''\\\\'\'''\''/g;
1990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 ;; #(
1992 *)
1993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1994 ;;
1995 esac |
1996 sort
1997)
1998 echo
1999
2000 cat <<\_ASBOX
2001## ----------------- ##
2002## Output variables. ##
2003## ----------------- ##
2004_ASBOX
2005 echo
2006 for ac_var in $ac_subst_vars
2007 do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2015
2016 if test -n "$ac_subst_files"; then
2017 cat <<\_ASBOX
2018## ------------------- ##
2019## File substitutions. ##
2020## ------------------- ##
2021_ASBOX
2022 echo
2023 for ac_var in $ac_subst_files
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032 fi
2033
2034 if test -s confdefs.h; then
2035 cat <<\_ASBOX
2036## ----------- ##
2037## confdefs.h. ##
2038## ----------- ##
2039_ASBOX
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051' 0
2052for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054done
2055ac_signal=0
2056
2057# confdefs.h avoids OS command line length limits that DEFS can exceed.
2058rm -f -r conftest* confdefs.h
2059
2060$as_echo "/* confdefs.h */" > confdefs.h
2061
2062# Predefined preprocessor variables.
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_NAME "$PACKAGE_NAME"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_VERSION "$PACKAGE_VERSION"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_STRING "$PACKAGE_STRING"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_URL "$PACKAGE_URL"
2086_ACEOF
2087
2088
2089# Let the site file select an alternate cache file if it wants to.
2090# Prefer an explicitly selected file to automatically selected ones.
2091ac_site_file1=NONE
2092ac_site_file2=NONE
2093if test -n "$CONFIG_SITE"; then
2094 ac_site_file1=$CONFIG_SITE
2095elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2098else
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2101fi
2102for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103do
2104 test "x$ac_site_file" = xNONE && continue
2105 if test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file"
2110 fi
2111done
2112
2113if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special
2115 # files actually), so we avoid doing that.
2116 if test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118$as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126$as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128fi
2129
2130# Check that the precious variables saved in the cache have kept the same
2131# value.
2132ac_cache_corrupted=false
2133for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2148 *)
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2161 fi
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2178 fi
2179done
2180if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186fi
2187## -------------------- ##
2188## Main body of script. ##
2189## -------------------- ##
2190
2191ac_ext=c
2192ac_cpp='$CPP $CPPFLAGS'
2193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198
2199
2200
2201ac_config_headers="$ac_config_headers config.h"
2202
2203
2204# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2205#
2206# You will slowly go insane if you do not grok the following fact: when
2207# building this library, the top-level /target/ becomes the library's /host/.
2208#
2209# configure then causes --target to default to --host, exactly like any
2210# other package using autoconf. Therefore, 'target' and 'host' will
2211# always be the same. This makes sense both for native and cross compilers
2212# just think about it for a little while. :-)
2213#
2214# Also, if this library is being configured as part of a cross compiler, the
2215# top-level configure script will pass the "real" host as $with_cross_host.
2216#
2217# Do not delete or change the following two lines. For why, see
2218# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2219ac_aux_dir=
2220for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2221 for ac_t in install-sh install.sh shtool; do
2222 if test -f "$ac_dir/$ac_t"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/$ac_t -c"
2225 break 2
2226 fi
2227 done
2228done
2229if test -z "$ac_aux_dir"; then
2230 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2231fi
2232
2233# These three variables are undocumented and unsupported,
2234# and are intended to be withdrawn in a future Autoconf release.
2235# They can cause serious problems if a builder's source tree is in a directory
2236# whose full name contains unusual characters.
2237ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2240
2241
2242# Make sure we can run config.sub.
2243$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2244 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2245
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2247$as_echo_n "checking build system type... " >&6; }
2248if test "${ac_cv_build+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250else
2251 ac_build_alias=$build_alias
2252test "x$ac_build_alias" = x &&
2253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2254test "x$ac_build_alias" = x &&
2255 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2256ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2257 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2258
2259fi
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2261$as_echo "$ac_cv_build" >&6; }
2262case $ac_cv_build in
2263*-*-*) ;;
2264*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2265esac
2266build=$ac_cv_build
2267ac_save_IFS=$IFS; IFS='-'
2268set x $ac_cv_build
2269shift
2270build_cpu=$1
2271build_vendor=$2
2272shift; shift
2273# Remember, the first character of IFS is used to create $*,
2274# except with old shells:
2275build_os=$*
2276IFS=$ac_save_IFS
2277case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2278
2279
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2281$as_echo_n "checking host system type... " >&6; }
2282if test "${ac_cv_host+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284else
2285 if test "x$host_alias" = x; then
2286 ac_cv_host=$ac_cv_build
2287else
2288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2290fi
2291
2292fi
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2294$as_echo "$ac_cv_host" >&6; }
2295case $ac_cv_host in
2296*-*-*) ;;
2297*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2298esac
2299host=$ac_cv_host
2300ac_save_IFS=$IFS; IFS='-'
2301set x $ac_cv_host
2302shift
2303host_cpu=$1
2304host_vendor=$2
2305shift; shift
2306# Remember, the first character of IFS is used to create $*,
2307# except with old shells:
2308host_os=$*
2309IFS=$ac_save_IFS
2310case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2311
2312
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2314$as_echo_n "checking target system type... " >&6; }
2315if test "${ac_cv_target+set}" = set; then :
2316 $as_echo_n "(cached) " >&6
2317else
2318 if test "x$target_alias" = x; then
2319 ac_cv_target=$ac_cv_host
2320else
2321 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2322 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2323fi
2324
2325fi
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2327$as_echo "$ac_cv_target" >&6; }
2328case $ac_cv_target in
2329*-*-*) ;;
2330*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2331esac
2332target=$ac_cv_target
2333ac_save_IFS=$IFS; IFS='-'
2334set x $ac_cv_target
2335shift
2336target_cpu=$1
2337target_vendor=$2
2338shift; shift
2339# Remember, the first character of IFS is used to create $*,
2340# except with old shells:
2341target_os=$*
2342IFS=$ac_save_IFS
2343case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2344
2345
2346# The aliases save the names the user supplied, while $host etc.
2347# will get canonicalized.
2348test -n "$target_alias" &&
2349 test "$program_prefix$program_suffix$program_transform_name" = \
2350 NONENONEs,x,x, &&
2351 program_prefix=${target_alias}-
2352
fabfcf5e
KT
2353 case ${build_alias} in
2354 "") build_noncanonical=${build} ;;
2355 *) build_noncanonical=${build_alias} ;;
2356esac
2357
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
2361esac
2362
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
2366esac
2367
2368
2369
2370
1ec601bf
FXC
2371target_alias=${target_alias-$host_alias}
2372
fabfcf5e 2373
1ec601bf
FXC
2374am__api_version='1.11'
2375
2376# Find a good install program. We prefer a C program (faster),
2377# so one script is as good as another. But avoid the broken or
2378# incompatible versions:
2379# SysV /etc/install, /usr/sbin/install
2380# SunOS /usr/etc/install
2381# IRIX /sbin/install
2382# AIX /bin/install
2383# AmigaOS /C/install, which installs bootblocks on floppy discs
2384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387# OS/2's system install, which has a completely different semantic
2388# ./install, which can be erroneously created by make from ./install.sh.
2389# Reject install programs that cannot install multiple files.
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391$as_echo_n "checking for a BSD-compatible install... " >&6; }
2392if test -z "$INSTALL"; then
2393if test "${ac_cv_path_install+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2406 /usr/ucb/* ) ;;
2407 *)
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2410 # by default.
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2417 :
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2421 :
2422 else
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2426 mkdir conftest.dir
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2431 then
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433 break 3
2434 fi
2435 fi
2436 fi
2437 done
2438 done
2439 ;;
2440esac
2441
2442 done
2443IFS=$as_save_IFS
2444
2445rm -rf conftest.one conftest.two conftest.dir
2446
2447fi
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2450 else
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2456 fi
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459$as_echo "$INSTALL" >&6; }
2460
2461# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462# It thinks the first close brace ends the variable substitution.
2463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464
2465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466
2467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470$as_echo_n "checking whether build environment is sane... " >&6; }
2471# Just in case
2472sleep 1
2473echo timestamp > conftest.file
2474# Reject unsafe characters in $srcdir or the absolute working directory
2475# name. Accept space and tab only in the latter.
2476am_lf='
2477'
2478case `pwd` in
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2481esac
2482case $srcdir in
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2485esac
2486
2487# Do `set' in a subshell so we don't clobber the current shell's
2488# arguments. Must try -L first in case configure is actually a
2489# symlink; some systems play weird games with the mod time of symlinks
2490# (eg FreeBSD returns the mod time of the symlink's containing
2491# directory).
2492if (
2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2495 # -L didn't work.
2496 set X `ls -t "$srcdir/configure" conftest.file`
2497 fi
2498 rm -f conftest.file
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2507alias in your environment" "$LINENO" 5
2508 fi
2509
2510 test "$2" = conftest.file
2511 )
2512then
2513 # Ok.
2514 :
2515else
2516 as_fn_error "newly created file is older than distributed files!
2517Check your system clock" "$LINENO" 5
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520$as_echo "yes" >&6; }
2521test "$program_prefix" != NONE &&
2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523# Use a double $ so make ignores it.
2524test "$program_suffix" != NONE &&
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526# Double any \ or $.
2527# By default was `s,x,x', remove it if useless.
2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530
2531# expand $ac_aux_dir to an absolute path
2532am_aux_dir=`cd $ac_aux_dir && pwd`
2533
2534if test x"${MISSING+set}" != xset; then
2535 case $am_aux_dir in
2536 *\ * | *\ *)
2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538 *)
2539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540 esac
2541fi
2542# Use eval to expand $SHELL
2543if eval "$MISSING --run true"; then
2544 am_missing_run="$MISSING --run "
2545else
2546 am_missing_run=
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2548$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2549fi
2550
2551if test x"${install_sh}" != xset; then
2552 case $am_aux_dir in
2553 *\ * | *\ *)
2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555 *)
2556 install_sh="\${SHELL} $am_aux_dir/install-sh"
2557 esac
2558fi
2559
2560# Installed binaries are usually stripped using `strip' when the user
2561# run `make install-strip'. However `strip' might not be the right
2562# tool to use in cross-compilation environments, therefore Automake
2563# will honor the `STRIP' environment variable to overrule this program.
2564if test "$cross_compiling" != no; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567set dummy ${ac_tool_prefix}strip; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if test "${ac_cv_prog_STRIP+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572else
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587done
2588 done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593STRIP=$ac_cv_prog_STRIP
2594if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596$as_echo "$STRIP" >&6; }
2597else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602
2603fi
2604if test -z "$ac_cv_prog_STRIP"; then
2605 ac_ct_STRIP=$STRIP
2606 # Extract the first word of "strip", so it can be a program name with args.
2607set dummy strip; ac_word=$2
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612else
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_STRIP="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628 done
2629IFS=$as_save_IFS
2630
2631fi
2632fi
2633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636$as_echo "$ac_ct_STRIP" >&6; }
2637else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
2640fi
2641
2642 if test "x$ac_ct_STRIP" = x; then
2643 STRIP=":"
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649ac_tool_warned=yes ;;
2650esac
2651 STRIP=$ac_ct_STRIP
2652 fi
2653else
2654 STRIP="$ac_cv_prog_STRIP"
2655fi
2656
2657fi
2658INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662if test -z "$MKDIR_P"; then
2663 if test "${ac_cv_path_mkdir+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in mkdir gmkdir; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2679 break 3;;
2680 esac
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685
2686fi
2687
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 test -d ./--version && rmdir ./--version
2696 MKDIR_P="$ac_install_sh -d"
2697 fi
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700$as_echo "$MKDIR_P" >&6; }
2701
2702mkdir_p="$MKDIR_P"
2703case $mkdir_p in
2704 [\\/$]* | ?:[\\/]*) ;;
2705 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2706esac
2707
2708for ac_prog in gawk mawk nawk awk
2709do
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711set dummy $ac_prog; ac_word=$2
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
2714if test "${ac_cv_prog_AWK+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 if test -n "$AWK"; then
2718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_AWK="$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732 done
2733IFS=$as_save_IFS
2734
2735fi
2736fi
2737AWK=$ac_cv_prog_AWK
2738if test -n "$AWK"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740$as_echo "$AWK" >&6; }
2741else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
2745
2746
2747 test -n "$AWK" && break
2748done
2749
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752set x ${MAKE-make}
2753ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2756else
2757 cat >conftest.make <<\_ACEOF
2758SHELL = /bin/sh
2759all:
2760 @echo '@@@%%%=$(MAKE)=@@@%%%'
2761_ACEOF
2762# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2763case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764 *@@@%%%=?*=@@@%%%*)
2765 eval ac_cv_prog_make_${ac_make}_set=yes;;
2766 *)
2767 eval ac_cv_prog_make_${ac_make}_set=no;;
2768esac
2769rm -f conftest.make
2770fi
2771if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773$as_echo "yes" >&6; }
2774 SET_MAKE=
2775else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778 SET_MAKE="MAKE=${MAKE-make}"
2779fi
2780
2781rm -rf .tst 2>/dev/null
2782mkdir .tst 2>/dev/null
2783if test -d .tst; then
2784 am__leading_dot=.
2785else
2786 am__leading_dot=_
2787fi
2788rmdir .tst 2>/dev/null
2789
2790if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status; then
2796 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2797 fi
2798fi
2799
2800# test whether we have cygpath
2801if test -z "$CYGPATH_W"; then
2802 if (cygpath --version) >/dev/null 2>/dev/null; then
2803 CYGPATH_W='cygpath -w'
2804 else
2805 CYGPATH_W=echo
2806 fi
2807fi
2808
2809
2810# Define the identity of the package.
2811 PACKAGE='libquadmath'
2812 VERSION='0.1'
2813
2814
2815cat >>confdefs.h <<_ACEOF
2816#define PACKAGE "$PACKAGE"
2817_ACEOF
2818
2819
2820cat >>confdefs.h <<_ACEOF
2821#define VERSION "$VERSION"
2822_ACEOF
2823
2824# Some tools Automake needs.
2825
2826ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2827
2828
2829AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2830
2831
2832AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2833
2834
2835AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2836
2837
2838MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839
2840# We need awk for the "check" target. The system "awk" is bad on
2841# some platforms.
2842# Always define AMTAR for backward compatibility.
2843
2844AMTAR=${AMTAR-"${am_missing_run}tar"}
2845
2846am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2847
2848
2849
2850
2851
2852
fabfcf5e
KT
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2854$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2855# Check whether --enable-version-specific-runtime-libs was given.
2856if test "${enable_version_specific_runtime_libs+set}" = set; then :
2857 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2858 yes) version_specific_libs=yes ;;
2859 no) version_specific_libs=no ;;
2860 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2861 esac
2862else
2863 version_specific_libs=no
2864fi
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2867$as_echo "$version_specific_libs" >&6; }
2868
2869
2870
4c993c44
TB
2871# See if makeinfo has been installed and is modern enough
2872# that we can use it.
2873
2874 # Extract the first word of "makeinfo", so it can be a program name with args.
2875set dummy makeinfo; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 if test -n "$MAKEINFO"; then
2882 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_MAKEINFO="makeinfo"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896 done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901MAKEINFO=$ac_cv_prog_MAKEINFO
2902if test -n "$MAKEINFO"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2904$as_echo "$MAKEINFO" >&6; }
2905else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911 if test -n "$MAKEINFO"; then
2912 # Found it, now check the version.
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
2914$as_echo_n "checking for modern makeinfo... " >&6; }
2915if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917else
2918 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
2919 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2920
2921 case $ac_prog_version in
2922 '') gcc_cv_prog_makeinfo_modern=no;;
2923 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
2924 *) gcc_cv_prog_makeinfo_modern=no;;
2925 esac
2926
2927fi
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
2929$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
2930 else
2931 gcc_cv_prog_makeinfo_modern=no
2932 fi
2933 if test $gcc_cv_prog_makeinfo_modern = no; then
2934 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
2935 fi
2936
2937 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
2938 BUILD_INFO_TRUE=
2939 BUILD_INFO_FALSE='#'
2940else
2941 BUILD_INFO_TRUE='#'
2942 BUILD_INFO_FALSE=
2943fi
2944
2945
2946
642d2873
TB
2947
2948# Check whether --with-bugurl was given.
2949if test "${with_bugurl+set}" = set; then :
2950 withval=$with_bugurl; case "$withval" in
2951 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
2952 no) BUGURL=
2953 ;;
2954 *) BUGURL="$withval"
2955 ;;
2956 esac
2957else
2958 BUGURL="http://gcc.gnu.org/bugs.html"
2959
2960fi
2961
2962 case ${BUGURL} in
2963 "")
2964 REPORT_BUGS_TO=
2965 REPORT_BUGS_TEXI=
2966 ;;
2967 *)
2968 REPORT_BUGS_TO="<$BUGURL>"
2969 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2970 ;;
2971 esac;
2972
2973
2974
2975
fabfcf5e
KT
2976# Configure libtool
2977case `pwd` in
2978 *\ * | *\ *)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2980$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2981esac
2982
2983
2984
2985macro_version='2.2.7a'
2986macro_revision='1.3134'
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000ltmain="$ac_aux_dir/ltmain.sh"
3001
3002# Backslashify metacharacters that are still active within
3003# double-quoted strings.
3004sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3005
3006# Same as above, but do not quote variable references.
3007double_quote_subst='s/\(["`\\]\)/\\\1/g'
3008
3009# Sed substitution to delay expansion of an escaped shell variable in a
3010# double_quote_subst'ed string.
3011delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3012
3013# Sed substitution to delay expansion of an escaped single quote.
3014delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3015
3016# Sed substitution to avoid accidental globbing in evaled expressions
3017no_glob_subst='s/\*/\\\*/g'
3018
3019ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3020ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3021ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3022
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3024$as_echo_n "checking how to print strings... " >&6; }
3025# Test print first, because it will be a builtin if present.
3026if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3027 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3028 ECHO='print -r --'
3029elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3030 ECHO='printf %s\n'
3031else
3032 # Use this function as a fallback that always works.
3033 func_fallback_echo ()
3034 {
3035 eval 'cat <<_LTECHO_EOF
3036$1
3037_LTECHO_EOF'
3038 }
3039 ECHO='func_fallback_echo'
3040fi
3041
3042# func_echo_all arg...
3043# Invoke $ECHO with all args, space-separated.
3044func_echo_all ()
3045{
3046 $ECHO ""
3047}
3048
3049case "$ECHO" in
3050 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3051$as_echo "printf" >&6; } ;;
3052 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3053$as_echo "print -r" >&6; } ;;
3054 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3055$as_echo "cat" >&6; } ;;
3056esac
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071DEPDIR="${am__leading_dot}deps"
3072
3073ac_config_commands="$ac_config_commands depfiles"
3074
3075
3076am_make=${MAKE-make}
3077cat > confinc << 'END'
3078am__doit:
3079 @echo this is the am__doit target
3080.PHONY: am__doit
3081END
3082# If we don't find an include directive, just comment out the code.
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084$as_echo_n "checking for style of include used by $am_make... " >&6; }
3085am__include="#"
3086am__quote=
3087_am_result=none
3088# First try GNU make style include.
3089echo "include confinc" > confmf
3090# Ignore all kinds of additional output from `make'.
3091case `$am_make -s -f confmf 2> /dev/null` in #(
3092*the\ am__doit\ target*)
3093 am__include=include
3094 am__quote=
3095 _am_result=GNU
3096 ;;
3097esac
3098# Now try BSD make style include.
3099if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3104 am__quote="\""
3105 _am_result=BSD
3106 ;;
3107 esac
3108fi
3109
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112$as_echo "$_am_result" >&6; }
3113rm -f confinc confmf
3114
3115# Check whether --enable-dependency-tracking was given.
3116if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3118fi
3119
3120if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3122 AMDEPBACKSLASH='\'
3123fi
3124 if test "x$enable_dependency_tracking" != xno; then
3125 AMDEP_TRUE=
3126 AMDEP_FALSE='#'
3127else
3128 AMDEP_TRUE='#'
3129 AMDEP_FALSE=
3130fi
3131
3132
1ec601bf
FXC
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3140set dummy ${ac_tool_prefix}gcc; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if test "${ac_cv_prog_CC+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176fi
3177if test -z "$ac_cv_prog_CC"; then
3178 ac_ct_CC=$CC
3179 # Extract the first word of "gcc", so it can be a program name with args.
3180set dummy gcc; ac_word=$2
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
3183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3184 $as_echo_n "(cached) " >&6
3185else
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_ac_ct_CC="gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201 done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
3206ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209$as_echo "$ac_ct_CC" >&6; }
3210else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224 CC=$ac_ct_CC
3225 fi
3226else
3227 CC="$ac_cv_prog_CC"
3228fi
3229
3230if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3233set dummy ${ac_tool_prefix}cc; ac_word=$2
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235$as_echo_n "checking for $ac_word... " >&6; }
3236if test "${ac_cv_prog_CC+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3238else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CC="${ac_tool_prefix}cc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253done
3254 done
3255IFS=$as_save_IFS
3256
3257fi
3258fi
3259CC=$ac_cv_prog_CC
3260if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262$as_echo "$CC" >&6; }
3263else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266fi
3267
3268
3269 fi
3270fi
3271if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273set dummy cc; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if test "${ac_cv_prog_CC+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282 ac_prog_rejected=no
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3291 ac_prog_rejected=yes
3292 continue
3293 fi
3294 ac_cv_prog_CC="cc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299 done
3300IFS=$as_save_IFS
3301
3302if test $ac_prog_rejected = yes; then
3303 # We found a bogon in the path, so make sure we never use it.
3304 set dummy $ac_cv_prog_CC
3305 shift
3306 if test $# != 0; then
3307 # We chose a different compiler from the bogus one.
3308 # However, it has the same basename, so the bogon will be chosen
3309 # first if we set CC to just the basename; use the full file name.
3310 shift
3311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3312 fi
3313fi
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326fi
3327if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 for ac_prog in cl.exe
3330 do
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
3335if test "${ac_cv_prog_CC+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353 done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368 test -n "$CC" && break
3369 done
3370fi
3371if test -z "$CC"; then
3372 ac_ct_CC=$CC
3373 for ac_prog in cl.exe
3374do
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376set dummy $ac_prog; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_ac_ct_CC="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405$as_echo "$ac_ct_CC" >&6; }
3406else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412 test -n "$ac_ct_CC" && break
3413done
3414
3415 if test "x$ac_ct_CC" = x; then
3416 CC=""
3417 else
3418 case $cross_compiling:$ac_tool_warned in
3419yes:)
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422ac_tool_warned=yes ;;
3423esac
3424 CC=$ac_ct_CC
3425 fi
3426fi
3427
3428fi
3429
3430
3431test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433as_fn_error "no acceptable C compiler found in \$PATH
3434See \`config.log' for more details." "$LINENO" 5; }
3435
3436# Provide some information about the compiler.
3437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438set X $ac_compile
3439ac_compiler=$2
3440for ac_option in --version -v -V -qversion; do
3441 { { ac_try="$ac_compiler $ac_option >&5"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 ac_status=$?
3450 if test -s conftest.err; then
3451 sed '10a\
3452... rest of stderr output deleted ...
3453 10q' conftest.err >conftest.er1
3454 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 fi
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459done
3460
3461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h. */
3463
fabfcf5e
KT
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472# FIXME: Cleanup?
3473if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3474 (eval $ac_link) 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 gcc_no_link=no
3479else
3480 gcc_no_link=yes
3481fi
3482if test x$gcc_no_link = xyes; then
3483 # Setting cross_compile will disable run tests; it will
3484 # also disable AC_CHECK_FILE but that's generally
3485 # correct if we can't link.
3486 cross_compiling=yes
3487 EXEEXT=
3488else
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491
1ec601bf
FXC
3492int
3493main ()
3494{
3495
3496 ;
3497 return 0;
3498}
3499_ACEOF
3500ac_clean_files_save=$ac_clean_files
3501ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3502# Try to create an executable without -o first, disregard a.out.
3503# It will help us diagnose broken compilers, and finding out an intuition
3504# of exeext.
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506$as_echo_n "checking for C compiler default output file name... " >&6; }
3507ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3508
3509# The possible output files:
3510ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3511
3512ac_rmfiles=
3513for ac_file in $ac_files
3514do
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518 esac
3519done
3520rm -f $ac_rmfiles
3521
3522if { { ac_try="$ac_link_default"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link_default") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3534# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3535# in a Makefile. We should not override ac_cv_exeext if it was cached,
3536# so that the user can short-circuit this test for compilers unknown to
3537# Autoconf.
3538for ac_file in $ac_files ''
3539do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3543 ;;
3544 [ab].out )
3545 # We found the default executable, but exeext='' is most
3546 # certainly right.
3547 break;;
3548 *.* )
3549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3550 then :; else
3551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 fi
3553 # We set ac_cv_exeext here because the later test for it is not
3554 # safe: cross compilers may not add the suffix if given an `-o'
3555 # argument, so we may need to know it at that point already.
3556 # Even if this section looks crufty: it has the advantage of
3557 # actually working.
3558 break;;
3559 * )
3560 break;;
3561 esac
3562done
3563test "$ac_cv_exeext" = no && ac_cv_exeext=
3564
3565else
3566 ac_file=''
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569$as_echo "$ac_file" >&6; }
3570if test -z "$ac_file"; then :
3571 $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576{ as_fn_set_status 77
3577as_fn_error "C compiler cannot create executables
3578See \`config.log' for more details." "$LINENO" 5; }; }
3579fi
3580ac_exeext=$ac_cv_exeext
3581
3582# Check that the compiler produces executables we can run. If not, either
3583# the compiler is broken, or we cross compile.
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3585$as_echo_n "checking whether the C compiler works... " >&6; }
3586# If not cross compiling, check that we can run a simple program.
3587if test "$cross_compiling" != yes; then
3588 if { ac_try='./$ac_file'
3589 { { case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594$as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_try") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; }; then
3599 cross_compiling=no
3600 else
3601 if test "$cross_compiling" = maybe; then
3602 cross_compiling=yes
3603 else
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606as_fn_error "cannot run C compiled programs.
3607If you meant to cross compile, use \`--host'.
3608See \`config.log' for more details." "$LINENO" 5; }
3609 fi
3610 fi
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
3614
3615rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3616ac_clean_files=$ac_clean_files_save
3617# Check that the compiler produces executables we can run. If not, either
3618# the compiler is broken, or we cross compile.
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620$as_echo_n "checking whether we are cross compiling... " >&6; }
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3622$as_echo "$cross_compiling" >&6; }
3623
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625$as_echo_n "checking for suffix of executables... " >&6; }
3626if { { ac_try="$ac_link"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632$as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3639# work properly (i.e., refer to `conftest.exe'), while it won't with
3640# `rm'.
3641for ac_file in conftest.exe conftest conftest.*; do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 break;;
3647 * ) break;;
3648 esac
3649done
3650else
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653as_fn_error "cannot compute suffix of executables: cannot compile and link
3654See \`config.log' for more details." "$LINENO" 5; }
3655fi
3656rm -f conftest$ac_cv_exeext
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658$as_echo "$ac_cv_exeext" >&6; }
3659
3660rm -f conftest.$ac_ext
3661EXEEXT=$ac_cv_exeext
3662ac_exeext=$EXEEXT
fabfcf5e 3663fi
1ec601bf
FXC
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3665$as_echo_n "checking for suffix of object files... " >&6; }
3666if test "${ac_cv_objext+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668else
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h. */
3671
3672int
3673main ()
3674{
3675
3676 ;
3677 return 0;
3678}
3679_ACEOF
3680rm -f conftest.o conftest.obj
3681if { { ac_try="$ac_compile"
3682case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687$as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_compile") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 for ac_file in conftest.o conftest.obj conftest.*; do
3693 test -f "$ac_file" || continue;
3694 case $ac_file in
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3696 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3697 break;;
3698 esac
3699done
3700else
3701 $as_echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error "cannot compute suffix of object files: cannot compile
3707See \`config.log' for more details." "$LINENO" 5; }
3708fi
3709rm -f conftest.$ac_cv_objext conftest.$ac_ext
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3712$as_echo "$ac_cv_objext" >&6; }
3713OBJEXT=$ac_cv_objext
3714ac_objext=$OBJEXT
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3716$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3717if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h. */
3722
3723int
3724main ()
3725{
3726#ifndef __GNUC__
3727 choke me
3728#endif
3729
3730 ;
3731 return 0;
3732}
3733_ACEOF
3734if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_compiler_gnu=yes
3736else
3737 ac_compiler_gnu=no
3738fi
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740ac_cv_c_compiler_gnu=$ac_compiler_gnu
3741
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3744$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3745if test $ac_compiler_gnu = yes; then
3746 GCC=yes
3747else
3748 GCC=
3749fi
3750ac_test_CFLAGS=${CFLAGS+set}
3751ac_save_CFLAGS=$CFLAGS
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3753$as_echo_n "checking whether $CC accepts -g... " >&6; }
3754if test "${ac_cv_prog_cc_g+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756else
3757 ac_save_c_werror_flag=$ac_c_werror_flag
3758 ac_c_werror_flag=yes
3759 ac_cv_prog_cc_g=no
3760 CFLAGS="-g"
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
3763
3764int
3765main ()
3766{
3767
3768 ;
3769 return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_cv_prog_cc_g=yes
3774else
3775 CFLAGS=""
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h. */
3778
3779int
3780main ()
3781{
3782
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787if ac_fn_c_try_compile "$LINENO"; then :
3788
3789else
3790 ac_c_werror_flag=$ac_save_c_werror_flag
3791 CFLAGS="-g"
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h. */
3794
3795int
3796main ()
3797{
3798
3799 ;
3800 return 0;
3801}
3802_ACEOF
3803if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_prog_cc_g=yes
3805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3814$as_echo "$ac_cv_prog_cc_g" >&6; }
3815if test "$ac_test_CFLAGS" = set; then
3816 CFLAGS=$ac_save_CFLAGS
3817elif test $ac_cv_prog_cc_g = yes; then
3818 if test "$GCC" = yes; then
3819 CFLAGS="-g -O2"
3820 else
3821 CFLAGS="-g"
3822 fi
3823else
3824 if test "$GCC" = yes; then
3825 CFLAGS="-O2"
3826 else
3827 CFLAGS=
3828 fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3831$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3832if test "${ac_cv_prog_cc_c89+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834else
3835 ac_cv_prog_cc_c89=no
3836ac_save_CC=$CC
3837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839#include <stdarg.h>
3840#include <stdio.h>
3841#include <sys/types.h>
3842#include <sys/stat.h>
3843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844struct buf { int x; };
3845FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846static char *e (p, i)
3847 char **p;
3848 int i;
3849{
3850 return p[i];
3851}
3852static char *f (char * (*g) (char **, int), char **p, ...)
3853{
3854 char *s;
3855 va_list v;
3856 va_start (v,p);
3857 s = g (p, va_arg (v,int));
3858 va_end (v);
3859 return s;
3860}
3861
3862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870
3871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3873#define FOO(x) 'x'
3874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875
3876int test (int i, double x);
3877struct s1 {int (*f) (int a);};
3878struct s2 {int (*f) (double a);};
3879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880int argc;
3881char **argv;
3882int
3883main ()
3884{
3885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892do
3893 CC="$ac_save_CC $ac_arg"
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_c89=$ac_arg
3896fi
3897rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899done
3900rm -f conftest.$ac_ext
3901CC=$ac_save_CC
3902
3903fi
3904# AC_CACHE_VAL
3905case "x$ac_cv_prog_cc_c89" in
3906 x)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908$as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911$as_echo "unsupported" >&6; } ;;
3912 *)
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916esac
3917if test "x$ac_cv_prog_cc_c89" != xno; then :
3918
3919fi
3920
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf 3926
fabfcf5e 3927depcc="$CC" am_compiler_list=
1ec601bf 3928
fabfcf5e
KT
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3930$as_echo_n "checking dependency style of $depcc... " >&6; }
3931if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933else
3934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3935 # We make a subdir and do the tests there. Otherwise we can end up
3936 # making bogus files that we don't know about and never remove. For
3937 # instance it was reported that on HP-UX the gcc test will end up
3938 # making a dummy file named `D' -- because `-MD' means `put the output
3939 # in D'.
3940 mkdir conftest.dir
3941 # Copy depcomp to subdir because otherwise we won't find it if we're
3942 # using a relative directory.
3943 cp "$am_depcomp" conftest.dir
3944 cd conftest.dir
3945 # We will build objects and dependencies in a subdirectory because
3946 # it helps to detect inapplicable dependency modes. For instance
3947 # both Tru64's cc and ICC support -MD to output dependencies as a
3948 # side effect of compilation, but ICC will put the dependencies in
3949 # the current directory while Tru64 will put them in the object
3950 # directory.
3951 mkdir sub
1ec601bf
FXC
3952
3953 am_cv_CC_dependencies_compiler_type=none
3954 if test "$am_compiler_list" = ""; then
3955 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3956 fi
3957 am__universal=false
3958 case " $depcc " in #(
3959 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3960 esac
3961
3962 for depmode in $am_compiler_list; do
3963 # Setup a source with many dependencies, because some compilers
3964 # like to wrap large dependency lists on column 80 (with \), and
3965 # we should not choose a depcomp mode which is confused by this.
3966 #
3967 # We need to recreate these files for each test, as the compiler may
3968 # overwrite some of them when testing with obscure command lines.
3969 # This happens at least with the AIX C compiler.
3970 : > sub/conftest.c
3971 for i in 1 2 3 4 5 6; do
3972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3974 # Solaris 8's {/usr,}/bin/sh.
3975 touch sub/conftst$i.h
3976 done
3977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3978
3979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3980 # mode. It turns out that the SunPro C++ compiler does not properly
3981 # handle `-M -o', and we need to detect this. Also, some Intel
3982 # versions had trouble with output in subdirs
3983 am__obj=sub/conftest.${OBJEXT-o}
3984 am__minus_obj="-o $am__obj"
3985 case $depmode in
3986 gcc)
3987 # This depmode causes a compiler race in universal mode.
3988 test "$am__universal" = false || continue
3989 ;;
3990 nosideeffect)
3991 # after this tag, mechanisms are not by side-effect, so they'll
3992 # only be used when explicitly requested
3993 if test "x$enable_dependency_tracking" = xyes; then
3994 continue
3995 else
3996 break
3997 fi
3998 ;;
3999 msvisualcpp | msvcmsys)
4000 # This compiler won't grok `-c -o', but also, the minuso test has
4001 # not run yet. These depmodes are late enough in the game, and
4002 # so weak that their functioning should not be impacted.
4003 am__obj=conftest.${OBJEXT-o}
4004 am__minus_obj=
4005 ;;
4006 none) break ;;
4007 esac
4008 if depmode=$depmode \
4009 source=sub/conftest.c object=$am__obj \
4010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4011 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4012 >/dev/null 2>conftest.err &&
4013 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4015 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4017 # icc doesn't choke on unknown options, it will just issue warnings
4018 # or remarks (even with -Werror). So we grep stderr for any message
4019 # that says an option was ignored or not supported.
4020 # When given -MP, icc 7.0 and 7.1 complain thusly:
4021 # icc: Command line warning: ignoring option '-M'; no argument required
4022 # The diagnosis changed in icc 8.0:
4023 # icc: Command line remark: option '-MP' not supported
4024 if (grep 'ignoring option' conftest.err ||
4025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4026 am_cv_CC_dependencies_compiler_type=$depmode
4027 break
4028 fi
4029 fi
4030 done
4031
4032 cd ..
4033 rm -rf conftest.dir
4034else
4035 am_cv_CC_dependencies_compiler_type=none
4036fi
4037
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4040$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4041CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4042
4043 if
4044 test "x$enable_dependency_tracking" != xno \
4045 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4046 am__fastdepCC_TRUE=
4047 am__fastdepCC_FALSE='#'
4048else
4049 am__fastdepCC_TRUE='#'
4050 am__fastdepCC_FALSE=
4051fi
4052
4053
fabfcf5e
KT
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4055$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4056if test "${ac_cv_path_SED+set}" = set; then :
1ec601bf
FXC
4057 $as_echo_n "(cached) " >&6
4058else
fabfcf5e
KT
4059 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4060 for ac_i in 1 2 3 4 5 6 7; do
4061 ac_script="$ac_script$as_nl$ac_script"
4062 done
4063 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4064 { ac_script=; unset ac_script;}
4065 if test -z "$SED"; then
4066 ac_path_SED_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in sed gsed; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4077# Check for GNU ac_path_SED and select it if it is found.
4078 # Check for GNU $ac_path_SED
4079case `"$ac_path_SED" --version 2>&1` in
4080*GNU*)
4081 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4082*)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo '' >> "conftest.nl"
4091 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 as_fn_arith $ac_count + 1 && ac_count=$as_val
4094 if test $ac_count -gt ${ac_path_SED_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_SED="$ac_path_SED"
4097 ac_path_SED_max=$ac_count
1ec601bf 4098 fi
fabfcf5e
KT
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105 $ac_path_SED_found && break 3
4106 done
4107 done
4108 done
4109IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_SED"; then
4111 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1ec601bf
FXC
4112 fi
4113else
fabfcf5e 4114 ac_cv_path_SED=$SED
1ec601bf 4115fi
1ec601bf
FXC
4116
4117fi
fabfcf5e
KT
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4119$as_echo "$ac_cv_path_SED" >&6; }
4120 SED="$ac_cv_path_SED"
4121 rm -f conftest.sed
1ec601bf 4122
fabfcf5e
KT
4123test -z "$SED" && SED=sed
4124Xsed="$SED -e 1s/^X//"
1ec601bf
FXC
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4137$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4138if test "${ac_cv_path_GREP+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4140else
4141 if test -z "$GREP"; then
4142 ac_path_GREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in grep ggrep; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4152 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4153# Check for GNU ac_path_GREP and select it if it is found.
4154 # Check for GNU $ac_path_GREP
4155case `"$ac_path_GREP" --version 2>&1` in
4156*GNU*)
4157 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4158*)
4159 ac_count=0
4160 $as_echo_n 0123456789 >"conftest.in"
4161 while :
4162 do
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo 'GREP' >> "conftest.nl"
4167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 as_fn_arith $ac_count + 1 && ac_count=$as_val
4170 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_GREP="$ac_path_GREP"
4173 ac_path_GREP_max=$ac_count
4174 fi
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4177 done
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179esac
4180
4181 $ac_path_GREP_found && break 3
4182 done
4183 done
4184 done
4185IFS=$as_save_IFS
4186 if test -z "$ac_cv_path_GREP"; then
4187 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4188 fi
4189else
4190 ac_cv_path_GREP=$GREP
4191fi
4192
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4195$as_echo "$ac_cv_path_GREP" >&6; }
4196 GREP="$ac_cv_path_GREP"
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4200$as_echo_n "checking for egrep... " >&6; }
4201if test "${ac_cv_path_EGREP+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203else
4204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205 then ac_cv_path_EGREP="$GREP -E"
4206 else
4207 if test -z "$EGREP"; then
4208 ac_path_EGREP_found=false
4209 # Loop through the user's path and test for each of PROGNAME-LIST
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_prog in egrep; do
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4219# Check for GNU ac_path_EGREP and select it if it is found.
4220 # Check for GNU $ac_path_EGREP
4221case `"$ac_path_EGREP" --version 2>&1` in
4222*GNU*)
4223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4224*)
4225 ac_count=0
4226 $as_echo_n 0123456789 >"conftest.in"
4227 while :
4228 do
4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
4230 mv "conftest.tmp" "conftest.in"
4231 cp "conftest.in" "conftest.nl"
4232 $as_echo 'EGREP' >> "conftest.nl"
4233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
4236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4237 # Best one so far, save it but keep looking for a better one
4238 ac_cv_path_EGREP="$ac_path_EGREP"
4239 ac_path_EGREP_max=$ac_count
4240 fi
4241 # 10*(2^10) chars as input seems more than enough
4242 test $ac_count -gt 10 && break
4243 done
4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245esac
4246
4247 $ac_path_EGREP_found && break 3
4248 done
4249 done
4250 done
4251IFS=$as_save_IFS
4252 if test -z "$ac_cv_path_EGREP"; then
4253 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 fi
4255else
4256 ac_cv_path_EGREP=$EGREP
4257fi
4258
4259 fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4262$as_echo "$ac_cv_path_EGREP" >&6; }
4263 EGREP="$ac_cv_path_EGREP"
4264
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4267$as_echo_n "checking for fgrep... " >&6; }
4268if test "${ac_cv_path_FGREP+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4272 then ac_cv_path_FGREP="$GREP -F"
4273 else
4274 if test -z "$FGREP"; then
4275 ac_path_FGREP_found=false
4276 # Loop through the user's path and test for each of PROGNAME-LIST
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_prog in fgrep; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4285 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4286# Check for GNU ac_path_FGREP and select it if it is found.
4287 # Check for GNU $ac_path_FGREP
4288case `"$ac_path_FGREP" --version 2>&1` in
4289*GNU*)
4290 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4291*)
4292 ac_count=0
4293 $as_echo_n 0123456789 >"conftest.in"
4294 while :
4295 do
4296 cat "conftest.in" "conftest.in" >"conftest.tmp"
4297 mv "conftest.tmp" "conftest.in"
4298 cp "conftest.in" "conftest.nl"
4299 $as_echo 'FGREP' >> "conftest.nl"
4300 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302 as_fn_arith $ac_count + 1 && ac_count=$as_val
4303 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4304 # Best one so far, save it but keep looking for a better one
4305 ac_cv_path_FGREP="$ac_path_FGREP"
4306 ac_path_FGREP_max=$ac_count
4307 fi
4308 # 10*(2^10) chars as input seems more than enough
4309 test $ac_count -gt 10 && break
4310 done
4311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312esac
4313
4314 $ac_path_FGREP_found && break 3
4315 done
4316 done
4317 done
4318IFS=$as_save_IFS
4319 if test -z "$ac_cv_path_FGREP"; then
4320 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321 fi
4322else
4323 ac_cv_path_FGREP=$FGREP
4324fi
4325
4326 fi
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4329$as_echo "$ac_cv_path_FGREP" >&6; }
4330 FGREP="$ac_cv_path_FGREP"
4331
4332
4333test -z "$GREP" && GREP=grep
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353# Check whether --with-gnu-ld was given.
4354if test "${with_gnu_ld+set}" = set; then :
4355 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4356else
4357 with_gnu_ld=no
4358fi
4359
4360ac_prog=ld
4361if test "$GCC" = yes; then
4362 # Check if gcc -print-prog-name=ld gives a path.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4364$as_echo_n "checking for ld used by $CC... " >&6; }
4365 case $host in
4366 *-*-mingw*)
4367 # gcc leaves a trailing carriage return which upsets mingw
4368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4369 *)
4370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4371 esac
4372 case $ac_prog in
4373 # Accept absolute paths.
4374 [\\/]* | ?:[\\/]*)
4375 re_direlt='/[^/][^/]*/\.\./'
4376 # Canonicalize the pathname of ld
4377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4380 done
4381 test -z "$LD" && LD="$ac_prog"
4382 ;;
4383 "")
4384 # If it fails, then pretend we aren't using GCC.
4385 ac_prog=ld
4386 ;;
4387 *)
4388 # If it is relative, then search for the first ld in PATH.
4389 with_gnu_ld=unknown
4390 ;;
4391 esac
4392elif test "$with_gnu_ld" = yes; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4394$as_echo_n "checking for GNU ld... " >&6; }
4395else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4397$as_echo_n "checking for non-GNU ld... " >&6; }
4398fi
4399if test "${lt_cv_path_LD+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401else
4402 if test -z "$LD"; then
4403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4404 for ac_dir in $PATH; do
4405 IFS="$lt_save_ifs"
4406 test -z "$ac_dir" && ac_dir=.
4407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4408 lt_cv_path_LD="$ac_dir/$ac_prog"
4409 # Check to see if the program is GNU ld. I'd rather use --version,
4410 # but apparently some variants of GNU ld only accept -v.
4411 # Break only if it was the GNU/non-GNU ld that we prefer.
4412 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4413 *GNU* | *'with BFD'*)
4414 test "$with_gnu_ld" != no && break
4415 ;;
4416 *)
4417 test "$with_gnu_ld" != yes && break
4418 ;;
4419 esac
4420 fi
4421 done
4422 IFS="$lt_save_ifs"
4423else
4424 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4425fi
4426fi
4427
4428LD="$lt_cv_path_LD"
4429if test -n "$LD"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4431$as_echo "$LD" >&6; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4438$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4439if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441else
4442 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4443case `$LD -v 2>&1 </dev/null` in
4444*GNU* | *'with BFD'*)
4445 lt_cv_prog_gnu_ld=yes
4446 ;;
4447*)
4448 lt_cv_prog_gnu_ld=no
4449 ;;
4450esac
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4453$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4454with_gnu_ld=$lt_cv_prog_gnu_ld
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4465$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4466if test "${lt_cv_path_NM+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468else
4469 if test -n "$NM"; then
4470 # Let the user override the test.
4471 lt_cv_path_NM="$NM"
4472else
4473 lt_nm_to_check="${ac_tool_prefix}nm"
4474 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4475 lt_nm_to_check="$lt_nm_to_check nm"
4476 fi
4477 for lt_tmp_nm in $lt_nm_to_check; do
4478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4479 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4480 IFS="$lt_save_ifs"
4481 test -z "$ac_dir" && ac_dir=.
4482 tmp_nm="$ac_dir/$lt_tmp_nm"
4483 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4484 # Check to see if the nm accepts a BSD-compat flag.
4485 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4486 # nm: unknown option "B" ignored
4487 # Tru64's nm complains that /dev/null is an invalid object file
4488 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4489 */dev/null* | *'Invalid file or object type'*)
4490 lt_cv_path_NM="$tmp_nm -B"
4491 break
4492 ;;
4493 *)
4494 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4495 */dev/null*)
4496 lt_cv_path_NM="$tmp_nm -p"
4497 break
4498 ;;
4499 *)
4500 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4501 continue # so that we can try to find one that supports BSD flags
4502 ;;
4503 esac
4504 ;;
4505 esac
4506 fi
4507 done
4508 IFS="$lt_save_ifs"
4509 done
4510 : ${lt_cv_path_NM=no}
4511fi
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4514$as_echo "$lt_cv_path_NM" >&6; }
4515if test "$lt_cv_path_NM" != "no"; then
4516 NM="$lt_cv_path_NM"
4517else
4518 # Didn't find any BSD compatible name lister, look for dumpbin.
4519 if test -n "$DUMPBIN"; then :
4520 # Let the user override the test.
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in dumpbin "link -dump"
4524 do
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528$as_echo_n "checking for $ac_word... " >&6; }
4529if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531else
4532 if test -n "$DUMPBIN"; then
4533 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547 done
4548IFS=$as_save_IFS
4549
4550fi
4551fi
4552DUMPBIN=$ac_cv_prog_DUMPBIN
4553if test -n "$DUMPBIN"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4555$as_echo "$DUMPBIN" >&6; }
4556else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
4559fi
4560
4561
4562 test -n "$DUMPBIN" && break
4563 done
4564fi
4565if test -z "$DUMPBIN"; then
4566 ac_ct_DUMPBIN=$DUMPBIN
4567 for ac_prog in dumpbin "link -dump"
4568do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570set dummy $ac_prog; ac_word=$2
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572$as_echo_n "checking for $ac_word... " >&6; }
4573if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575else
4576 if test -n "$ac_ct_DUMPBIN"; then
4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590done
4591 done
4592IFS=$as_save_IFS
4593
4594fi
4595fi
4596ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4597if test -n "$ac_ct_DUMPBIN"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4599$as_echo "$ac_ct_DUMPBIN" >&6; }
4600else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604
4605
4606 test -n "$ac_ct_DUMPBIN" && break
4607done
4608
4609 if test "x$ac_ct_DUMPBIN" = x; then
4610 DUMPBIN=":"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613yes:)
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616ac_tool_warned=yes ;;
4617esac
4618 DUMPBIN=$ac_ct_DUMPBIN
4619 fi
4620fi
4621
4622 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4623 *COFF*)
4624 DUMPBIN="$DUMPBIN -symbols"
4625 ;;
4626 *)
4627 DUMPBIN=:
4628 ;;
4629 esac
4630 fi
4631
4632 if test "$DUMPBIN" != ":"; then
4633 NM="$DUMPBIN"
4634 fi
4635fi
4636test -z "$NM" && NM=nm
4637
4638
4639
4640
4641
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4644$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4645if test "${lt_cv_nm_interface+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647else
4648 lt_cv_nm_interface="BSD nm"
4649 echo "int some_variable = 0;" > conftest.$ac_ext
4650 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4651 (eval "$ac_compile" 2>conftest.err)
4652 cat conftest.err >&5
4653 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4654 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4655 cat conftest.err >&5
4656 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4657 cat conftest.out >&5
4658 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4659 lt_cv_nm_interface="MS dumpbin"
4660 fi
4661 rm -f conftest*
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4664$as_echo "$lt_cv_nm_interface" >&6; }
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4667$as_echo_n "checking whether ln -s works... " >&6; }
4668LN_S=$as_ln_s
4669if test "$LN_S" = "ln -s"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4671$as_echo "yes" >&6; }
4672else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4674$as_echo "no, using $LN_S" >&6; }
4675fi
4676
4677# find the maximum length of command line arguments
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4679$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4680if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682else
4683 i=0
4684 teststring="ABCD"
4685
4686 case $build_os in
4687 msdosdjgpp*)
4688 # On DJGPP, this test can blow up pretty badly due to problems in libc
4689 # (any single argument exceeding 2000 bytes causes a buffer overrun
4690 # during glob expansion). Even if it were fixed, the result of this
4691 # check would be larger than it should be.
4692 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4693 ;;
4694
4695 gnu*)
4696 # Under GNU Hurd, this test is not required because there is
4697 # no limit to the length of command line arguments.
4698 # Libtool will interpret -1 as no limit whatsoever
4699 lt_cv_sys_max_cmd_len=-1;
4700 ;;
4701
4702 cygwin* | mingw* | cegcc*)
4703 # On Win9x/ME, this test blows up -- it succeeds, but takes
4704 # about 5 minutes as the teststring grows exponentially.
4705 # Worse, since 9x/ME are not pre-emptively multitasking,
4706 # you end up with a "frozen" computer, even though with patience
4707 # the test eventually succeeds (with a max line length of 256k).
4708 # Instead, let's just punt: use the minimum linelength reported by
4709 # all of the supported platforms: 8192 (on NT/2K/XP).
4710 lt_cv_sys_max_cmd_len=8192;
4711 ;;
4712
4713 mint*)
4714 # On MiNT this can take a long time and run out of memory.
4715 lt_cv_sys_max_cmd_len=8192;
4716 ;;
4717
4718 amigaos*)
4719 # On AmigaOS with pdksh, this test takes hours, literally.
4720 # So we just punt and use a minimum line length of 8192.
4721 lt_cv_sys_max_cmd_len=8192;
4722 ;;
4723
4724 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4725 # This has been around since 386BSD, at least. Likely further.
4726 if test -x /sbin/sysctl; then
4727 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4728 elif test -x /usr/sbin/sysctl; then
4729 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4730 else
4731 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4732 fi
4733 # And add a safety zone
4734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4736 ;;
4737
4738 interix*)
4739 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4740 lt_cv_sys_max_cmd_len=196608
4741 ;;
4742
4743 osf*)
4744 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4745 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4746 # nice to cause kernel panics so lets avoid the loop below.
4747 # First set a reasonable default.
4748 lt_cv_sys_max_cmd_len=16384
4749 #
4750 if test -x /sbin/sysconfig; then
4751 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4752 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4753 esac
4754 fi
4755 ;;
4756 sco3.2v5*)
4757 lt_cv_sys_max_cmd_len=102400
4758 ;;
4759 sysv5* | sco5v6* | sysv4.2uw2*)
4760 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4761 if test -n "$kargmax"; then
4762 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4763 else
4764 lt_cv_sys_max_cmd_len=32768
4765 fi
4766 ;;
4767 *)
4768 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4769 if test -n "$lt_cv_sys_max_cmd_len"; then
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4772 else
4773 # Make teststring a little bigger before we do anything with it.
4774 # a 1K string should be a reasonable start.
4775 for i in 1 2 3 4 5 6 7 8 ; do
4776 teststring=$teststring$teststring
4777 done
4778 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4779 # If test is not a shell built-in, we'll probably end up computing a
4780 # maximum length that is only half of the actual maximum length, but
4781 # we can't tell.
4782 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4783 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4784 test $i != 17 # 1/2 MB should be enough
4785 do
4786 i=`expr $i + 1`
4787 teststring=$teststring$teststring
4788 done
4789 # Only check the string length outside the loop.
4790 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4791 teststring=
4792 # Add a significant safety factor because C++ compilers can tack on
4793 # massive amounts of additional arguments before passing them to the
4794 # linker. It appears as though 1/2 is a usable value.
4795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4796 fi
4797 ;;
4798 esac
4799
4800fi
4801
4802if test -n $lt_cv_sys_max_cmd_len ; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4804$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4805else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4807$as_echo "none" >&6; }
4808fi
4809max_cmd_len=$lt_cv_sys_max_cmd_len
4810
4811
4812
4813
4814
4815
4816: ${CP="cp -f"}
4817: ${MV="mv -f"}
4818: ${RM="rm -f"}
4819
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4821$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4822# Try some XSI features
4823xsi_shell=no
4824( _lt_dummy="a/b/c"
4825 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4826 = c,a/b,, \
4827 && eval 'test $(( 1 + 1 )) -eq 2 \
4828 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4829 && xsi_shell=yes
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4831$as_echo "$xsi_shell" >&6; }
4832
4833
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4835$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4836lt_shell_append=no
4837( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4838 >/dev/null 2>&1 \
4839 && lt_shell_append=yes
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4841$as_echo "$lt_shell_append" >&6; }
4842
4843
4844if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4845 lt_unset=unset
4846else
4847 lt_unset=false
4848fi
4849
4850
4851
4852
4853
4854# test EBCDIC or ASCII
4855case `echo X|tr X '\101'` in
4856 A) # ASCII based system
4857 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4858 lt_SP2NL='tr \040 \012'
4859 lt_NL2SP='tr \015\012 \040\040'
4860 ;;
4861 *) # EBCDIC based system
4862 lt_SP2NL='tr \100 \n'
4863 lt_NL2SP='tr \r\n \100\100'
4864 ;;
4865esac
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4876$as_echo_n "checking for $LD option to reload object files... " >&6; }
4877if test "${lt_cv_ld_reload_flag+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879else
4880 lt_cv_ld_reload_flag='-r'
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4883$as_echo "$lt_cv_ld_reload_flag" >&6; }
4884reload_flag=$lt_cv_ld_reload_flag
4885case $reload_flag in
4886"" | " "*) ;;
4887*) reload_flag=" $reload_flag" ;;
4888esac
4889reload_cmds='$LD$reload_flag -o $output$reload_objs'
4890case $host_os in
4891 darwin*)
4892 if test "$GCC" = yes; then
4893 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4894 else
4895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4896 fi
4897 ;;
4898esac
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908if test -n "$ac_tool_prefix"; then
4909 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4910set dummy ${ac_tool_prefix}objdump; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test -n "$OBJDUMP"; then
4917 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931 done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936OBJDUMP=$ac_cv_prog_OBJDUMP
4937if test -n "$OBJDUMP"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4939$as_echo "$OBJDUMP" >&6; }
4940else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946fi
4947if test -z "$ac_cv_prog_OBJDUMP"; then
4948 ac_ct_OBJDUMP=$OBJDUMP
4949 # Extract the first word of "objdump", so it can be a program name with args.
4950set dummy objdump; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955else
4956 if test -n "$ac_ct_OBJDUMP"; then
4957 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970done
4971 done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4977if test -n "$ac_ct_OBJDUMP"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4979$as_echo "$ac_ct_OBJDUMP" >&6; }
4980else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985 if test "x$ac_ct_OBJDUMP" = x; then
4986 OBJDUMP="false"
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989yes:)
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992ac_tool_warned=yes ;;
4993esac
4994 OBJDUMP=$ac_ct_OBJDUMP
4995 fi
4996else
4997 OBJDUMP="$ac_cv_prog_OBJDUMP"
4998fi
4999
5000test -z "$OBJDUMP" && OBJDUMP=objdump
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5011$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5012if test "${lt_cv_deplibs_check_method+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014else
5015 lt_cv_file_magic_cmd='$MAGIC_CMD'
5016lt_cv_file_magic_test_file=
5017lt_cv_deplibs_check_method='unknown'
5018# Need to set the preceding variable on all platforms that support
5019# interlibrary dependencies.
5020# 'none' -- dependencies not supported.
5021# `unknown' -- same as none, but documents that we really don't know.
5022# 'pass_all' -- all dependencies passed with no checks.
5023# 'test_compile' -- check by making test program.
5024# 'file_magic [[regex]]' -- check by looking for files in library path
5025# which responds to the $file_magic_cmd with a given extended regex.
5026# If you have `file' or equivalent on your system and you're not sure
5027# whether `pass_all' will *always* work, you probably want this one.
5028
5029case $host_os in
5030aix[4-9]*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034beos*)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037
5038bsdi[45]*)
5039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5040 lt_cv_file_magic_cmd='/usr/bin/file -L'
5041 lt_cv_file_magic_test_file=/shlib/libc.so
5042 ;;
5043
5044cygwin*)
5045 # func_win32_libid is a shell function defined in ltmain.sh
5046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5047 lt_cv_file_magic_cmd='func_win32_libid'
5048 ;;
5049
5050mingw* | pw32*)
5051 # Base MSYS/MinGW do not provide the 'file' command needed by
5052 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5053 # unless we find 'file', for example because we are cross-compiling.
5054 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5055 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057 lt_cv_file_magic_cmd='func_win32_libid'
5058 else
5059 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5060 lt_cv_file_magic_cmd='$OBJDUMP -f'
5061 fi
5062 ;;
5063
5064cegcc*)
5065 # use the weaker test based on 'objdump'. See mingw*.
5066 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5067 lt_cv_file_magic_cmd='$OBJDUMP -f'
5068 ;;
5069
5070darwin* | rhapsody*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074freebsd* | dragonfly*)
5075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076 case $host_cpu in
5077 i*86 )
5078 # Not sure whether the presence of OpenBSD here was a mistake.
5079 # Let's accept both of them until this is cleared up.
5080 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5081 lt_cv_file_magic_cmd=/usr/bin/file
5082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5083 ;;
5084 esac
5085 else
5086 lt_cv_deplibs_check_method=pass_all
5087 fi
5088 ;;
5089
5090gnu*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094haiku*)
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097
5098hpux10.20* | hpux11*)
5099 lt_cv_file_magic_cmd=/usr/bin/file
5100 case $host_cpu in
5101 ia64*)
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5103 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5104 ;;
5105 hppa*64*)
5106 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]'
5107 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5108 ;;
5109 *)
5110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5111 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5112 ;;
5113 esac
5114 ;;
5115
5116interix[3-9]*)
5117 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5119 ;;
5120
5121irix5* | irix6* | nonstopux*)
5122 case $LD in
5123 *-32|*"-32 ") libmagic=32-bit;;
5124 *-n32|*"-n32 ") libmagic=N32;;
5125 *-64|*"-64 ") libmagic=64-bit;;
5126 *) libmagic=never-match;;
5127 esac
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131# This must be Linux ELF.
5132linux* | k*bsd*-gnu | kopensolaris*-gnu)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136netbsd*)
5137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5139 else
5140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5141 fi
5142 ;;
5143
5144newos6*)
5145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5146 lt_cv_file_magic_cmd=/usr/bin/file
5147 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5148 ;;
5149
5150*nto* | *qnx*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
5154openbsd*)
5155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5157 else
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5159 fi
5160 ;;
5161
5162osf3* | osf4* | osf5*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165
5166rdos*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169
5170solaris*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178sysv4 | sysv4.3*)
5179 case $host_vendor in
5180 motorola)
5181 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]'
5182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5183 ;;
5184 ncr)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187 sequent)
5188 lt_cv_file_magic_cmd='/bin/file'
5189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5190 ;;
5191 sni)
5192 lt_cv_file_magic_cmd='/bin/file'
5193 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5194 lt_cv_file_magic_test_file=/lib/libc.so
5195 ;;
5196 siemens)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199 pc)
5200 lt_cv_deplibs_check_method=pass_all
5201 ;;
5202 esac
5203 ;;
5204
5205tpf*)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208esac
5209
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5212$as_echo "$lt_cv_deplibs_check_method" >&6; }
5213file_magic_cmd=$lt_cv_file_magic_cmd
5214deplibs_check_method=$lt_cv_deplibs_check_method
5215test -z "$deplibs_check_method" && deplibs_check_method=unknown
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5230set dummy ${ac_tool_prefix}ar; ac_word=$2
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232$as_echo_n "checking for $ac_word... " >&6; }
5233if test "${ac_cv_prog_AR+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235else
5236 if test -n "$AR"; then
5237 ac_cv_prog_AR="$AR" # Let the user override the test.
5238else
5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_AR="${ac_tool_prefix}ar"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250done
5251 done
5252IFS=$as_save_IFS
5253
5254fi
5255fi
5256AR=$ac_cv_prog_AR
5257if test -n "$AR"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5259$as_echo "$AR" >&6; }
5260else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
5263fi
5264
5265
5266fi
5267if test -z "$ac_cv_prog_AR"; then
5268 ac_ct_AR=$AR
5269 # Extract the first word of "ar", so it can be a program name with args.
5270set dummy ar; ac_word=$2
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272$as_echo_n "checking for $ac_word... " >&6; }
5273if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275else
5276 if test -n "$ac_ct_AR"; then
5277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_ac_ct_AR="ar"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290done
5291 done
5292IFS=$as_save_IFS
5293
5294fi
5295fi
5296ac_ct_AR=$ac_cv_prog_ac_ct_AR
5297if test -n "$ac_ct_AR"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5299$as_echo "$ac_ct_AR" >&6; }
5300else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303fi
5304
5305 if test "x$ac_ct_AR" = x; then
5306 AR="false"
5307 else
5308 case $cross_compiling:$ac_tool_warned in
5309yes:)
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312ac_tool_warned=yes ;;
5313esac
5314 AR=$ac_ct_AR
5315 fi
5316else
5317 AR="$ac_cv_prog_AR"
5318fi
5319
5320test -z "$AR" && AR=ar
5321test -z "$AR_FLAGS" && AR_FLAGS=cru
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333if test -n "$ac_tool_prefix"; then
5334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5335set dummy ${ac_tool_prefix}strip; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if test "${ac_cv_prog_STRIP+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 if test -n "$STRIP"; then
5342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355done
5356 done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361STRIP=$ac_cv_prog_STRIP
5362if test -n "$STRIP"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5364$as_echo "$STRIP" >&6; }
5365else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371fi
5372if test -z "$ac_cv_prog_STRIP"; then
5373 ac_ct_STRIP=$STRIP
5374 # Extract the first word of "strip", so it can be a program name with args.
5375set dummy strip; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
5378if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380else
5381 if test -n "$ac_ct_STRIP"; then
5382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_ac_ct_STRIP="strip"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395done
5396 done
5397IFS=$as_save_IFS
5398
5399fi
5400fi
5401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5402if test -n "$ac_ct_STRIP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5404$as_echo "$ac_ct_STRIP" >&6; }
5405else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410 if test "x$ac_ct_STRIP" = x; then
5411 STRIP=":"
5412 else
5413 case $cross_compiling:$ac_tool_warned in
5414yes:)
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5417ac_tool_warned=yes ;;
5418esac
5419 STRIP=$ac_ct_STRIP
5420 fi
5421else
5422 STRIP="$ac_cv_prog_STRIP"
5423fi
5424
5425test -z "$STRIP" && STRIP=:
5426
5427
5428
5429
5430
5431
5432if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5434set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
5437if test "${ac_cv_prog_RANLIB+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439else
5440 if test -n "$RANLIB"; then
5441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455 done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460RANLIB=$ac_cv_prog_RANLIB
5461if test -n "$RANLIB"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5463$as_echo "$RANLIB" >&6; }
5464else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469
5470fi
5471if test -z "$ac_cv_prog_RANLIB"; then
5472 ac_ct_RANLIB=$RANLIB
5473 # Extract the first word of "ranlib", so it can be a program name with args.
5474set dummy ranlib; ac_word=$2
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479else
5480 if test -n "$ac_ct_RANLIB"; then
5481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_ac_ct_RANLIB="ranlib"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495 done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5501if test -n "$ac_ct_RANLIB"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5503$as_echo "$ac_ct_RANLIB" >&6; }
5504else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509 if test "x$ac_ct_RANLIB" = x; then
5510 RANLIB=":"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513yes:)
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516ac_tool_warned=yes ;;
5517esac
5518 RANLIB=$ac_ct_RANLIB
5519 fi
5520else
5521 RANLIB="$ac_cv_prog_RANLIB"
5522fi
5523
5524test -z "$RANLIB" && RANLIB=:
5525
5526
5527
5528
5529
5530
5531# Determine commands to create old-style static archives.
5532old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5533old_postinstall_cmds='chmod 644 $oldlib'
5534old_postuninstall_cmds=
5535
5536if test -n "$RANLIB"; then
5537 case $host_os in
5538 openbsd*)
5539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5540 ;;
5541 *)
5542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5543 ;;
5544 esac
5545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5546fi
5547
5548case $host_os in
5549 darwin*)
5550 lock_old_archive_extraction=yes ;;
5551 *)
5552 lock_old_archive_extraction=no ;;
5553esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593# If no C compiler was specified, use CC.
5594LTCC=${LTCC-"$CC"}
5595
5596# If no C compiler flags were specified, use CFLAGS.
5597LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5598
5599# Allow CC to be a program name with arguments.
5600compiler=$CC
5601
5602
5603# Check for command to grab the raw symbol name followed by C symbol from nm.
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5605$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5606if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609
5610# These are sane defaults that work on at least a few old systems.
5611# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5612
5613# Character class describing NM global symbol codes.
5614symcode='[BCDEGRST]'
5615
5616# Regexp to match symbols that can be accessed directly from C.
5617sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5618
5619# Define system-specific variables.
5620case $host_os in
5621aix*)
5622 symcode='[BCDT]'
5623 ;;
5624cygwin* | mingw* | pw32* | cegcc*)
5625 symcode='[ABCDGISTW]'
5626 ;;
5627hpux*)
5628 if test "$host_cpu" = ia64; then
5629 symcode='[ABCDEGRST]'
5630 fi
5631 ;;
5632irix* | nonstopux*)
5633 symcode='[BCDEGRST]'
5634 ;;
5635osf*)
5636 symcode='[BCDEGQRST]'
5637 ;;
5638solaris*)
5639 symcode='[BDRT]'
5640 ;;
5641sco3.2v5*)
5642 symcode='[DT]'
5643 ;;
5644sysv4.2uw2*)
5645 symcode='[DT]'
5646 ;;
5647sysv5* | sco5v6* | unixware* | OpenUNIX*)
5648 symcode='[ABDT]'
5649 ;;
5650sysv4)
5651 symcode='[DFNSTU]'
5652 ;;
5653esac
5654
5655# If we're using GNU nm, then use its standard symbol codes.
5656case `$NM -V 2>&1` in
5657*GNU* | *'with BFD'*)
5658 symcode='[ABCDGIRSTW]' ;;
5659esac
5660
5661# Transform an extracted symbol line into a proper C declaration.
5662# Some systems (esp. on ia64) link data and code symbols differently,
5663# so use this general approach.
5664lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5665
5666# Transform an extracted symbol line into symbol name and symbol address
5667lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5668lt_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'"
5669
5670# Handle CRLF in mingw tool chain
5671opt_cr=
5672case $build_os in
5673mingw*)
5674 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5675 ;;
5676esac
5677
5678# Try without a prefix underscore, then with it.
5679for ac_symprfx in "" "_"; do
5680
5681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5682 symxfrm="\\1 $ac_symprfx\\2 \\2"
5683
5684 # Write the raw and C identifiers.
5685 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5686 # Fake it for dumpbin and say T for any non-static function
5687 # and D for any global variable.
5688 # Also find C++ and __fastcall symbols from MSVC++,
5689 # which start with @ or ?.
5690 lt_cv_sys_global_symbol_pipe="$AWK '"\
5691" {last_section=section; section=\$ 3};"\
5692" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5693" \$ 0!~/External *\|/{next};"\
5694" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5695" {if(hide[section]) next};"\
5696" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5697" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5698" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5699" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5700" ' prfx=^$ac_symprfx"
5701 else
5702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5703 fi
5704
5705 # Check to see that the pipe works correctly.
5706 pipe_works=no
5707
5708 rm -f conftest*
5709 cat > conftest.$ac_ext <<_LT_EOF
5710#ifdef __cplusplus
5711extern "C" {
5712#endif
5713char nm_test_var;
5714void nm_test_func(void);
5715void nm_test_func(void){}
5716#ifdef __cplusplus
5717}
5718#endif
5719int main(){nm_test_var='a';nm_test_func();return(0);}
5720_LT_EOF
5721
5722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5723 (eval $ac_compile) 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; }; then
5727 # Now try to grab the symbols.
5728 nlist=conftest.nm
5729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5730 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; } && test -s "$nlist"; then
5734 # Try sorting and uniquifying the output.
5735 if sort "$nlist" | uniq > "$nlist"T; then
5736 mv -f "$nlist"T "$nlist"
5737 else
5738 rm -f "$nlist"T
5739 fi
5740
5741 # Make sure that we snagged all the symbols we need.
5742 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5743 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5744 cat <<_LT_EOF > conftest.$ac_ext
5745#ifdef __cplusplus
5746extern "C" {
5747#endif
5748
5749_LT_EOF
5750 # Now generate the symbol file.
5751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5752
5753 cat <<_LT_EOF >> conftest.$ac_ext
5754
5755/* The mapping between symbol names and symbols. */
5756const struct {
5757 const char *name;
5758 void *address;
5759}
5760lt__PROGRAM__LTX_preloaded_symbols[] =
5761{
5762 { "@PROGRAM@", (void *) 0 },
5763_LT_EOF
5764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5765 cat <<\_LT_EOF >> conftest.$ac_ext
5766 {0, (void *) 0}
5767};
5768
5769/* This works around a problem in FreeBSD linker */
5770#ifdef FREEBSD_WORKAROUND
5771static const void *lt_preloaded_setup() {
5772 return lt__PROGRAM__LTX_preloaded_symbols;
5773}
5774#endif
5775
5776#ifdef __cplusplus
5777}
5778#endif
5779_LT_EOF
5780 # Now try linking the two files.
5781 mv conftest.$ac_objext conftstm.$ac_objext
5782 lt_save_LIBS="$LIBS"
5783 lt_save_CFLAGS="$CFLAGS"
5784 LIBS="conftstm.$ac_objext"
5785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5787 (eval $ac_link) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5791 pipe_works=yes
5792 fi
5793 LIBS="$lt_save_LIBS"
5794 CFLAGS="$lt_save_CFLAGS"
5795 else
5796 echo "cannot find nm_test_func in $nlist" >&5
5797 fi
5798 else
5799 echo "cannot find nm_test_var in $nlist" >&5
5800 fi
5801 else
5802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5803 fi
5804 else
5805 echo "$progname: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 fi
5808 rm -rf conftest* conftst*
5809
5810 # Do not use the global_symbol_pipe unless it works.
5811 if test "$pipe_works" = yes; then
5812 break
5813 else
5814 lt_cv_sys_global_symbol_pipe=
5815 fi
5816done
5817
5818fi
5819
5820if test -z "$lt_cv_sys_global_symbol_pipe"; then
5821 lt_cv_sys_global_symbol_to_cdecl=
5822fi
5823if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5825$as_echo "failed" >&6; }
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5828$as_echo "ok" >&6; }
5829fi
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853# Check whether --enable-libtool-lock was given.
5854if test "${enable_libtool_lock+set}" = set; then :
5855 enableval=$enable_libtool_lock;
5856fi
5857
5858test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5859
5860# Some flags need to be propagated to the compiler or linker for good
5861# libtool support.
5862case $host in
5863ia64-*-hpux*)
5864 # Find out which ABI we are using.
5865 echo 'int i;' > conftest.$ac_ext
5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5867 (eval $ac_compile) 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; }; then
5871 case `/usr/bin/file conftest.$ac_objext` in
5872 *ELF-32*)
5873 HPUX_IA64_MODE="32"
5874 ;;
5875 *ELF-64*)
5876 HPUX_IA64_MODE="64"
5877 ;;
5878 esac
5879 fi
5880 rm -rf conftest*
5881 ;;
5882*-*-irix6*)
5883 # Find out which ABI we are using.
5884 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5886 (eval $ac_compile) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; then
5890 if test "$lt_cv_prog_gnu_ld" = yes; then
5891 case `/usr/bin/file conftest.$ac_objext` in
5892 *32-bit*)
5893 LD="${LD-ld} -melf32bsmip"
5894 ;;
5895 *N32*)
5896 LD="${LD-ld} -melf32bmipn32"
5897 ;;
5898 *64-bit*)
5899 LD="${LD-ld} -melf64bmip"
5900 ;;
5901 esac
5902 else
5903 case `/usr/bin/file conftest.$ac_objext` in
5904 *32-bit*)
5905 LD="${LD-ld} -32"
5906 ;;
5907 *N32*)
5908 LD="${LD-ld} -n32"
5909 ;;
5910 *64-bit*)
5911 LD="${LD-ld} -64"
5912 ;;
5913 esac
5914 fi
5915 fi
5916 rm -rf conftest*
5917 ;;
5918
5919x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5920s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5921 # Find out which ABI we are using.
5922 echo 'int i;' > conftest.$ac_ext
5923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5924 (eval $ac_compile) 2>&5
5925 ac_status=$?
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; }; then
5928 case `/usr/bin/file conftest.o` in
5929 *32-bit*)
5930 case $host in
5931 x86_64-*kfreebsd*-gnu)
5932 LD="${LD-ld} -m elf_i386_fbsd"
5933 ;;
5934 x86_64-*linux*)
5935 LD="${LD-ld} -m elf_i386"
5936 ;;
5937 ppc64-*linux*|powerpc64-*linux*)
5938 LD="${LD-ld} -m elf32ppclinux"
5939 ;;
5940 s390x-*linux*)
5941 LD="${LD-ld} -m elf_s390"
5942 ;;
5943 sparc64-*linux*)
5944 LD="${LD-ld} -m elf32_sparc"
5945 ;;
5946 esac
5947 ;;
5948 *64-bit*)
5949 case $host in
5950 x86_64-*kfreebsd*-gnu)
5951 LD="${LD-ld} -m elf_x86_64_fbsd"
5952 ;;
5953 x86_64-*linux*)
5954 LD="${LD-ld} -m elf_x86_64"
5955 ;;
5956 ppc*-*linux*|powerpc*-*linux*)
5957 LD="${LD-ld} -m elf64ppc"
5958 ;;
5959 s390*-*linux*|s390*-*tpf*)
5960 LD="${LD-ld} -m elf64_s390"
5961 ;;
5962 sparc*-*linux*)
5963 LD="${LD-ld} -m elf64_sparc"
5964 ;;
5965 esac
5966 ;;
5967 esac
5968 fi
5969 rm -rf conftest*
5970 ;;
5971
5972*-*-sco3.2v5*)
5973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5974 SAVE_CFLAGS="$CFLAGS"
5975 CFLAGS="$CFLAGS -belf"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5977$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5978if test "${lt_cv_cc_needs_belf+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980else
5981 ac_ext=c
5982ac_cpp='$CPP $CPPFLAGS'
5983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
fabfcf5e
KT
5987 if test x$gcc_no_link = xyes; then
5988 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5989fi
5990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
5991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_link "$LINENO"; then :
6002 lt_cv_cc_needs_belf=yes
6003else
6004 lt_cv_cc_needs_belf=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6008 ac_ext=c
6009ac_cpp='$CPP $CPPFLAGS'
6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6016$as_echo "$lt_cv_cc_needs_belf" >&6; }
6017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6019 CFLAGS="$SAVE_CFLAGS"
6020 fi
6021 ;;
6022sparc*-*solaris*)
6023 # Find out which ABI we are using.
6024 echo 'int i;' > conftest.$ac_ext
6025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6026 (eval $ac_compile) 2>&5
6027 ac_status=$?
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }; then
6030 case `/usr/bin/file conftest.o` in
6031 *64-bit*)
6032 case $lt_cv_prog_gnu_ld in
6033 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6034 *)
6035 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6036 LD="${LD-ld} -64"
6037 fi
6038 ;;
6039 esac
6040 ;;
6041 esac
6042 fi
6043 rm -rf conftest*
6044 ;;
6045esac
6046
6047need_locks="$enable_libtool_lock"
6048
6049
6050 case $host_os in
6051 rhapsody* | darwin*)
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6054set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 if test -n "$DSYMUTIL"; then
6061 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075 done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080DSYMUTIL=$ac_cv_prog_DSYMUTIL
6081if test -n "$DSYMUTIL"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6083$as_echo "$DSYMUTIL" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089
6090fi
6091if test -z "$ac_cv_prog_DSYMUTIL"; then
6092 ac_ct_DSYMUTIL=$DSYMUTIL
6093 # Extract the first word of "dsymutil", so it can be a program name with args.
6094set dummy dsymutil; ac_word=$2
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
6097if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099else
6100 if test -n "$ac_ct_DSYMUTIL"; then
6101 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114done
6115 done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6121if test -n "$ac_ct_DSYMUTIL"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6123$as_echo "$ac_ct_DSYMUTIL" >&6; }
6124else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
6128
6129 if test "x$ac_ct_DSYMUTIL" = x; then
6130 DSYMUTIL=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133yes:)
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136ac_tool_warned=yes ;;
6137esac
6138 DSYMUTIL=$ac_ct_DSYMUTIL
6139 fi
6140else
6141 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6142fi
6143
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6146set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151else
6152 if test -n "$NMEDIT"; then
6153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167 done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172NMEDIT=$ac_cv_prog_NMEDIT
6173if test -n "$NMEDIT"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6175$as_echo "$NMEDIT" >&6; }
6176else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
6179fi
6180
6181
6182fi
6183if test -z "$ac_cv_prog_NMEDIT"; then
6184 ac_ct_NMEDIT=$NMEDIT
6185 # Extract the first word of "nmedit", so it can be a program name with args.
6186set dummy nmedit; ac_word=$2
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188$as_echo_n "checking for $ac_word... " >&6; }
6189if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191else
6192 if test -n "$ac_ct_NMEDIT"; then
6193 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206done
6207 done
6208IFS=$as_save_IFS
6209
6210fi
6211fi
6212ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6213if test -n "$ac_ct_NMEDIT"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6215$as_echo "$ac_ct_NMEDIT" >&6; }
6216else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219fi
6220
6221 if test "x$ac_ct_NMEDIT" = x; then
6222 NMEDIT=":"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225yes:)
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228ac_tool_warned=yes ;;
6229esac
6230 NMEDIT=$ac_ct_NMEDIT
6231 fi
6232else
6233 NMEDIT="$ac_cv_prog_NMEDIT"
6234fi
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}lipo; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if test "${ac_cv_prog_LIPO+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243else
6244 if test -n "$LIPO"; then
6245 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
6259 done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264LIPO=$ac_cv_prog_LIPO
6265if test -n "$LIPO"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6267$as_echo "$LIPO" >&6; }
6268else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274fi
6275if test -z "$ac_cv_prog_LIPO"; then
6276 ac_ct_LIPO=$LIPO
6277 # Extract the first word of "lipo", so it can be a program name with args.
6278set dummy lipo; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$ac_ct_LIPO"; then
6285 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_LIPO="lipo"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299 done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6305if test -n "$ac_ct_LIPO"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6307$as_echo "$ac_ct_LIPO" >&6; }
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313 if test "x$ac_ct_LIPO" = x; then
6314 LIPO=":"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322 LIPO=$ac_ct_LIPO
6323 fi
6324else
6325 LIPO="$ac_cv_prog_LIPO"
6326fi
6327
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6330set dummy ${ac_tool_prefix}otool; ac_word=$2
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if test "${ac_cv_prog_OTOOL+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335else
6336 if test -n "$OTOOL"; then
6337 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350done
6351 done
6352IFS=$as_save_IFS
6353
6354fi
6355fi
6356OTOOL=$ac_cv_prog_OTOOL
6357if test -n "$OTOOL"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6359$as_echo "$OTOOL" >&6; }
6360else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
6363fi
6364
6365
6366fi
6367if test -z "$ac_cv_prog_OTOOL"; then
6368 ac_ct_OTOOL=$OTOOL
6369 # Extract the first word of "otool", so it can be a program name with args.
6370set dummy otool; ac_word=$2
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375else
6376 if test -n "$ac_ct_OTOOL"; then
6377 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_OTOOL="otool"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391 done
6392IFS=$as_save_IFS
6393
6394fi
6395fi
6396ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6397if test -n "$ac_ct_OTOOL"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6399$as_echo "$ac_ct_OTOOL" >&6; }
6400else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405 if test "x$ac_ct_OTOOL" = x; then
6406 OTOOL=":"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409yes:)
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412ac_tool_warned=yes ;;
6413esac
6414 OTOOL=$ac_ct_OTOOL
6415 fi
6416else
6417 OTOOL="$ac_cv_prog_OTOOL"
6418fi
6419
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}otool64; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$OTOOL64"; then
6429 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443 done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448OTOOL64=$ac_cv_prog_OTOOL64
6449if test -n "$OTOOL64"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6451$as_echo "$OTOOL64" >&6; }
6452else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_OTOOL64"; then
6460 ac_ct_OTOOL64=$OTOOL64
6461 # Extract the first word of "otool64", so it can be a program name with args.
6462set dummy otool64; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467else
6468 if test -n "$ac_ct_OTOOL64"; then
6469 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_ac_ct_OTOOL64="otool64"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6489if test -n "$ac_ct_OTOOL64"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6491$as_echo "$ac_ct_OTOOL64" >&6; }
6492else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497 if test "x$ac_ct_OTOOL64" = x; then
6498 OTOOL64=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506 OTOOL64=$ac_ct_OTOOL64
6507 fi
6508else
6509 OTOOL64="$ac_cv_prog_OTOOL64"
6510fi
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6539$as_echo_n "checking for -single_module linker flag... " >&6; }
6540if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 lt_cv_apple_cc_single_mod=no
6544 if test -z "${LT_MULTI_MODULE}"; then
6545 # By default we will add the -single_module flag. You can override
6546 # by either setting the environment variable LT_MULTI_MODULE
6547 # non-empty at configure time, or by adding -multi_module to the
6548 # link flags.
6549 rm -rf libconftest.dylib*
6550 echo "int foo(void){return 1;}" > conftest.c
6551 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6552-dynamiclib -Wl,-single_module conftest.c" >&5
6553 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6554 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6555 _lt_result=$?
6556 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6557 lt_cv_apple_cc_single_mod=yes
6558 else
6559 cat conftest.err >&5
6560 fi
6561 rm -rf libconftest.dylib*
6562 rm -f conftest.*
6563 fi
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6566$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6568$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6569if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571else
6572 lt_cv_ld_exported_symbols_list=no
6573 save_LDFLAGS=$LDFLAGS
6574 echo "_main" > conftest.sym
6575 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
fabfcf5e
KT
6576 if test x$gcc_no_link = xyes; then
6577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6578fi
6579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
6580/* end confdefs.h. */
6581
6582int
6583main ()
6584{
6585
6586 ;
6587 return 0;
6588}
6589_ACEOF
6590if ac_fn_c_try_link "$LINENO"; then :
6591 lt_cv_ld_exported_symbols_list=yes
6592else
6593 lt_cv_ld_exported_symbols_list=no
6594fi
6595rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597 LDFLAGS="$save_LDFLAGS"
6598
6599fi
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6601$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6603$as_echo_n "checking for -force_load linker flag... " >&6; }
6604if test "${lt_cv_ld_force_load+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6606else
6607 lt_cv_ld_force_load=no
6608 cat > conftest.c << _LT_EOF
6609int forced_loaded() { return 2;}
6610_LT_EOF
6611 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6612 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6613 echo "$AR cru libconftest.a conftest.o" >&5
6614 $AR cru libconftest.a conftest.o 2>&5
6615 cat > conftest.c << _LT_EOF
6616int main() { return 0;}
6617_LT_EOF
6618 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6619 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6620 _lt_result=$?
6621 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6622 lt_cv_ld_force_load=yes
6623 else
6624 cat conftest.err >&5
6625 fi
6626 rm -f conftest.err libconftest.a conftest conftest.c
6627 rm -rf conftest.dSYM
6628
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6631$as_echo "$lt_cv_ld_force_load" >&6; }
6632 case $host_os in
6633 rhapsody* | darwin1.[012])
6634 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6635 darwin1.*)
6636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6637 darwin*) # darwin 5.x on
6638 # if running on 10.5 or later, the deployment target defaults
6639 # to the OS version, if on x86, and 10.4, the deployment
6640 # target defaults to 10.4. Don't you love it?
6641 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6642 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6644 10.[012]*)
6645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6646 10.*)
6647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6648 esac
6649 ;;
6650 esac
6651 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6652 _lt_dar_single_mod='$single_module'
6653 fi
6654 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6655 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6656 else
6657 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6658 fi
6659 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6660 _lt_dsymutil='~$DSYMUTIL $lib || :'
6661 else
6662 _lt_dsymutil=
6663 fi
6664 ;;
6665 esac
6666
6667ac_ext=c
6668ac_cpp='$CPP $CPPFLAGS'
6669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6673$as_echo_n "checking how to run the C preprocessor... " >&6; }
6674# On Suns, sometimes $CPP names a directory.
6675if test -n "$CPP" && test -d "$CPP"; then
6676 CPP=
6677fi
6678if test -z "$CPP"; then
6679 if test "${ac_cv_prog_CPP+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 # Double quotes because CPP needs to be expanded
6683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6684 do
6685 ac_preproc_ok=false
6686for ac_c_preproc_warn_flag in '' yes
6687do
6688 # Use a header file that comes with gcc, so configuring glibc
6689 # with a fresh cross-compiler works.
6690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6691 # <limits.h> exists even on freestanding compilers.
6692 # On the NeXT, cc -E runs the code through the compiler's parser,
6693 # not just through cpp. "Syntax error" is here to catch this case.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h. */
6696#ifdef __STDC__
6697# include <limits.h>
6698#else
6699# include <assert.h>
6700#endif
6701 Syntax error
6702_ACEOF
6703if ac_fn_c_try_cpp "$LINENO"; then :
6704
6705else
6706 # Broken: fails on valid input.
6707continue
6708fi
6709rm -f conftest.err conftest.$ac_ext
6710
6711 # OK, works on sane cases. Now check whether nonexistent headers
6712 # can be detected and how.
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h. */
6715#include <ac_nonexistent.h>
6716_ACEOF
6717if ac_fn_c_try_cpp "$LINENO"; then :
6718 # Broken: success on invalid input.
6719continue
6720else
6721 # Passes both tests.
6722ac_preproc_ok=:
6723break
6724fi
6725rm -f conftest.err conftest.$ac_ext
6726
6727done
6728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6729rm -f conftest.err conftest.$ac_ext
6730if $ac_preproc_ok; then :
6731 break
6732fi
6733
6734 done
6735 ac_cv_prog_CPP=$CPP
6736
6737fi
6738 CPP=$ac_cv_prog_CPP
6739else
6740 ac_cv_prog_CPP=$CPP
6741fi
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6743$as_echo "$CPP" >&6; }
6744ac_preproc_ok=false
6745for ac_c_preproc_warn_flag in '' yes
6746do
6747 # Use a header file that comes with gcc, so configuring glibc
6748 # with a fresh cross-compiler works.
6749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6750 # <limits.h> exists even on freestanding compilers.
6751 # On the NeXT, cc -E runs the code through the compiler's parser,
6752 # not just through cpp. "Syntax error" is here to catch this case.
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h. */
6755#ifdef __STDC__
6756# include <limits.h>
6757#else
6758# include <assert.h>
6759#endif
6760 Syntax error
6761_ACEOF
6762if ac_fn_c_try_cpp "$LINENO"; then :
6763
6764else
6765 # Broken: fails on valid input.
6766continue
6767fi
6768rm -f conftest.err conftest.$ac_ext
6769
6770 # OK, works on sane cases. Now check whether nonexistent headers
6771 # can be detected and how.
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h. */
6774#include <ac_nonexistent.h>
6775_ACEOF
6776if ac_fn_c_try_cpp "$LINENO"; then :
6777 # Broken: success on invalid input.
6778continue
6779else
6780 # Passes both tests.
6781ac_preproc_ok=:
6782break
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785
6786done
6787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6788rm -f conftest.err conftest.$ac_ext
6789if $ac_preproc_ok; then :
6790
6791else
6792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6794as_fn_error "C preprocessor \"$CPP\" fails sanity check
6795See \`config.log' for more details." "$LINENO" 5; }
6796fi
6797
6798ac_ext=c
6799ac_cpp='$CPP $CPPFLAGS'
6800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6806$as_echo_n "checking for ANSI C header files... " >&6; }
6807if test "${ac_cv_header_stdc+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6809else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h. */
6812#include <stdlib.h>
6813#include <stdarg.h>
6814#include <string.h>
6815#include <float.h>
6816
6817int
6818main ()
6819{
6820
6821 ;
6822 return 0;
6823}
6824_ACEOF
6825if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_header_stdc=yes
6827else
6828 ac_cv_header_stdc=no
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831
6832if test $ac_cv_header_stdc = yes; then
6833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836#include <string.h>
6837
6838_ACEOF
6839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840 $EGREP "memchr" >/dev/null 2>&1; then :
6841
6842else
6843 ac_cv_header_stdc=no
6844fi
6845rm -f conftest*
6846
6847fi
6848
6849if test $ac_cv_header_stdc = yes; then
6850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h. */
6853#include <stdlib.h>
6854
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "free" >/dev/null 2>&1; then :
6858
6859else
6860 ac_cv_header_stdc=no
6861fi
6862rm -f conftest*
6863
6864fi
6865
6866if test $ac_cv_header_stdc = yes; then
6867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6868 if test "$cross_compiling" = yes; then :
6869 :
6870else
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h. */
6873#include <ctype.h>
6874#include <stdlib.h>
6875#if ((' ' & 0x0FF) == 0x020)
6876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6878#else
6879# define ISLOWER(c) \
6880 (('a' <= (c) && (c) <= 'i') \
6881 || ('j' <= (c) && (c) <= 'r') \
6882 || ('s' <= (c) && (c) <= 'z'))
6883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6884#endif
6885
6886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6887int
6888main ()
6889{
6890 int i;
6891 for (i = 0; i < 256; i++)
6892 if (XOR (islower (i), ISLOWER (i))
6893 || toupper (i) != TOUPPER (i))
6894 return 2;
6895 return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_run "$LINENO"; then :
6899
6900else
6901 ac_cv_header_stdc=no
6902fi
6903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6904 conftest.$ac_objext conftest.beam conftest.$ac_ext
6905fi
6906
6907fi
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6910$as_echo "$ac_cv_header_stdc" >&6; }
6911if test $ac_cv_header_stdc = yes; then
6912
6913$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6914
6915fi
6916
6917# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6918for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919 inttypes.h stdint.h unistd.h
6920do :
6921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6923"
6924eval as_val=\$$as_ac_Header
6925 if test "x$as_val" = x""yes; then :
6926 cat >>confdefs.h <<_ACEOF
6927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6928_ACEOF
6929
6930fi
6931
6932done
6933
6934
6935for ac_header in dlfcn.h
6936do :
6937 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6938"
6939if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6940 cat >>confdefs.h <<_ACEOF
6941#define HAVE_DLFCN_H 1
6942_ACEOF
6943
6944fi
6945
6946done
6947
6948
6949
6950
6951
6952# Set options
6953
6954
6955
6956 enable_dlopen=no
6957
6958
6959 enable_win32_dll=no
6960
6961
6962 # Check whether --enable-shared was given.
6963if test "${enable_shared+set}" = set; then :
6964 enableval=$enable_shared; p=${PACKAGE-default}
6965 case $enableval in
6966 yes) enable_shared=yes ;;
6967 no) enable_shared=no ;;
6968 *)
6969 enable_shared=no
6970 # Look at the argument we got. We use all the common list separators.
6971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6972 for pkg in $enableval; do
6973 IFS="$lt_save_ifs"
6974 if test "X$pkg" = "X$p"; then
6975 enable_shared=yes
6976 fi
6977 done
6978 IFS="$lt_save_ifs"
6979 ;;
6980 esac
6981else
6982 enable_shared=yes
6983fi
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 # Check whether --enable-static was given.
6994if test "${enable_static+set}" = set; then :
6995 enableval=$enable_static; p=${PACKAGE-default}
6996 case $enableval in
6997 yes) enable_static=yes ;;
6998 no) enable_static=no ;;
6999 *)
7000 enable_static=no
7001 # Look at the argument we got. We use all the common list separators.
7002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7003 for pkg in $enableval; do
7004 IFS="$lt_save_ifs"
7005 if test "X$pkg" = "X$p"; then
7006 enable_static=yes
7007 fi
7008 done
7009 IFS="$lt_save_ifs"
7010 ;;
7011 esac
7012else
7013 enable_static=yes
7014fi
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025# Check whether --with-pic was given.
7026if test "${with_pic+set}" = set; then :
7027 withval=$with_pic; pic_mode="$withval"
7028else
7029 pic_mode=default
7030fi
7031
7032
7033test -z "$pic_mode" && pic_mode=default
7034
7035
7036
7037
7038
7039
7040
7041 # Check whether --enable-fast-install was given.
7042if test "${enable_fast_install+set}" = set; then :
7043 enableval=$enable_fast_install; p=${PACKAGE-default}
7044 case $enableval in
7045 yes) enable_fast_install=yes ;;
7046 no) enable_fast_install=no ;;
7047 *)
7048 enable_fast_install=no
7049 # Look at the argument we got. We use all the common list separators.
7050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7051 for pkg in $enableval; do
7052 IFS="$lt_save_ifs"
7053 if test "X$pkg" = "X$p"; then
7054 enable_fast_install=yes
7055 fi
7056 done
7057 IFS="$lt_save_ifs"
7058 ;;
7059 esac
7060else
7061 enable_fast_install=yes
7062fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074# This can be used to rebuild libtool when needed
7075LIBTOOL_DEPS="$ltmain"
7076
7077# Always use our own libtool.
7078LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105test -z "$LN_S" && LN_S="ln -s"
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120if test -n "${ZSH_VERSION+set}" ; then
7121 setopt NO_GLOB_SUBST
7122fi
7123
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7125$as_echo_n "checking for objdir... " >&6; }
7126if test "${lt_cv_objdir+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128else
7129 rm -f .libs 2>/dev/null
7130mkdir .libs 2>/dev/null
7131if test -d .libs; then
7132 lt_cv_objdir=.libs
7133else
7134 # MS-DOS does not allow filenames that begin with a dot.
7135 lt_cv_objdir=_libs
7136fi
7137rmdir .libs 2>/dev/null
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7140$as_echo "$lt_cv_objdir" >&6; }
7141objdir=$lt_cv_objdir
7142
7143
7144
7145
7146
7147cat >>confdefs.h <<_ACEOF
7148#define LT_OBJDIR "$lt_cv_objdir/"
7149_ACEOF
7150
7151
7152
7153
7154case $host_os in
7155aix3*)
7156 # AIX sometimes has problems with the GCC collect2 program. For some
7157 # reason, if we set the COLLECT_NAMES environment variable, the problems
7158 # vanish in a puff of smoke.
7159 if test "X${COLLECT_NAMES+set}" != Xset; then
7160 COLLECT_NAMES=
7161 export COLLECT_NAMES
7162 fi
7163 ;;
7164esac
7165
7166# Global variables:
7167ofile=libtool
7168can_build_shared=yes
7169
7170# All known linkers require a `.a' archive for static linking (except MSVC,
7171# which needs '.lib').
7172libext=a
7173
7174with_gnu_ld="$lt_cv_prog_gnu_ld"
7175
7176old_CC="$CC"
7177old_CFLAGS="$CFLAGS"
7178
7179# Set sane defaults for various variables
7180test -z "$CC" && CC=cc
7181test -z "$LTCC" && LTCC=$CC
7182test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7183test -z "$LD" && LD=ld
7184test -z "$ac_objext" && ac_objext=o
7185
7186for cc_temp in $compiler""; do
7187 case $cc_temp in
7188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7190 \-*) ;;
7191 *) break;;
7192 esac
7193done
7194cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7195
7196
7197# Only perform the check for file, if the check method requires it
7198test -z "$MAGIC_CMD" && MAGIC_CMD=file
7199case $deplibs_check_method in
7200file_magic*)
7201 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7203$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7204if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206else
7207 case $MAGIC_CMD in
7208[\\/*] | ?:[\\/]*)
7209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7210 ;;
7211*)
7212 lt_save_MAGIC_CMD="$MAGIC_CMD"
7213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7215 for ac_dir in $ac_dummy; do
7216 IFS="$lt_save_ifs"
7217 test -z "$ac_dir" && ac_dir=.
7218 if test -f $ac_dir/${ac_tool_prefix}file; then
7219 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7220 if test -n "$file_magic_test_file"; then
7221 case $deplibs_check_method in
7222 "file_magic "*)
7223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7226 $EGREP "$file_magic_regex" > /dev/null; then
7227 :
7228 else
7229 cat <<_LT_EOF 1>&2
7230
7231*** Warning: the command libtool uses to detect shared libraries,
7232*** $file_magic_cmd, produces output that libtool cannot recognize.
7233*** The result is that libtool may fail to recognize shared libraries
7234*** as such. This will affect the creation of libtool libraries that
7235*** depend on shared libraries, but programs linked with such libtool
7236*** libraries will work regardless of this problem. Nevertheless, you
7237*** may want to report the problem to your system manager and/or to
7238*** bug-libtool@gnu.org
7239
7240_LT_EOF
7241 fi ;;
7242 esac
7243 fi
7244 break
7245 fi
7246 done
7247 IFS="$lt_save_ifs"
7248 MAGIC_CMD="$lt_save_MAGIC_CMD"
7249 ;;
7250esac
7251fi
7252
7253MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7254if test -n "$MAGIC_CMD"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7256$as_echo "$MAGIC_CMD" >&6; }
7257else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262
7263
7264
7265
7266if test -z "$lt_cv_path_MAGIC_CMD"; then
7267 if test -n "$ac_tool_prefix"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7269$as_echo_n "checking for file... " >&6; }
7270if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272else
7273 case $MAGIC_CMD in
7274[\\/*] | ?:[\\/]*)
7275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7276 ;;
7277*)
7278 lt_save_MAGIC_CMD="$MAGIC_CMD"
7279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7281 for ac_dir in $ac_dummy; do
7282 IFS="$lt_save_ifs"
7283 test -z "$ac_dir" && ac_dir=.
7284 if test -f $ac_dir/file; then
7285 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7286 if test -n "$file_magic_test_file"; then
7287 case $deplibs_check_method in
7288 "file_magic "*)
7289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7292 $EGREP "$file_magic_regex" > /dev/null; then
7293 :
7294 else
7295 cat <<_LT_EOF 1>&2
7296
7297*** Warning: the command libtool uses to detect shared libraries,
7298*** $file_magic_cmd, produces output that libtool cannot recognize.
7299*** The result is that libtool may fail to recognize shared libraries
7300*** as such. This will affect the creation of libtool libraries that
7301*** depend on shared libraries, but programs linked with such libtool
7302*** libraries will work regardless of this problem. Nevertheless, you
7303*** may want to report the problem to your system manager and/or to
7304*** bug-libtool@gnu.org
7305
7306_LT_EOF
7307 fi ;;
7308 esac
7309 fi
7310 break
7311 fi
7312 done
7313 IFS="$lt_save_ifs"
7314 MAGIC_CMD="$lt_save_MAGIC_CMD"
7315 ;;
7316esac
7317fi
7318
7319MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7320if test -n "$MAGIC_CMD"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7322$as_echo "$MAGIC_CMD" >&6; }
7323else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328
7329 else
7330 MAGIC_CMD=:
7331 fi
7332fi
7333
7334 fi
7335 ;;
7336esac
7337
7338# Use C for the default configuration in the libtool script
7339
7340lt_save_CC="$CC"
7341ac_ext=c
7342ac_cpp='$CPP $CPPFLAGS'
7343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7345ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346
7347
7348# Source file extension for C test sources.
7349ac_ext=c
7350
7351# Object file extension for compiled C test sources.
7352objext=o
7353objext=$objext
7354
7355# Code to be used in simple compile tests
7356lt_simple_compile_test_code="int some_variable = 0;"
7357
7358# Code to be used in simple link tests
7359lt_simple_link_test_code='int main(){return(0);}'
7360
7361
7362
7363
7364
7365
7366
7367# If no C compiler was specified, use CC.
7368LTCC=${LTCC-"$CC"}
7369
7370# If no C compiler flags were specified, use CFLAGS.
7371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7372
7373# Allow CC to be a program name with arguments.
7374compiler=$CC
7375
7376# Save the default compiler, since it gets overwritten when the other
7377# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7378compiler_DEFAULT=$CC
7379
7380# save warnings/boilerplate of simple test code
7381ac_outfile=conftest.$ac_objext
7382echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7383eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7384_lt_compiler_boilerplate=`cat conftest.err`
7385$RM conftest*
7386
7387ac_outfile=conftest.$ac_objext
7388echo "$lt_simple_link_test_code" >conftest.$ac_ext
7389eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390_lt_linker_boilerplate=`cat conftest.err`
7391$RM -r conftest*
7392
7393
7394## CAVEAT EMPTOR:
7395## There is no encapsulation within the following macros, do not change
7396## the running order or otherwise move them around unless you know exactly
7397## what you are doing...
7398if test -n "$compiler"; then
7399
7400lt_prog_compiler_no_builtin_flag=
7401
7402if test "$GCC" = yes; then
7403 case $cc_basename in
7404 nvcc*)
7405 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7406 *)
7407 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7408 esac
7409
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7411$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7412if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414else
7415 lt_cv_prog_compiler_rtti_exceptions=no
7416 ac_outfile=conftest.$ac_objext
7417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7418 lt_compiler_flag="-fno-rtti -fno-exceptions"
7419 # Insert the option either (1) after the last *FLAGS variable, or
7420 # (2) before a word containing "conftest.", or (3) at the end.
7421 # Note that $ac_compile itself does not contain backslashes and begins
7422 # with a dollar sign (not a hyphen), so the echo should work correctly.
7423 # The option is referenced via a variable to avoid confusing sed.
7424 lt_compile=`echo "$ac_compile" | $SED \
7425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7427 -e 's:$: $lt_compiler_flag:'`
7428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7429 (eval "$lt_compile" 2>conftest.err)
7430 ac_status=$?
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 if (exit $ac_status) && test -s "$ac_outfile"; then
7434 # The compiler can only warn and ignore the option if not recognized
7435 # So say no if there are warnings other than the usual output.
7436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7439 lt_cv_prog_compiler_rtti_exceptions=yes
7440 fi
7441 fi
7442 $RM conftest*
7443
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7446$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7447
7448if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7450else
7451 :
7452fi
7453
7454fi
7455
7456
7457
7458
7459
7460
7461 lt_prog_compiler_wl=
7462lt_prog_compiler_pic=
7463lt_prog_compiler_static=
7464
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7466$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7467
7468 if test "$GCC" = yes; then
7469 lt_prog_compiler_wl='-Wl,'
7470 lt_prog_compiler_static='-static'
7471
7472 case $host_os in
7473 aix*)
7474 # All AIX code is PIC.
7475 if test "$host_cpu" = ia64; then
7476 # AIX 5 now supports IA64 processor
7477 lt_prog_compiler_static='-Bstatic'
7478 fi
7479 ;;
7480
7481 amigaos*)
7482 case $host_cpu in
7483 powerpc)
7484 # see comment about AmigaOS4 .so support
7485 lt_prog_compiler_pic='-fPIC'
7486 ;;
7487 m68k)
7488 # FIXME: we need at least 68020 code to build shared libraries, but
7489 # adding the `-m68020' flag to GCC prevents building anything better,
7490 # like `-m68040'.
7491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7492 ;;
7493 esac
7494 ;;
7495
7496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7497 # PIC is the default for these OSes.
7498 ;;
7499
7500 mingw* | cygwin* | pw32* | os2* | cegcc*)
7501 # This hack is so that the source file can tell whether it is being
7502 # built for inclusion in a dll (and should export symbols for example).
7503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7504 # (--disable-auto-import) libraries
7505 lt_prog_compiler_pic='-DDLL_EXPORT'
7506 ;;
7507
7508 darwin* | rhapsody*)
7509 # PIC is the default on this platform
7510 # Common symbols not allowed in MH_DYLIB files
7511 lt_prog_compiler_pic='-fno-common'
7512 ;;
7513
7514 haiku*)
7515 # PIC is the default for Haiku.
7516 # The "-static" flag exists, but is broken.
7517 lt_prog_compiler_static=
7518 ;;
7519
7520 hpux*)
7521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7523 # sets the default TLS model and affects inlining.
7524 case $host_cpu in
7525 hppa*64*)
7526 # +Z the default
7527 ;;
7528 *)
7529 lt_prog_compiler_pic='-fPIC'
7530 ;;
7531 esac
7532 ;;
7533
7534 interix[3-9]*)
7535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7536 # Instead, we relocate shared libraries at runtime.
7537 ;;
7538
7539 msdosdjgpp*)
7540 # Just because we use GCC doesn't mean we suddenly get shared libraries
7541 # on systems that don't support them.
7542 lt_prog_compiler_can_build_shared=no
7543 enable_shared=no
7544 ;;
7545
7546 *nto* | *qnx*)
7547 # QNX uses GNU C++, but need to define -shared option too, otherwise
7548 # it will coredump.
7549 lt_prog_compiler_pic='-fPIC -shared'
7550 ;;
7551
7552 sysv4*MP*)
7553 if test -d /usr/nec; then
7554 lt_prog_compiler_pic=-Kconform_pic
7555 fi
7556 ;;
7557
7558 *)
7559 lt_prog_compiler_pic='-fPIC'
7560 ;;
7561 esac
7562
7563 case $cc_basename in
7564 nvcc*) # Cuda Compiler Driver 2.2
7565 lt_prog_compiler_wl='-Xlinker '
7566 lt_prog_compiler_pic='-Xcompiler -fPIC'
7567 ;;
7568 esac
7569 else
7570 # PORTME Check for flag to pass linker flags through the system compiler.
7571 case $host_os in
7572 aix*)
7573 lt_prog_compiler_wl='-Wl,'
7574 if test "$host_cpu" = ia64; then
7575 # AIX 5 now supports IA64 processor
7576 lt_prog_compiler_static='-Bstatic'
7577 else
7578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7579 fi
7580 ;;
7581
7582 mingw* | cygwin* | pw32* | os2* | cegcc*)
7583 # This hack is so that the source file can tell whether it is being
7584 # built for inclusion in a dll (and should export symbols for example).
7585 lt_prog_compiler_pic='-DDLL_EXPORT'
7586 ;;
7587
7588 hpux9* | hpux10* | hpux11*)
7589 lt_prog_compiler_wl='-Wl,'
7590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7591 # not for PA HP-UX.
7592 case $host_cpu in
7593 hppa*64*|ia64*)
7594 # +Z the default
7595 ;;
7596 *)
7597 lt_prog_compiler_pic='+Z'
7598 ;;
7599 esac
7600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7601 lt_prog_compiler_static='${wl}-a ${wl}archive'
7602 ;;
7603
7604 irix5* | irix6* | nonstopux*)
7605 lt_prog_compiler_wl='-Wl,'
7606 # PIC (with -KPIC) is the default.
7607 lt_prog_compiler_static='-non_shared'
7608 ;;
7609
7610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7611 case $cc_basename in
7612 # old Intel for x86_64 which still supported -KPIC.
7613 ecc*)
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_pic='-KPIC'
7616 lt_prog_compiler_static='-static'
7617 ;;
7618 # icc used to be incompatible with GCC.
7619 # ICC 10 doesn't accept -KPIC any more.
7620 icc* | ifort*)
7621 lt_prog_compiler_wl='-Wl,'
7622 lt_prog_compiler_pic='-fPIC'
7623 lt_prog_compiler_static='-static'
7624 ;;
7625 # Lahey Fortran 8.1.
7626 lf95*)
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_pic='--shared'
7629 lt_prog_compiler_static='--static'
7630 ;;
7631 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7632 # Portland Group compilers (*not* the Pentium gcc compiler,
7633 # which looks to be a dead project)
7634 lt_prog_compiler_wl='-Wl,'
7635 lt_prog_compiler_pic='-fpic'
7636 lt_prog_compiler_static='-Bstatic'
7637 ;;
7638 ccc*)
7639 lt_prog_compiler_wl='-Wl,'
7640 # All Alpha code is PIC.
7641 lt_prog_compiler_static='-non_shared'
7642 ;;
7643 xl* | bgxl* | bgf* | mpixl*)
7644 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-qpic'
7647 lt_prog_compiler_static='-qstaticlink'
7648 ;;
7649 *)
7650 case `$CC -V 2>&1 | sed 5q` in
7651 *Sun\ F* | *Sun*Fortran*)
7652 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7653 lt_prog_compiler_pic='-KPIC'
7654 lt_prog_compiler_static='-Bstatic'
7655 lt_prog_compiler_wl=''
7656 ;;
7657 *Sun\ C*)
7658 # Sun C 5.9
7659 lt_prog_compiler_pic='-KPIC'
7660 lt_prog_compiler_static='-Bstatic'
7661 lt_prog_compiler_wl='-Wl,'
7662 ;;
7663 esac
7664 ;;
7665 esac
7666 ;;
7667
7668 newsos6)
7669 lt_prog_compiler_pic='-KPIC'
7670 lt_prog_compiler_static='-Bstatic'
7671 ;;
7672
7673 *nto* | *qnx*)
7674 # QNX uses GNU C++, but need to define -shared option too, otherwise
7675 # it will coredump.
7676 lt_prog_compiler_pic='-fPIC -shared'
7677 ;;
7678
7679 osf3* | osf4* | osf5*)
7680 lt_prog_compiler_wl='-Wl,'
7681 # All OSF/1 code is PIC.
7682 lt_prog_compiler_static='-non_shared'
7683 ;;
7684
7685 rdos*)
7686 lt_prog_compiler_static='-non_shared'
7687 ;;
7688
7689 solaris*)
7690 lt_prog_compiler_pic='-KPIC'
7691 lt_prog_compiler_static='-Bstatic'
7692 case $cc_basename in
7693 f77* | f90* | f95*)
7694 lt_prog_compiler_wl='-Qoption ld ';;
7695 *)
7696 lt_prog_compiler_wl='-Wl,';;
7697 esac
7698 ;;
7699
7700 sunos4*)
7701 lt_prog_compiler_wl='-Qoption ld '
7702 lt_prog_compiler_pic='-PIC'
7703 lt_prog_compiler_static='-Bstatic'
7704 ;;
7705
7706 sysv4 | sysv4.2uw2* | sysv4.3*)
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-Bstatic'
7710 ;;
7711
7712 sysv4*MP*)
7713 if test -d /usr/nec ;then
7714 lt_prog_compiler_pic='-Kconform_pic'
7715 lt_prog_compiler_static='-Bstatic'
7716 fi
7717 ;;
7718
7719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 ;;
7724
7725 unicos*)
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_can_build_shared=no
7728 ;;
7729
7730 uts4*)
7731 lt_prog_compiler_pic='-pic'
7732 lt_prog_compiler_static='-Bstatic'
7733 ;;
7734
7735 *)
7736 lt_prog_compiler_can_build_shared=no
7737 ;;
7738 esac
7739 fi
7740
7741case $host_os in
7742 # For platforms which do not support PIC, -DPIC is meaningless:
7743 *djgpp*)
7744 lt_prog_compiler_pic=
7745 ;;
7746 *)
7747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7748 ;;
7749esac
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7751$as_echo "$lt_prog_compiler_pic" >&6; }
7752
7753
7754
7755
7756
7757
7758#
7759# Check to make sure the PIC flag actually works.
7760#
7761if test -n "$lt_prog_compiler_pic"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7763$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7764if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766else
7767 lt_cv_prog_compiler_pic_works=no
7768 ac_outfile=conftest.$ac_objext
7769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7771 # Insert the option either (1) after the last *FLAGS variable, or
7772 # (2) before a word containing "conftest.", or (3) at the end.
7773 # Note that $ac_compile itself does not contain backslashes and begins
7774 # with a dollar sign (not a hyphen), so the echo should work correctly.
7775 # The option is referenced via a variable to avoid confusing sed.
7776 lt_compile=`echo "$ac_compile" | $SED \
7777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7779 -e 's:$: $lt_compiler_flag:'`
7780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7781 (eval "$lt_compile" 2>conftest.err)
7782 ac_status=$?
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 if (exit $ac_status) && test -s "$ac_outfile"; then
7786 # The compiler can only warn and ignore the option if not recognized
7787 # So say no if there are warnings other than the usual output.
7788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7791 lt_cv_prog_compiler_pic_works=yes
7792 fi
7793 fi
7794 $RM conftest*
7795
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7798$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7799
7800if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7801 case $lt_prog_compiler_pic in
7802 "" | " "*) ;;
7803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7804 esac
7805else
7806 lt_prog_compiler_pic=
7807 lt_prog_compiler_can_build_shared=no
7808fi
7809
7810fi
7811
7812
7813
7814
7815
7816
7817#
7818# Check to make sure the static flag actually works.
7819#
7820wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7822$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7823if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 lt_cv_prog_compiler_static_works=no
7827 save_LDFLAGS="$LDFLAGS"
7828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7831 # The linker can only warn and ignore the option if not recognized
7832 # So say no if there are warnings
7833 if test -s conftest.err; then
7834 # Append any errors to the config.log.
7835 cat conftest.err 1>&5
7836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_static_works=yes
7840 fi
7841 else
7842 lt_cv_prog_compiler_static_works=yes
7843 fi
7844 fi
7845 $RM -r conftest*
7846 LDFLAGS="$save_LDFLAGS"
7847
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7850$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7851
7852if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7853 :
7854else
7855 lt_prog_compiler_static=
7856fi
7857
7858
7859
7860
7861
7862
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7865$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7866if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868else
7869 lt_cv_prog_compiler_c_o=no
7870 $RM -r conftest 2>/dev/null
7871 mkdir conftest
7872 cd conftest
7873 mkdir out
7874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875
7876 lt_compiler_flag="-o out/conftest2.$ac_objext"
7877 # Insert the option either (1) after the last *FLAGS variable, or
7878 # (2) before a word containing "conftest.", or (3) at the end.
7879 # Note that $ac_compile itself does not contain backslashes and begins
7880 # with a dollar sign (not a hyphen), so the echo should work correctly.
7881 lt_compile=`echo "$ac_compile" | $SED \
7882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884 -e 's:$: $lt_compiler_flag:'`
7885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7886 (eval "$lt_compile" 2>out/conftest.err)
7887 ac_status=$?
7888 cat out/conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7891 then
7892 # The compiler can only warn and ignore the option if not recognized
7893 # So say no if there are warnings
7894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7897 lt_cv_prog_compiler_c_o=yes
7898 fi
7899 fi
7900 chmod u+w . 2>&5
7901 $RM conftest*
7902 # SGI C++ compiler will create directory out/ii_files/ for
7903 # template instantiation
7904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7905 $RM out/* && rmdir out
7906 cd ..
7907 $RM -r conftest
7908 $RM conftest*
7909
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7912$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7913
7914
7915
7916
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7920$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7921if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923else
7924 lt_cv_prog_compiler_c_o=no
7925 $RM -r conftest 2>/dev/null
7926 mkdir conftest
7927 cd conftest
7928 mkdir out
7929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7930
7931 lt_compiler_flag="-o out/conftest2.$ac_objext"
7932 # Insert the option either (1) after the last *FLAGS variable, or
7933 # (2) before a word containing "conftest.", or (3) at the end.
7934 # Note that $ac_compile itself does not contain backslashes and begins
7935 # with a dollar sign (not a hyphen), so the echo should work correctly.
7936 lt_compile=`echo "$ac_compile" | $SED \
7937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7939 -e 's:$: $lt_compiler_flag:'`
7940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7941 (eval "$lt_compile" 2>out/conftest.err)
7942 ac_status=$?
7943 cat out/conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7946 then
7947 # The compiler can only warn and ignore the option if not recognized
7948 # So say no if there are warnings
7949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7952 lt_cv_prog_compiler_c_o=yes
7953 fi
7954 fi
7955 chmod u+w . 2>&5
7956 $RM conftest*
7957 # SGI C++ compiler will create directory out/ii_files/ for
7958 # template instantiation
7959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7960 $RM out/* && rmdir out
7961 cd ..
7962 $RM -r conftest
7963 $RM conftest*
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7967$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7968
7969
7970
7971
7972hard_links="nottested"
7973if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7974 # do not overwrite the value of need_locks provided by the user
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7976$as_echo_n "checking if we can lock with hard links... " >&6; }
7977 hard_links=yes
7978 $RM conftest*
7979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7980 touch conftest.a
7981 ln conftest.a conftest.b 2>&5 || hard_links=no
7982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7984$as_echo "$hard_links" >&6; }
7985 if test "$hard_links" = no; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7987$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7988 need_locks=warn
7989 fi
7990else
7991 need_locks=no
7992fi
7993
7994
7995
7996
7997
7998
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8000$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8001
8002 runpath_var=
8003 allow_undefined_flag=
8004 always_export_symbols=no
8005 archive_cmds=
8006 archive_expsym_cmds=
8007 compiler_needs_object=no
8008 enable_shared_with_static_runtimes=no
8009 export_dynamic_flag_spec=
8010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011 hardcode_automatic=no
8012 hardcode_direct=no
8013 hardcode_direct_absolute=no
8014 hardcode_libdir_flag_spec=
8015 hardcode_libdir_flag_spec_ld=
8016 hardcode_libdir_separator=
8017 hardcode_minus_L=no
8018 hardcode_shlibpath_var=unsupported
8019 inherit_rpath=no
8020 link_all_deplibs=unknown
8021 module_cmds=
8022 module_expsym_cmds=
8023 old_archive_from_new_cmds=
8024 old_archive_from_expsyms_cmds=
8025 thread_safe_flag_spec=
8026 whole_archive_flag_spec=
8027 # include_expsyms should be a list of space-separated symbols to be *always*
8028 # included in the symbol list
8029 include_expsyms=
8030 # exclude_expsyms can be an extended regexp of symbols to exclude
8031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8033 # as well as any symbol that contains `d'.
8034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8036 # platforms (ab)use it in PIC code, but their linkers get confused if
8037 # the symbol is explicitly referenced. Since portable code cannot
8038 # rely on this symbol name, it's probably fine to never include it in
8039 # preloaded symbol tables.
8040 # Exclude shared library initialization/finalization symbols.
8041 extract_expsyms_cmds=
8042
8043 case $host_os in
8044 cygwin* | mingw* | pw32* | cegcc*)
8045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8046 # When not using gcc, we currently assume that we are using
8047 # Microsoft Visual C++.
8048 if test "$GCC" != yes; then
8049 with_gnu_ld=no
8050 fi
8051 ;;
8052 interix*)
8053 # we just hope/assume this is gcc and not c89 (= MSVC++)
8054 with_gnu_ld=yes
8055 ;;
8056 openbsd*)
8057 with_gnu_ld=no
8058 ;;
8059 esac
8060
8061 ld_shlibs=yes
8062
8063 # On some targets, GNU ld is compatible enough with the native linker
8064 # that we're better off using the native interface for both.
8065 lt_use_gnu_ld_interface=no
8066 if test "$with_gnu_ld" = yes; then
8067 case $host_os in
8068 aix*)
8069 # The AIX port of GNU ld has always aspired to compatibility
8070 # with the native linker. However, as the warning in the GNU ld
8071 # block says, versions before 2.19.5* couldn't really create working
8072 # shared libraries, regardless of the interface used.
8073 case `$LD -v 2>&1` in
8074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8077 *)
8078 lt_use_gnu_ld_interface=yes
8079 ;;
8080 esac
8081 ;;
8082 *)
8083 lt_use_gnu_ld_interface=yes
8084 ;;
8085 esac
8086 fi
8087
8088 if test "$lt_use_gnu_ld_interface" = yes; then
8089 # If archive_cmds runs LD, not CC, wlarc should be empty
8090 wlarc='${wl}'
8091
8092 # Set some defaults for GNU ld with shared library support. These
8093 # are reset later if shared libraries are not supported. Putting them
8094 # here allows them to be overridden if necessary.
8095 runpath_var=LD_RUN_PATH
8096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8097 export_dynamic_flag_spec='${wl}--export-dynamic'
8098 # ancient GNU ld didn't support --whole-archive et. al.
8099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8100 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8101 else
8102 whole_archive_flag_spec=
8103 fi
8104 supports_anon_versioning=no
8105 case `$LD -v 2>&1` in
8106 *GNU\ gold*) supports_anon_versioning=yes ;;
8107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8110 *\ 2.11.*) ;; # other 2.11 versions
8111 *) supports_anon_versioning=yes ;;
8112 esac
8113
8114 # See if GNU ld supports shared libraries.
8115 case $host_os in
8116 aix[3-9]*)
8117 # On AIX/PPC, the GNU linker is very broken
8118 if test "$host_cpu" != ia64; then
8119 ld_shlibs=no
8120 cat <<_LT_EOF 1>&2
8121
8122*** Warning: the GNU linker, at least up to release 2.19, is reported
8123*** to be unable to reliably create shared libraries on AIX.
8124*** Therefore, libtool is disabling shared libraries support. If you
8125*** really care for shared libraries, you may want to install binutils
8126*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8127*** You will then need to restart the configuration process.
8128
8129_LT_EOF
8130 fi
8131 ;;
8132
8133 amigaos*)
8134 case $host_cpu in
8135 powerpc)
8136 # see comment about AmigaOS4 .so support
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8138 archive_expsym_cmds=''
8139 ;;
8140 m68k)
8141 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)'
8142 hardcode_libdir_flag_spec='-L$libdir'
8143 hardcode_minus_L=yes
8144 ;;
8145 esac
8146 ;;
8147
8148 beos*)
8149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8150 allow_undefined_flag=unsupported
8151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8152 # support --undefined. This deserves some investigation. FIXME
8153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 else
8155 ld_shlibs=no
8156 fi
8157 ;;
8158
8159 cygwin* | mingw* | pw32* | cegcc*)
8160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8161 # as there is no search path for DLLs.
8162 hardcode_libdir_flag_spec='-L$libdir'
8163 export_dynamic_flag_spec='${wl}--export-all-symbols'
8164 allow_undefined_flag=unsupported
8165 always_export_symbols=no
8166 enable_shared_with_static_runtimes=yes
8167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8168
8169 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8171 # If the export-symbols file already is a .def file (1st line
8172 # is EXPORTS), use it as is; otherwise, prepend...
8173 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8174 cp $export_symbols $output_objdir/$soname.def;
8175 else
8176 echo EXPORTS > $output_objdir/$soname.def;
8177 cat $export_symbols >> $output_objdir/$soname.def;
8178 fi~
8179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8180 else
8181 ld_shlibs=no
8182 fi
8183 ;;
8184
8185 haiku*)
8186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8187 link_all_deplibs=yes
8188 ;;
8189
8190 interix[3-9]*)
8191 hardcode_direct=no
8192 hardcode_shlibpath_var=no
8193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8194 export_dynamic_flag_spec='${wl}-E'
8195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8196 # Instead, shared libraries are loaded at an image base (0x10000000 by
8197 # default) and relocated if they conflict, which is a slow very memory
8198 # consuming and fragmenting process. To avoid this, we pick a random,
8199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8202 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'
8203 ;;
8204
8205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8206 tmp_diet=no
8207 if test "$host_os" = linux-dietlibc; then
8208 case $cc_basename in
8209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8210 esac
8211 fi
8212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8213 && test "$tmp_diet" = no
8214 then
8215 tmp_addflag=
8216 tmp_sharedflag='-shared'
8217 case $cc_basename,$host_cpu in
8218 pgcc*) # Portland Group C compiler
8219 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'
8220 tmp_addflag=' $pic_flag'
8221 ;;
8222 pgf77* | pgf90* | pgf95* | pgfortran*)
8223 # Portland Group f77 and f90 compilers
8224 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'
8225 tmp_addflag=' $pic_flag -Mnomain' ;;
8226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8227 tmp_addflag=' -i_dynamic' ;;
8228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8229 tmp_addflag=' -i_dynamic -nofor_main' ;;
8230 ifc* | ifort*) # Intel Fortran compiler
8231 tmp_addflag=' -nofor_main' ;;
8232 lf95*) # Lahey Fortran 8.1
8233 whole_archive_flag_spec=
8234 tmp_sharedflag='--shared' ;;
8235 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8236 tmp_sharedflag='-qmkshrobj'
8237 tmp_addflag= ;;
8238 nvcc*) # Cuda Compiler Driver 2.2
8239 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'
8240 compiler_needs_object=yes
8241 ;;
8242 esac
8243 case `$CC -V 2>&1 | sed 5q` in
8244 *Sun\ C*) # Sun C 5.9
8245 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'
8246 compiler_needs_object=yes
8247 tmp_sharedflag='-G' ;;
8248 *Sun\ F*) # Sun Fortran 8.3
8249 tmp_sharedflag='-G' ;;
8250 esac
8251 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252
8253 if test "x$supports_anon_versioning" = xyes; then
8254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256 echo "local: *; };" >> $output_objdir/$libname.ver~
8257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8258 fi
8259
8260 case $cc_basename in
8261 xlf* | bgf* | bgxlf* | mpixlf*)
8262 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8263 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8264 hardcode_libdir_flag_spec=
8265 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8266 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8267 if test "x$supports_anon_versioning" = xyes; then
8268 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8270 echo "local: *; };" >> $output_objdir/$libname.ver~
8271 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8272 fi
8273 ;;
8274 esac
8275 else
8276 ld_shlibs=no
8277 fi
8278 ;;
8279
8280 netbsd*)
8281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8282 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8283 wlarc=
8284 else
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 fi
8288 ;;
8289
8290 solaris*)
8291 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8292 ld_shlibs=no
8293 cat <<_LT_EOF 1>&2
8294
8295*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8296*** create shared libraries on Solaris systems. Therefore, libtool
8297*** is disabling shared libraries support. We urge you to upgrade GNU
8298*** binutils to release 2.9.1 or newer. Another option is to modify
8299*** your PATH or compiler configuration so that the native linker is
8300*** used, and then restart.
8301
8302_LT_EOF
8303 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8306 else
8307 ld_shlibs=no
8308 fi
8309 ;;
8310
8311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8312 case `$LD -v 2>&1` in
8313 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8314 ld_shlibs=no
8315 cat <<_LT_EOF 1>&2
8316
8317*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8318*** reliably create shared libraries on SCO systems. Therefore, libtool
8319*** is disabling shared libraries support. We urge you to upgrade GNU
8320*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8321*** your PATH or compiler configuration so that the native linker is
8322*** used, and then restart.
8323
8324_LT_EOF
8325 ;;
8326 *)
8327 # For security reasons, it is highly recommended that you always
8328 # use absolute paths for naming shared libraries, and exclude the
8329 # DT_RUNPATH tag from executables and libraries. But doing so
8330 # requires that you compile everything twice, which is a pain.
8331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335 else
8336 ld_shlibs=no
8337 fi
8338 ;;
8339 esac
8340 ;;
8341
8342 sunos4*)
8343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8344 wlarc=
8345 hardcode_direct=yes
8346 hardcode_shlibpath_var=no
8347 ;;
8348
8349 *)
8350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353 else
8354 ld_shlibs=no
8355 fi
8356 ;;
8357 esac
8358
8359 if test "$ld_shlibs" = no; then
8360 runpath_var=
8361 hardcode_libdir_flag_spec=
8362 export_dynamic_flag_spec=
8363 whole_archive_flag_spec=
8364 fi
8365 else
8366 # PORTME fill in a description of your system's linker (not GNU ld)
8367 case $host_os in
8368 aix3*)
8369 allow_undefined_flag=unsupported
8370 always_export_symbols=yes
8371 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'
8372 # Note: this linker hardcodes the directories in LIBPATH if there
8373 # are no directories specified by -L.
8374 hardcode_minus_L=yes
8375 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8376 # Neither direct hardcoding nor static linking is supported with a
8377 # broken collect2.
8378 hardcode_direct=unsupported
8379 fi
8380 ;;
8381
8382 aix[4-9]*)
8383 if test "$host_cpu" = ia64; then
8384 # On IA64, the linker does run time linking by default, so we don't
8385 # have to do anything special.
8386 aix_use_runtimelinking=no
8387 exp_sym_flag='-Bexport'
8388 no_entry_flag=""
8389 else
8390 # If we're using GNU nm, then we don't want the "-C" option.
8391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8392 # Also, AIX nm treats weak defined symbols like other global
8393 # defined symbols, whereas GNU nm marks them as "W".
8394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8395 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'
8396 else
8397 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'
8398 fi
8399 aix_use_runtimelinking=no
8400
8401 # Test if we are trying to use run time linking or normal
8402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8403 # need to do runtime linking.
8404 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8405 for ld_flag in $LDFLAGS; do
8406 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8407 aix_use_runtimelinking=yes
8408 break
8409 fi
8410 done
8411 ;;
8412 esac
8413
8414 exp_sym_flag='-bexport'
8415 no_entry_flag='-bnoentry'
8416 fi
8417
8418 # When large executables or shared objects are built, AIX ld can
8419 # have problems creating the table of contents. If linking a library
8420 # or program results in "error TOC overflow" add -mminimal-toc to
8421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8423
8424 archive_cmds=''
8425 hardcode_direct=yes
8426 hardcode_direct_absolute=yes
8427 hardcode_libdir_separator=':'
8428 link_all_deplibs=yes
8429 file_list_spec='${wl}-f,'
8430
8431 if test "$GCC" = yes; then
8432 case $host_os in aix4.[012]|aix4.[012].*)
8433 # We only want to do this on AIX 4.2 and lower, the check
8434 # below for broken collect2 doesn't work under 4.3+
8435 collect2name=`${CC} -print-prog-name=collect2`
8436 if test -f "$collect2name" &&
8437 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8438 then
8439 # We have reworked collect2
8440 :
8441 else
8442 # We have old collect2
8443 hardcode_direct=unsupported
8444 # It fails to find uninstalled libraries when the uninstalled
8445 # path is not listed in the libpath. Setting hardcode_minus_L
8446 # to unsupported forces relinking
8447 hardcode_minus_L=yes
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_libdir_separator=
8450 fi
8451 ;;
8452 esac
8453 shared_flag='-shared'
8454 if test "$aix_use_runtimelinking" = yes; then
8455 shared_flag="$shared_flag "'${wl}-G'
8456 fi
8457 else
8458 # not using gcc
8459 if test "$host_cpu" = ia64; then
8460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461 # chokes on -Wl,-G. The following line is correct:
8462 shared_flag='-G'
8463 else
8464 if test "$aix_use_runtimelinking" = yes; then
8465 shared_flag='${wl}-G'
8466 else
8467 shared_flag='${wl}-bM:SRE'
8468 fi
8469 fi
8470 fi
8471
8472 export_dynamic_flag_spec='${wl}-bexpall'
8473 # It seems that -bexpall does not export symbols beginning with
8474 # underscore (_), so it is better to generate a list of symbols to export.
8475 always_export_symbols=yes
8476 if test "$aix_use_runtimelinking" = yes; then
8477 # Warning - without using the other runtime loading flags (-brtl),
8478 # -berok will link without error, but may produce a broken library.
8479 allow_undefined_flag='-berok'
8480 # Determine the default libpath from the value encoded in an
8481 # empty executable.
fabfcf5e
KT
8482 if test x$gcc_no_link = xyes; then
8483 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8484fi
8485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8486/* end confdefs.h. */
8487
8488int
8489main ()
8490{
8491
8492 ;
8493 return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_link "$LINENO"; then :
8497
8498lt_aix_libpath_sed='
8499 /Import File Strings/,/^$/ {
8500 /^0/ {
8501 s/^0 *\(.*\)$/\1/
8502 p
8503 }
8504 }'
8505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506# Check for a 64-bit object if we didn't find anything.
8507if test -z "$aix_libpath"; then
8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509fi
8510fi
8511rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8514
8515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516 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"
8517 else
8518 if test "$host_cpu" = ia64; then
8519 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8520 allow_undefined_flag="-z nodefs"
8521 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"
8522 else
8523 # Determine the default libpath from the value encoded in an
8524 # empty executable.
fabfcf5e
KT
8525 if test x$gcc_no_link = xyes; then
8526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8527fi
8528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8529/* end confdefs.h. */
8530
8531int
8532main ()
8533{
8534
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540
8541lt_aix_libpath_sed='
8542 /Import File Strings/,/^$/ {
8543 /^0/ {
8544 s/^0 *\(.*\)$/\1/
8545 p
8546 }
8547 }'
8548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8549# Check for a 64-bit object if we didn't find anything.
8550if test -z "$aix_libpath"; then
8551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8552fi
8553fi
8554rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557
8558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559 # Warning - without using the other run time loading flags,
8560 # -berok will link without error, but may produce a broken library.
8561 no_undefined_flag=' ${wl}-bernotok'
8562 allow_undefined_flag=' ${wl}-berok'
8563 if test "$with_gnu_ld" = yes; then
8564 # We only use this code for GNU lds that support --whole-archive.
8565 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8566 else
8567 # Exported symbols can be pulled into shared objects from archives
8568 whole_archive_flag_spec='$convenience'
8569 fi
8570 archive_cmds_need_lc=yes
8571 # This is similar to how AIX traditionally builds its shared libraries.
8572 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'
8573 fi
8574 fi
8575 ;;
8576
8577 amigaos*)
8578 case $host_cpu in
8579 powerpc)
8580 # see comment about AmigaOS4 .so support
8581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 archive_expsym_cmds=''
8583 ;;
8584 m68k)
8585 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)'
8586 hardcode_libdir_flag_spec='-L$libdir'
8587 hardcode_minus_L=yes
8588 ;;
8589 esac
8590 ;;
8591
8592 bsdi[45]*)
8593 export_dynamic_flag_spec=-rdynamic
8594 ;;
8595
8596 cygwin* | mingw* | pw32* | cegcc*)
8597 # When not using gcc, we currently assume that we are using
8598 # Microsoft Visual C++.
8599 # hardcode_libdir_flag_spec is actually meaningless, as there is
8600 # no search path for DLLs.
8601 hardcode_libdir_flag_spec=' '
8602 allow_undefined_flag=unsupported
8603 # Tell ltmain to make .lib files, not .a files.
8604 libext=lib
8605 # Tell ltmain to make .dll files, not .so files.
8606 shrext_cmds=".dll"
8607 # FIXME: Setting linknames here is a bad hack.
8608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8609 # The linker will automatically build a .lib file if we build a DLL.
8610 old_archive_from_new_cmds='true'
8611 # FIXME: Should let the user specify the lib program.
8612 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8613 fix_srcfile_path='`cygpath -w "$srcfile"`'
8614 enable_shared_with_static_runtimes=yes
8615 ;;
8616
8617 darwin* | rhapsody*)
8618
8619
8620 archive_cmds_need_lc=no
8621 hardcode_direct=no
8622 hardcode_automatic=yes
8623 hardcode_shlibpath_var=unsupported
8624 if test "$lt_cv_ld_force_load" = "yes"; then
8625 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\"`'
8626 else
8627 whole_archive_flag_spec=''
8628 fi
8629 link_all_deplibs=yes
8630 allow_undefined_flag="$_lt_dar_allow_undefined"
8631 case $cc_basename in
8632 ifort*) _lt_dar_can_shared=yes ;;
8633 *) _lt_dar_can_shared=$GCC ;;
8634 esac
8635 if test "$_lt_dar_can_shared" = "yes"; then
8636 output_verbose_link_cmd=func_echo_all
8637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8639 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}"
8640 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}"
8641
8642 else
8643 ld_shlibs=no
8644 fi
8645
8646 ;;
8647
8648 dgux*)
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_libdir_flag_spec='-L$libdir'
8651 hardcode_shlibpath_var=no
8652 ;;
8653
1ec601bf
FXC
8654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8655 # support. Future versions do this automatically, but an explicit c++rt0.o
8656 # does not break anything, and helps significantly (at the cost of a little
8657 # extra space).
8658 freebsd2.2*)
8659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8660 hardcode_libdir_flag_spec='-R$libdir'
8661 hardcode_direct=yes
8662 hardcode_shlibpath_var=no
8663 ;;
8664
8665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8666 freebsd2*)
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_direct=yes
8669 hardcode_minus_L=yes
8670 hardcode_shlibpath_var=no
8671 ;;
8672
8673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8674 freebsd* | dragonfly*)
8675 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8676 hardcode_libdir_flag_spec='-R$libdir'
8677 hardcode_direct=yes
8678 hardcode_shlibpath_var=no
8679 ;;
8680
8681 hpux9*)
8682 if test "$GCC" = yes; then
8683 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'
8684 else
8685 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'
8686 fi
8687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689 hardcode_direct=yes
8690
8691 # hardcode_minus_L: Not really in the search PATH,
8692 # but as the default location of the library.
8693 hardcode_minus_L=yes
8694 export_dynamic_flag_spec='${wl}-E'
8695 ;;
8696
8697 hpux10*)
8698 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 else
8701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8702 fi
8703 if test "$with_gnu_ld" = no; then
8704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8705 hardcode_libdir_flag_spec_ld='+b $libdir'
8706 hardcode_libdir_separator=:
8707 hardcode_direct=yes
8708 hardcode_direct_absolute=yes
8709 export_dynamic_flag_spec='${wl}-E'
8710 # hardcode_minus_L: Not really in the search PATH,
8711 # but as the default location of the library.
8712 hardcode_minus_L=yes
8713 fi
8714 ;;
8715
8716 hpux11*)
8717 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8718 case $host_cpu in
8719 hppa*64*)
8720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 ;;
8722 ia64*)
8723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724 ;;
8725 *)
8726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8727 ;;
8728 esac
8729 else
8730 case $host_cpu in
8731 hppa*64*)
8732 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 ;;
8734 ia64*)
8735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8736 ;;
8737 *)
8738
8739 # Older versions of the 11.00 compiler do not understand -b yet
8740 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8742$as_echo_n "checking if $CC understands -b... " >&6; }
8743if test "${lt_cv_prog_compiler__b+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745else
8746 lt_cv_prog_compiler__b=no
8747 save_LDFLAGS="$LDFLAGS"
8748 LDFLAGS="$LDFLAGS -b"
8749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8751 # The linker can only warn and ignore the option if not recognized
8752 # So say no if there are warnings
8753 if test -s conftest.err; then
8754 # Append any errors to the config.log.
8755 cat conftest.err 1>&5
8756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758 if diff conftest.exp conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler__b=yes
8760 fi
8761 else
8762 lt_cv_prog_compiler__b=yes
8763 fi
8764 fi
8765 $RM -r conftest*
8766 LDFLAGS="$save_LDFLAGS"
8767
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8770$as_echo "$lt_cv_prog_compiler__b" >&6; }
8771
8772if test x"$lt_cv_prog_compiler__b" = xyes; then
8773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8774else
8775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8776fi
8777
8778 ;;
8779 esac
8780 fi
8781 if test "$with_gnu_ld" = no; then
8782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8783 hardcode_libdir_separator=:
8784
8785 case $host_cpu in
8786 hppa*64*|ia64*)
8787 hardcode_direct=no
8788 hardcode_shlibpath_var=no
8789 ;;
8790 *)
8791 hardcode_direct=yes
8792 hardcode_direct_absolute=yes
8793 export_dynamic_flag_spec='${wl}-E'
8794
8795 # hardcode_minus_L: Not really in the search PATH,
8796 # but as the default location of the library.
8797 hardcode_minus_L=yes
8798 ;;
8799 esac
8800 fi
8801 ;;
8802
8803 irix5* | irix6* | nonstopux*)
8804 if test "$GCC" = yes; then
8805 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'
8806 # Try to use the -exported_symbol ld option, if it does not
8807 # work, assume that -exports_file does not work either and
8808 # implicitly export all symbols.
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
fabfcf5e
KT
8811 if test x$gcc_no_link = xyes; then
8812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8813fi
8814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8815/* end confdefs.h. */
8816int foo(void) {}
8817_ACEOF
8818if ac_fn_c_try_link "$LINENO"; then :
8819 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'
8820
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LDFLAGS="$save_LDFLAGS"
8825 else
8826 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'
8827 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'
8828 fi
8829 archive_cmds_need_lc='no'
8830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8831 hardcode_libdir_separator=:
8832 inherit_rpath=yes
8833 link_all_deplibs=yes
8834 ;;
8835
8836 netbsd*)
8837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8839 else
8840 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8841 fi
8842 hardcode_libdir_flag_spec='-R$libdir'
8843 hardcode_direct=yes
8844 hardcode_shlibpath_var=no
8845 ;;
8846
8847 newsos6)
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_direct=yes
8850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8851 hardcode_libdir_separator=:
8852 hardcode_shlibpath_var=no
8853 ;;
8854
8855 *nto* | *qnx*)
8856 ;;
8857
8858 openbsd*)
8859 if test -f /usr/libexec/ld.so; then
8860 hardcode_direct=yes
8861 hardcode_shlibpath_var=no
8862 hardcode_direct_absolute=yes
8863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8867 export_dynamic_flag_spec='${wl}-E'
8868 else
8869 case $host_os in
8870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8872 hardcode_libdir_flag_spec='-R$libdir'
8873 ;;
8874 *)
8875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877 ;;
8878 esac
8879 fi
8880 else
8881 ld_shlibs=no
8882 fi
8883 ;;
8884
8885 os2*)
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 hardcode_minus_L=yes
8888 allow_undefined_flag=unsupported
8889 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'
8890 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8891 ;;
8892
8893 osf3*)
8894 if test "$GCC" = yes; then
8895 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8896 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'
8897 else
8898 allow_undefined_flag=' -expect_unresolved \*'
8899 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'
8900 fi
8901 archive_cmds_need_lc='no'
8902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903 hardcode_libdir_separator=:
8904 ;;
8905
8906 osf4* | osf5*) # as osf3* with the addition of -msym flag
8907 if test "$GCC" = yes; then
8908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8909 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'
8910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911 else
8912 allow_undefined_flag=' -expect_unresolved \*'
8913 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'
8914 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~
8915 $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'
8916
8917 # Both c and cxx compiler support -rpath directly
8918 hardcode_libdir_flag_spec='-rpath $libdir'
8919 fi
8920 archive_cmds_need_lc='no'
8921 hardcode_libdir_separator=:
8922 ;;
8923
8924 solaris*)
8925 no_undefined_flag=' -z defs'
8926 if test "$GCC" = yes; then
8927 wlarc='${wl}'
8928 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8930 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8931 else
8932 case `$CC -V 2>&1` in
8933 *"Compilers 5.0"*)
8934 wlarc=''
8935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8938 ;;
8939 *)
8940 wlarc='${wl}'
8941 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8943 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8944 ;;
8945 esac
8946 fi
8947 hardcode_libdir_flag_spec='-R$libdir'
8948 hardcode_shlibpath_var=no
8949 case $host_os in
8950 solaris2.[0-5] | solaris2.[0-5].*) ;;
8951 *)
8952 # The compiler driver will combine and reorder linker options,
8953 # but understands `-z linker_flag'. GCC discards it without `$wl',
8954 # but is careful enough not to reorder.
8955 # Supported since Solaris 2.6 (maybe 2.5.1?)
8956 if test "$GCC" = yes; then
8957 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8958 else
8959 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8960 fi
8961 ;;
8962 esac
8963 link_all_deplibs=yes
8964 ;;
8965
8966 sunos4*)
8967 if test "x$host_vendor" = xsequent; then
8968 # Use $CC to link under sequent, because it throws in some extra .o
8969 # files that make .init and .fini sections work.
8970 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8971 else
8972 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8973 fi
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_direct=yes
8976 hardcode_minus_L=yes
8977 hardcode_shlibpath_var=no
8978 ;;
8979
8980 sysv4)
8981 case $host_vendor in
8982 sni)
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_direct=yes # is this really true???
8985 ;;
8986 siemens)
8987 ## LD is ld it makes a PLAMLIB
8988 ## CC just makes a GrossModule.
8989 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8990 reload_cmds='$CC -r -o $output$reload_objs'
8991 hardcode_direct=no
8992 ;;
8993 motorola)
8994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8996 ;;
8997 esac
8998 runpath_var='LD_RUN_PATH'
8999 hardcode_shlibpath_var=no
9000 ;;
9001
9002 sysv4.3*)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_shlibpath_var=no
9005 export_dynamic_flag_spec='-Bexport'
9006 ;;
9007
9008 sysv4*MP*)
9009 if test -d /usr/nec; then
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_shlibpath_var=no
9012 runpath_var=LD_RUN_PATH
9013 hardcode_runpath_var=yes
9014 ld_shlibs=yes
9015 fi
9016 ;;
9017
9018 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9019 no_undefined_flag='${wl}-z,text'
9020 archive_cmds_need_lc=no
9021 hardcode_shlibpath_var=no
9022 runpath_var='LD_RUN_PATH'
9023
9024 if test "$GCC" = yes; then
9025 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9026 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9027 else
9028 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 fi
9031 ;;
9032
9033 sysv5* | sco3.2v5* | sco5v6*)
9034 # Note: We can NOT use -z defs as we might desire, because we do not
9035 # link with -lc, and that would cause any symbols used from libc to
9036 # always be unresolved, which means just about no library would
9037 # ever link correctly. If we're not using GNU ld we use -z text
9038 # though, which does catch some bad symbols but isn't as heavy-handed
9039 # as -z defs.
9040 no_undefined_flag='${wl}-z,text'
9041 allow_undefined_flag='${wl}-z,nodefs'
9042 archive_cmds_need_lc=no
9043 hardcode_shlibpath_var=no
9044 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9045 hardcode_libdir_separator=':'
9046 link_all_deplibs=yes
9047 export_dynamic_flag_spec='${wl}-Bexport'
9048 runpath_var='LD_RUN_PATH'
9049
9050 if test "$GCC" = yes; then
9051 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 else
9054 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 fi
9057 ;;
9058
9059 uts4*)
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_shlibpath_var=no
9063 ;;
9064
9065 *)
9066 ld_shlibs=no
9067 ;;
9068 esac
9069
9070 if test x$host_vendor = xsni; then
9071 case $host in
9072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9073 export_dynamic_flag_spec='${wl}-Blargedynsym'
9074 ;;
9075 esac
9076 fi
9077 fi
9078
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9080$as_echo "$ld_shlibs" >&6; }
9081test "$ld_shlibs" = no && can_build_shared=no
9082
9083with_gnu_ld=$with_gnu_ld
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099#
9100# Do we need to explicitly link libc?
9101#
9102case "x$archive_cmds_need_lc" in
9103x|xyes)
9104 # Assume -lc should be added
9105 archive_cmds_need_lc=yes
9106
9107 if test "$enable_shared" = yes && test "$GCC" = yes; then
9108 case $archive_cmds in
9109 *'~'*)
9110 # FIXME: we may have to deal with multi-command sequences.
9111 ;;
9112 '$CC '*)
9113 # Test whether the compiler implicitly links with -lc since on some
9114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9115 # to ld, don't add -lc before -lgcc.
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9117$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9118if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120else
9121 $RM conftest*
9122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123
9124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9125 (eval $ac_compile) 2>&5
9126 ac_status=$?
9127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9128 test $ac_status = 0; } 2>conftest.err; then
9129 soname=conftest
9130 lib=conftest
9131 libobjs=conftest.$ac_objext
9132 deplibs=
9133 wl=$lt_prog_compiler_wl
9134 pic_flag=$lt_prog_compiler_pic
9135 compiler_flags=-v
9136 linker_flags=-v
9137 verstring=
9138 output_objdir=.
9139 libname=conftest
9140 lt_save_allow_undefined_flag=$allow_undefined_flag
9141 allow_undefined_flag=
9142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9143 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9144 ac_status=$?
9145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9146 test $ac_status = 0; }
9147 then
9148 lt_cv_archive_cmds_need_lc=no
9149 else
9150 lt_cv_archive_cmds_need_lc=yes
9151 fi
9152 allow_undefined_flag=$lt_save_allow_undefined_flag
9153 else
9154 cat conftest.err 1>&5
9155 fi
9156 $RM conftest*
9157
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9160$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9161 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9162 ;;
9163 esac
9164 fi
9165 ;;
9166esac
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
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9325$as_echo_n "checking dynamic linker characteristics... " >&6; }
9326
9327if test "$GCC" = yes; then
9328 case $host_os in
9329 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9330 *) lt_awk_arg="/^libraries:/" ;;
9331 esac
9332 case $host_os in
9333 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9334 *) lt_sed_strip_eq="s,=/,/,g" ;;
9335 esac
9336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9337 case $lt_search_path_spec in
9338 *\;*)
9339 # if the path contains ";" then we assume it to be the separator
9340 # otherwise default to the standard path separator (i.e. ":") - it is
9341 # assumed that no part of a normal pathname contains ";" but that should
9342 # okay in the real world where ";" in dirpaths is itself problematic.
9343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9344 ;;
9345 *)
9346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9347 ;;
9348 esac
9349 # Ok, now we have the path, separated by spaces, we can step through it
9350 # and add multilib dir if necessary.
9351 lt_tmp_lt_search_path_spec=
9352 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9353 for lt_sys_path in $lt_search_path_spec; do
9354 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9356 else
9357 test -d "$lt_sys_path" && \
9358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9359 fi
9360 done
9361 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9362BEGIN {RS=" "; FS="/|\n";} {
9363 lt_foo="";
9364 lt_count=0;
9365 for (lt_i = NF; lt_i > 0; lt_i--) {
9366 if ($lt_i != "" && $lt_i != ".") {
9367 if ($lt_i == "..") {
9368 lt_count++;
9369 } else {
9370 if (lt_count == 0) {
9371 lt_foo="/" $lt_i lt_foo;
9372 } else {
9373 lt_count--;
9374 }
9375 }
9376 }
9377 }
9378 if (lt_foo != "") { lt_freq[lt_foo]++; }
9379 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9380}'`
9381 # AWK program above erroneously prepends '/' to C:/dos/paths
9382 # for these hosts.
9383 case $host_os in
9384 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9385 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9386 esac
9387 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9388else
9389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9390fi
9391library_names_spec=
9392libname_spec='lib$name'
9393soname_spec=
9394shrext_cmds=".so"
9395postinstall_cmds=
9396postuninstall_cmds=
9397finish_cmds=
9398finish_eval=
9399shlibpath_var=
9400shlibpath_overrides_runpath=unknown
9401version_type=none
9402dynamic_linker="$host_os ld.so"
9403sys_lib_dlsearch_path_spec="/lib /usr/lib"
9404need_lib_prefix=unknown
9405hardcode_into_libs=no
9406
9407# when you set need_version to no, make sure it does not cause -set_version
9408# flags to be left without arguments
9409need_version=unknown
9410
9411case $host_os in
9412aix3*)
9413 version_type=linux
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9415 shlibpath_var=LIBPATH
9416
9417 # AIX 3 has no versioning support, so we append a major version to the name.
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 ;;
9420
9421aix[4-9]*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 hardcode_into_libs=yes
9426 if test "$host_cpu" = ia64; then
9427 # AIX 5 supports IA64
9428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 else
9431 # With GCC up to 2.95.x, collect2 would create an import file
9432 # for dependence libraries. The import file would start with
9433 # the line `#! .'. This would cause the generated library to
9434 # depend on `.', always an invalid library. This was fixed in
9435 # development snapshots of GCC prior to 3.0.
9436 case $host_os in
9437 aix4 | aix4.[01] | aix4.[01].*)
9438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9439 echo ' yes '
9440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9441 :
9442 else
9443 can_build_shared=no
9444 fi
9445 ;;
9446 esac
9447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9448 # soname into executable. Probably we can add versioning support to
9449 # collect2, so additional links can be useful in future.
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9452 # instead of lib<name>.a to let people know that these are not
9453 # typical AIX shared libraries.
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 else
9456 # We preserve .a as extension for shared libraries through AIX4.2
9457 # and later when we are not doing run time linking.
9458 library_names_spec='${libname}${release}.a $libname.a'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 fi
9461 shlibpath_var=LIBPATH
9462 fi
9463 ;;
9464
9465amigaos*)
9466 case $host_cpu in
9467 powerpc)
9468 # Since July 2007 AmigaOS4 officially supports .so libraries.
9469 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 ;;
9472 m68k)
9473 library_names_spec='$libname.ixlibrary $libname.a'
9474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9475 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'
9476 ;;
9477 esac
9478 ;;
9479
9480beos*)
9481 library_names_spec='${libname}${shared_ext}'
9482 dynamic_linker="$host_os ld.so"
9483 shlibpath_var=LIBRARY_PATH
9484 ;;
9485
9486bsdi[45]*)
9487 version_type=linux
9488 need_version=no
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9495 # the default ld.so.conf also contains /usr/contrib/lib and
9496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9497 # libtool to hard-code these into programs
9498 ;;
9499
9500cygwin* | mingw* | pw32* | cegcc*)
9501 version_type=windows
9502 shrext_cmds=".dll"
9503 need_version=no
9504 need_lib_prefix=no
9505
9506 case $GCC,$host_os in
9507 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9508 library_names_spec='$libname.dll.a'
9509 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9510 postinstall_cmds='base_file=`basename \${file}`~
9511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9512 dldir=$destdir/`dirname \$dlpath`~
9513 test -d \$dldir || mkdir -p \$dldir~
9514 $install_prog $dir/$dlname \$dldir/$dlname~
9515 chmod a+x \$dldir/$dlname~
9516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9518 fi'
9519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9520 dlpath=$dir/\$dldll~
9521 $RM \$dlpath'
9522 shlibpath_overrides_runpath=yes
9523
9524 case $host_os in
9525 cygwin*)
9526 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528
9529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9530 ;;
9531 mingw* | cegcc*)
9532 # MinGW DLLs use traditional 'lib' prefix
9533 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9534 ;;
9535 pw32*)
9536 # pw32 DLLs use 'pw' prefix rather than 'lib'
9537 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9538 ;;
9539 esac
9540 ;;
9541
9542 *)
9543 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9544 ;;
9545 esac
9546 dynamic_linker='Win32 ld.exe'
9547 # FIXME: first we should search . and the directory the executable is in
9548 shlibpath_var=PATH
9549 ;;
9550
9551darwin* | rhapsody*)
9552 dynamic_linker="$host_os dyld"
9553 version_type=darwin
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9557 soname_spec='${libname}${release}${major}$shared_ext'
9558 shlibpath_overrides_runpath=yes
9559 shlibpath_var=DYLD_LIBRARY_PATH
9560 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9561
9562 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9564 ;;
9565
9566dgux*)
9567 version_type=linux
9568 need_lib_prefix=no
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 ;;
9574
1ec601bf
FXC
9575freebsd* | dragonfly*)
9576 # DragonFly does not have aout. When/if they implement a new
9577 # versioning mechanism, adjust this.
9578 if test -x /usr/bin/objformat; then
9579 objformat=`/usr/bin/objformat`
9580 else
9581 case $host_os in
9582 freebsd[123]*) objformat=aout ;;
9583 *) objformat=elf ;;
9584 esac
9585 fi
9586 version_type=freebsd-$objformat
9587 case $version_type in
9588 freebsd-elf*)
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9590 need_version=no
9591 need_lib_prefix=no
9592 ;;
9593 freebsd-*)
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9595 need_version=yes
9596 ;;
9597 esac
9598 shlibpath_var=LD_LIBRARY_PATH
9599 case $host_os in
9600 freebsd2*)
9601 shlibpath_overrides_runpath=yes
9602 ;;
9603 freebsd3.[01]* | freebsdelf3.[01]*)
9604 shlibpath_overrides_runpath=yes
9605 hardcode_into_libs=yes
9606 ;;
9607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9609 shlibpath_overrides_runpath=no
9610 hardcode_into_libs=yes
9611 ;;
9612 *) # from 4.6 on, and DragonFly
9613 shlibpath_overrides_runpath=yes
9614 hardcode_into_libs=yes
9615 ;;
9616 esac
9617 ;;
9618
9619gnu*)
9620 version_type=linux
9621 need_lib_prefix=no
9622 need_version=no
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 hardcode_into_libs=yes
9627 ;;
9628
9629haiku*)
9630 version_type=linux
9631 need_lib_prefix=no
9632 need_version=no
9633 dynamic_linker="$host_os runtime_loader"
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9636 shlibpath_var=LIBRARY_PATH
9637 shlibpath_overrides_runpath=yes
9638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9639 hardcode_into_libs=yes
9640 ;;
9641
9642hpux9* | hpux10* | hpux11*)
9643 # Give a soname corresponding to the major version so that dld.sl refuses to
9644 # link against other versions.
9645 version_type=sunos
9646 need_lib_prefix=no
9647 need_version=no
9648 case $host_cpu in
9649 ia64*)
9650 shrext_cmds='.so'
9651 hardcode_into_libs=yes
9652 dynamic_linker="$host_os dld.so"
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 if test "X$HPUX_IA64_MODE" = X32; then
9658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9659 else
9660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9661 fi
9662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9663 ;;
9664 hppa*64*)
9665 shrext_cmds='.sl'
9666 hardcode_into_libs=yes
9667 dynamic_linker="$host_os dld.sl"
9668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9674 ;;
9675 *)
9676 shrext_cmds='.sl'
9677 dynamic_linker="$host_os dld.sl"
9678 shlibpath_var=SHLIB_PATH
9679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 ;;
9683 esac
9684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9685 postinstall_cmds='chmod 555 $lib'
9686 # or fails outright, so override atomically:
9687 install_override_mode=555
9688 ;;
9689
9690interix[3-9]*)
9691 version_type=linux
9692 need_lib_prefix=no
9693 need_version=no
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 shlibpath_overrides_runpath=no
9699 hardcode_into_libs=yes
9700 ;;
9701
9702irix5* | irix6* | nonstopux*)
9703 case $host_os in
9704 nonstopux*) version_type=nonstopux ;;
9705 *)
9706 if test "$lt_cv_prog_gnu_ld" = yes; then
9707 version_type=linux
9708 else
9709 version_type=irix
9710 fi ;;
9711 esac
9712 need_lib_prefix=no
9713 need_version=no
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9716 case $host_os in
9717 irix5* | nonstopux*)
9718 libsuff= shlibsuff=
9719 ;;
9720 *)
9721 case $LD in # libtool.m4 will add one of these switches to LD
9722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9723 libsuff= shlibsuff= libmagic=32-bit;;
9724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9725 libsuff=32 shlibsuff=N32 libmagic=N32;;
9726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9728 *) libsuff= shlibsuff= libmagic=never-match;;
9729 esac
9730 ;;
9731 esac
9732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9733 shlibpath_overrides_runpath=no
9734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9736 hardcode_into_libs=yes
9737 ;;
9738
9739# No shared lib support for Linux oldld, aout, or coff.
9740linux*oldld* | linux*aout* | linux*coff*)
9741 dynamic_linker=no
9742 ;;
9743
9744# This must be Linux ELF.
9745linux* | k*bsd*-gnu | kopensolaris*-gnu)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=no
9754
9755 # Some binutils ld are patched to set DT_RUNPATH
9756 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758else
9759 lt_cv_shlibpath_overrides_runpath=no
9760 save_LDFLAGS=$LDFLAGS
9761 save_libdir=$libdir
9762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
fabfcf5e
KT
9764 if test x$gcc_no_link = xyes; then
9765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9766fi
9767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
9768/* end confdefs.h. */
9769
9770int
9771main ()
9772{
9773
9774 ;
9775 return 0;
9776}
9777_ACEOF
9778if ac_fn_c_try_link "$LINENO"; then :
9779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9780 lt_cv_shlibpath_overrides_runpath=yes
9781fi
9782fi
9783rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LDFLAGS=$save_LDFLAGS
9786 libdir=$save_libdir
9787
9788fi
9789
9790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9791
9792 # This implies no fast_install, which is unacceptable.
9793 # Some rework will be needed to allow for fast_install
9794 # before this can be enabled.
9795 hardcode_into_libs=yes
9796
9797 # Append ld.so.conf contents to the search path
9798 if test -f /etc/ld.so.conf; then
9799 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' ' '`
9800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9801 fi
9802
9803 # We used to test for /lib/ld.so.1 and disable shared libraries on
9804 # powerpc, because MkLinux only supported shared libraries with the
9805 # GNU dynamic linker. Since this was broken with cross compilers,
9806 # most powerpc-linux boxes support dynamic linking these days and
9807 # people can always --disable-shared, the test was removed, and we
9808 # assume the GNU/Linux dynamic linker is in use.
9809 dynamic_linker='GNU/Linux ld.so'
9810 ;;
9811
9812netbsd*)
9813 version_type=sunos
9814 need_lib_prefix=no
9815 need_version=no
9816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9819 dynamic_linker='NetBSD (a.out) ld.so'
9820 else
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 dynamic_linker='NetBSD ld.elf_so'
9824 fi
9825 shlibpath_var=LD_LIBRARY_PATH
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829
9830newsos6)
9831 version_type=linux
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=yes
9835 ;;
9836
9837*nto* | *qnx*)
9838 version_type=qnx
9839 need_lib_prefix=no
9840 need_version=no
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=no
9845 hardcode_into_libs=yes
9846 dynamic_linker='ldqnx.so'
9847 ;;
9848
9849openbsd*)
9850 version_type=sunos
9851 sys_lib_dlsearch_path_spec="/usr/lib"
9852 need_lib_prefix=no
9853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9854 case $host_os in
9855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9856 *) need_version=no ;;
9857 esac
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862 case $host_os in
9863 openbsd2.[89] | openbsd2.[89].*)
9864 shlibpath_overrides_runpath=no
9865 ;;
9866 *)
9867 shlibpath_overrides_runpath=yes
9868 ;;
9869 esac
9870 else
9871 shlibpath_overrides_runpath=yes
9872 fi
9873 ;;
9874
9875os2*)
9876 libname_spec='$name'
9877 shrext_cmds=".dll"
9878 need_lib_prefix=no
9879 library_names_spec='$libname${shared_ext} $libname.a'
9880 dynamic_linker='OS/2 ld.exe'
9881 shlibpath_var=LIBPATH
9882 ;;
9883
9884osf3* | osf4* | osf5*)
9885 version_type=osf
9886 need_lib_prefix=no
9887 need_version=no
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9893 ;;
9894
9895rdos*)
9896 dynamic_linker=no
9897 ;;
9898
9899solaris*)
9900 version_type=linux
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=yes
9907 hardcode_into_libs=yes
9908 # ldd complains unless libraries are executable
9909 postinstall_cmds='chmod +x $lib'
9910 ;;
9911
9912sunos4*)
9913 version_type=sunos
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 if test "$with_gnu_ld" = yes; then
9919 need_lib_prefix=no
9920 fi
9921 need_version=yes
9922 ;;
9923
9924sysv4 | sysv4.3*)
9925 version_type=linux
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 case $host_vendor in
9930 sni)
9931 shlibpath_overrides_runpath=no
9932 need_lib_prefix=no
9933 runpath_var=LD_RUN_PATH
9934 ;;
9935 siemens)
9936 need_lib_prefix=no
9937 ;;
9938 motorola)
9939 need_lib_prefix=no
9940 need_version=no
9941 shlibpath_overrides_runpath=no
9942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9943 ;;
9944 esac
9945 ;;
9946
9947sysv4*MP*)
9948 if test -d /usr/nec ;then
9949 version_type=linux
9950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9951 soname_spec='$libname${shared_ext}.$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 fi
9954 ;;
9955
9956sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9957 version_type=freebsd-elf
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 if test "$with_gnu_ld" = yes; then
9966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9967 else
9968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9969 case $host_os in
9970 sco3.2v5*)
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9972 ;;
9973 esac
9974 fi
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9976 ;;
9977
9978tpf*)
9979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9980 version_type=linux
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9987 ;;
9988
9989uts4*)
9990 version_type=linux
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 ;;
9995
9996*)
9997 dynamic_linker=no
9998 ;;
9999esac
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10001$as_echo "$dynamic_linker" >&6; }
10002test "$dynamic_linker" = no && can_build_shared=no
10003
10004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10005if test "$GCC" = yes; then
10006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10007fi
10008
10009if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10011fi
10012if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10014fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10108$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10109hardcode_action=
10110if test -n "$hardcode_libdir_flag_spec" ||
10111 test -n "$runpath_var" ||
10112 test "X$hardcode_automatic" = "Xyes" ; then
10113
10114 # We can hardcode non-existent directories.
10115 if test "$hardcode_direct" != no &&
10116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10117 # have to relink, otherwise we might link with an installed library
10118 # when we should be linking with a yet-to-be-installed one
10119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10120 test "$hardcode_minus_L" != no; then
10121 # Linking always hardcodes the temporary library directory.
10122 hardcode_action=relink
10123 else
10124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10125 hardcode_action=immediate
10126 fi
10127else
10128 # We cannot hardcode anything, or else we can only hardcode existing
10129 # directories.
10130 hardcode_action=unsupported
10131fi
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10133$as_echo "$hardcode_action" >&6; }
10134
10135if test "$hardcode_action" = relink ||
10136 test "$inherit_rpath" = yes; then
10137 # Fast installation is not supported
10138 enable_fast_install=no
10139elif test "$shlibpath_overrides_runpath" = yes ||
10140 test "$enable_shared" = no; then
10141 # Fast installation is not necessary
10142 enable_fast_install=needless
10143fi
10144
10145
10146
10147
10148
10149
10150 if test "x$enable_dlopen" != xyes; then
10151 enable_dlopen=unknown
10152 enable_dlopen_self=unknown
10153 enable_dlopen_self_static=unknown
10154else
10155 lt_cv_dlopen=no
10156 lt_cv_dlopen_libs=
10157
10158 case $host_os in
10159 beos*)
10160 lt_cv_dlopen="load_add_on"
10161 lt_cv_dlopen_libs=
10162 lt_cv_dlopen_self=yes
10163 ;;
10164
10165 mingw* | pw32* | cegcc*)
10166 lt_cv_dlopen="LoadLibrary"
10167 lt_cv_dlopen_libs=
10168 ;;
10169
10170 cygwin*)
10171 lt_cv_dlopen="dlopen"
10172 lt_cv_dlopen_libs=
10173 ;;
10174
10175 darwin*)
10176 # if libdl is installed we need to link against it
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10178$as_echo_n "checking for dlopen in -ldl... " >&6; }
10179if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181else
10182 ac_check_lib_save_LIBS=$LIBS
10183LIBS="-ldl $LIBS"
fabfcf5e
KT
10184if test x$gcc_no_link = xyes; then
10185 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10186fi
1ec601bf
FXC
10187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189
10190/* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193#ifdef __cplusplus
10194extern "C"
10195#endif
10196char dlopen ();
10197int
10198main ()
10199{
10200return dlopen ();
10201 ;
10202 return 0;
10203}
10204_ACEOF
10205if ac_fn_c_try_link "$LINENO"; then :
10206 ac_cv_lib_dl_dlopen=yes
10207else
10208 ac_cv_lib_dl_dlopen=no
10209fi
10210rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10215$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10216if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218else
10219
10220 lt_cv_dlopen="dyld"
10221 lt_cv_dlopen_libs=
10222 lt_cv_dlopen_self=yes
10223
10224fi
10225
10226 ;;
10227
10228 *)
10229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10230if test "x$ac_cv_func_shl_load" = x""yes; then :
10231 lt_cv_dlopen="shl_load"
10232else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10234$as_echo_n "checking for shl_load in -ldld... " >&6; }
10235if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237else
10238 ac_check_lib_save_LIBS=$LIBS
10239LIBS="-ldld $LIBS"
fabfcf5e
KT
10240if test x$gcc_no_link = xyes; then
10241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10242fi
1ec601bf
FXC
10243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h. */
10245
10246/* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249#ifdef __cplusplus
10250extern "C"
10251#endif
10252char shl_load ();
10253int
10254main ()
10255{
10256return shl_load ();
10257 ;
10258 return 0;
10259}
10260_ACEOF
10261if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_dld_shl_load=yes
10263else
10264 ac_cv_lib_dld_shl_load=no
10265fi
10266rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268LIBS=$ac_check_lib_save_LIBS
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10272if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10274else
10275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10276if test "x$ac_cv_func_dlopen" = x""yes; then :
10277 lt_cv_dlopen="dlopen"
10278else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10280$as_echo_n "checking for dlopen in -ldl... " >&6; }
10281if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283else
10284 ac_check_lib_save_LIBS=$LIBS
10285LIBS="-ldl $LIBS"
fabfcf5e
KT
10286if test x$gcc_no_link = xyes; then
10287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10288fi
1ec601bf
FXC
10289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h. */
10291
10292/* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295#ifdef __cplusplus
10296extern "C"
10297#endif
10298char dlopen ();
10299int
10300main ()
10301{
10302return dlopen ();
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dl_dlopen=yes
10309else
10310 ac_cv_lib_dl_dlopen=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314LIBS=$ac_check_lib_save_LIBS
10315fi
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10322$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10323if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325else
10326 ac_check_lib_save_LIBS=$LIBS
10327LIBS="-lsvld $LIBS"
fabfcf5e
KT
10328if test x$gcc_no_link = xyes; then
10329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10330fi
1ec601bf
FXC
10331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h. */
10333
10334/* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10337#ifdef __cplusplus
10338extern "C"
10339#endif
10340char dlopen ();
10341int
10342main ()
10343{
10344return dlopen ();
10345 ;
10346 return 0;
10347}
10348_ACEOF
10349if ac_fn_c_try_link "$LINENO"; then :
10350 ac_cv_lib_svld_dlopen=yes
10351else
10352 ac_cv_lib_svld_dlopen=no
10353fi
10354rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356LIBS=$ac_check_lib_save_LIBS
10357fi
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10359$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10360if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10362else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10364$as_echo_n "checking for dld_link in -ldld... " >&6; }
10365if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367else
10368 ac_check_lib_save_LIBS=$LIBS
10369LIBS="-ldld $LIBS"
fabfcf5e
KT
10370if test x$gcc_no_link = xyes; then
10371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10372fi
1ec601bf
FXC
10373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h. */
10375
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382char dld_link ();
10383int
10384main ()
10385{
10386return dld_link ();
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391if ac_fn_c_try_link "$LINENO"; then :
10392 ac_cv_lib_dld_dld_link=yes
10393else
10394 ac_cv_lib_dld_dld_link=no
10395fi
10396rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398LIBS=$ac_check_lib_save_LIBS
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10402if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404fi
10405
10406
10407fi
10408
10409
10410fi
10411
10412
10413fi
10414
10415
10416fi
10417
10418
10419fi
10420
10421 ;;
10422 esac
10423
10424 if test "x$lt_cv_dlopen" != xno; then
10425 enable_dlopen=yes
10426 else
10427 enable_dlopen=no
10428 fi
10429
10430 case $lt_cv_dlopen in
10431 dlopen)
10432 save_CPPFLAGS="$CPPFLAGS"
10433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
10435 save_LDFLAGS="$LDFLAGS"
10436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
10438 save_LIBS="$LIBS"
10439 LIBS="$lt_cv_dlopen_libs $LIBS"
10440
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10442$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10443if test "${lt_cv_dlopen_self+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445else
10446 if test "$cross_compiling" = yes; then :
10447 lt_cv_dlopen_self=cross
10448else
10449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450 lt_status=$lt_dlunknown
10451 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 10452#line 10452 "configure"
1ec601bf
FXC
10453#include "confdefs.h"
10454
10455#if HAVE_DLFCN_H
10456#include <dlfcn.h>
10457#endif
10458
10459#include <stdio.h>
10460
10461#ifdef RTLD_GLOBAL
10462# define LT_DLGLOBAL RTLD_GLOBAL
10463#else
10464# ifdef DL_GLOBAL
10465# define LT_DLGLOBAL DL_GLOBAL
10466# else
10467# define LT_DLGLOBAL 0
10468# endif
10469#endif
10470
10471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472 find out it does not work in some platform. */
10473#ifndef LT_DLLAZY_OR_NOW
10474# ifdef RTLD_LAZY
10475# define LT_DLLAZY_OR_NOW RTLD_LAZY
10476# else
10477# ifdef DL_LAZY
10478# define LT_DLLAZY_OR_NOW DL_LAZY
10479# else
10480# ifdef RTLD_NOW
10481# define LT_DLLAZY_OR_NOW RTLD_NOW
10482# else
10483# ifdef DL_NOW
10484# define LT_DLLAZY_OR_NOW DL_NOW
10485# else
10486# define LT_DLLAZY_OR_NOW 0
10487# endif
10488# endif
10489# endif
10490# endif
10491#endif
10492
10493/* When -fvisbility=hidden is used, assume the code has been annotated
10494 correspondingly for the symbols needed. */
10495#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10496void fnord () __attribute__((visibility("default")));
10497#endif
10498
10499void fnord () { int i=42; }
10500int main ()
10501{
10502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503 int status = $lt_dlunknown;
10504
10505 if (self)
10506 {
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else
10509 {
10510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10511 else puts (dlerror ());
10512 }
10513 /* dlclose (self); */
10514 }
10515 else
10516 puts (dlerror ());
10517
10518 return status;
10519}
10520_LT_EOF
10521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10522 (eval $ac_link) 2>&5
10523 ac_status=$?
10524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10526 (./conftest; exit; ) >&5 2>/dev/null
10527 lt_status=$?
10528 case x$lt_status in
10529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10532 esac
10533 else :
10534 # compilation failed
10535 lt_cv_dlopen_self=no
10536 fi
10537fi
10538rm -fr conftest*
10539
10540
10541fi
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10543$as_echo "$lt_cv_dlopen_self" >&6; }
10544
10545 if test "x$lt_cv_dlopen_self" = xyes; then
10546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10548$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10549if test "${lt_cv_dlopen_self_static+set}" = set; then :
10550 $as_echo_n "(cached) " >&6
10551else
10552 if test "$cross_compiling" = yes; then :
10553 lt_cv_dlopen_self_static=cross
10554else
10555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10556 lt_status=$lt_dlunknown
10557 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 10558#line 10558 "configure"
1ec601bf
FXC
10559#include "confdefs.h"
10560
10561#if HAVE_DLFCN_H
10562#include <dlfcn.h>
10563#endif
10564
10565#include <stdio.h>
10566
10567#ifdef RTLD_GLOBAL
10568# define LT_DLGLOBAL RTLD_GLOBAL
10569#else
10570# ifdef DL_GLOBAL
10571# define LT_DLGLOBAL DL_GLOBAL
10572# else
10573# define LT_DLGLOBAL 0
10574# endif
10575#endif
10576
10577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10578 find out it does not work in some platform. */
10579#ifndef LT_DLLAZY_OR_NOW
10580# ifdef RTLD_LAZY
10581# define LT_DLLAZY_OR_NOW RTLD_LAZY
10582# else
10583# ifdef DL_LAZY
10584# define LT_DLLAZY_OR_NOW DL_LAZY
10585# else
10586# ifdef RTLD_NOW
10587# define LT_DLLAZY_OR_NOW RTLD_NOW
10588# else
10589# ifdef DL_NOW
10590# define LT_DLLAZY_OR_NOW DL_NOW
10591# else
10592# define LT_DLLAZY_OR_NOW 0
10593# endif
10594# endif
10595# endif
10596# endif
10597#endif
10598
10599/* When -fvisbility=hidden is used, assume the code has been annotated
10600 correspondingly for the symbols needed. */
10601#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10602void fnord () __attribute__((visibility("default")));
10603#endif
10604
10605void fnord () { int i=42; }
10606int main ()
10607{
10608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10609 int status = $lt_dlunknown;
10610
10611 if (self)
10612 {
10613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10614 else
10615 {
10616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10617 else puts (dlerror ());
10618 }
10619 /* dlclose (self); */
10620 }
10621 else
10622 puts (dlerror ());
10623
10624 return status;
10625}
10626_LT_EOF
10627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10628 (eval $ac_link) 2>&5
10629 ac_status=$?
10630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10632 (./conftest; exit; ) >&5 2>/dev/null
10633 lt_status=$?
10634 case x$lt_status in
10635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10638 esac
10639 else :
10640 # compilation failed
10641 lt_cv_dlopen_self_static=no
10642 fi
10643fi
10644rm -fr conftest*
10645
10646
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10649$as_echo "$lt_cv_dlopen_self_static" >&6; }
10650 fi
10651
10652 CPPFLAGS="$save_CPPFLAGS"
10653 LDFLAGS="$save_LDFLAGS"
10654 LIBS="$save_LIBS"
10655 ;;
10656 esac
10657
10658 case $lt_cv_dlopen_self in
10659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10660 *) enable_dlopen_self=unknown ;;
10661 esac
10662
10663 case $lt_cv_dlopen_self_static in
10664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10665 *) enable_dlopen_self_static=unknown ;;
10666 esac
10667fi
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685striplib=
10686old_striplib=
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10688$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10689if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693$as_echo "yes" >&6; }
10694else
10695# FIXME - insert some real tests, host_os isn't really good enough
10696 case $host_os in
10697 darwin*)
10698 if test -n "$STRIP" ; then
10699 striplib="$STRIP -x"
10700 old_striplib="$STRIP -S"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702$as_echo "yes" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705$as_echo "no" >&6; }
10706 fi
10707 ;;
10708 *)
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710$as_echo "no" >&6; }
10711 ;;
10712 esac
10713fi
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 # Report which library types will actually be built
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10728$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10730$as_echo "$can_build_shared" >&6; }
10731
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10733$as_echo_n "checking whether to build shared libraries... " >&6; }
10734 test "$can_build_shared" = "no" && enable_shared=no
10735
10736 # On AIX, shared libraries and static libraries use the same namespace, and
10737 # are all built from PIC.
10738 case $host_os in
10739 aix3*)
10740 test "$enable_shared" = yes && enable_static=no
10741 if test -n "$RANLIB"; then
10742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10743 postinstall_cmds='$RANLIB $lib'
10744 fi
fabfcf5e
KT
10745 ;;
10746
10747 aix[4-9]*)
10748 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10749 test "$enable_shared" = yes && enable_static=no
10750 fi
10751 ;;
10752 esac
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10754$as_echo "$enable_shared" >&6; }
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10757$as_echo_n "checking whether to build static libraries... " >&6; }
10758 # Make sure either enable_shared or enable_static is yes.
10759 test "$enable_shared" = yes || enable_static=yes
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10761$as_echo "$enable_static" >&6; }
10762
10763
10764
10765
10766fi
10767ac_ext=c
10768ac_cpp='$CPP $CPPFLAGS'
10769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772
10773CC="$lt_save_CC"
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787 ac_config_commands="$ac_config_commands libtool"
10788
10789
10790
10791
10792# Only expand once:
10793
10794
10795
10796
10797
7de6ba7a
DK
10798case $host in
10799 *-cygwin* | *-mingw*)
10800 # 'host' will be top-level target in the case of a target lib,
10801 # we must compare to with_cross_host to decide if this is a native
10802 # or cross-compiler and select where to install dlls appropriately.
10803 if test -n "$with_cross_host" &&
10804 test x"$with_cross_host" != x"no"; then
10805 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10806 else
10807 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10808 fi
10809 ;;
10810 *)
10811 lt_host_flags=
10812 ;;
10813esac
10814
10815
10816
10817
10818
10819
fabfcf5e
KT
10820
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10822$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10823 # Check whether --enable-maintainer-mode was given.
10824if test "${enable_maintainer_mode+set}" = set; then :
10825 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10826else
10827 USE_MAINTAINER_MODE=no
10828fi
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10831$as_echo "$USE_MAINTAINER_MODE" >&6; }
10832 if test $USE_MAINTAINER_MODE = yes; then
10833 MAINTAINER_MODE_TRUE=
10834 MAINTAINER_MODE_FALSE='#'
10835else
10836 MAINTAINER_MODE_TRUE='#'
10837 MAINTAINER_MODE_FALSE=
10838fi
10839
10840 MAINT=$MAINTAINER_MODE_TRUE
10841
10842
10843# Default to --enable-multilib
10844# Check whether --enable-multilib was given.
10845if test "${enable_multilib+set}" = set; then :
10846 enableval=$enable_multilib; case "$enableval" in
10847 yes) multilib=yes ;;
10848 no) multilib=no ;;
10849 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10850 esac
10851else
10852 multilib=yes
10853fi
10854
10855
10856# We may get other options which we leave undocumented:
10857# --with-target-subdir, --with-multisrctop, --with-multisubdir
10858# See config-ml.in if you want the gory details.
10859
10860if test "$srcdir" = "."; then
10861 if test "$with_target_subdir" != "."; then
10862 multi_basedir="$srcdir/$with_multisrctop../.."
10863 else
10864 multi_basedir="$srcdir/$with_multisrctop.."
10865 fi
10866else
10867 multi_basedir="$srcdir/.."
10868fi
10869
10870
10871# Even if the default multilib is not a cross compilation,
10872# it may be that some of the other multilibs are.
10873if test $cross_compiling = no && test $multilib = yes \
10874 && test "x${with_multisubdir}" != x ; then
10875 cross_compiling=maybe
10876fi
10877
10878ac_config_commands="$ac_config_commands default-1"
10879
10880
10881ac_ext=c
10882ac_cpp='$CPP $CPPFLAGS'
10883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10885ac_compiler_gnu=$ac_cv_c_compiler_gnu
10886
10887# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10888# We must force CC to /not/ be precious variables; otherwise
10889# the wrong, non-multilib-adjusted value will be used in multilibs.
10890# As a side effect, we have to subst CFLAGS ourselves.
10891
10892
10893
10894ac_ext=c
10895ac_cpp='$CPP $CPPFLAGS'
10896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898ac_compiler_gnu=$ac_cv_c_compiler_gnu
10899if test -n "$ac_tool_prefix"; then
10900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10901set dummy ${ac_tool_prefix}gcc; ac_word=$2
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903$as_echo_n "checking for $ac_word... " >&6; }
10904if test "${ac_cv_prog_CC+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906else
10907 if test -n "$CC"; then
10908 ac_cv_prog_CC="$CC" # Let the user override the test.
10909else
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922 done
10923IFS=$as_save_IFS
10924
10925fi
10926fi
10927CC=$ac_cv_prog_CC
10928if test -n "$CC"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10930$as_echo "$CC" >&6; }
10931else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
10934fi
10935
10936
10937fi
10938if test -z "$ac_cv_prog_CC"; then
10939 ac_ct_CC=$CC
10940 # Extract the first word of "gcc", so it can be a program name with args.
10941set dummy gcc; ac_word=$2
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 if test -n "$ac_ct_CC"; then
10948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957 ac_cv_prog_ac_ct_CC="gcc"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962 done
10963IFS=$as_save_IFS
10964
10965fi
10966fi
10967ac_ct_CC=$ac_cv_prog_ac_ct_CC
10968if test -n "$ac_ct_CC"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10970$as_echo "$ac_ct_CC" >&6; }
10971else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
10974fi
10975
10976 if test "x$ac_ct_CC" = x; then
10977 CC=""
10978 else
10979 case $cross_compiling:$ac_tool_warned in
10980yes:)
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10983ac_tool_warned=yes ;;
10984esac
10985 CC=$ac_ct_CC
10986 fi
10987else
10988 CC="$ac_cv_prog_CC"
10989fi
10990
10991if test -z "$CC"; then
10992 if test -n "$ac_tool_prefix"; then
10993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10994set dummy ${ac_tool_prefix}cc; ac_word=$2
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996$as_echo_n "checking for $ac_word... " >&6; }
10997if test "${ac_cv_prog_CC+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$CC"; then
11001 ac_cv_prog_CC="$CC" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_prog_CC="${ac_tool_prefix}cc"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015 done
11016IFS=$as_save_IFS
11017
11018fi
11019fi
11020CC=$ac_cv_prog_CC
11021if test -n "$CC"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11023$as_echo "$CC" >&6; }
11024else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
11027fi
11028
11029
11030 fi
11031fi
11032if test -z "$CC"; then
11033 # Extract the first word of "cc", so it can be a program name with args.
11034set dummy cc; ac_word=$2
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036$as_echo_n "checking for $ac_word... " >&6; }
11037if test "${ac_cv_prog_CC+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039else
11040 if test -n "$CC"; then
11041 ac_cv_prog_CC="$CC" # Let the user override the test.
11042else
11043 ac_prog_rejected=no
11044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045for as_dir in $PATH
11046do
11047 IFS=$as_save_IFS
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11052 ac_prog_rejected=yes
11053 continue
11054 fi
11055 ac_cv_prog_CC="cc"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059done
11060 done
11061IFS=$as_save_IFS
11062
11063if test $ac_prog_rejected = yes; then
11064 # We found a bogon in the path, so make sure we never use it.
11065 set dummy $ac_cv_prog_CC
11066 shift
11067 if test $# != 0; then
11068 # We chose a different compiler from the bogus one.
11069 # However, it has the same basename, so the bogon will be chosen
11070 # first if we set CC to just the basename; use the full file name.
11071 shift
11072 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11073 fi
11074fi
11075fi
11076fi
11077CC=$ac_cv_prog_CC
11078if test -n "$CC"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11080$as_echo "$CC" >&6; }
11081else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083$as_echo "no" >&6; }
11084fi
11085
11086
11087fi
11088if test -z "$CC"; then
11089 if test -n "$ac_tool_prefix"; then
11090 for ac_prog in cl.exe
11091 do
11092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095$as_echo_n "checking for $ac_word... " >&6; }
11096if test "${ac_cv_prog_CC+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098else
11099 if test -n "$CC"; then
11100 ac_cv_prog_CC="$CC" # Let the user override the test.
11101else
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113done
11114 done
11115IFS=$as_save_IFS
11116
11117fi
11118fi
11119CC=$ac_cv_prog_CC
11120if test -n "$CC"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11122$as_echo "$CC" >&6; }
11123else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126fi
11127
11128
11129 test -n "$CC" && break
11130 done
11131fi
11132if test -z "$CC"; then
11133 ac_ct_CC=$CC
11134 for ac_prog in cl.exe
11135do
11136 # Extract the first word of "$ac_prog", so it can be a program name with args.
11137set dummy $ac_prog; ac_word=$2
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139$as_echo_n "checking for $ac_word... " >&6; }
11140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142else
11143 if test -n "$ac_ct_CC"; then
11144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11145else
11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147for as_dir in $PATH
11148do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_ac_ct_CC="$ac_prog"
11154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157done
11158 done
11159IFS=$as_save_IFS
11160
11161fi
11162fi
11163ac_ct_CC=$ac_cv_prog_ac_ct_CC
11164if test -n "$ac_ct_CC"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11166$as_echo "$ac_ct_CC" >&6; }
11167else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169$as_echo "no" >&6; }
11170fi
11171
11172
11173 test -n "$ac_ct_CC" && break
11174done
11175
11176 if test "x$ac_ct_CC" = x; then
11177 CC=""
11178 else
11179 case $cross_compiling:$ac_tool_warned in
11180yes:)
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11183ac_tool_warned=yes ;;
11184esac
11185 CC=$ac_ct_CC
11186 fi
11187fi
11188
11189fi
11190
11191
11192test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11194as_fn_error "no acceptable C compiler found in \$PATH
11195See \`config.log' for more details." "$LINENO" 5; }
11196
11197# Provide some information about the compiler.
11198$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11199set X $ac_compile
11200ac_compiler=$2
11201for ac_option in --version -v -V -qversion; do
11202 { { ac_try="$ac_compiler $ac_option >&5"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11208$as_echo "$ac_try_echo"; } >&5
11209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11210 ac_status=$?
11211 if test -s conftest.err; then
11212 sed '10a\
11213... rest of stderr output deleted ...
11214 10q' conftest.err >conftest.er1
11215 cat conftest.er1 >&5
11216 rm -f conftest.er1 conftest.err
11217 fi
11218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11219 test $ac_status = 0; }
11220done
11221
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11223$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11224if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226else
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228/* end confdefs.h. */
11229
11230int
11231main ()
11232{
11233#ifndef __GNUC__
11234 choke me
11235#endif
11236
11237 ;
11238 return 0;
11239}
11240_ACEOF
11241if ac_fn_c_try_compile "$LINENO"; then :
11242 ac_compiler_gnu=yes
11243else
11244 ac_compiler_gnu=no
11245fi
11246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11247ac_cv_c_compiler_gnu=$ac_compiler_gnu
11248
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11251$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11252if test $ac_compiler_gnu = yes; then
11253 GCC=yes
11254else
11255 GCC=
11256fi
11257ac_test_CFLAGS=${CFLAGS+set}
11258ac_save_CFLAGS=$CFLAGS
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11260$as_echo_n "checking whether $CC accepts -g... " >&6; }
11261if test "${ac_cv_prog_cc_g+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11263else
11264 ac_save_c_werror_flag=$ac_c_werror_flag
11265 ac_c_werror_flag=yes
11266 ac_cv_prog_cc_g=no
11267 CFLAGS="-g"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274
11275 ;
11276 return 0;
11277}
11278_ACEOF
11279if ac_fn_c_try_compile "$LINENO"; then :
11280 ac_cv_prog_cc_g=yes
11281else
11282 CFLAGS=""
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h. */
11285
11286int
11287main ()
11288{
11289
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_compile "$LINENO"; then :
11295
11296else
11297 ac_c_werror_flag=$ac_save_c_werror_flag
11298 CFLAGS="-g"
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300/* end confdefs.h. */
11301
11302int
11303main ()
11304{
11305
11306 ;
11307 return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_compile "$LINENO"; then :
11311 ac_cv_prog_cc_g=yes
11312fi
11313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314fi
11315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316fi
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 ac_c_werror_flag=$ac_save_c_werror_flag
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11321$as_echo "$ac_cv_prog_cc_g" >&6; }
11322if test "$ac_test_CFLAGS" = set; then
11323 CFLAGS=$ac_save_CFLAGS
11324elif test $ac_cv_prog_cc_g = yes; then
11325 if test "$GCC" = yes; then
11326 CFLAGS="-g -O2"
11327 else
11328 CFLAGS="-g"
11329 fi
11330else
11331 if test "$GCC" = yes; then
11332 CFLAGS="-O2"
11333 else
11334 CFLAGS=
11335 fi
11336fi
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11339if test "${ac_cv_prog_cc_c89+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341else
11342 ac_cv_prog_cc_c89=no
11343ac_save_CC=$CC
11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h. */
11346#include <stdarg.h>
11347#include <stdio.h>
11348#include <sys/types.h>
11349#include <sys/stat.h>
11350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11351struct buf { int x; };
11352FILE * (*rcsopen) (struct buf *, struct stat *, int);
11353static char *e (p, i)
11354 char **p;
11355 int i;
11356{
11357 return p[i];
11358}
11359static char *f (char * (*g) (char **, int), char **p, ...)
11360{
11361 char *s;
11362 va_list v;
11363 va_start (v,p);
11364 s = g (p, va_arg (v,int));
11365 va_end (v);
11366 return s;
11367}
11368
11369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11370 function prototypes and stuff, but not '\xHH' hex character constants.
11371 These don't provoke an error unfortunately, instead are silently treated
11372 as 'x'. The following induces an error, until -std is added to get
11373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11374 array size at least. It's necessary to write '\x00'==0 to get something
11375 that's true only with -std. */
11376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11377
11378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11379 inside strings and character constants. */
11380#define FOO(x) 'x'
11381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11382
11383int test (int i, double x);
11384struct s1 {int (*f) (int a);};
11385struct s2 {int (*f) (double a);};
11386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11387int argc;
11388char **argv;
11389int
11390main ()
11391{
11392return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11399do
11400 CC="$ac_save_CC $ac_arg"
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 ac_cv_prog_cc_c89=$ac_arg
11403fi
11404rm -f core conftest.err conftest.$ac_objext
11405 test "x$ac_cv_prog_cc_c89" != "xno" && break
11406done
11407rm -f conftest.$ac_ext
11408CC=$ac_save_CC
11409
11410fi
11411# AC_CACHE_VAL
11412case "x$ac_cv_prog_cc_c89" in
11413 x)
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11415$as_echo "none needed" >&6; } ;;
11416 xno)
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11418$as_echo "unsupported" >&6; } ;;
11419 *)
11420 CC="$CC $ac_cv_prog_cc_c89"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11423esac
11424if test "x$ac_cv_prog_cc_c89" != xno; then :
11425
11426fi
11427
11428ac_ext=c
11429ac_cpp='$CPP $CPPFLAGS'
11430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432ac_compiler_gnu=$ac_cv_c_compiler_gnu
11433
11434depcc="$CC" am_compiler_list=
11435
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11437$as_echo_n "checking dependency style of $depcc... " >&6; }
11438if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11440else
11441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11442 # We make a subdir and do the tests there. Otherwise we can end up
11443 # making bogus files that we don't know about and never remove. For
11444 # instance it was reported that on HP-UX the gcc test will end up
11445 # making a dummy file named `D' -- because `-MD' means `put the output
11446 # in D'.
11447 mkdir conftest.dir
11448 # Copy depcomp to subdir because otherwise we won't find it if we're
11449 # using a relative directory.
11450 cp "$am_depcomp" conftest.dir
11451 cd conftest.dir
11452 # We will build objects and dependencies in a subdirectory because
11453 # it helps to detect inapplicable dependency modes. For instance
11454 # both Tru64's cc and ICC support -MD to output dependencies as a
11455 # side effect of compilation, but ICC will put the dependencies in
11456 # the current directory while Tru64 will put them in the object
11457 # directory.
11458 mkdir sub
11459
11460 am_cv_CC_dependencies_compiler_type=none
11461 if test "$am_compiler_list" = ""; then
11462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11463 fi
11464 am__universal=false
11465 case " $depcc " in #(
11466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11467 esac
11468
11469 for depmode in $am_compiler_list; do
11470 # Setup a source with many dependencies, because some compilers
11471 # like to wrap large dependency lists on column 80 (with \), and
11472 # we should not choose a depcomp mode which is confused by this.
11473 #
11474 # We need to recreate these files for each test, as the compiler may
11475 # overwrite some of them when testing with obscure command lines.
11476 # This happens at least with the AIX C compiler.
11477 : > sub/conftest.c
11478 for i in 1 2 3 4 5 6; do
11479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11481 # Solaris 8's {/usr,}/bin/sh.
11482 touch sub/conftst$i.h
11483 done
11484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11485
11486 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11487 # mode. It turns out that the SunPro C++ compiler does not properly
11488 # handle `-M -o', and we need to detect this. Also, some Intel
11489 # versions had trouble with output in subdirs
11490 am__obj=sub/conftest.${OBJEXT-o}
11491 am__minus_obj="-o $am__obj"
11492 case $depmode in
11493 gcc)
11494 # This depmode causes a compiler race in universal mode.
11495 test "$am__universal" = false || continue
11496 ;;
11497 nosideeffect)
11498 # after this tag, mechanisms are not by side-effect, so they'll
11499 # only be used when explicitly requested
11500 if test "x$enable_dependency_tracking" = xyes; then
11501 continue
11502 else
11503 break
11504 fi
11505 ;;
11506 msvisualcpp | msvcmsys)
11507 # This compiler won't grok `-c -o', but also, the minuso test has
11508 # not run yet. These depmodes are late enough in the game, and
11509 # so weak that their functioning should not be impacted.
11510 am__obj=conftest.${OBJEXT-o}
11511 am__minus_obj=
11512 ;;
11513 none) break ;;
11514 esac
11515 if depmode=$depmode \
11516 source=sub/conftest.c object=$am__obj \
11517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11519 >/dev/null 2>conftest.err &&
11520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11524 # icc doesn't choke on unknown options, it will just issue warnings
11525 # or remarks (even with -Werror). So we grep stderr for any message
11526 # that says an option was ignored or not supported.
11527 # When given -MP, icc 7.0 and 7.1 complain thusly:
11528 # icc: Command line warning: ignoring option '-M'; no argument required
11529 # The diagnosis changed in icc 8.0:
11530 # icc: Command line remark: option '-MP' not supported
11531 if (grep 'ignoring option' conftest.err ||
11532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11533 am_cv_CC_dependencies_compiler_type=$depmode
11534 break
11535 fi
11536 fi
11537 done
11538
11539 cd ..
11540 rm -rf conftest.dir
11541else
11542 am_cv_CC_dependencies_compiler_type=none
11543fi
11544
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11547$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11549
11550 if
11551 test "x$enable_dependency_tracking" != xno \
11552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11553 am__fastdepCC_TRUE=
11554 am__fastdepCC_FALSE='#'
11555else
11556 am__fastdepCC_TRUE='#'
11557 am__fastdepCC_FALSE=
11558fi
11559
11560
11561
11562
11563
11564
11565if test "x$CC" != xcc; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11567$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11568else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11570$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11571fi
11572set dummy $CC; ac_cc=`$as_echo "$2" |
11573 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11574if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11575 $as_echo_n "(cached) " >&6
11576else
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578/* end confdefs.h. */
11579
11580int
11581main ()
11582{
11583
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588# Make sure it works both with $CC and with simple cc.
11589# We do the test twice because some compilers refuse to overwrite an
11590# existing .o file with -o, though they will create one.
11591ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11592rm -f conftest2.*
11593if { { case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11598$as_echo "$ac_try_echo"; } >&5
11599 (eval "$ac_try") 2>&5
11600 ac_status=$?
11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602 test $ac_status = 0; } &&
11603 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11608$as_echo "$ac_try_echo"; } >&5
11609 (eval "$ac_try") 2>&5
11610 ac_status=$?
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; };
11613then
11614 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11615 if test "x$CC" != xcc; then
11616 # Test first that cc exists at all.
11617 if { ac_try='cc -c conftest.$ac_ext >&5'
11618 { { case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11623$as_echo "$ac_try_echo"; } >&5
11624 (eval "$ac_try") 2>&5
11625 ac_status=$?
11626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11627 test $ac_status = 0; }; }; then
11628 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11629 rm -f conftest2.*
11630 if { { case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11635$as_echo "$ac_try_echo"; } >&5
11636 (eval "$ac_try") 2>&5
11637 ac_status=$?
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; } &&
11640 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11643esac
11644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11645$as_echo "$ac_try_echo"; } >&5
11646 (eval "$ac_try") 2>&5
11647 ac_status=$?
11648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11649 test $ac_status = 0; };
11650 then
11651 # cc works too.
11652 :
11653 else
11654 # cc exists but doesn't like -o.
11655 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11656 fi
11657 fi
11658 fi
11659else
11660 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11661fi
11662rm -f core conftest*
1ec601bf 11663
fabfcf5e
KT
11664fi
11665if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667$as_echo "yes" >&6; }
11668else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
1ec601bf 11671
fabfcf5e
KT
11672$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11673
11674fi
1ec601bf 11675
fabfcf5e
KT
11676# FIXME: we rely on the cache variable name because
11677# there is no other way.
11678set dummy $CC
11679am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11680eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11681if test "$am_t" != yes; then
11682 # Losing compiler, so override with the script.
11683 # FIXME: It is wrong to rewrite CC.
11684 # But if we don't then we get into trouble of one sort or another.
11685 # A longer-term fix would be to have automake use am__CC in this case,
11686 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11687 CC="$am_aux_dir/compile $CC"
11688fi
1ec601bf
FXC
11689
11690
11691
fabfcf5e
KT
11692if test "x$GCC" != "xyes"; then
11693 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
1ec601bf
FXC
11694fi
11695ac_ext=c
11696ac_cpp='$CPP $CPPFLAGS'
11697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699ac_compiler_gnu=$ac_cv_c_compiler_gnu
fabfcf5e
KT
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11701$as_echo_n "checking how to run the C preprocessor... " >&6; }
11702# On Suns, sometimes $CPP names a directory.
11703if test -n "$CPP" && test -d "$CPP"; then
11704 CPP=
11705fi
11706if test -z "$CPP"; then
11707 if test "${ac_cv_prog_CPP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709else
11710 # Double quotes because CPP needs to be expanded
11711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11712 do
11713 ac_preproc_ok=false
11714for ac_c_preproc_warn_flag in '' yes
11715do
11716 # Use a header file that comes with gcc, so configuring glibc
11717 # with a fresh cross-compiler works.
11718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719 # <limits.h> exists even on freestanding compilers.
11720 # On the NeXT, cc -E runs the code through the compiler's parser,
11721 # not just through cpp. "Syntax error" is here to catch this case.
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h. */
11724#ifdef __STDC__
11725# include <limits.h>
11726#else
11727# include <assert.h>
11728#endif
11729 Syntax error
11730_ACEOF
11731if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11732
1ec601bf 11733else
fabfcf5e
KT
11734 # Broken: fails on valid input.
11735continue
1ec601bf 11736fi
fabfcf5e 11737rm -f conftest.err conftest.$ac_ext
1ec601bf 11738
fabfcf5e
KT
11739 # OK, works on sane cases. Now check whether nonexistent headers
11740 # can be detected and how.
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742/* end confdefs.h. */
11743#include <ac_nonexistent.h>
11744_ACEOF
11745if ac_fn_c_try_cpp "$LINENO"; then :
11746 # Broken: success on invalid input.
11747continue
1ec601bf 11748else
fabfcf5e
KT
11749 # Passes both tests.
11750ac_preproc_ok=:
11751break
1ec601bf 11752fi
fabfcf5e 11753rm -f conftest.err conftest.$ac_ext
1ec601bf 11754
fabfcf5e
KT
11755done
11756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11757rm -f conftest.err conftest.$ac_ext
11758if $ac_preproc_ok; then :
11759 break
11760fi
1ec601bf 11761
fabfcf5e
KT
11762 done
11763 ac_cv_prog_CPP=$CPP
1ec601bf 11764
fabfcf5e
KT
11765fi
11766 CPP=$ac_cv_prog_CPP
1ec601bf 11767else
fabfcf5e 11768 ac_cv_prog_CPP=$CPP
1ec601bf 11769fi
fabfcf5e
KT
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11771$as_echo "$CPP" >&6; }
11772ac_preproc_ok=false
11773for ac_c_preproc_warn_flag in '' yes
11774do
11775 # Use a header file that comes with gcc, so configuring glibc
11776 # with a fresh cross-compiler works.
11777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11778 # <limits.h> exists even on freestanding compilers.
11779 # On the NeXT, cc -E runs the code through the compiler's parser,
11780 # not just through cpp. "Syntax error" is here to catch this case.
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h. */
11783#ifdef __STDC__
11784# include <limits.h>
11785#else
11786# include <assert.h>
11787#endif
11788 Syntax error
11789_ACEOF
11790if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11791
fabfcf5e
KT
11792else
11793 # Broken: fails on valid input.
11794continue
11795fi
11796rm -f conftest.err conftest.$ac_ext
1ec601bf 11797
fabfcf5e
KT
11798 # OK, works on sane cases. Now check whether nonexistent headers
11799 # can be detected and how.
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801/* end confdefs.h. */
11802#include <ac_nonexistent.h>
11803_ACEOF
11804if ac_fn_c_try_cpp "$LINENO"; then :
11805 # Broken: success on invalid input.
11806continue
1ec601bf 11807else
fabfcf5e
KT
11808 # Passes both tests.
11809ac_preproc_ok=:
11810break
1ec601bf 11811fi
fabfcf5e 11812rm -f conftest.err conftest.$ac_ext
1ec601bf 11813
fabfcf5e
KT
11814done
11815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11816rm -f conftest.err conftest.$ac_ext
11817if $ac_preproc_ok; then :
1ec601bf 11818
fabfcf5e
KT
11819else
11820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11822as_fn_error "C preprocessor \"$CPP\" fails sanity check
11823See \`config.log' for more details." "$LINENO" 5; }
1ec601bf
FXC
11824fi
11825
fabfcf5e
KT
11826ac_ext=c
11827ac_cpp='$CPP $CPPFLAGS'
11828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf
FXC
11831
11832
11833# Calculate toolexeclibdir
11834# Also toolexecdir, though it's only used in toolexeclibdir
11835case ${version_specific_libs} in
11836 yes)
11837 # Need the gcc compiler version to know where to install libraries
11838 # and header files if --enable-version-specific-runtime-libs option
11839 # is selected.
11840 toolexecdir='$(libdir)/gcc/$(target_alias)'
11841 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11842 ;;
11843 no)
11844 if test -n "$with_cross_host" &&
11845 test x"$with_cross_host" != x"no"; then
11846 # Install a library built with a cross compiler in tooldir, not libdir.
11847 toolexecdir='$(exec_prefix)/$(target_alias)'
11848 toolexeclibdir='$(toolexecdir)/lib'
11849 else
11850 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11851 toolexeclibdir='$(libdir)'
11852 fi
11853 multi_os_directory=`$CC -print-multi-os-directory`
11854 case $multi_os_directory in
11855 .) ;; # Avoid trailing /.
11856 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11857 esac
11858 ;;
11859esac
11860
11861
11862
e8d42d28
JJ
11863for ac_header in fenv.h
11864do :
11865 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
11866if test "x$ac_cv_header_fenv_h" = x""yes; then :
11867 cat >>confdefs.h <<_ACEOF
11868#define HAVE_FENV_H 1
11869_ACEOF
11870
11871fi
11872
11873done
11874
11875
6f468984
TB
11876# If available, sqrtl and cbrtl speed up the calculation -
11877# but they are not required
11878if test x$gcc_no_link != xyes; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
1ec601bf
FXC
11880$as_echo_n "checking for sqrtl in -lm... " >&6; }
11881if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883else
11884 ac_check_lib_save_LIBS=$LIBS
11885LIBS="-lm $LIBS"
fabfcf5e
KT
11886if test x$gcc_no_link = xyes; then
11887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11888fi
1ec601bf
FXC
11889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890/* end confdefs.h. */
11891
11892/* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895#ifdef __cplusplus
11896extern "C"
11897#endif
11898char sqrtl ();
11899int
11900main ()
11901{
11902return sqrtl ();
11903 ;
11904 return 0;
11905}
11906_ACEOF
11907if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_m_sqrtl=yes
11909else
11910 ac_cv_lib_m_sqrtl=no
11911fi
11912rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914LIBS=$ac_check_lib_save_LIBS
11915fi
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11917$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11918if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11919
11920$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11921
11922fi
11923
6f468984 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
1ec601bf
FXC
11925$as_echo_n "checking for cbrtl in -lm... " >&6; }
11926if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928else
11929 ac_check_lib_save_LIBS=$LIBS
11930LIBS="-lm $LIBS"
fabfcf5e
KT
11931if test x$gcc_no_link = xyes; then
11932 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11933fi
1ec601bf
FXC
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char cbrtl ();
11944int
11945main ()
11946{
11947return cbrtl ();
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_m_cbrtl=yes
11954else
11955 ac_cv_lib_m_cbrtl=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
11962$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
11963if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
11964
11965$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11966
e8d42d28
JJ
11967fi
11968
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
11970$as_echo_n "checking for feholdexcept in -lm... " >&6; }
11971if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973else
11974 ac_check_lib_save_LIBS=$LIBS
11975LIBS="-lm $LIBS"
11976if test x$gcc_no_link = xyes; then
11977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11978fi
11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h. */
11981
11982/* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988char feholdexcept ();
11989int
11990main ()
11991{
11992return feholdexcept ();
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_lib_m_feholdexcept=yes
11999else
12000 ac_cv_lib_m_feholdexcept=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12007$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12008if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12009
12010$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12011
12012fi
12013
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12015$as_echo_n "checking for fesetround in -lm... " >&6; }
12016if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018else
12019 ac_check_lib_save_LIBS=$LIBS
12020LIBS="-lm $LIBS"
12021if test x$gcc_no_link = xyes; then
12022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12023fi
12024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h. */
12026
12027/* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030#ifdef __cplusplus
12031extern "C"
12032#endif
12033char fesetround ();
12034int
12035main ()
12036{
12037return fesetround ();
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_link "$LINENO"; then :
12043 ac_cv_lib_m_fesetround=yes
12044else
12045 ac_cv_lib_m_fesetround=no
12046fi
12047rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12049LIBS=$ac_check_lib_save_LIBS
12050fi
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12052$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12053if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12054
12055$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12056
12057fi
12058
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12060$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12061if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12063else
12064 ac_check_lib_save_LIBS=$LIBS
12065LIBS="-lm $LIBS"
12066if test x$gcc_no_link = xyes; then
12067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12068fi
12069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071
12072/* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075#ifdef __cplusplus
12076extern "C"
12077#endif
12078char feupdateenv ();
12079int
12080main ()
12081{
12082return feupdateenv ();
12083 ;
12084 return 0;
12085}
12086_ACEOF
12087if ac_fn_c_try_link "$LINENO"; then :
12088 ac_cv_lib_m_feupdateenv=yes
12089else
12090 ac_cv_lib_m_feupdateenv=no
12091fi
12092rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094LIBS=$ac_check_lib_save_LIBS
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12097$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12098if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12099
12100$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12101
12102fi
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12105$as_echo_n "checking for fesetenv in -lm... " >&6; }
12106if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12108else
12109 ac_check_lib_save_LIBS=$LIBS
12110LIBS="-lm $LIBS"
12111if test x$gcc_no_link = xyes; then
12112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12113fi
12114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h. */
12116
12117/* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120#ifdef __cplusplus
12121extern "C"
12122#endif
12123char fesetenv ();
12124int
12125main ()
12126{
12127return fesetenv ();
12128 ;
12129 return 0;
12130}
12131_ACEOF
12132if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_lib_m_fesetenv=yes
12134else
12135 ac_cv_lib_m_fesetenv=no
12136fi
12137rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139LIBS=$ac_check_lib_save_LIBS
12140fi
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12142$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12143if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12144
12145$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12146
12147fi
12148
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12150$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12151if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-lm $LIBS"
12156if test x$gcc_no_link = xyes; then
12157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12158fi
12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160/* end confdefs.h. */
12161
12162/* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165#ifdef __cplusplus
12166extern "C"
12167#endif
12168char fetestexcept ();
12169int
12170main ()
12171{
12172return fetestexcept ();
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_m_fetestexcept=yes
12179else
12180 ac_cv_lib_m_fetestexcept=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184LIBS=$ac_check_lib_save_LIBS
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12187$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12188if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12189
12190$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12191
1ec601bf
FXC
12192fi
12193
6f468984
TB
12194else
12195 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12196
12197$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12198
12199 fi
12200 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12201
12202$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12203
e8d42d28
JJ
12204 fi
12205 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12206
12207$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12208
12209 fi
12210 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12211
12212$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12213
12214 fi
12215 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12216
12217$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12218
12219 fi
12220 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12221
12222$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12223
12224 fi
12225 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12226
12227$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12228
6f468984
TB
12229 fi
12230fi
1ec601bf
FXC
12231
12232# Check for symbol versioning (copied from libssp).
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12234$as_echo_n "checking whether symbol versioning is supported... " >&6; }
fabfcf5e
KT
12235if test x$gcc_no_link = xyes; then
12236 # If we cannot link, we cannot build shared libraries, so do not use
12237 # symbol versioning.
12238 quadmath_use_symver=no
12239else
12240 save_LDFLAGS="$LDFLAGS"
12241 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12242 cat > conftest.map <<EOF
1ec601bf
FXC
12243FOO_1.0 {
12244 global: *foo*; bar; local: *;
12245};
12246EOF
fabfcf5e
KT
12247 if test x$gcc_no_link = xyes; then
12248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12249fi
1ec601bf
FXC
12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251/* end confdefs.h. */
12252int foo;
12253int
12254main ()
12255{
12256
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261if ac_fn_c_try_link "$LINENO"; then :
12262 quadmath_use_symver=gnu
12263else
12264 quadmath_use_symver=no
12265fi
12266rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
12268 if test x$quadmath_use_symver = xno; then
12269 case "$target_os" in
12270 solaris2*)
12271 LDFLAGS="$save_LDFLAGS"
12272 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12273 # Sun ld cannot handle wildcards and treats all entries as undefined.
12274 cat > conftest.map <<EOF
1ec601bf
FXC
12275FOO_1.0 {
12276 global: foo; local: *;
12277};
12278EOF
fabfcf5e
KT
12279 if test x$gcc_no_link = xyes; then
12280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12281fi
12282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12283/* end confdefs.h. */
12284int foo;
12285int
12286main ()
12287{
12288
12289 ;
12290 return 0;
12291}
12292_ACEOF
12293if ac_fn_c_try_link "$LINENO"; then :
12294 quadmath_use_symver=sun
12295else
12296 quadmath_use_symver=no
12297fi
12298rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
fabfcf5e
KT
12300 ;;
12301 esac
12302 fi
12303 LDFLAGS="$save_LDFLAGS"
1ec601bf 12304fi
1ec601bf
FXC
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12306$as_echo "$quadmath_use_symver" >&6; }
12307 if test "x$quadmath_use_symver" != xno; then
12308 LIBQUAD_USE_SYMVER_TRUE=
12309 LIBQUAD_USE_SYMVER_FALSE='#'
12310else
12311 LIBQUAD_USE_SYMVER_TRUE='#'
12312 LIBQUAD_USE_SYMVER_FALSE=
12313fi
12314
12315 if test "x$quadmath_use_symver" = xgnu; then
12316 LIBQUAD_USE_SYMVER_GNU_TRUE=
12317 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12318else
12319 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12320 LIBQUAD_USE_SYMVER_GNU_FALSE=
12321fi
12322
12323 if test "x$quadmath_use_symver" = xsun; then
12324 LIBQUAD_USE_SYMVER_SUN_TRUE=
12325 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12326else
12327 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12328 LIBQUAD_USE_SYMVER_SUN_FALSE=
12329fi
12330
12331
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12333$as_echo_n "checking whether __float128 is supported... " >&6; }
abccc9a9
TB
12334if test "${libquad_cv_have_float128+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336else
12337 if test x$gcc_no_link = xyes; then
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h. */
12340
12341 typedef _Complex float __attribute__((mode(TC))) __complex128;
12342
12343 __float128 foo (__float128 x)
12344 {
12345
12346 __complex128 z1, z2;
12347
12348 z1 = x;
12349 z2 = x / 7.Q;
12350 z2 /= z1;
12351
12352 return (__float128) z2;
12353 }
12354
12355 __float128 bar (__float128 x)
12356 {
12357 return x * __builtin_huge_valq ();
12358 }
12359
12360int
12361main ()
12362{
12363
12364 foo (1.2Q);
12365 bar (1.2Q);
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_compile "$LINENO"; then :
12372
12373 libquad_cv_have_float128=yes
12374
12375else
12376
12377 libquad_cv_have_float128=no
12378
12379fi
12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381else
fabfcf5e
KT
12382 if test x$gcc_no_link = xyes; then
12383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12384fi
12385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12386/* end confdefs.h. */
12387
12388 typedef _Complex float __attribute__((mode(TC))) __complex128;
12389
12390 __float128 foo (__float128 x)
12391 {
12392
12393 __complex128 z1, z2;
12394
12395 z1 = x;
12396 z2 = x / 7.Q;
12397 z2 /= z1;
12398
12399 return (__float128) z2;
12400 }
12401
12402 __float128 bar (__float128 x)
12403 {
12404 return x * __builtin_huge_valq ();
12405 }
12406
12407int
12408main ()
12409{
12410
12411 foo (1.2Q);
12412 bar (1.2Q);
12413
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418if ac_fn_c_try_link "$LINENO"; then :
12419
abccc9a9 12420 libquad_cv_have_float128=yes
1ec601bf
FXC
12421
12422else
12423
abccc9a9 12424 libquad_cv_have_float128=no
1ec601bf
FXC
12425
12426fi
12427rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
abccc9a9
TB
12429fi
12430fi
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12432$as_echo "$libquad_cv_have_float128" >&6; }
12433 if test "x$libquad_cv_have_float128" = xyes; then
1ec601bf
FXC
12434 BUILD_LIBQUADMATH_TRUE=
12435 BUILD_LIBQUADMATH_FALSE='#'
12436else
12437 BUILD_LIBQUADMATH_TRUE='#'
12438 BUILD_LIBQUADMATH_FALSE=
12439fi
12440
12441
12442cat >confcache <<\_ACEOF
12443# This file is a shell script that caches the results of configure
12444# tests run on this system so they can be shared between configure
12445# scripts and configure runs, see configure's option --config-cache.
12446# It is not useful on other systems. If it contains results you don't
12447# want to keep, you may remove or edit it.
12448#
12449# config.status only pays attention to the cache file if you give it
12450# the --recheck option to rerun configure.
12451#
12452# `ac_cv_env_foo' variables (set or unset) will be overridden when
12453# loading this file, other *unset* `ac_cv_foo' will be assigned the
12454# following values.
12455
12456_ACEOF
12457
12458# The following way of writing the cache mishandles newlines in values,
12459# but we know of no workaround that is simple, portable, and efficient.
12460# So, we kill variables containing newlines.
12461# Ultrix sh set writes to stderr and can't be redirected directly,
12462# and sets the high bit in the cache file unless we assign to the vars.
12463(
12464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12465 eval ac_val=\$$ac_var
12466 case $ac_val in #(
12467 *${as_nl}*)
12468 case $ac_var in #(
12469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12470$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12471 esac
12472 case $ac_var in #(
12473 _ | IFS | as_nl) ;; #(
12474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12475 *) { eval $ac_var=; unset $ac_var;} ;;
12476 esac ;;
12477 esac
12478 done
12479
12480 (set) 2>&1 |
12481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12482 *${as_nl}ac_space=\ *)
12483 # `set' does not quote correctly, so add quotes: double-quote
12484 # substitution turns \\\\ into \\, and sed turns \\ into \.
12485 sed -n \
12486 "s/'/'\\\\''/g;
12487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12488 ;; #(
12489 *)
12490 # `set' quotes correctly as required by POSIX, so do not add quotes.
12491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12492 ;;
12493 esac |
12494 sort
12495) |
12496 sed '
12497 /^ac_cv_env_/b end
12498 t clear
12499 :clear
12500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12501 t end
12502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12503 :end' >>confcache
12504if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12505 if test -w "$cache_file"; then
12506 test "x$cache_file" != "x/dev/null" &&
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12508$as_echo "$as_me: updating cache $cache_file" >&6;}
12509 cat confcache >$cache_file
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12512$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12513 fi
12514fi
12515rm -f confcache
12516
12517if test ${multilib} = yes; then
12518 multilib_arg="--enable-multilib"
12519else
12520 multilib_arg=
12521fi
12522
4c993c44
TB
12523
12524# We would like our source tree to be readonly. However when releases or
12525# pre-releases are generated, the flex/bison generated files as well as the
12526# various formats of manuals need to be included along with the rest of the
12527# sources. Therefore we have --enable-generated-files-in-srcdir to do
12528# just that.
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12530$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12531# Check whether --enable-generated-files-in-srcdir was given.
12532if test "${enable_generated_files_in_srcdir+set}" = set; then :
12533 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12534 yes) enable_generated_files_in_srcdir=yes ;;
12535 no) enable_generated_files_in_srcdir=no ;;
12536 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12537 esac
12538else
12539 enable_generated_files_in_srcdir=no
12540fi
12541
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12543$as_echo "$enable_generated_files_in_srcdir" >&6; }
12544 if test "$enable_generated_files_in_srcdir" = yes; then
12545 GENINSRC_TRUE=
12546 GENINSRC_FALSE='#'
12547else
12548 GENINSRC_TRUE='#'
12549 GENINSRC_FALSE=
12550fi
12551
12552
12553
1ec601bf
FXC
12554ac_config_files="$ac_config_files Makefile"
12555
12556cat >confcache <<\_ACEOF
12557# This file is a shell script that caches the results of configure
12558# tests run on this system so they can be shared between configure
12559# scripts and configure runs, see configure's option --config-cache.
12560# It is not useful on other systems. If it contains results you don't
12561# want to keep, you may remove or edit it.
12562#
12563# config.status only pays attention to the cache file if you give it
12564# the --recheck option to rerun configure.
12565#
12566# `ac_cv_env_foo' variables (set or unset) will be overridden when
12567# loading this file, other *unset* `ac_cv_foo' will be assigned the
12568# following values.
12569
12570_ACEOF
12571
12572# The following way of writing the cache mishandles newlines in values,
12573# but we know of no workaround that is simple, portable, and efficient.
12574# So, we kill variables containing newlines.
12575# Ultrix sh set writes to stderr and can't be redirected directly,
12576# and sets the high bit in the cache file unless we assign to the vars.
12577(
12578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12579 eval ac_val=\$$ac_var
12580 case $ac_val in #(
12581 *${as_nl}*)
12582 case $ac_var in #(
12583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12585 esac
12586 case $ac_var in #(
12587 _ | IFS | as_nl) ;; #(
12588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12589 *) { eval $ac_var=; unset $ac_var;} ;;
12590 esac ;;
12591 esac
12592 done
12593
12594 (set) 2>&1 |
12595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12596 *${as_nl}ac_space=\ *)
12597 # `set' does not quote correctly, so add quotes: double-quote
12598 # substitution turns \\\\ into \\, and sed turns \\ into \.
12599 sed -n \
12600 "s/'/'\\\\''/g;
12601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12602 ;; #(
12603 *)
12604 # `set' quotes correctly as required by POSIX, so do not add quotes.
12605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12606 ;;
12607 esac |
12608 sort
12609) |
12610 sed '
12611 /^ac_cv_env_/b end
12612 t clear
12613 :clear
12614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12615 t end
12616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12617 :end' >>confcache
12618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12619 if test -w "$cache_file"; then
12620 test "x$cache_file" != "x/dev/null" &&
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12622$as_echo "$as_me: updating cache $cache_file" >&6;}
12623 cat confcache >$cache_file
12624 else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12627 fi
12628fi
12629rm -f confcache
12630
12631test "x$prefix" = xNONE && prefix=$ac_default_prefix
12632# Let make expand exec_prefix.
12633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12634
12635DEFS=-DHAVE_CONFIG_H
12636
12637ac_libobjs=
12638ac_ltlibobjs=
12639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12640 # 1. Remove the extension, and $U if already installed.
12641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12644 # will be set to the directory where LIBOBJS objects are built.
12645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12647done
12648LIBOBJS=$ac_libobjs
12649
12650LTLIBOBJS=$ac_ltlibobjs
12651
12652
12653 if test -n "$EXEEXT"; then
12654 am__EXEEXT_TRUE=
12655 am__EXEEXT_FALSE='#'
12656else
12657 am__EXEEXT_TRUE='#'
12658 am__EXEEXT_FALSE=
12659fi
12660
4c993c44
TB
12661if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12662 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12663Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664fi
1ec601bf
FXC
12665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12666 as_fn_error "conditional \"AMDEP\" was never defined.
12667Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668fi
12669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12670 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12671Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672fi
12673if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12674 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12675Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676fi
fabfcf5e
KT
12677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12678 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12679Usually this means the macro was only invoked conditionally." "$LINENO" 5
12680fi
1ec601bf
FXC
12681if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12682 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12683Usually this means the macro was only invoked conditionally." "$LINENO" 5
12684fi
12685if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12686 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12687Usually this means the macro was only invoked conditionally." "$LINENO" 5
12688fi
12689if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12690 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12691Usually this means the macro was only invoked conditionally." "$LINENO" 5
12692fi
12693if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12694 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
4c993c44
TB
12695Usually this means the macro was only invoked conditionally." "$LINENO" 5
12696fi
12697if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12698 as_fn_error "conditional \"GENINSRC\" was never defined.
1ec601bf
FXC
12699Usually this means the macro was only invoked conditionally." "$LINENO" 5
12700fi
12701
12702: ${CONFIG_STATUS=./config.status}
12703ac_write_fail=0
12704ac_clean_files_save=$ac_clean_files
12705ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12707$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12708as_write_fail=0
12709cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12710#! $SHELL
12711# Generated by $as_me.
12712# Run this file to recreate the current configuration.
12713# Compiler output produced by configure, useful for debugging
12714# configure, is in config.log if it exists.
12715
12716debug=false
12717ac_cs_recheck=false
12718ac_cs_silent=false
12719
12720SHELL=\${CONFIG_SHELL-$SHELL}
12721export SHELL
12722_ASEOF
12723cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12724## -------------------- ##
12725## M4sh Initialization. ##
12726## -------------------- ##
12727
12728# Be more Bourne compatible
12729DUALCASE=1; export DUALCASE # for MKS sh
12730if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12731 emulate sh
12732 NULLCMD=:
12733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12734 # is contrary to our usage. Disable this feature.
12735 alias -g '${1+"$@"}'='"$@"'
12736 setopt NO_GLOB_SUBST
12737else
12738 case `(set -o) 2>/dev/null` in #(
12739 *posix*) :
12740 set -o posix ;; #(
12741 *) :
12742 ;;
12743esac
12744fi
12745
12746
12747as_nl='
12748'
12749export as_nl
12750# Printing a long string crashes Solaris 7 /usr/bin/printf.
12751as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12754# Prefer a ksh shell builtin over an external printf program on Solaris,
12755# but without wasting forks for bash or zsh.
12756if test -z "$BASH_VERSION$ZSH_VERSION" \
12757 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12758 as_echo='print -r --'
12759 as_echo_n='print -rn --'
12760elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12761 as_echo='printf %s\n'
12762 as_echo_n='printf %s'
12763else
12764 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12765 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12766 as_echo_n='/usr/ucb/echo -n'
12767 else
12768 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12769 as_echo_n_body='eval
12770 arg=$1;
12771 case $arg in #(
12772 *"$as_nl"*)
12773 expr "X$arg" : "X\\(.*\\)$as_nl";
12774 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12775 esac;
12776 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12777 '
12778 export as_echo_n_body
12779 as_echo_n='sh -c $as_echo_n_body as_echo'
12780 fi
12781 export as_echo_body
12782 as_echo='sh -c $as_echo_body as_echo'
12783fi
12784
12785# The user is always right.
12786if test "${PATH_SEPARATOR+set}" != set; then
12787 PATH_SEPARATOR=:
12788 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12789 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12790 PATH_SEPARATOR=';'
12791 }
12792fi
12793
12794
12795# IFS
12796# We need space, tab and new line, in precisely that order. Quoting is
12797# there to prevent editors from complaining about space-tab.
12798# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12799# splitting by setting IFS to empty value.)
12800IFS=" "" $as_nl"
12801
12802# Find who we are. Look in the path if we contain no directory separator.
12803case $0 in #((
12804 *[\\/]* ) as_myself=$0 ;;
12805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806for as_dir in $PATH
12807do
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
12810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12811 done
12812IFS=$as_save_IFS
12813
12814 ;;
12815esac
12816# We did not find ourselves, most probably we were run as `sh COMMAND'
12817# in which case we are not to be found in the path.
12818if test "x$as_myself" = x; then
12819 as_myself=$0
12820fi
12821if test ! -f "$as_myself"; then
12822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12823 exit 1
12824fi
12825
12826# Unset variables that we do not need and which cause bugs (e.g. in
12827# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12828# suppresses any "Segmentation fault" message there. '((' could
12829# trigger a bug in pdksh 5.2.14.
12830for as_var in BASH_ENV ENV MAIL MAILPATH
12831do eval test x\${$as_var+set} = xset \
12832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12833done
12834PS1='$ '
12835PS2='> '
12836PS4='+ '
12837
12838# NLS nuisances.
12839LC_ALL=C
12840export LC_ALL
12841LANGUAGE=C
12842export LANGUAGE
12843
12844# CDPATH.
12845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12846
12847
12848# as_fn_error ERROR [LINENO LOG_FD]
12849# ---------------------------------
12850# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12851# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12852# script with status $?, using 1 if that was 0.
12853as_fn_error ()
12854{
12855 as_status=$?; test $as_status -eq 0 && as_status=1
12856 if test "$3"; then
12857 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12859 fi
12860 $as_echo "$as_me: error: $1" >&2
12861 as_fn_exit $as_status
12862} # as_fn_error
12863
12864
12865# as_fn_set_status STATUS
12866# -----------------------
12867# Set $? to STATUS, without forking.
12868as_fn_set_status ()
12869{
12870 return $1
12871} # as_fn_set_status
12872
12873# as_fn_exit STATUS
12874# -----------------
12875# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12876as_fn_exit ()
12877{
12878 set +e
12879 as_fn_set_status $1
12880 exit $1
12881} # as_fn_exit
12882
12883# as_fn_unset VAR
12884# ---------------
12885# Portably unset VAR.
12886as_fn_unset ()
12887{
12888 { eval $1=; unset $1;}
12889}
12890as_unset=as_fn_unset
12891# as_fn_append VAR VALUE
12892# ----------------------
12893# Append the text in VALUE to the end of the definition contained in VAR. Take
12894# advantage of any shell optimizations that allow amortized linear growth over
12895# repeated appends, instead of the typical quadratic growth present in naive
12896# implementations.
12897if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12898 eval 'as_fn_append ()
12899 {
12900 eval $1+=\$2
12901 }'
12902else
12903 as_fn_append ()
12904 {
12905 eval $1=\$$1\$2
12906 }
12907fi # as_fn_append
12908
12909# as_fn_arith ARG...
12910# ------------------
12911# Perform arithmetic evaluation on the ARGs, and store the result in the
12912# global $as_val. Take advantage of shells that can avoid forks. The arguments
12913# must be portable across $(()) and expr.
12914if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12915 eval 'as_fn_arith ()
12916 {
12917 as_val=$(( $* ))
12918 }'
12919else
12920 as_fn_arith ()
12921 {
12922 as_val=`expr "$@" || test $? -eq 1`
12923 }
12924fi # as_fn_arith
12925
12926
12927if expr a : '\(a\)' >/dev/null 2>&1 &&
12928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12929 as_expr=expr
12930else
12931 as_expr=false
12932fi
12933
12934if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12935 as_basename=basename
12936else
12937 as_basename=false
12938fi
12939
12940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12941 as_dirname=dirname
12942else
12943 as_dirname=false
12944fi
12945
12946as_me=`$as_basename -- "$0" ||
12947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12948 X"$0" : 'X\(//\)$' \| \
12949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12950$as_echo X/"$0" |
12951 sed '/^.*\/\([^/][^/]*\)\/*$/{
12952 s//\1/
12953 q
12954 }
12955 /^X\/\(\/\/\)$/{
12956 s//\1/
12957 q
12958 }
12959 /^X\/\(\/\).*/{
12960 s//\1/
12961 q
12962 }
12963 s/.*/./; q'`
12964
12965# Avoid depending upon Character Ranges.
12966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12969as_cr_digits='0123456789'
12970as_cr_alnum=$as_cr_Letters$as_cr_digits
12971
12972ECHO_C= ECHO_N= ECHO_T=
12973case `echo -n x` in #(((((
12974-n*)
12975 case `echo 'xy\c'` in
12976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12977 xy) ECHO_C='\c';;
12978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12979 ECHO_T=' ';;
12980 esac;;
12981*)
12982 ECHO_N='-n';;
12983esac
12984
12985rm -f conf$$ conf$$.exe conf$$.file
12986if test -d conf$$.dir; then
12987 rm -f conf$$.dir/conf$$.file
12988else
12989 rm -f conf$$.dir
12990 mkdir conf$$.dir 2>/dev/null
12991fi
12992if (echo >conf$$.file) 2>/dev/null; then
12993 if ln -s conf$$.file conf$$ 2>/dev/null; then
12994 as_ln_s='ln -s'
12995 # ... but there are two gotchas:
12996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12998 # In both cases, we have to default to `cp -p'.
12999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13000 as_ln_s='cp -p'
13001 elif ln conf$$.file conf$$ 2>/dev/null; then
13002 as_ln_s=ln
13003 else
13004 as_ln_s='cp -p'
13005 fi
13006else
13007 as_ln_s='cp -p'
13008fi
13009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13010rmdir conf$$.dir 2>/dev/null
13011
13012
13013# as_fn_mkdir_p
13014# -------------
13015# Create "$as_dir" as a directory, including parents if necessary.
13016as_fn_mkdir_p ()
13017{
13018
13019 case $as_dir in #(
13020 -*) as_dir=./$as_dir;;
13021 esac
13022 test -d "$as_dir" || eval $as_mkdir_p || {
13023 as_dirs=
13024 while :; do
13025 case $as_dir in #(
13026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13027 *) as_qdir=$as_dir;;
13028 esac
13029 as_dirs="'$as_qdir' $as_dirs"
13030 as_dir=`$as_dirname -- "$as_dir" ||
13031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13032 X"$as_dir" : 'X\(//\)[^/]' \| \
13033 X"$as_dir" : 'X\(//\)$' \| \
13034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13035$as_echo X"$as_dir" |
13036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13037 s//\1/
13038 q
13039 }
13040 /^X\(\/\/\)[^/].*/{
13041 s//\1/
13042 q
13043 }
13044 /^X\(\/\/\)$/{
13045 s//\1/
13046 q
13047 }
13048 /^X\(\/\).*/{
13049 s//\1/
13050 q
13051 }
13052 s/.*/./; q'`
13053 test -d "$as_dir" && break
13054 done
13055 test -z "$as_dirs" || eval "mkdir $as_dirs"
13056 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13057
13058
13059} # as_fn_mkdir_p
13060if mkdir -p . 2>/dev/null; then
13061 as_mkdir_p='mkdir -p "$as_dir"'
13062else
13063 test -d ./-p && rmdir ./-p
13064 as_mkdir_p=false
13065fi
13066
13067if test -x / >/dev/null 2>&1; then
13068 as_test_x='test -x'
13069else
13070 if ls -dL / >/dev/null 2>&1; then
13071 as_ls_L_option=L
13072 else
13073 as_ls_L_option=
13074 fi
13075 as_test_x='
13076 eval sh -c '\''
13077 if test -d "$1"; then
13078 test -d "$1/.";
13079 else
13080 case $1 in #(
13081 -*)set "./$1";;
13082 esac;
13083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13084 ???[sx]*):;;*)false;;esac;fi
13085 '\'' sh
13086 '
13087fi
13088as_executable_p=$as_test_x
13089
13090# Sed expression to map a string onto a valid CPP name.
13091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13092
13093# Sed expression to map a string onto a valid variable name.
13094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13095
13096
13097exec 6>&1
13098## ----------------------------------- ##
13099## Main body of $CONFIG_STATUS script. ##
13100## ----------------------------------- ##
13101_ASEOF
13102test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13103
13104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105# Save the log message, to keep $0 and so on meaningful, and to
13106# report actual input values of CONFIG_FILES etc. instead of their
13107# values after options handling.
13108ac_log="
13109This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13110generated by GNU Autoconf 2.64. Invocation command line was
13111
13112 CONFIG_FILES = $CONFIG_FILES
13113 CONFIG_HEADERS = $CONFIG_HEADERS
13114 CONFIG_LINKS = $CONFIG_LINKS
13115 CONFIG_COMMANDS = $CONFIG_COMMANDS
13116 $ $0 $@
13117
13118on `(hostname || uname -n) 2>/dev/null | sed 1q`
13119"
13120
13121_ACEOF
13122
13123case $ac_config_files in *"
13124"*) set x $ac_config_files; shift; ac_config_files=$*;;
13125esac
13126
13127case $ac_config_headers in *"
13128"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13129esac
13130
13131
13132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13133# Files that config.status was made for.
13134config_files="$ac_config_files"
13135config_headers="$ac_config_headers"
13136config_commands="$ac_config_commands"
13137
13138_ACEOF
13139
13140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141ac_cs_usage="\
13142\`$as_me' instantiates files and other configuration actions
13143from templates according to the current configuration. Unless the files
13144and actions are specified as TAGs, all are instantiated by default.
13145
13146Usage: $0 [OPTION]... [TAG]...
13147
13148 -h, --help print this help, then exit
13149 -V, --version print version number and configuration settings, then exit
13150 -q, --quiet, --silent
13151 do not print progress messages
13152 -d, --debug don't remove temporary files
13153 --recheck update $as_me by reconfiguring in the same conditions
13154 --file=FILE[:TEMPLATE]
13155 instantiate the configuration file FILE
13156 --header=FILE[:TEMPLATE]
13157 instantiate the configuration header FILE
13158
13159Configuration files:
13160$config_files
13161
13162Configuration headers:
13163$config_headers
13164
13165Configuration commands:
13166$config_commands
13167
13168Report bugs to the package provider."
13169
13170_ACEOF
13171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13172ac_cs_version="\\
13173GCC Quad-precision Math Library config.status 0.1
13174configured by $0, generated by GNU Autoconf 2.64,
13175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13176
13177Copyright (C) 2009 Free Software Foundation, Inc.
13178This config.status script is free software; the Free Software Foundation
13179gives unlimited permission to copy, distribute and modify it."
13180
13181ac_pwd='$ac_pwd'
13182srcdir='$srcdir'
13183INSTALL='$INSTALL'
13184MKDIR_P='$MKDIR_P'
13185AWK='$AWK'
13186test -n "\$AWK" || AWK=awk
13187_ACEOF
13188
13189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13190# The default lists apply if the user does not specify any file.
13191ac_need_defaults=:
13192while test $# != 0
13193do
13194 case $1 in
13195 --*=*)
13196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13198 ac_shift=:
13199 ;;
13200 *)
13201 ac_option=$1
13202 ac_optarg=$2
13203 ac_shift=shift
13204 ;;
13205 esac
13206
13207 case $ac_option in
13208 # Handling of the options.
13209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13210 ac_cs_recheck=: ;;
13211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13212 $as_echo "$ac_cs_version"; exit ;;
13213 --debug | --debu | --deb | --de | --d | -d )
13214 debug=: ;;
13215 --file | --fil | --fi | --f )
13216 $ac_shift
13217 case $ac_optarg in
13218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13219 esac
13220 as_fn_append CONFIG_FILES " '$ac_optarg'"
13221 ac_need_defaults=false;;
13222 --header | --heade | --head | --hea )
13223 $ac_shift
13224 case $ac_optarg in
13225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13226 esac
13227 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13228 ac_need_defaults=false;;
13229 --he | --h)
13230 # Conflict between --help and --header
13231 as_fn_error "ambiguous option: \`$1'
13232Try \`$0 --help' for more information.";;
13233 --help | --hel | -h )
13234 $as_echo "$ac_cs_usage"; exit ;;
13235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13237 ac_cs_silent=: ;;
13238
13239 # This is an error.
13240 -*) as_fn_error "unrecognized option: \`$1'
13241Try \`$0 --help' for more information." ;;
13242
13243 *) as_fn_append ac_config_targets " $1"
13244 ac_need_defaults=false ;;
13245
13246 esac
13247 shift
13248done
13249
13250ac_configure_extra_args=
13251
13252if $ac_cs_silent; then
13253 exec 6>/dev/null
13254 ac_configure_extra_args="$ac_configure_extra_args --silent"
13255fi
13256
13257_ACEOF
13258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259if \$ac_cs_recheck; then
13260 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13261 shift
13262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13263 CONFIG_SHELL='$SHELL'
13264 export CONFIG_SHELL
13265 exec "\$@"
13266fi
13267
13268_ACEOF
13269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13270exec 5>>config.log
13271{
13272 echo
13273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13274## Running $as_me. ##
13275_ASBOX
13276 $as_echo "$ac_log"
13277} >&5
13278
13279_ACEOF
13280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13281#
13282# INIT-COMMANDS
13283#
13284AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13285
13286
13287# The HP-UX ksh and POSIX shell print the target directory to stdout
13288# if CDPATH is set.
13289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13290
13291sed_quote_subst='$sed_quote_subst'
13292double_quote_subst='$double_quote_subst'
13293delay_variable_subst='$delay_variable_subst'
13294macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13295macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13296enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13297enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13298pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13299enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13300SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13301ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13302host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13303host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13304host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13305build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13306build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13307build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13308SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13309Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13310GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13311EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13312FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13313LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13314NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13315LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13316max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13317ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13318exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13319lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13320lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13321lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13322reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13323reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13324OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13325deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13326file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13327AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13328AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13329STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13330RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13331old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13332old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13333old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13334lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13335CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13336CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13337compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13338GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13339lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13340lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13341lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13342lt_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"`'
13343objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13344MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13345lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13346lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13347lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13348lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13349lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13350need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13351DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13352NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13353LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13354OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13355OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13356libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13357shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13358extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13359archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13360enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13361export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13362whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13363compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13364old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13365old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13366archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13367archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13368module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13369module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13370with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13371allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13372no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13373hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13374hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13375hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13376hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13377hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13378hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13379hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13380hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13381inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13382link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13383fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13384always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13385export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13386exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13387include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13388prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13389file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13390variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13391need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13392need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13393version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13394runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13395shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13396shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13397libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13398library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13399soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13400install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13401postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13402postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13403finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13404finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13405hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13406sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13407sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13408hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13409enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13410enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13411enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13412old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13413striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13414
13415LTCC='$LTCC'
13416LTCFLAGS='$LTCFLAGS'
13417compiler='$compiler_DEFAULT'
13418
13419# A function that is used when there is no print builtin or printf.
13420func_fallback_echo ()
13421{
13422 eval 'cat <<_LTECHO_EOF
13423\$1
13424_LTECHO_EOF'
13425}
13426
13427# Quote evaled strings.
13428for var in SHELL \
13429ECHO \
13430SED \
13431GREP \
13432EGREP \
13433FGREP \
13434LD \
13435NM \
13436LN_S \
13437lt_SP2NL \
13438lt_NL2SP \
13439reload_flag \
13440OBJDUMP \
13441deplibs_check_method \
13442file_magic_cmd \
13443AR \
13444AR_FLAGS \
13445STRIP \
13446RANLIB \
13447CC \
13448CFLAGS \
13449compiler \
13450lt_cv_sys_global_symbol_pipe \
13451lt_cv_sys_global_symbol_to_cdecl \
13452lt_cv_sys_global_symbol_to_c_name_address \
13453lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13454lt_prog_compiler_no_builtin_flag \
13455lt_prog_compiler_wl \
13456lt_prog_compiler_pic \
13457lt_prog_compiler_static \
13458lt_cv_prog_compiler_c_o \
13459need_locks \
13460DSYMUTIL \
13461NMEDIT \
13462LIPO \
13463OTOOL \
13464OTOOL64 \
13465shrext_cmds \
13466export_dynamic_flag_spec \
13467whole_archive_flag_spec \
13468compiler_needs_object \
13469with_gnu_ld \
13470allow_undefined_flag \
13471no_undefined_flag \
13472hardcode_libdir_flag_spec \
13473hardcode_libdir_flag_spec_ld \
13474hardcode_libdir_separator \
13475fix_srcfile_path \
13476exclude_expsyms \
13477include_expsyms \
13478file_list_spec \
13479variables_saved_for_relink \
13480libname_spec \
13481library_names_spec \
13482soname_spec \
13483install_override_mode \
13484finish_eval \
13485old_striplib \
13486striplib; do
13487 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13488 *[\\\\\\\`\\"\\\$]*)
13489 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13490 ;;
13491 *)
13492 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13493 ;;
13494 esac
13495done
13496
13497# Double-quote double-evaled strings.
13498for var in reload_cmds \
13499old_postinstall_cmds \
13500old_postuninstall_cmds \
13501old_archive_cmds \
13502extract_expsyms_cmds \
13503old_archive_from_new_cmds \
13504old_archive_from_expsyms_cmds \
13505archive_cmds \
13506archive_expsym_cmds \
13507module_cmds \
13508module_expsym_cmds \
13509export_symbols_cmds \
13510prelink_cmds \
13511postinstall_cmds \
13512postuninstall_cmds \
13513finish_cmds \
13514sys_lib_search_path_spec \
13515sys_lib_dlsearch_path_spec; do
13516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13517 *[\\\\\\\`\\"\\\$]*)
13518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13519 ;;
13520 *)
13521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13522 ;;
13523 esac
13524done
13525
13526ac_aux_dir='$ac_aux_dir'
13527xsi_shell='$xsi_shell'
13528lt_shell_append='$lt_shell_append'
13529
13530# See if we are running on zsh, and set the options which allow our
13531# commands through without removal of \ escapes INIT.
13532if test -n "\${ZSH_VERSION+set}" ; then
13533 setopt NO_GLOB_SUBST
13534fi
13535
13536
13537 PACKAGE='$PACKAGE'
13538 VERSION='$VERSION'
13539 TIMESTAMP='$TIMESTAMP'
13540 RM='$RM'
13541 ofile='$ofile'
13542
13543
13544
13545
13546srcdir="$srcdir"
13547host="$host"
13548target="$target"
13549with_multisubdir="$with_multisubdir"
13550with_multisrctop="$with_multisrctop"
13551with_target_subdir="$with_target_subdir"
13552ac_configure_args="${multilib_arg} ${ac_configure_args}"
13553multi_basedir="$multi_basedir"
13554CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13555CC="$CC"
13556CXX="$CXX"
13557GFORTRAN="$GFORTRAN"
13558GCJ="$GCJ"
13559
13560_ACEOF
13561
13562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563
13564# Handling of arguments.
13565for ac_config_target in $ac_config_targets
13566do
13567 case $ac_config_target in
13568 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13569 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13570 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13571 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13573
13574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13575 esac
13576done
13577
13578
13579# If the user did not use the arguments to specify the items to instantiate,
13580# then the envvar interface is used. Set only those that are not.
13581# We use the long form for the default assignment because of an extremely
13582# bizarre bug on SunOS 4.1.3.
13583if $ac_need_defaults; then
13584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13587fi
13588
13589# Have a temporary directory for convenience. Make it in the build tree
13590# simply because there is no reason against having it here, and in addition,
13591# creating and moving files from /tmp can sometimes cause problems.
13592# Hook for its removal unless debugging.
13593# Note that there is a small window in which the directory will not be cleaned:
13594# after its creation but before its name has been assigned to `$tmp'.
13595$debug ||
13596{
13597 tmp=
13598 trap 'exit_status=$?
13599 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13600' 0
13601 trap 'as_fn_exit 1' 1 2 13 15
13602}
13603# Create a (secure) tmp directory for tmp files.
13604
13605{
13606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13607 test -n "$tmp" && test -d "$tmp"
13608} ||
13609{
13610 tmp=./conf$$-$RANDOM
13611 (umask 077 && mkdir "$tmp")
13612} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13613
13614# Set up the scripts for CONFIG_FILES section.
13615# No need to generate them if there are no CONFIG_FILES.
13616# This happens for instance with `./config.status config.h'.
13617if test -n "$CONFIG_FILES"; then
13618
13619
13620ac_cr=`echo X | tr X '\015'`
13621# On cygwin, bash can eat \r inside `` if the user requested igncr.
13622# But we know of no other shell where ac_cr would be empty at this
13623# point, so we can use a bashism as a fallback.
13624if test "x$ac_cr" = x; then
13625 eval ac_cr=\$\'\\r\'
13626fi
13627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13629 ac_cs_awk_cr='\r'
13630else
13631 ac_cs_awk_cr=$ac_cr
13632fi
13633
13634echo 'BEGIN {' >"$tmp/subs1.awk" &&
13635_ACEOF
13636
13637
13638{
13639 echo "cat >conf$$subs.awk <<_ACEOF" &&
13640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13641 echo "_ACEOF"
13642} >conf$$subs.sh ||
13643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13644ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13645ac_delim='%!_!# '
13646for ac_last_try in false false false false false :; do
13647 . ./conf$$subs.sh ||
13648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13649
13650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13651 if test $ac_delim_n = $ac_delim_num; then
13652 break
13653 elif $ac_last_try; then
13654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13655 else
13656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13657 fi
13658done
13659rm -f conf$$subs.sh
13660
13661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13662cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13663_ACEOF
13664sed -n '
13665h
13666s/^/S["/; s/!.*/"]=/
13667p
13668g
13669s/^[^!]*!//
13670:repl
13671t repl
13672s/'"$ac_delim"'$//
13673t delim
13674:nl
13675h
13676s/\(.\{148\}\).*/\1/
13677t more1
13678s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13679p
13680n
13681b repl
13682:more1
13683s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13684p
13685g
13686s/.\{148\}//
13687t nl
13688:delim
13689h
13690s/\(.\{148\}\).*/\1/
13691t more2
13692s/["\\]/\\&/g; s/^/"/; s/$/"/
13693p
13694b
13695:more2
13696s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13697p
13698g
13699s/.\{148\}//
13700t delim
13701' <conf$$subs.awk | sed '
13702/^[^""]/{
13703 N
13704 s/\n//
13705}
13706' >>$CONFIG_STATUS || ac_write_fail=1
13707rm -f conf$$subs.awk
13708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709_ACAWK
13710cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13711 for (key in S) S_is_set[key] = 1
13712 FS = "\a"
13713
13714}
13715{
13716 line = $ 0
13717 nfields = split(line, field, "@")
13718 substed = 0
13719 len = length(field[1])
13720 for (i = 2; i < nfields; i++) {
13721 key = field[i]
13722 keylen = length(key)
13723 if (S_is_set[key]) {
13724 value = S[key]
13725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13726 len += length(value) + length(field[++i])
13727 substed = 1
13728 } else
13729 len += 1 + keylen
13730 }
13731
13732 print line
13733}
13734
13735_ACAWK
13736_ACEOF
13737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13740else
13741 cat
13742fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13743 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13744_ACEOF
13745
13746# VPATH may cause trouble with some makes, so we remove $(srcdir),
13747# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13748# trailing colons and then remove the whole line if VPATH becomes empty
13749# (actually we leave an empty line to preserve line numbers).
13750if test "x$srcdir" = x.; then
13751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13752s/:*\$(srcdir):*/:/
13753s/:*\${srcdir}:*/:/
13754s/:*@srcdir@:*/:/
13755s/^\([^=]*=[ ]*\):*/\1/
13756s/:*$//
13757s/^[^=]*=[ ]*$//
13758}'
13759fi
13760
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762fi # test -n "$CONFIG_FILES"
13763
13764# Set up the scripts for CONFIG_HEADERS section.
13765# No need to generate them if there are no CONFIG_HEADERS.
13766# This happens for instance with `./config.status Makefile'.
13767if test -n "$CONFIG_HEADERS"; then
13768cat >"$tmp/defines.awk" <<\_ACAWK ||
13769BEGIN {
13770_ACEOF
13771
13772# Transform confdefs.h into an awk script `defines.awk', embedded as
13773# here-document in config.status, that substitutes the proper values into
13774# config.h.in to produce config.h.
13775
13776# Create a delimiter string that does not exist in confdefs.h, to ease
13777# handling of long lines.
13778ac_delim='%!_!# '
13779for ac_last_try in false false :; do
13780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13781 if test -z "$ac_t"; then
13782 break
13783 elif $ac_last_try; then
13784 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13785 else
13786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13787 fi
13788done
13789
13790# For the awk script, D is an array of macro values keyed by name,
13791# likewise P contains macro parameters if any. Preserve backslash
13792# newline sequences.
13793
13794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13795sed -n '
13796s/.\{148\}/&'"$ac_delim"'/g
13797t rset
13798:rset
13799s/^[ ]*#[ ]*define[ ][ ]*/ /
13800t def
13801d
13802:def
13803s/\\$//
13804t bsnl
13805s/["\\]/\\&/g
13806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13807D["\1"]=" \3"/p
13808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13809d
13810:bsnl
13811s/["\\]/\\&/g
13812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13813D["\1"]=" \3\\\\\\n"\\/p
13814t cont
13815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13816t cont
13817d
13818:cont
13819n
13820s/.\{148\}/&'"$ac_delim"'/g
13821t clear
13822:clear
13823s/\\$//
13824t bsnlc
13825s/["\\]/\\&/g; s/^/"/; s/$/"/p
13826d
13827:bsnlc
13828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13829b cont
13830' <confdefs.h | sed '
13831s/'"$ac_delim"'/"\\\
13832"/g' >>$CONFIG_STATUS || ac_write_fail=1
13833
13834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835 for (key in D) D_is_set[key] = 1
13836 FS = "\a"
13837}
13838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13839 line = \$ 0
13840 split(line, arg, " ")
13841 if (arg[1] == "#") {
13842 defundef = arg[2]
13843 mac1 = arg[3]
13844 } else {
13845 defundef = substr(arg[1], 2)
13846 mac1 = arg[2]
13847 }
13848 split(mac1, mac2, "(") #)
13849 macro = mac2[1]
13850 prefix = substr(line, 1, index(line, defundef) - 1)
13851 if (D_is_set[macro]) {
13852 # Preserve the white space surrounding the "#".
13853 print prefix "define", macro P[macro] D[macro]
13854 next
13855 } else {
13856 # Replace #undef with comments. This is necessary, for example,
13857 # in the case of _POSIX_SOURCE, which is predefined and required
13858 # on some systems where configure will not decide to define it.
13859 if (defundef == "undef") {
13860 print "/*", prefix defundef, macro, "*/"
13861 next
13862 }
13863 }
13864}
13865{ print }
13866_ACAWK
13867_ACEOF
13868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13870fi # test -n "$CONFIG_HEADERS"
13871
13872
13873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13874shift
13875for ac_tag
13876do
13877 case $ac_tag in
13878 :[FHLC]) ac_mode=$ac_tag; continue;;
13879 esac
13880 case $ac_mode$ac_tag in
13881 :[FHL]*:*);;
13882 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13883 :[FH]-) ac_tag=-:-;;
13884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13885 esac
13886 ac_save_IFS=$IFS
13887 IFS=:
13888 set x $ac_tag
13889 IFS=$ac_save_IFS
13890 shift
13891 ac_file=$1
13892 shift
13893
13894 case $ac_mode in
13895 :L) ac_source=$1;;
13896 :[FH])
13897 ac_file_inputs=
13898 for ac_f
13899 do
13900 case $ac_f in
13901 -) ac_f="$tmp/stdin";;
13902 *) # Look for the file first in the build tree, then in the source tree
13903 # (if the path is not absolute). The absolute path cannot be DOS-style,
13904 # because $ac_f cannot contain `:'.
13905 test -f "$ac_f" ||
13906 case $ac_f in
13907 [\\/$]*) false;;
13908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13909 esac ||
13910 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13911 esac
13912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13913 as_fn_append ac_file_inputs " '$ac_f'"
13914 done
13915
13916 # Let's still pretend it is `configure' which instantiates (i.e., don't
13917 # use $as_me), people would be surprised to read:
13918 # /* config.h. Generated by config.status. */
13919 configure_input='Generated from '`
13920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13921 `' by configure.'
13922 if test x"$ac_file" != x-; then
13923 configure_input="$ac_file. $configure_input"
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13925$as_echo "$as_me: creating $ac_file" >&6;}
13926 fi
13927 # Neutralize special characters interpreted by sed in replacement strings.
13928 case $configure_input in #(
13929 *\&* | *\|* | *\\* )
13930 ac_sed_conf_input=`$as_echo "$configure_input" |
13931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13932 *) ac_sed_conf_input=$configure_input;;
13933 esac
13934
13935 case $ac_tag in
13936 *:-:* | *:-) cat >"$tmp/stdin" \
13937 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13938 esac
13939 ;;
13940 esac
13941
13942 ac_dir=`$as_dirname -- "$ac_file" ||
13943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13944 X"$ac_file" : 'X\(//\)[^/]' \| \
13945 X"$ac_file" : 'X\(//\)$' \| \
13946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13947$as_echo X"$ac_file" |
13948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13949 s//\1/
13950 q
13951 }
13952 /^X\(\/\/\)[^/].*/{
13953 s//\1/
13954 q
13955 }
13956 /^X\(\/\/\)$/{
13957 s//\1/
13958 q
13959 }
13960 /^X\(\/\).*/{
13961 s//\1/
13962 q
13963 }
13964 s/.*/./; q'`
13965 as_dir="$ac_dir"; as_fn_mkdir_p
13966 ac_builddir=.
13967
13968case "$ac_dir" in
13969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13970*)
13971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13972 # A ".." for each directory in $ac_dir_suffix.
13973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13974 case $ac_top_builddir_sub in
13975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13977 esac ;;
13978esac
13979ac_abs_top_builddir=$ac_pwd
13980ac_abs_builddir=$ac_pwd$ac_dir_suffix
13981# for backward compatibility:
13982ac_top_builddir=$ac_top_build_prefix
13983
13984case $srcdir in
13985 .) # We are building in place.
13986 ac_srcdir=.
13987 ac_top_srcdir=$ac_top_builddir_sub
13988 ac_abs_top_srcdir=$ac_pwd ;;
13989 [\\/]* | ?:[\\/]* ) # Absolute name.
13990 ac_srcdir=$srcdir$ac_dir_suffix;
13991 ac_top_srcdir=$srcdir
13992 ac_abs_top_srcdir=$srcdir ;;
13993 *) # Relative name.
13994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13995 ac_top_srcdir=$ac_top_build_prefix$srcdir
13996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13997esac
13998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13999
14000
14001 case $ac_mode in
14002 :F)
14003 #
14004 # CONFIG_FILE
14005 #
14006
14007 case $INSTALL in
14008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14010 esac
14011 ac_MKDIR_P=$MKDIR_P
14012 case $MKDIR_P in
14013 [\\/$]* | ?:[\\/]* ) ;;
14014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14015 esac
14016_ACEOF
14017
14018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14019# If the template does not know about datarootdir, expand it.
14020# FIXME: This hack should be removed a few years after 2.60.
14021ac_datarootdir_hack=; ac_datarootdir_seen=
14022ac_sed_dataroot='
14023/datarootdir/ {
14024 p
14025 q
14026}
14027/@datadir@/p
14028/@docdir@/p
14029/@infodir@/p
14030/@localedir@/p
14031/@mandir@/p'
14032case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14033*datarootdir*) ac_datarootdir_seen=yes;;
14034*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14036$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14037_ACEOF
14038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14039 ac_datarootdir_hack='
14040 s&@datadir@&$datadir&g
14041 s&@docdir@&$docdir&g
14042 s&@infodir@&$infodir&g
14043 s&@localedir@&$localedir&g
14044 s&@mandir@&$mandir&g
14045 s&\\\${datarootdir}&$datarootdir&g' ;;
14046esac
14047_ACEOF
14048
14049# Neutralize VPATH when `$srcdir' = `.'.
14050# Shell code in configure.ac might set extrasub.
14051# FIXME: do we really want to maintain this feature?
14052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053ac_sed_extra="$ac_vpsub
14054$extrasub
14055_ACEOF
14056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14057:t
14058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14059s|@configure_input@|$ac_sed_conf_input|;t t
14060s&@top_builddir@&$ac_top_builddir_sub&;t t
14061s&@top_build_prefix@&$ac_top_build_prefix&;t t
14062s&@srcdir@&$ac_srcdir&;t t
14063s&@abs_srcdir@&$ac_abs_srcdir&;t t
14064s&@top_srcdir@&$ac_top_srcdir&;t t
14065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14066s&@builddir@&$ac_builddir&;t t
14067s&@abs_builddir@&$ac_abs_builddir&;t t
14068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14069s&@INSTALL@&$ac_INSTALL&;t t
14070s&@MKDIR_P@&$ac_MKDIR_P&;t t
14071$ac_datarootdir_hack
14072"
14073eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14074 || as_fn_error "could not create $ac_file" "$LINENO" 5
14075
14076test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14077 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14080which seems to be undefined. Please make sure it is defined." >&5
14081$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14082which seems to be undefined. Please make sure it is defined." >&2;}
14083
14084 rm -f "$tmp/stdin"
14085 case $ac_file in
14086 -) cat "$tmp/out" && rm -f "$tmp/out";;
14087 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14088 esac \
14089 || as_fn_error "could not create $ac_file" "$LINENO" 5
14090 ;;
14091 :H)
14092 #
14093 # CONFIG_HEADER
14094 #
14095 if test x"$ac_file" != x-; then
14096 {
14097 $as_echo "/* $configure_input */" \
14098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14099 } >"$tmp/config.h" \
14100 || as_fn_error "could not create $ac_file" "$LINENO" 5
14101 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14103$as_echo "$as_me: $ac_file is unchanged" >&6;}
14104 else
14105 rm -f "$ac_file"
14106 mv "$tmp/config.h" "$ac_file" \
14107 || as_fn_error "could not create $ac_file" "$LINENO" 5
14108 fi
14109 else
14110 $as_echo "/* $configure_input */" \
14111 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14112 || as_fn_error "could not create -" "$LINENO" 5
14113 fi
14114# Compute "$ac_file"'s index in $config_headers.
14115_am_arg="$ac_file"
14116_am_stamp_count=1
14117for _am_header in $config_headers :; do
14118 case $_am_header in
14119 $_am_arg | $_am_arg:* )
14120 break ;;
14121 * )
14122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14123 esac
14124done
14125echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14126$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14127 X"$_am_arg" : 'X\(//\)[^/]' \| \
14128 X"$_am_arg" : 'X\(//\)$' \| \
14129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14130$as_echo X"$_am_arg" |
14131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14132 s//\1/
14133 q
14134 }
14135 /^X\(\/\/\)[^/].*/{
14136 s//\1/
14137 q
14138 }
14139 /^X\(\/\/\)$/{
14140 s//\1/
14141 q
14142 }
14143 /^X\(\/\).*/{
14144 s//\1/
14145 q
14146 }
14147 s/.*/./; q'`/stamp-h$_am_stamp_count
14148 ;;
14149
14150 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14151$as_echo "$as_me: executing $ac_file commands" >&6;}
14152 ;;
14153 esac
14154
14155
14156 case $ac_file$ac_mode in
14157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14158 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14159 # are listed without --file. Let's play safe and only enable the eval
14160 # if we detect the quoting.
14161 case $CONFIG_FILES in
14162 *\'*) eval set x "$CONFIG_FILES" ;;
14163 *) set x $CONFIG_FILES ;;
14164 esac
14165 shift
14166 for mf
14167 do
14168 # Strip MF so we end up with the name of the file.
14169 mf=`echo "$mf" | sed -e 's/:.*$//'`
14170 # Check whether this is an Automake generated Makefile or not.
14171 # We used to match only the files named `Makefile.in', but
14172 # some people rename them; so instead we look at the file content.
14173 # Grep'ing the first line is not enough: some people post-process
14174 # each Makefile.in and add a new line on top of each file to say so.
14175 # Grep'ing the whole file is not good either: AIX grep has a line
14176 # limit of 2048, but all sed's we know have understand at least 4000.
14177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14178 dirpart=`$as_dirname -- "$mf" ||
14179$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14180 X"$mf" : 'X\(//\)[^/]' \| \
14181 X"$mf" : 'X\(//\)$' \| \
14182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14183$as_echo X"$mf" |
14184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14185 s//\1/
14186 q
14187 }
14188 /^X\(\/\/\)[^/].*/{
14189 s//\1/
14190 q
14191 }
14192 /^X\(\/\/\)$/{
14193 s//\1/
14194 q
14195 }
14196 /^X\(\/\).*/{
14197 s//\1/
14198 q
14199 }
14200 s/.*/./; q'`
14201 else
14202 continue
14203 fi
14204 # Extract the definition of DEPDIR, am__include, and am__quote
14205 # from the Makefile without running `make'.
14206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14207 test -z "$DEPDIR" && continue
14208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14209 test -z "am__include" && continue
14210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14211 # When using ansi2knr, U may be empty or an underscore; expand it
14212 U=`sed -n 's/^U = //p' < "$mf"`
14213 # Find all dependency output files, they are included files with
14214 # $(DEPDIR) in their names. We invoke sed twice because it is the
14215 # simplest approach to changing $(DEPDIR) to its actual value in the
14216 # expansion.
14217 for file in `sed -n "
14218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14220 # Make sure the directory exists.
14221 test -f "$dirpart/$file" && continue
14222 fdir=`$as_dirname -- "$file" ||
14223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14224 X"$file" : 'X\(//\)[^/]' \| \
14225 X"$file" : 'X\(//\)$' \| \
14226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14227$as_echo X"$file" |
14228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\/\)[^/].*/{
14233 s//\1/
14234 q
14235 }
14236 /^X\(\/\/\)$/{
14237 s//\1/
14238 q
14239 }
14240 /^X\(\/\).*/{
14241 s//\1/
14242 q
14243 }
14244 s/.*/./; q'`
14245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14246 # echo "creating $dirpart/$file"
14247 echo '# dummy' > "$dirpart/$file"
14248 done
14249 done
14250}
14251 ;;
14252 "libtool":C)
14253
14254 # See if we are running on zsh, and set the options which allow our
14255 # commands through without removal of \ escapes.
14256 if test -n "${ZSH_VERSION+set}" ; then
14257 setopt NO_GLOB_SUBST
14258 fi
14259
14260 cfgfile="${ofile}T"
14261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14262 $RM "$cfgfile"
14263
14264 cat <<_LT_EOF >> "$cfgfile"
14265#! $SHELL
14266
14267# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14268# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14270# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14271#
14272# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14273# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14274# Written by Gordon Matzigkeit, 1996
14275#
14276# This file is part of GNU Libtool.
14277#
14278# GNU Libtool is free software; you can redistribute it and/or
14279# modify it under the terms of the GNU General Public License as
14280# published by the Free Software Foundation; either version 2 of
14281# the License, or (at your option) any later version.
14282#
14283# As a special exception to the GNU General Public License,
14284# if you distribute this file as part of a program or library that
14285# is built using GNU Libtool, you may include this file under the
14286# same distribution terms that you use for the rest of that program.
14287#
14288# GNU Libtool is distributed in the hope that it will be useful,
14289# but WITHOUT ANY WARRANTY; without even the implied warranty of
14290# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14291# GNU General Public License for more details.
14292#
14293# You should have received a copy of the GNU General Public License
14294# along with GNU Libtool; see the file COPYING. If not, a copy
14295# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14296# obtained by writing to the Free Software Foundation, Inc.,
14297# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14298
14299
14300# The names of the tagged configurations supported by this script.
14301available_tags=""
14302
14303# ### BEGIN LIBTOOL CONFIG
14304
14305# Which release of libtool.m4 was used?
14306macro_version=$macro_version
14307macro_revision=$macro_revision
14308
14309# Whether or not to build shared libraries.
14310build_libtool_libs=$enable_shared
14311
14312# Whether or not to build static libraries.
14313build_old_libs=$enable_static
14314
14315# What type of objects to build.
14316pic_mode=$pic_mode
14317
14318# Whether or not to optimize for fast installation.
14319fast_install=$enable_fast_install
14320
14321# Shell to use when invoking shell scripts.
14322SHELL=$lt_SHELL
14323
14324# An echo program that protects backslashes.
14325ECHO=$lt_ECHO
14326
14327# The host system.
14328host_alias=$host_alias
14329host=$host
14330host_os=$host_os
14331
14332# The build system.
14333build_alias=$build_alias
14334build=$build
14335build_os=$build_os
14336
14337# A sed program that does not truncate output.
14338SED=$lt_SED
14339
14340# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14341Xsed="\$SED -e 1s/^X//"
14342
14343# A grep program that handles long lines.
14344GREP=$lt_GREP
14345
14346# An ERE matcher.
14347EGREP=$lt_EGREP
14348
14349# A literal string matcher.
14350FGREP=$lt_FGREP
14351
14352# A BSD- or MS-compatible name lister.
14353NM=$lt_NM
14354
14355# Whether we need soft or hard links.
14356LN_S=$lt_LN_S
14357
14358# What is the maximum length of a command?
14359max_cmd_len=$max_cmd_len
14360
14361# Object file suffix (normally "o").
14362objext=$ac_objext
14363
14364# Executable file suffix (normally "").
14365exeext=$exeext
14366
14367# whether the shell understands "unset".
14368lt_unset=$lt_unset
14369
14370# turn spaces into newlines.
14371SP2NL=$lt_lt_SP2NL
14372
14373# turn newlines into spaces.
14374NL2SP=$lt_lt_NL2SP
14375
14376# An object symbol dumper.
14377OBJDUMP=$lt_OBJDUMP
14378
14379# Method to check whether dependent libraries are shared objects.
14380deplibs_check_method=$lt_deplibs_check_method
14381
14382# Command to use when deplibs_check_method == "file_magic".
14383file_magic_cmd=$lt_file_magic_cmd
14384
14385# The archiver.
14386AR=$lt_AR
14387AR_FLAGS=$lt_AR_FLAGS
14388
14389# A symbol stripping program.
14390STRIP=$lt_STRIP
14391
14392# Commands used to install an old-style archive.
14393RANLIB=$lt_RANLIB
14394old_postinstall_cmds=$lt_old_postinstall_cmds
14395old_postuninstall_cmds=$lt_old_postuninstall_cmds
14396
14397# Whether to use a lock for old archive extraction.
14398lock_old_archive_extraction=$lock_old_archive_extraction
14399
14400# A C compiler.
14401LTCC=$lt_CC
14402
14403# LTCC compiler flags.
14404LTCFLAGS=$lt_CFLAGS
14405
14406# Take the output of nm and produce a listing of raw symbols and C names.
14407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14408
14409# Transform the output of nm in a proper C declaration.
14410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14411
14412# Transform the output of nm in a C name address pair.
14413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14414
14415# Transform the output of nm in a C name address pair when lib prefix is needed.
14416global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14417
14418# The name of the directory that contains temporary libtool files.
14419objdir=$objdir
14420
14421# Used to examine libraries when file_magic_cmd begins with "file".
14422MAGIC_CMD=$MAGIC_CMD
14423
14424# Must we lock files when doing compilation?
14425need_locks=$lt_need_locks
14426
14427# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14428DSYMUTIL=$lt_DSYMUTIL
14429
14430# Tool to change global to local symbols on Mac OS X.
14431NMEDIT=$lt_NMEDIT
14432
14433# Tool to manipulate fat objects and archives on Mac OS X.
14434LIPO=$lt_LIPO
14435
14436# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14437OTOOL=$lt_OTOOL
14438
14439# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14440OTOOL64=$lt_OTOOL64
14441
14442# Old archive suffix (normally "a").
14443libext=$libext
14444
14445# Shared library suffix (normally ".so").
14446shrext_cmds=$lt_shrext_cmds
14447
14448# The commands to extract the exported symbol list from a shared archive.
14449extract_expsyms_cmds=$lt_extract_expsyms_cmds
14450
14451# Variables whose values should be saved in libtool wrapper scripts and
14452# restored at link time.
14453variables_saved_for_relink=$lt_variables_saved_for_relink
14454
14455# Do we need the "lib" prefix for modules?
14456need_lib_prefix=$need_lib_prefix
14457
14458# Do we need a version for libraries?
14459need_version=$need_version
14460
14461# Library versioning type.
14462version_type=$version_type
14463
14464# Shared library runtime path variable.
14465runpath_var=$runpath_var
14466
14467# Shared library path variable.
14468shlibpath_var=$shlibpath_var
14469
14470# Is shlibpath searched before the hard-coded library search path?
14471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14472
14473# Format of library name prefix.
14474libname_spec=$lt_libname_spec
14475
14476# List of archive names. First name is the real one, the rest are links.
14477# The last name is the one that the linker finds with -lNAME
14478library_names_spec=$lt_library_names_spec
14479
14480# The coded name of the library, if different from the real name.
14481soname_spec=$lt_soname_spec
14482
14483# Permission mode override for installation of shared libraries.
14484install_override_mode=$lt_install_override_mode
14485
14486# Command to use after installation of a shared archive.
14487postinstall_cmds=$lt_postinstall_cmds
14488
14489# Command to use after uninstallation of a shared archive.
14490postuninstall_cmds=$lt_postuninstall_cmds
14491
14492# Commands used to finish a libtool library installation in a directory.
14493finish_cmds=$lt_finish_cmds
14494
14495# As "finish_cmds", except a single script fragment to be evaled but
14496# not shown.
14497finish_eval=$lt_finish_eval
14498
14499# Whether we should hardcode library paths into libraries.
14500hardcode_into_libs=$hardcode_into_libs
14501
14502# Compile-time system search path for libraries.
14503sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14504
14505# Run-time system search path for libraries.
14506sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14507
14508# Whether dlopen is supported.
14509dlopen_support=$enable_dlopen
14510
14511# Whether dlopen of programs is supported.
14512dlopen_self=$enable_dlopen_self
14513
14514# Whether dlopen of statically linked programs is supported.
14515dlopen_self_static=$enable_dlopen_self_static
14516
14517# Commands to strip libraries.
14518old_striplib=$lt_old_striplib
14519striplib=$lt_striplib
14520
14521
14522# The linker used to build libraries.
14523LD=$lt_LD
14524
14525# How to create reloadable object files.
14526reload_flag=$lt_reload_flag
14527reload_cmds=$lt_reload_cmds
14528
14529# Commands used to build an old-style archive.
14530old_archive_cmds=$lt_old_archive_cmds
14531
14532# A language specific compiler.
14533CC=$lt_compiler
14534
14535# Is the compiler the GNU compiler?
14536with_gcc=$GCC
14537
14538# Compiler flag to turn off builtin functions.
14539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14540
14541# How to pass a linker flag through the compiler.
14542wl=$lt_lt_prog_compiler_wl
14543
14544# Additional compiler flags for building library objects.
14545pic_flag=$lt_lt_prog_compiler_pic
14546
14547# Compiler flag to prevent dynamic linking.
14548link_static_flag=$lt_lt_prog_compiler_static
14549
14550# Does compiler simultaneously support -c and -o options?
14551compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14552
14553# Whether or not to add -lc for building shared libraries.
14554build_libtool_need_lc=$archive_cmds_need_lc
14555
14556# Whether or not to disallow shared libs when runtime libs are static.
14557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14558
14559# Compiler flag to allow reflexive dlopens.
14560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14561
14562# Compiler flag to generate shared objects directly from archives.
14563whole_archive_flag_spec=$lt_whole_archive_flag_spec
14564
14565# Whether the compiler copes with passing no objects directly.
14566compiler_needs_object=$lt_compiler_needs_object
14567
14568# Create an old-style archive from a shared archive.
14569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14570
14571# Create a temporary old-style archive to link instead of a shared archive.
14572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14573
14574# Commands used to build a shared archive.
14575archive_cmds=$lt_archive_cmds
14576archive_expsym_cmds=$lt_archive_expsym_cmds
14577
14578# Commands used to build a loadable module if different from building
14579# a shared archive.
14580module_cmds=$lt_module_cmds
14581module_expsym_cmds=$lt_module_expsym_cmds
14582
14583# Whether we are building with GNU ld or not.
14584with_gnu_ld=$lt_with_gnu_ld
14585
14586# Flag that allows shared libraries with undefined symbols to be built.
14587allow_undefined_flag=$lt_allow_undefined_flag
14588
14589# Flag that enforces no undefined symbols.
14590no_undefined_flag=$lt_no_undefined_flag
14591
14592# Flag to hardcode \$libdir into a binary during linking.
14593# This must work even if \$libdir does not exist
14594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14595
14596# If ld is used when linking, flag to hardcode \$libdir into a binary
14597# during linking. This must work even if \$libdir does not exist.
14598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14599
14600# Whether we need a single "-rpath" flag with a separated argument.
14601hardcode_libdir_separator=$lt_hardcode_libdir_separator
14602
14603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14604# DIR into the resulting binary.
14605hardcode_direct=$hardcode_direct
14606
14607# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14608# DIR into the resulting binary and the resulting library dependency is
14609# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14610# library is relocated.
14611hardcode_direct_absolute=$hardcode_direct_absolute
14612
14613# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14614# into the resulting binary.
14615hardcode_minus_L=$hardcode_minus_L
14616
14617# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14618# into the resulting binary.
14619hardcode_shlibpath_var=$hardcode_shlibpath_var
14620
14621# Set to "yes" if building a shared library automatically hardcodes DIR
14622# into the library and all subsequent libraries and executables linked
14623# against it.
14624hardcode_automatic=$hardcode_automatic
14625
14626# Set to yes if linker adds runtime paths of dependent libraries
14627# to runtime path list.
14628inherit_rpath=$inherit_rpath
14629
14630# Whether libtool must link a program against all its dependency libraries.
14631link_all_deplibs=$link_all_deplibs
14632
14633# Fix the shell variable \$srcfile for the compiler.
14634fix_srcfile_path=$lt_fix_srcfile_path
14635
14636# Set to "yes" if exported symbols are required.
14637always_export_symbols=$always_export_symbols
14638
14639# The commands to list exported symbols.
14640export_symbols_cmds=$lt_export_symbols_cmds
14641
14642# Symbols that should not be listed in the preloaded symbols.
14643exclude_expsyms=$lt_exclude_expsyms
14644
14645# Symbols that must always be exported.
14646include_expsyms=$lt_include_expsyms
14647
14648# Commands necessary for linking programs (against libraries) with templates.
14649prelink_cmds=$lt_prelink_cmds
14650
14651# Specify filename containing input files.
14652file_list_spec=$lt_file_list_spec
14653
14654# How to hardcode a shared library path into an executable.
14655hardcode_action=$hardcode_action
14656
14657# ### END LIBTOOL CONFIG
14658
14659_LT_EOF
14660
14661 case $host_os in
14662 aix3*)
14663 cat <<\_LT_EOF >> "$cfgfile"
14664# AIX sometimes has problems with the GCC collect2 program. For some
14665# reason, if we set the COLLECT_NAMES environment variable, the problems
14666# vanish in a puff of smoke.
14667if test "X${COLLECT_NAMES+set}" != Xset; then
14668 COLLECT_NAMES=
14669 export COLLECT_NAMES
14670fi
14671_LT_EOF
14672 ;;
14673 esac
14674
14675
14676ltmain="$ac_aux_dir/ltmain.sh"
14677
14678
14679 # We use sed instead of cat because bash on DJGPP gets confused if
14680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14681 # text mode, it properly converts lines to CR/LF. This bash problem
14682 # is reportedly fixed, but why not run on old versions too?
14683 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14684 || (rm -f "$cfgfile"; exit 1)
14685
14686 case $xsi_shell in
14687 yes)
14688 cat << \_LT_EOF >> "$cfgfile"
14689
14690# func_dirname file append nondir_replacement
14691# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14692# otherwise set result to NONDIR_REPLACEMENT.
14693func_dirname ()
14694{
14695 case ${1} in
14696 */*) func_dirname_result="${1%/*}${2}" ;;
14697 * ) func_dirname_result="${3}" ;;
14698 esac
14699}
14700
14701# func_basename file
14702func_basename ()
14703{
14704 func_basename_result="${1##*/}"
14705}
14706
14707# func_dirname_and_basename file append nondir_replacement
14708# perform func_basename and func_dirname in a single function
14709# call:
14710# dirname: Compute the dirname of FILE. If nonempty,
14711# add APPEND to the result, otherwise set result
14712# to NONDIR_REPLACEMENT.
14713# value returned in "$func_dirname_result"
14714# basename: Compute filename of FILE.
14715# value retuned in "$func_basename_result"
14716# Implementation must be kept synchronized with func_dirname
14717# and func_basename. For efficiency, we do not delegate to
14718# those functions but instead duplicate the functionality here.
14719func_dirname_and_basename ()
14720{
14721 case ${1} in
14722 */*) func_dirname_result="${1%/*}${2}" ;;
14723 * ) func_dirname_result="${3}" ;;
14724 esac
14725 func_basename_result="${1##*/}"
14726}
14727
14728# func_stripname prefix suffix name
14729# strip PREFIX and SUFFIX off of NAME.
14730# PREFIX and SUFFIX must not contain globbing or regex special
14731# characters, hashes, percent signs, but SUFFIX may contain a leading
14732# dot (in which case that matches only a dot).
14733func_stripname ()
14734{
14735 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14736 # positional parameters, so assign one to ordinary parameter first.
14737 func_stripname_result=${3}
14738 func_stripname_result=${func_stripname_result#"${1}"}
14739 func_stripname_result=${func_stripname_result%"${2}"}
14740}
14741
14742# func_opt_split
14743func_opt_split ()
14744{
14745 func_opt_split_opt=${1%%=*}
14746 func_opt_split_arg=${1#*=}
14747}
14748
14749# func_lo2o object
14750func_lo2o ()
14751{
14752 case ${1} in
14753 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14754 *) func_lo2o_result=${1} ;;
14755 esac
14756}
14757
14758# func_xform libobj-or-source
14759func_xform ()
14760{
14761 func_xform_result=${1%.*}.lo
14762}
14763
14764# func_arith arithmetic-term...
14765func_arith ()
14766{
14767 func_arith_result=$(( $* ))
14768}
14769
14770# func_len string
14771# STRING may not start with a hyphen.
14772func_len ()
14773{
14774 func_len_result=${#1}
14775}
14776
14777_LT_EOF
14778 ;;
14779 *) # Bourne compatible functions.
14780 cat << \_LT_EOF >> "$cfgfile"
14781
14782# func_dirname file append nondir_replacement
14783# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14784# otherwise set result to NONDIR_REPLACEMENT.
14785func_dirname ()
14786{
14787 # Extract subdirectory from the argument.
14788 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14789 if test "X$func_dirname_result" = "X${1}"; then
14790 func_dirname_result="${3}"
14791 else
14792 func_dirname_result="$func_dirname_result${2}"
14793 fi
14794}
14795
14796# func_basename file
14797func_basename ()
14798{
14799 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14800}
14801
14802
14803# func_stripname prefix suffix name
14804# strip PREFIX and SUFFIX off of NAME.
14805# PREFIX and SUFFIX must not contain globbing or regex special
14806# characters, hashes, percent signs, but SUFFIX may contain a leading
14807# dot (in which case that matches only a dot).
14808# func_strip_suffix prefix name
14809func_stripname ()
14810{
14811 case ${2} in
14812 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14813 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14814 esac
14815}
14816
14817# sed scripts:
14818my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14819my_sed_long_arg='1s/^-[^=]*=//'
14820
14821# func_opt_split
14822func_opt_split ()
14823{
14824 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14825 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14826}
14827
14828# func_lo2o object
14829func_lo2o ()
14830{
14831 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14832}
14833
14834# func_xform libobj-or-source
14835func_xform ()
14836{
14837 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14838}
14839
14840# func_arith arithmetic-term...
14841func_arith ()
14842{
14843 func_arith_result=`expr "$@"`
14844}
14845
14846# func_len string
14847# STRING may not start with a hyphen.
14848func_len ()
14849{
14850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14851}
14852
14853_LT_EOF
14854esac
14855
14856case $lt_shell_append in
14857 yes)
14858 cat << \_LT_EOF >> "$cfgfile"
14859
14860# func_append var value
14861# Append VALUE to the end of shell variable VAR.
14862func_append ()
14863{
14864 eval "$1+=\$2"
14865}
14866_LT_EOF
14867 ;;
14868 *)
14869 cat << \_LT_EOF >> "$cfgfile"
14870
14871# func_append var value
14872# Append VALUE to the end of shell variable VAR.
14873func_append ()
14874{
14875 eval "$1=\$$1\$2"
14876}
14877
14878_LT_EOF
14879 ;;
14880 esac
14881
14882
14883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14884 || (rm -f "$cfgfile"; exit 1)
14885
14886 mv -f "$cfgfile" "$ofile" ||
14887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14888 chmod +x "$ofile"
14889
14890 ;;
14891 "default-1":C)
14892# Only add multilib support code if we just rebuilt the top-level
14893# Makefile.
14894case " $CONFIG_FILES " in
14895 *" Makefile "*)
14896 ac_file=Makefile . ${multi_basedir}/config-ml.in
14897 ;;
14898esac ;;
14899
14900 esac
14901done # for ac_tag
14902
14903
14904as_fn_exit 0
14905_ACEOF
14906ac_clean_files=$ac_clean_files_save
14907
14908test $ac_write_fail = 0 ||
14909 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14910
14911
14912# configure is writing to config.log, and then calls config.status.
14913# config.status does its own redirection, appending to config.log.
14914# Unfortunately, on DOS this fails, as config.log is still kept open
14915# by configure, so config.status won't be able to write to it; its
14916# output is simply discarded. So we exec the FD to /dev/null,
14917# effectively closing config.log, so it can be properly (re)opened and
14918# appended to by config.status. When coming back to configure, we
14919# need to make the FD available again.
14920if test "$no_create" != yes; then
14921 ac_cs_success=:
14922 ac_config_status_args=
14923 test "$silent" = yes &&
14924 ac_config_status_args="$ac_config_status_args --quiet"
14925 exec 5>/dev/null
14926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14927 exec 5>>config.log
14928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14929 # would make configure fail if this is the last instruction.
14930 $ac_cs_success || as_fn_exit $?
14931fi
14932if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14934$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14935fi
14936