]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
rl78.md (movdf): New define expand.
[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
1d92226b 172test \$(( 1 + 1 )) = 2 || exit 1
1ec601bf
FXC
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1d92226b 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
1ec601bf
FXC
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
3c36aa6b 604get_gcc_base_ver
4c993c44
TB
605GENINSRC_FALSE
606GENINSRC_TRUE
fda26abe 607XCFLAGS
1ec601bf
FXC
608BUILD_LIBQUADMATH_FALSE
609BUILD_LIBQUADMATH_TRUE
610LIBQUAD_USE_SYMVER_SUN_FALSE
611LIBQUAD_USE_SYMVER_SUN_TRUE
612LIBQUAD_USE_SYMVER_GNU_FALSE
613LIBQUAD_USE_SYMVER_GNU_TRUE
614LIBQUAD_USE_SYMVER_FALSE
615LIBQUAD_USE_SYMVER_TRUE
616toolexeclibdir
617toolexecdir
1ec601bf
FXC
618MAINT
619MAINTAINER_MODE_FALSE
620MAINTAINER_MODE_TRUE
621enable_static
622enable_shared
7de6ba7a 623lt_host_flags
1ec601bf
FXC
624OTOOL64
625OTOOL
626LIPO
627NMEDIT
628DSYMUTIL
629RANLIB
630AR
631OBJDUMP
632LN_S
633NM
634ac_ct_DUMPBIN
635DUMPBIN
636LD
637FGREP
1d92226b
JJ
638SED
639LIBTOOL
640REPORT_BUGS_TEXI
641REPORT_BUGS_TO
642BUILD_INFO_FALSE
643BUILD_INFO_TRUE
1ec601bf
FXC
644EGREP
645GREP
1d92226b 646CPP
1ec601bf
FXC
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
5d79f496 650am__nodep
1ec601bf
FXC
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664am__untar
665am__tar
666AMTAR
667am__leading_dot
668SET_MAKE
669AWK
670mkdir_p
671MKDIR_P
672INSTALL_STRIP_PROGRAM
673STRIP
674install_sh
675MAKEINFO
676AUTOHEADER
677AUTOMAKE
678AUTOCONF
679ACLOCAL
680VERSION
681PACKAGE
682CYGPATH_W
683am__isrc
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
ee5f0523 687multi_basedir
fabfcf5e 688target_noncanonical
1ec601bf
FXC
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
ee5f0523 742enable_multilib
1ec601bf 743enable_version_specific_runtime_libs
1d92226b 744enable_dependency_tracking
642d2873 745with_bugurl
1ec601bf
FXC
746enable_shared
747enable_static
748with_pic
749enable_fast_install
750with_gnu_ld
751enable_libtool_lock
752enable_maintainer_mode
bf382f5f 753enable_symvers
fda26abe 754enable_cet
4c993c44 755enable_generated_files_in_srcdir
3c36aa6b 756with_gcc_major_version_only
1ec601bf
FXC
757'
758 ac_precious_vars='build_alias
759host_alias
760target_alias
761CC
762CFLAGS
763LDFLAGS
764LIBS
765CPPFLAGS
766CPP'
767
768
769# Initialize some variables set by options.
770ac_init_help=
771ac_init_version=false
772ac_unrecognized_opts=
773ac_unrecognized_sep=
774# The variables have the same names as the options, with
775# dashes changed to underlines.
776cache_file=/dev/null
777exec_prefix=NONE
778no_create=
779no_recursion=
780prefix=NONE
781program_prefix=NONE
782program_suffix=NONE
783program_transform_name=s,x,x,
784silent=
785site=
786srcdir=
787verbose=
788x_includes=NONE
789x_libraries=NONE
790
791# Installation directory options.
792# These are left unexpanded so users can "make install exec_prefix=/foo"
793# and all the variables that are supposed to be based on exec_prefix
794# by default will actually change.
795# Use braces instead of parens because sh, perl, etc. also accept them.
796# (The list follows the same order as the GNU Coding Standards.)
797bindir='${exec_prefix}/bin'
798sbindir='${exec_prefix}/sbin'
799libexecdir='${exec_prefix}/libexec'
800datarootdir='${prefix}/share'
801datadir='${datarootdir}'
802sysconfdir='${prefix}/etc'
803sharedstatedir='${prefix}/com'
804localstatedir='${prefix}/var'
805includedir='${prefix}/include'
806oldincludedir='/usr/include'
807docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808infodir='${datarootdir}/info'
809htmldir='${docdir}'
810dvidir='${docdir}'
811pdfdir='${docdir}'
812psdir='${docdir}'
813libdir='${exec_prefix}/lib'
814localedir='${datarootdir}/locale'
815mandir='${datarootdir}/man'
816
817ac_prev=
818ac_dashdash=
819for ac_option
820do
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
826 fi
827
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880"enable_$ac_useropt"
881"*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906"enable_$ac_useropt"
907"*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information."
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 ;;
1172
1173 esac
1174done
1175
1176if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
1234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1240
1241
1242# Find the source files, if location was not specified.
1243if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251$as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273else
1274 ac_srcdir_defaulted=no
1275fi
1276if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279fi
1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284# When building in place, set srcdir=.
1285if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287fi
1288# Remove unnecessary trailing slashes from srcdir.
1289# Double slashes in file names in object file debugging info
1290# mess up M-x gdb in Emacs.
1291case $srcdir in
1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293esac
1294for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299done
1300
1301#
1302# Report the --help message.
1303#
1304if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1309
1310Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315Defaults for the options are specified in brackets.
1316
1317Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334By default, \`make install' will install all the files in
1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337for instance \`--prefix=\$HOME'.
1338
1339For better control, use the options below.
1340
1341Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361_ACEOF
1362
1363 cat <<\_ACEOF
1364
1365Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ee5f0523 1387 --enable-multilib build many library versions (default)
4c993c44
TB
1388 --enable-version-specific-runtime-libs
1389 specify that runtime libraries should be installed
1390 in a compiler-specific directory
1d92226b
JJ
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1ec601bf
FXC
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
bf382f5f 1400 --disable-symvers disable symbol versioning for libquadmath
fda26abe
IT
1401 --enable-cet enable Intel CET in target libraries
1402 [default=default]
4c993c44
TB
1403 --enable-generated-files-in-srcdir
1404 put copies of generated files in source dir intended
1405 for creating source tarballs for users without
1406 texinfo bison or flex
1ec601bf
FXC
1407
1408Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
642d2873 1411 --with-bugurl=URL Direct users to URL to report a bug
1ec601bf
FXC
1412 --with-pic try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1415 --with-gcc-major-version-only
1416 use only GCC major number in filesystem paths
1ec601bf
FXC
1417
1418Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427
1428Use these variables to override the choices made by `configure' or to help
1429it to find libraries and programs with nonstandard names/locations.
1430
1431Report bugs to the package provider.
1432_ACEOF
1433ac_status=$?
1434fi
1435
1436if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444case "$ac_dir" in
1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446*)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454esac
1455ac_abs_top_builddir=$ac_pwd
1456ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457# for backward compatibility:
1458ac_top_builddir=$ac_top_build_prefix
1459
1460case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473esac
1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489fi
1490
1491test -n "$ac_init_help" && exit $ac_status
1492if $ac_init_version; then
1493 cat <<\_ACEOF
1494GCC Quad-precision Math Library configure 0.1
1495generated by GNU Autoconf 2.64
1496
1497Copyright (C) 2009 Free Software Foundation, Inc.
1498This configure script is free software; the Free Software Foundation
1499gives unlimited permission to copy, distribute and modify it.
1500_ACEOF
1501 exit
1502fi
1503
1504## ------------------------ ##
1505## Autoconf initialization. ##
1506## ------------------------ ##
1507
1508# ac_fn_c_try_compile LINENO
1509# --------------------------
1510# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511ac_fn_c_try_compile ()
1512{
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535else
1536 $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540fi
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542 return $ac_retval
1543
1544} # ac_fn_c_try_compile
1545
1d92226b
JJ
1546# ac_fn_c_try_cpp LINENO
1547# ----------------------
1548# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_cpp ()
1ec601bf
FXC
1550{
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1d92226b 1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1ec601bf
FXC
1553case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1d92226b 1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1ec601bf
FXC
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1d92226b
JJ
1567 test $ac_status = 0; } >/dev/null && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1ec601bf 1569 test ! -s conftest.err
1ec601bf
FXC
1570 }; then :
1571 ac_retval=0
1572else
1573 $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1d92226b 1576 ac_retval=1
1ec601bf 1577fi
1ec601bf
FXC
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 return $ac_retval
1580
1d92226b 1581} # ac_fn_c_try_cpp
1ec601bf 1582
1d92226b 1583# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1ec601bf 1584# -------------------------------------------------------
1d92226b
JJ
1585# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586# the include files in INCLUDES and setting the cache variable VAR
1587# accordingly.
1588ac_fn_c_check_header_mongrel ()
1ec601bf
FXC
1589{
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1d92226b 1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1ec601bf
FXC
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593$as_echo_n "checking for $2... " >&6; }
1594if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1595 $as_echo_n "(cached) " >&6
1d92226b
JJ
1596fi
1597eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599$as_echo "$ac_res" >&6; }
1ec601bf 1600else
1d92226b
JJ
1601 # Is the header compilable?
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603$as_echo_n "checking $2 usability... " >&6; }
1604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1605/* end confdefs.h. */
1606$4
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_compile "$LINENO"; then :
1d92226b 1610 ac_header_compiler=yes
1ec601bf 1611else
1d92226b 1612 ac_header_compiler=no
1ec601bf
FXC
1613fi
1614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d92226b
JJ
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616$as_echo "$ac_header_compiler" >&6; }
1ec601bf 1617
1d92226b
JJ
1618# Is the header present?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620$as_echo_n "checking $2 presence... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h. */
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1627else
1628 ac_header_preproc=no
1629fi
1630rm -f conftest.err conftest.$ac_ext
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632$as_echo "$ac_header_preproc" >&6; }
1ec601bf 1633
1d92226b
JJ
1634# So? What about this header?
1635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636 yes:no: )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 ;;
1642 no:yes:* )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 ;;
1ec601bf 1654esac
1d92226b
JJ
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1ec601bf 1659else
1d92226b
JJ
1660 eval "$3=\$ac_header_compiler"
1661fi
1662eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1ec601bf
FXC
1665fi
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1ec601bf 1667
1d92226b 1668} # ac_fn_c_check_header_mongrel
1ec601bf
FXC
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1d92226b
JJ
1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713# -------------------------------------------------------
1714# Tests whether HEADER exists and can be compiled using the include files in
1715# INCLUDES, setting the cache variable VAR accordingly.
1716ac_fn_c_check_header_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726$4
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731else
1732 eval "$3=no"
1733fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741} # ac_fn_c_check_header_compile
1742
1743# ac_fn_c_try_link LINENO
1744# -----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_link ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 $as_test_x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1786
1787} # ac_fn_c_try_link
1788
1ec601bf
FXC
1789# ac_fn_c_check_func LINENO FUNC VAR
1790# ----------------------------------
1791# Tests whether FUNC exists, setting the cache variable VAR accordingly
1792ac_fn_c_check_func ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799else
fabfcf5e
KT
1800 if test x$gcc_no_link = xyes; then
1801 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1802fi
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1804/* end confdefs.h. */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814#ifdef __STDC__
1815# include <limits.h>
1816#else
1817# include <assert.h>
1818#endif
1819
1820#undef $2
1821
1822/* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825#ifdef __cplusplus
1826extern "C"
1827#endif
1828char $2 ();
1829/* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832#if defined __stub_$2 || defined __stub___$2
1833choke me
1834#endif
1835
1836int
1837main ()
1838{
1839return $2 ();
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846else
1847 eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857} # ac_fn_c_check_func
1d92226b
JJ
1858cat >config.log <<_ACEOF
1859This file contains any messages produced by compilers while
1860running configure, to aid debugging if configure makes a mistake.
e8d42d28 1861
1d92226b
JJ
1862It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1863generated by GNU Autoconf 2.64. Invocation command line was
1864
1865 $ $0 $@
1866
1867_ACEOF
1868exec 5>>config.log
1ec601bf
FXC
1869{
1870cat <<_ASUNAME
1871## --------- ##
1872## Platform. ##
1873## --------- ##
1874
1875hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880
1881/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883
1884/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1891
1892_ASUNAME
1893
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 $as_echo "PATH: $as_dir"
1900 done
1901IFS=$as_save_IFS
1902
1903} >&5
1904
1905cat >&5 <<_ACEOF
1906
1907
1908## ----------- ##
1909## Core tests. ##
1910## ----------- ##
1911
1912_ACEOF
1913
1914
1915# Keep a trace of the command line.
1916# Strip out --no-create and --no-recursion so they do not pile up.
1917# Strip out --silent because we don't want to record it for future runs.
1918# Also quote any args containing shell meta-characters.
1919# Make two passes to allow for proper duplicate-argument suppression.
1920ac_configure_args=
1921ac_configure_args0=
1922ac_configure_args1=
1923ac_must_keep_next=false
1924for ac_pass in 1 2
1925do
1926 for ac_arg
1927 do
1928 case $ac_arg in
1929 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931 | -silent | --silent | --silen | --sile | --sil)
1932 continue ;;
1933 *\'*)
1934 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 case $ac_pass in
1937 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938 2)
1939 as_fn_append ac_configure_args1 " '$ac_arg'"
1940 if test $ac_must_keep_next = true; then
1941 ac_must_keep_next=false # Got value, back to normal.
1942 else
1943 case $ac_arg in
1944 *=* | --config-cache | -C | -disable-* | --disable-* \
1945 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947 | -with-* | --with-* | -without-* | --without-* | --x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 esac
1951 ;;
1952 -* ) ac_must_keep_next=true ;;
1953 esac
1954 fi
1955 as_fn_append ac_configure_args " '$ac_arg'"
1956 ;;
1957 esac
1958 done
1959done
1960{ ac_configure_args0=; unset ac_configure_args0;}
1961{ ac_configure_args1=; unset ac_configure_args1;}
1962
1963# When interrupted or exit'd, cleanup temporary files, and complete
1964# config.log. We remove comments because anyway the quotes in there
1965# would cause problems or look ugly.
1966# WARNING: Use '\'' to represent an apostrophe within the trap.
1967# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1970 {
1971 echo
1972
1973 cat <<\_ASBOX
1974## ---------------- ##
1975## Cache variables. ##
1976## ---------------- ##
1977_ASBOX
1978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1980(
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2003 *)
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005 ;;
2006 esac |
2007 sort
2008)
2009 echo
2010
2011 cat <<\_ASBOX
2012## ----------------- ##
2013## Output variables. ##
2014## ----------------- ##
2015_ASBOX
2016 echo
2017 for ac_var in $ac_subst_vars
2018 do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 $as_echo "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2026
2027 if test -n "$ac_subst_files"; then
2028 cat <<\_ASBOX
2029## ------------------- ##
2030## File substitutions. ##
2031## ------------------- ##
2032_ASBOX
2033 echo
2034 for ac_var in $ac_subst_files
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043 fi
2044
2045 if test -s confdefs.h; then
2046 cat <<\_ASBOX
2047## ----------- ##
2048## confdefs.h. ##
2049## ----------- ##
2050_ASBOX
2051 echo
2052 cat confdefs.h
2053 echo
2054 fi
2055 test "$ac_signal" != 0 &&
2056 $as_echo "$as_me: caught signal $ac_signal"
2057 $as_echo "$as_me: exit $exit_status"
2058 } >&5
2059 rm -f core *.core core.conftest.* &&
2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 exit $exit_status
2062' 0
2063for ac_signal in 1 2 13 15; do
2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065done
2066ac_signal=0
2067
2068# confdefs.h avoids OS command line length limits that DEFS can exceed.
2069rm -f -r conftest* confdefs.h
2070
2071$as_echo "/* confdefs.h */" > confdefs.h
2072
2073# Predefined preprocessor variables.
2074
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_NAME "$PACKAGE_NAME"
2077_ACEOF
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081_ACEOF
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_VERSION "$PACKAGE_VERSION"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_STRING "$PACKAGE_STRING"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_URL "$PACKAGE_URL"
2097_ACEOF
2098
2099
2100# Let the site file select an alternate cache file if it wants to.
2101# Prefer an explicitly selected file to automatically selected ones.
2102ac_site_file1=NONE
2103ac_site_file2=NONE
2104if test -n "$CONFIG_SITE"; then
2105 ac_site_file1=$CONFIG_SITE
2106elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2109else
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2112fi
2113for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114do
2115 test "x$ac_site_file" = xNONE && continue
2116 if test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2120 . "$ac_site_file"
2121 fi
2122done
2123
2124if test -r "$cache_file"; then
2125 # Some versions of bash will fail to source /dev/null (special
2126 # files actually), so we avoid doing that.
2127 if test -f "$cache_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129$as_echo "$as_me: loading cache $cache_file" >&6;}
2130 case $cache_file in
2131 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132 *) . "./$cache_file";;
2133 esac
2134 fi
2135else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137$as_echo "$as_me: creating cache $cache_file" >&6;}
2138 >$cache_file
2139fi
2140
2141# Check that the precious variables saved in the cache have kept the same
2142# value.
2143ac_cache_corrupted=false
2144for ac_var in $ac_precious_vars; do
2145 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146 eval ac_new_set=\$ac_env_${ac_var}_set
2147 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148 eval ac_new_val=\$ac_env_${ac_var}_value
2149 case $ac_old_set,$ac_new_set in
2150 set,)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,set)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,);;
2159 *)
2160 if test "x$ac_old_val" != "x$ac_new_val"; then
2161 # differences in whitespace do not lead to failure.
2162 ac_old_val_w=`echo x $ac_old_val`
2163 ac_new_val_w=`echo x $ac_new_val`
2164 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167 ac_cache_corrupted=:
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171 eval $ac_var=\$ac_old_val
2172 fi
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2174$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2176$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 fi;;
2178 esac
2179 # Pass precious variables to config.status.
2180 if test "$ac_new_set" = set; then
2181 case $ac_new_val in
2182 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 *) ac_arg=$ac_var=$ac_new_val ;;
2184 esac
2185 case " $ac_configure_args " in
2186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2187 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188 esac
2189 fi
2190done
2191if $ac_cache_corrupted; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197fi
2198## -------------------- ##
2199## Main body of script. ##
2200## -------------------- ##
2201
2202ac_ext=c
2203ac_cpp='$CPP $CPPFLAGS'
2204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209
2210
2211
2212ac_config_headers="$ac_config_headers config.h"
2213
2214
2215# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2216#
2217# You will slowly go insane if you do not grok the following fact: when
2218# building this library, the top-level /target/ becomes the library's /host/.
2219#
2220# configure then causes --target to default to --host, exactly like any
2221# other package using autoconf. Therefore, 'target' and 'host' will
2222# always be the same. This makes sense both for native and cross compilers
2223# just think about it for a little while. :-)
2224#
2225# Also, if this library is being configured as part of a cross compiler, the
2226# top-level configure script will pass the "real" host as $with_cross_host.
2227#
2228# Do not delete or change the following two lines. For why, see
2229# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2230ac_aux_dir=
2231for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232 for ac_t in install-sh install.sh shtool; do
2233 if test -f "$ac_dir/$ac_t"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/$ac_t -c"
2236 break 2
2237 fi
2238 done
2239done
2240if test -z "$ac_aux_dir"; then
2241 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2242fi
2243
2244# These three variables are undocumented and unsupported,
2245# and are intended to be withdrawn in a future Autoconf release.
2246# They can cause serious problems if a builder's source tree is in a directory
2247# whose full name contains unusual characters.
2248ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2249ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2250ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251
2252
2253# Make sure we can run config.sub.
2254$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2256
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2258$as_echo_n "checking build system type... " >&6; }
2259if test "${ac_cv_build+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
2261else
2262 ac_build_alias=$build_alias
2263test "x$ac_build_alias" = x &&
2264 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2265test "x$ac_build_alias" = x &&
2266 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2267ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2268 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2269
2270fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2272$as_echo "$ac_cv_build" >&6; }
2273case $ac_cv_build in
2274*-*-*) ;;
2275*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2276esac
2277build=$ac_cv_build
2278ac_save_IFS=$IFS; IFS='-'
2279set x $ac_cv_build
2280shift
2281build_cpu=$1
2282build_vendor=$2
2283shift; shift
2284# Remember, the first character of IFS is used to create $*,
2285# except with old shells:
2286build_os=$*
2287IFS=$ac_save_IFS
2288case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2289
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292$as_echo_n "checking host system type... " >&6; }
2293if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295else
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301fi
2302
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305$as_echo "$ac_cv_host" >&6; }
2306case $ac_cv_host in
2307*-*-*) ;;
2308*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309esac
2310host=$ac_cv_host
2311ac_save_IFS=$IFS; IFS='-'
2312set x $ac_cv_host
2313shift
2314host_cpu=$1
2315host_vendor=$2
2316shift; shift
2317# Remember, the first character of IFS is used to create $*,
2318# except with old shells:
2319host_os=$*
2320IFS=$ac_save_IFS
2321case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325$as_echo_n "checking target system type... " >&6; }
2326if test "${ac_cv_target+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
2328else
2329 if test "x$target_alias" = x; then
2330 ac_cv_target=$ac_cv_host
2331else
2332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2334fi
2335
2336fi
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338$as_echo "$ac_cv_target" >&6; }
2339case $ac_cv_target in
2340*-*-*) ;;
2341*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342esac
2343target=$ac_cv_target
2344ac_save_IFS=$IFS; IFS='-'
2345set x $ac_cv_target
2346shift
2347target_cpu=$1
2348target_vendor=$2
2349shift; shift
2350# Remember, the first character of IFS is used to create $*,
2351# except with old shells:
2352target_os=$*
2353IFS=$ac_save_IFS
2354case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2355
2356
2357# The aliases save the names the user supplied, while $host etc.
2358# will get canonicalized.
2359test -n "$target_alias" &&
2360 test "$program_prefix$program_suffix$program_transform_name" = \
2361 NONENONEs,x,x, &&
2362 program_prefix=${target_alias}-
2363
fabfcf5e
KT
2364 case ${build_alias} in
2365 "") build_noncanonical=${build} ;;
2366 *) build_noncanonical=${build_alias} ;;
2367esac
2368
2369 case ${host_alias} in
2370 "") host_noncanonical=${build_noncanonical} ;;
2371 *) host_noncanonical=${host_alias} ;;
2372esac
2373
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
2377esac
2378
2379
2380
2381
ee5f0523
MK
2382# Default to --enable-multilib
2383# Check whether --enable-multilib was given.
2384if test "${enable_multilib+set}" = set; then :
2385 enableval=$enable_multilib; case "$enableval" in
2386 yes) multilib=yes ;;
2387 no) multilib=no ;;
2388 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2389 esac
2390else
2391 multilib=yes
2392fi
2393
2394
2395# We may get other options which we leave undocumented:
2396# --with-target-subdir, --with-multisrctop, --with-multisubdir
2397# See config-ml.in if you want the gory details.
2398
2399if test "$srcdir" = "."; then
2400 if test "$with_target_subdir" != "."; then
2401 multi_basedir="$srcdir/$with_multisrctop../.."
2402 else
2403 multi_basedir="$srcdir/$with_multisrctop.."
2404 fi
2405else
2406 multi_basedir="$srcdir/.."
2407fi
2408
2409
2410# Even if the default multilib is not a cross compilation,
2411# it may be that some of the other multilibs are.
2412if test $cross_compiling = no && test $multilib = yes \
2413 && test "x${with_multisubdir}" != x ; then
2414 cross_compiling=maybe
2415fi
2416
2417ac_config_commands="$ac_config_commands default-1"
2418
2419
1ec601bf
FXC
2420target_alias=${target_alias-$host_alias}
2421
fabfcf5e 2422
1ec601bf
FXC
2423am__api_version='1.11'
2424
2425# Find a good install program. We prefer a C program (faster),
2426# so one script is as good as another. But avoid the broken or
2427# incompatible versions:
2428# SysV /etc/install, /usr/sbin/install
2429# SunOS /usr/etc/install
2430# IRIX /sbin/install
2431# AIX /bin/install
2432# AmigaOS /C/install, which installs bootblocks on floppy discs
2433# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436# OS/2's system install, which has a completely different semantic
2437# ./install, which can be erroneously created by make from ./install.sh.
2438# Reject install programs that cannot install multiple files.
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440$as_echo_n "checking for a BSD-compatible install... " >&6; }
2441if test -z "$INSTALL"; then
2442if test "${ac_cv_path_install+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455 /usr/ucb/* ) ;;
2456 *)
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2459 # by default.
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2466 :
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2470 :
2471 else
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2475 mkdir conftest.dir
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2480 then
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 break 3
2483 fi
2484 fi
2485 fi
2486 done
2487 done
2488 ;;
2489esac
2490
2491 done
2492IFS=$as_save_IFS
2493
2494rm -rf conftest.one conftest.two conftest.dir
2495
2496fi
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2499 else
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2505 fi
2506fi
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508$as_echo "$INSTALL" >&6; }
2509
2510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511# It thinks the first close brace ends the variable substitution.
2512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513
2514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515
2516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519$as_echo_n "checking whether build environment is sane... " >&6; }
2520# Just in case
2521sleep 1
2522echo timestamp > conftest.file
2523# Reject unsafe characters in $srcdir or the absolute working directory
2524# name. Accept space and tab only in the latter.
2525am_lf='
2526'
2527case `pwd` in
2528 *[\\\"\#\$\&\'\`$am_lf]*)
2529 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2530esac
2531case $srcdir in
2532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2533 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2534esac
2535
2536# Do `set' in a subshell so we don't clobber the current shell's
2537# arguments. Must try -L first in case configure is actually a
2538# symlink; some systems play weird games with the mod time of symlinks
2539# (eg FreeBSD returns the mod time of the symlink's containing
2540# directory).
2541if (
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2544 # -L didn't work.
2545 set X `ls -t "$srcdir/configure" conftest.file`
2546 fi
2547 rm -f conftest.file
2548 if test "$*" != "X $srcdir/configure conftest.file" \
2549 && test "$*" != "X conftest.file $srcdir/configure"; then
2550
2551 # If neither matched, then we have a broken ls. This can happen
2552 # if, for instance, CONFIG_SHELL is bash and it inherits a
2553 # broken ls alias from the environment. This has actually
2554 # happened. Such a system could not be considered "sane".
2555 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2556alias in your environment" "$LINENO" 5
2557 fi
2558
2559 test "$2" = conftest.file
2560 )
2561then
2562 # Ok.
2563 :
2564else
2565 as_fn_error "newly created file is older than distributed files!
2566Check your system clock" "$LINENO" 5
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569$as_echo "yes" >&6; }
2570test "$program_prefix" != NONE &&
2571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2572# Use a double $ so make ignores it.
2573test "$program_suffix" != NONE &&
2574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2575# Double any \ or $.
2576# By default was `s,x,x', remove it if useless.
2577ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2578program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2579
2580# expand $ac_aux_dir to an absolute path
2581am_aux_dir=`cd $ac_aux_dir && pwd`
2582
2583if test x"${MISSING+set}" != xset; then
2584 case $am_aux_dir in
2585 *\ * | *\ *)
2586 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2587 *)
2588 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2589 esac
2590fi
2591# Use eval to expand $SHELL
2592if eval "$MISSING --run true"; then
2593 am_missing_run="$MISSING --run "
2594else
2595 am_missing_run=
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2597$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2598fi
2599
2600if test x"${install_sh}" != xset; then
2601 case $am_aux_dir in
2602 *\ * | *\ *)
2603 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2604 *)
2605 install_sh="\${SHELL} $am_aux_dir/install-sh"
2606 esac
2607fi
2608
2609# Installed binaries are usually stripped using `strip' when the user
2610# run `make install-strip'. However `strip' might not be the right
2611# tool to use in cross-compilation environments, therefore Automake
2612# will honor the `STRIP' environment variable to overrule this program.
2613if test "$cross_compiling" != no; then
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2616set dummy ${ac_tool_prefix}strip; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
2619if test "${ac_cv_prog_STRIP+set}" = set; then :
2620 $as_echo_n "(cached) " >&6
2621else
2622 if test -n "$STRIP"; then
2623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636done
2637 done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642STRIP=$ac_cv_prog_STRIP
2643if test -n "$STRIP"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2645$as_echo "$STRIP" >&6; }
2646else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649fi
2650
2651
2652fi
2653if test -z "$ac_cv_prog_STRIP"; then
2654 ac_ct_STRIP=$STRIP
2655 # Extract the first word of "strip", so it can be a program name with args.
2656set dummy strip; ac_word=$2
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661else
2662 if test -n "$ac_ct_STRIP"; then
2663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_STRIP="strip"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676done
2677 done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2683if test -n "$ac_ct_STRIP"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2685$as_echo "$ac_ct_STRIP" >&6; }
2686else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691 if test "x$ac_ct_STRIP" = x; then
2692 STRIP=":"
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698ac_tool_warned=yes ;;
2699esac
2700 STRIP=$ac_ct_STRIP
2701 fi
2702else
2703 STRIP="$ac_cv_prog_STRIP"
2704fi
2705
2706fi
2707INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2708
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2710$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2711if test -z "$MKDIR_P"; then
2712 if test "${ac_cv_path_mkdir+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_prog in mkdir gmkdir; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2723 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2724 'mkdir (GNU coreutils) '* | \
2725 'mkdir (coreutils) '* | \
2726 'mkdir (fileutils) '4.1*)
2727 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2728 break 3;;
2729 esac
2730 done
2731 done
2732 done
2733IFS=$as_save_IFS
2734
2735fi
2736
2737 if test "${ac_cv_path_mkdir+set}" = set; then
2738 MKDIR_P="$ac_cv_path_mkdir -p"
2739 else
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for MKDIR_P within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 test -d ./--version && rmdir ./--version
2745 MKDIR_P="$ac_install_sh -d"
2746 fi
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2749$as_echo "$MKDIR_P" >&6; }
2750
2751mkdir_p="$MKDIR_P"
2752case $mkdir_p in
2753 [\\/$]* | ?:[\\/]*) ;;
2754 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2755esac
2756
2757for ac_prog in gawk mawk nawk awk
2758do
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760set dummy $ac_prog; ac_word=$2
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762$as_echo_n "checking for $ac_word... " >&6; }
2763if test "${ac_cv_prog_AWK+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765else
2766 if test -n "$AWK"; then
2767 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_AWK="$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780done
2781 done
2782IFS=$as_save_IFS
2783
2784fi
2785fi
2786AWK=$ac_cv_prog_AWK
2787if test -n "$AWK"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2789$as_echo "$AWK" >&6; }
2790else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792$as_echo "no" >&6; }
2793fi
2794
2795
2796 test -n "$AWK" && break
2797done
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2800$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2801set x ${MAKE-make}
2802ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2803if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2804 $as_echo_n "(cached) " >&6
2805else
2806 cat >conftest.make <<\_ACEOF
2807SHELL = /bin/sh
2808all:
2809 @echo '@@@%%%=$(MAKE)=@@@%%%'
2810_ACEOF
2811# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2812case `${MAKE-make} -f conftest.make 2>/dev/null` in
2813 *@@@%%%=?*=@@@%%%*)
2814 eval ac_cv_prog_make_${ac_make}_set=yes;;
2815 *)
2816 eval ac_cv_prog_make_${ac_make}_set=no;;
2817esac
2818rm -f conftest.make
2819fi
2820if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822$as_echo "yes" >&6; }
2823 SET_MAKE=
2824else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827 SET_MAKE="MAKE=${MAKE-make}"
2828fi
2829
2830rm -rf .tst 2>/dev/null
2831mkdir .tst 2>/dev/null
2832if test -d .tst; then
2833 am__leading_dot=.
2834else
2835 am__leading_dot=_
2836fi
2837rmdir .tst 2>/dev/null
2838
2839if test "`cd $srcdir && pwd`" != "`pwd`"; then
2840 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2841 # is not polluted with repeated "-I."
2842 am__isrc=' -I$(srcdir)'
2843 # test to see if srcdir already configured
2844 if test -f $srcdir/config.status; then
2845 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846 fi
2847fi
2848
2849# test whether we have cygpath
2850if test -z "$CYGPATH_W"; then
2851 if (cygpath --version) >/dev/null 2>/dev/null; then
2852 CYGPATH_W='cygpath -w'
2853 else
2854 CYGPATH_W=echo
2855 fi
2856fi
2857
2858
2859# Define the identity of the package.
2860 PACKAGE='libquadmath'
2861 VERSION='0.1'
2862
2863
2864cat >>confdefs.h <<_ACEOF
2865#define PACKAGE "$PACKAGE"
2866_ACEOF
2867
2868
2869cat >>confdefs.h <<_ACEOF
2870#define VERSION "$VERSION"
2871_ACEOF
2872
2873# Some tools Automake needs.
2874
2875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2876
2877
2878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2879
2880
2881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2882
2883
2884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2885
2886
2887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888
2889# We need awk for the "check" target. The system "awk" is bad on
2890# some platforms.
5d79f496
MH
2891# Always define AMTAR for backward compatibility. Yes, it's still used
2892# in the wild :-( We should find a proper way to deprecate it ...
2893AMTAR='$${TAR-tar}'
1ec601bf 2894
5d79f496 2895am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1ec601bf
FXC
2896
2897
2898
2899
2900
2901
fabfcf5e
KT
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2903$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2904# Check whether --enable-version-specific-runtime-libs was given.
2905if test "${enable_version_specific_runtime_libs+set}" = set; then :
2906 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2907 yes) version_specific_libs=yes ;;
2908 no) version_specific_libs=no ;;
2909 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2910 esac
2911else
2912 version_specific_libs=no
2913fi
2914
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2916$as_echo "$version_specific_libs" >&6; }
2917
2918
2919
1d92226b 2920DEPDIR="${am__leading_dot}deps"
4c993c44 2921
1d92226b
JJ
2922ac_config_commands="$ac_config_commands depfiles"
2923
2924
2925am_make=${MAKE-make}
2926cat > confinc << 'END'
2927am__doit:
2928 @echo this is the am__doit target
2929.PHONY: am__doit
2930END
2931# If we don't find an include directive, just comment out the code.
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2933$as_echo_n "checking for style of include used by $am_make... " >&6; }
2934am__include="#"
2935am__quote=
2936_am_result=none
2937# First try GNU make style include.
2938echo "include confinc" > confmf
2939# Ignore all kinds of additional output from `make'.
2940case `$am_make -s -f confmf 2> /dev/null` in #(
2941*the\ am__doit\ target*)
2942 am__include=include
2943 am__quote=
2944 _am_result=GNU
2945 ;;
2946esac
2947# Now try BSD make style include.
2948if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 case `$am_make -s -f confmf 2> /dev/null` in #(
2951 *the\ am__doit\ target*)
2952 am__include=.include
2953 am__quote="\""
2954 _am_result=BSD
2955 ;;
2956 esac
2957fi
2958
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2961$as_echo "$_am_result" >&6; }
2962rm -f confinc confmf
2963
2964# Check whether --enable-dependency-tracking was given.
2965if test "${enable_dependency_tracking+set}" = set; then :
2966 enableval=$enable_dependency_tracking;
2967fi
2968
2969if test "x$enable_dependency_tracking" != xno; then
2970 am_depcomp="$ac_aux_dir/depcomp"
2971 AMDEPBACKSLASH='\'
5d79f496 2972 am__nodep='_no'
1d92226b
JJ
2973fi
2974 if test "x$enable_dependency_tracking" != xno; then
2975 AMDEP_TRUE=
2976 AMDEP_FALSE='#'
2977else
2978 AMDEP_TRUE='#'
2979 AMDEP_FALSE=
2980fi
2981
2982
2983ac_ext=c
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2990set dummy ${ac_tool_prefix}gcc; ac_word=$2
4c993c44
TB
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 2993if test "${ac_cv_prog_CC+set}" = set; then :
4c993c44
TB
2994 $as_echo_n "(cached) " >&6
2995else
1d92226b
JJ
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
4c993c44
TB
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 3006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4c993c44
TB
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010done
3011 done
3012IFS=$as_save_IFS
3013
3014fi
3015fi
1d92226b
JJ
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019$as_echo "$CC" >&6; }
4c993c44
TB
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
1d92226b
JJ
3026fi
3027if test -z "$ac_cv_prog_CC"; then
3028 ac_ct_CC=$CC
3029 # Extract the first word of "gcc", so it can be a program name with args.
3030set dummy gcc; ac_word=$2
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4c993c44
TB
3034 $as_echo_n "(cached) " >&6
3035else
1d92226b
JJ
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_ac_ct_CC="gcc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050done
3051 done
3052IFS=$as_save_IFS
4c993c44
TB
3053
3054fi
1d92226b
JJ
3055fi
3056ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059$as_echo "$ac_ct_CC" >&6; }
3060else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
4c993c44 3067 else
1d92226b
JJ
3068 case $cross_compiling:$ac_tool_warned in
3069yes:)
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072ac_tool_warned=yes ;;
3073esac
3074 CC=$ac_ct_CC
4c993c44 3075 fi
4c993c44 3076else
1d92226b 3077 CC="$ac_cv_prog_CC"
4c993c44
TB
3078fi
3079
1d92226b
JJ
3080if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3083set dummy ${ac_tool_prefix}cc; ac_word=$2
1ec601bf
FXC
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 3099 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ec601bf
FXC
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104 done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
1d92226b 3119 fi
1ec601bf 3120fi
1d92226b
JJ
3121if test -z "$CC"; then
3122 # Extract the first word of "cc", so it can be a program name with args.
3123set dummy cc; ac_word=$2
1ec601bf
FXC
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 3126if test "${ac_cv_prog_CC+set}" = set; then :
1ec601bf
FXC
3127 $as_echo_n "(cached) " >&6
3128else
1d92226b
JJ
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
1ec601bf 3131else
1d92226b 3132 ac_prog_rejected=no
1ec601bf
FXC
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b
JJ
3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3142 continue
3143 fi
3144 ac_cv_prog_CC="cc"
1ec601bf
FXC
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148done
3149 done
3150IFS=$as_save_IFS
3151
1d92226b
JJ
3152if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3155 shift
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3160 shift
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3162 fi
1ec601bf
FXC
3163fi
3164fi
1d92226b
JJ
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; }
1ec601bf
FXC
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
1ec601bf 3175
1d92226b 3176fi
1ec601bf 3177if test -z "$CC"; then
1d92226b
JJ
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in cl.exe
3180 do
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ec601bf
FXC
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if test "${ac_cv_prog_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3187else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ec601bf
FXC
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202done
3203 done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208CC=$ac_cv_prog_CC
3209if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211$as_echo "$CC" >&6; }
3212else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218 test -n "$CC" && break
3219 done
3220fi
3221if test -z "$CC"; then
3222 ac_ct_CC=$CC
3223 for ac_prog in cl.exe
3224do
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226set dummy $ac_prog; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246done
3247 done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255$as_echo "$ac_ct_CC" >&6; }
3256else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261
3262 test -n "$ac_ct_CC" && break
3263done
3264
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269yes:)
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272ac_tool_warned=yes ;;
3273esac
3274 CC=$ac_ct_CC
3275 fi
3276fi
3277
3278fi
3279
3280
3281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error "no acceptable C compiler found in \$PATH
3284See \`config.log' for more details." "$LINENO" 5; }
3285
3286# Provide some information about the compiler.
3287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3288set X $ac_compile
3289ac_compiler=$2
3290for ac_option in --version -v -V -qversion; do
3291 { { ac_try="$ac_compiler $ac_option >&5"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3299 ac_status=$?
3300 if test -s conftest.err; then
3301 sed '10a\
3302... rest of stderr output deleted ...
3303 10q' conftest.err >conftest.er1
3304 cat conftest.er1 >&5
3305 rm -f conftest.er1 conftest.err
3306 fi
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }
3309done
3310
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h. */
3313
fabfcf5e
KT
3314int
3315main ()
3316{
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322# FIXME: Cleanup?
3323if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3324 (eval $ac_link) 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 gcc_no_link=no
3329else
3330 gcc_no_link=yes
3331fi
3332if test x$gcc_no_link = xyes; then
3333 # Setting cross_compile will disable run tests; it will
3334 # also disable AC_CHECK_FILE but that's generally
3335 # correct if we can't link.
3336 cross_compiling=yes
3337 EXEEXT=
3338else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h. */
3341
1ec601bf
FXC
3342int
3343main ()
3344{
3345
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350ac_clean_files_save=$ac_clean_files
3351ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3352# Try to create an executable without -o first, disregard a.out.
3353# It will help us diagnose broken compilers, and finding out an intuition
3354# of exeext.
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356$as_echo_n "checking for C compiler default output file name... " >&6; }
3357ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358
3359# The possible output files:
3360ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361
3362ac_rmfiles=
3363for ac_file in $ac_files
3364do
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 esac
3369done
3370rm -f $ac_rmfiles
3371
3372if { { ac_try="$ac_link_default"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385# in a Makefile. We should not override ac_cv_exeext if it was cached,
3386# so that the user can short-circuit this test for compilers unknown to
3387# Autoconf.
3388for ac_file in $ac_files ''
3389do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 ;;
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 fi
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3409 * )
3410 break;;
3411 esac
3412done
3413test "$ac_cv_exeext" = no && ac_cv_exeext=
3414
3415else
3416 ac_file=''
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419$as_echo "$ac_file" >&6; }
3420if test -z "$ac_file"; then :
3421 $as_echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426{ as_fn_set_status 77
3427as_fn_error "C compiler cannot create executables
3428See \`config.log' for more details." "$LINENO" 5; }; }
3429fi
3430ac_exeext=$ac_cv_exeext
3431
3432# Check that the compiler produces executables we can run. If not, either
3433# the compiler is broken, or we cross compile.
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3435$as_echo_n "checking whether the C compiler works... " >&6; }
3436# If not cross compiling, check that we can run a simple program.
3437if test "$cross_compiling" != yes; then
3438 if { ac_try='./$ac_file'
3439 { { case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_try") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; }; then
3449 cross_compiling=no
3450 else
3451 if test "$cross_compiling" = maybe; then
3452 cross_compiling=yes
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error "cannot run C compiled programs.
3457If you meant to cross compile, use \`--host'.
3458See \`config.log' for more details." "$LINENO" 5; }
3459 fi
3460 fi
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463$as_echo "yes" >&6; }
3464
3465rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3466ac_clean_files=$ac_clean_files_save
3467# Check that the compiler produces executables we can run. If not, either
3468# the compiler is broken, or we cross compile.
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470$as_echo_n "checking whether we are cross compiling... " >&6; }
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472$as_echo "$cross_compiling" >&6; }
3473
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3475$as_echo_n "checking for suffix of executables... " >&6; }
3476if { { ac_try="$ac_link"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482$as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3488# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3489# work properly (i.e., refer to `conftest.exe'), while it won't with
3490# `rm'.
3491for ac_file in conftest.exe conftest conftest.*; do
3492 test -f "$ac_file" || continue
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 break;;
3497 * ) break;;
3498 esac
3499done
3500else
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503as_fn_error "cannot compute suffix of executables: cannot compile and link
3504See \`config.log' for more details." "$LINENO" 5; }
3505fi
3506rm -f conftest$ac_cv_exeext
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3508$as_echo "$ac_cv_exeext" >&6; }
3509
3510rm -f conftest.$ac_ext
3511EXEEXT=$ac_cv_exeext
3512ac_exeext=$EXEEXT
fabfcf5e 3513fi
1ec601bf
FXC
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515$as_echo_n "checking for suffix of object files... " >&6; }
3516if test "${ac_cv_objext+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530rm -f conftest.o conftest.obj
3531if { { ac_try="$ac_compile"
3532case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 for ac_file in conftest.o conftest.obj conftest.*; do
3543 test -f "$ac_file" || continue;
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547 break;;
3548 esac
3549done
3550else
3551 $as_echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error "cannot compute suffix of object files: cannot compile
3557See \`config.log' for more details." "$LINENO" 5; }
3558fi
3559rm -f conftest.$ac_cv_objext conftest.$ac_ext
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562$as_echo "$ac_cv_objext" >&6; }
3563OBJEXT=$ac_cv_objext
3564ac_objext=$OBJEXT
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h. */
3572
3573int
3574main ()
3575{
3576#ifndef __GNUC__
3577 choke me
3578#endif
3579
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_compiler_gnu=yes
3586else
3587 ac_compiler_gnu=no
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597else
3598 GCC=
3599fi
3600ac_test_CFLAGS=${CFLAGS+set}
3601ac_save_CFLAGS=$CFLAGS
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603$as_echo_n "checking whether $CC accepts -g... " >&6; }
3604if test "${ac_cv_prog_cc_g+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613
3614int
3615main ()
3616{
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624else
3625 CFLAGS=""
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637if ac_fn_c_try_compile "$LINENO"; then :
3638
3639else
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h. */
3644
3645int
3646main ()
3647{
3648
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3655fi
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664$as_echo "$ac_cv_prog_cc_g" >&6; }
3665if test "$ac_test_CFLAGS" = set; then
3666 CFLAGS=$ac_save_CFLAGS
3667elif test $ac_cv_prog_cc_g = yes; then
3668 if test "$GCC" = yes; then
3669 CFLAGS="-g -O2"
3670 else
3671 CFLAGS="-g"
3672 fi
3673else
3674 if test "$GCC" = yes; then
3675 CFLAGS="-O2"
3676 else
3677 CFLAGS=
3678 fi
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682if test "${ac_cv_prog_cc_c89+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684else
3685 ac_cv_prog_cc_c89=no
3686ac_save_CC=$CC
3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h. */
3689#include <stdarg.h>
3690#include <stdio.h>
3691#include <sys/types.h>
3692#include <sys/stat.h>
3693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3694struct buf { int x; };
3695FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696static char *e (p, i)
3697 char **p;
3698 int i;
3699{
3700 return p[i];
3701}
3702static char *f (char * (*g) (char **, int), char **p, ...)
3703{
3704 char *s;
3705 va_list v;
3706 va_start (v,p);
3707 s = g (p, va_arg (v,int));
3708 va_end (v);
3709 return s;
3710}
3711
3712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3713 function prototypes and stuff, but not '\xHH' hex character constants.
3714 These don't provoke an error unfortunately, instead are silently treated
3715 as 'x'. The following induces an error, until -std is added to get
3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3717 array size at least. It's necessary to write '\x00'==0 to get something
3718 that's true only with -std. */
3719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720
3721/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722 inside strings and character constants. */
3723#define FOO(x) 'x'
3724int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725
3726int test (int i, double x);
3727struct s1 {int (*f) (int a);};
3728struct s2 {int (*f) (double a);};
3729int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730int argc;
3731char **argv;
3732int
3733main ()
3734{
3735return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 ;
3737 return 0;
3738}
3739_ACEOF
3740for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742do
3743 CC="$ac_save_CC $ac_arg"
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_c89=$ac_arg
3746fi
3747rm -f core conftest.err conftest.$ac_objext
3748 test "x$ac_cv_prog_cc_c89" != "xno" && break
3749done
3750rm -f conftest.$ac_ext
3751CC=$ac_save_CC
3752
3753fi
3754# AC_CACHE_VAL
3755case "x$ac_cv_prog_cc_c89" in
3756 x)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758$as_echo "none needed" >&6; } ;;
3759 xno)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761$as_echo "unsupported" >&6; } ;;
3762 *)
3763 CC="$CC $ac_cv_prog_cc_c89"
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3765$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3766esac
3767if test "x$ac_cv_prog_cc_c89" != xno; then :
3768
3769fi
3770
3771ac_ext=c
3772ac_cpp='$CPP $CPPFLAGS'
3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf 3776
fabfcf5e 3777depcc="$CC" am_compiler_list=
1ec601bf 3778
fabfcf5e
KT
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3780$as_echo_n "checking dependency style of $depcc... " >&6; }
3781if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3783else
3784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3785 # We make a subdir and do the tests there. Otherwise we can end up
3786 # making bogus files that we don't know about and never remove. For
3787 # instance it was reported that on HP-UX the gcc test will end up
3788 # making a dummy file named `D' -- because `-MD' means `put the output
3789 # in D'.
5d79f496 3790 rm -rf conftest.dir
fabfcf5e
KT
3791 mkdir conftest.dir
3792 # Copy depcomp to subdir because otherwise we won't find it if we're
3793 # using a relative directory.
3794 cp "$am_depcomp" conftest.dir
3795 cd conftest.dir
3796 # We will build objects and dependencies in a subdirectory because
3797 # it helps to detect inapplicable dependency modes. For instance
3798 # both Tru64's cc and ICC support -MD to output dependencies as a
3799 # side effect of compilation, but ICC will put the dependencies in
3800 # the current directory while Tru64 will put them in the object
3801 # directory.
3802 mkdir sub
1ec601bf
FXC
3803
3804 am_cv_CC_dependencies_compiler_type=none
3805 if test "$am_compiler_list" = ""; then
3806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807 fi
3808 am__universal=false
3809 case " $depcc " in #(
3810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3811 esac
3812
3813 for depmode in $am_compiler_list; do
3814 # Setup a source with many dependencies, because some compilers
3815 # like to wrap large dependency lists on column 80 (with \), and
3816 # we should not choose a depcomp mode which is confused by this.
3817 #
3818 # We need to recreate these files for each test, as the compiler may
3819 # overwrite some of them when testing with obscure command lines.
3820 # This happens at least with the AIX C compiler.
3821 : > sub/conftest.c
3822 for i in 1 2 3 4 5 6; do
3823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3825 # Solaris 8's {/usr,}/bin/sh.
3826 touch sub/conftst$i.h
3827 done
3828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3829
3830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3831 # mode. It turns out that the SunPro C++ compiler does not properly
3832 # handle `-M -o', and we need to detect this. Also, some Intel
3833 # versions had trouble with output in subdirs
3834 am__obj=sub/conftest.${OBJEXT-o}
3835 am__minus_obj="-o $am__obj"
3836 case $depmode in
3837 gcc)
3838 # This depmode causes a compiler race in universal mode.
3839 test "$am__universal" = false || continue
3840 ;;
3841 nosideeffect)
3842 # after this tag, mechanisms are not by side-effect, so they'll
3843 # only be used when explicitly requested
3844 if test "x$enable_dependency_tracking" = xyes; then
3845 continue
3846 else
3847 break
3848 fi
3849 ;;
5d79f496 3850 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1ec601bf
FXC
3851 # This compiler won't grok `-c -o', but also, the minuso test has
3852 # not run yet. These depmodes are late enough in the game, and
3853 # so weak that their functioning should not be impacted.
3854 am__obj=conftest.${OBJEXT-o}
3855 am__minus_obj=
3856 ;;
3857 none) break ;;
3858 esac
3859 if depmode=$depmode \
3860 source=sub/conftest.c object=$am__obj \
3861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3863 >/dev/null 2>conftest.err &&
3864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3868 # icc doesn't choke on unknown options, it will just issue warnings
3869 # or remarks (even with -Werror). So we grep stderr for any message
3870 # that says an option was ignored or not supported.
3871 # When given -MP, icc 7.0 and 7.1 complain thusly:
3872 # icc: Command line warning: ignoring option '-M'; no argument required
3873 # The diagnosis changed in icc 8.0:
3874 # icc: Command line remark: option '-MP' not supported
3875 if (grep 'ignoring option' conftest.err ||
3876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3877 am_cv_CC_dependencies_compiler_type=$depmode
3878 break
3879 fi
3880 fi
3881 done
3882
3883 cd ..
3884 rm -rf conftest.dir
3885else
3886 am_cv_CC_dependencies_compiler_type=none
3887fi
3888
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3891$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3892CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3893
3894 if
3895 test "x$enable_dependency_tracking" != xno \
3896 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3897 am__fastdepCC_TRUE=
3898 am__fastdepCC_FALSE='#'
3899else
3900 am__fastdepCC_TRUE='#'
3901 am__fastdepCC_FALSE=
3902fi
3903
3904
1d92226b
JJ
3905
3906ac_ext=c
3907ac_cpp='$CPP $CPPFLAGS'
3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3912$as_echo_n "checking how to run the C preprocessor... " >&6; }
3913# On Suns, sometimes $CPP names a directory.
3914if test -n "$CPP" && test -d "$CPP"; then
3915 CPP=
3916fi
3917if test -z "$CPP"; then
3918 if test "${ac_cv_prog_CPP+set}" = set; then :
1ec601bf
FXC
3919 $as_echo_n "(cached) " >&6
3920else
1d92226b
JJ
3921 # Double quotes because CPP needs to be expanded
3922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3923 do
3924 ac_preproc_ok=false
3925for ac_c_preproc_warn_flag in '' yes
fabfcf5e 3926do
1d92226b
JJ
3927 # Use a header file that comes with gcc, so configuring glibc
3928 # with a fresh cross-compiler works.
3929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3930 # <limits.h> exists even on freestanding compilers.
3931 # On the NeXT, cc -E runs the code through the compiler's parser,
3932 # not just through cpp. "Syntax error" is here to catch this case.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h. */
3935#ifdef __STDC__
3936# include <limits.h>
3937#else
3938# include <assert.h>
3939#endif
3940 Syntax error
3941_ACEOF
3942if ac_fn_c_try_cpp "$LINENO"; then :
fabfcf5e 3943
1ec601bf 3944else
1d92226b
JJ
3945 # Broken: fails on valid input.
3946continue
1ec601bf 3947fi
1d92226b 3948rm -f conftest.err conftest.$ac_ext
1ec601bf 3949
1d92226b
JJ
3950 # OK, works on sane cases. Now check whether nonexistent headers
3951 # can be detected and how.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h. */
3954#include <ac_nonexistent.h>
3955_ACEOF
3956if ac_fn_c_try_cpp "$LINENO"; then :
3957 # Broken: success on invalid input.
3958continue
3959else
3960 # Passes both tests.
3961ac_preproc_ok=:
3962break
1ec601bf 3963fi
1d92226b 3964rm -f conftest.err conftest.$ac_ext
1ec601bf 3965
1d92226b
JJ
3966done
3967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968rm -f conftest.err conftest.$ac_ext
3969if $ac_preproc_ok; then :
3970 break
3971fi
1ec601bf 3972
1d92226b
JJ
3973 done
3974 ac_cv_prog_CPP=$CPP
1ec601bf 3975
1d92226b
JJ
3976fi
3977 CPP=$ac_cv_prog_CPP
1ec601bf 3978else
1d92226b
JJ
3979 ac_cv_prog_CPP=$CPP
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3982$as_echo "$CPP" >&6; }
3983ac_preproc_ok=false
3984for ac_c_preproc_warn_flag in '' yes
1ec601bf 3985do
1d92226b
JJ
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994#ifdef __STDC__
3995# include <limits.h>
3996#else
3997# include <assert.h>
3998#endif
3999 Syntax error
4000_ACEOF
4001if ac_fn_c_try_cpp "$LINENO"; then :
4002
4003else
4004 # Broken: fails on valid input.
4005continue
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013#include <ac_nonexistent.h>
4014_ACEOF
4015if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4017continue
4018else
4019 # Passes both tests.
4020ac_preproc_ok=:
4021break
4022fi
4023rm -f conftest.err conftest.$ac_ext
4024
4025done
4026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027rm -f conftest.err conftest.$ac_ext
4028if $ac_preproc_ok; then :
4029
4030else
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033as_fn_error "C preprocessor \"$CPP\" fails sanity check
4034See \`config.log' for more details." "$LINENO" 5; }
4035fi
4036
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4045$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4046if test "${ac_cv_path_GREP+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048else
4049 if test -z "$GREP"; then
4050 ac_path_GREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in grep ggrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4061# Check for GNU ac_path_GREP and select it if it is found.
4062 # Check for GNU $ac_path_GREP
4063case `"$ac_path_GREP" --version 2>&1` in
4064*GNU*)
1ec601bf
FXC
4065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4066*)
4067 ac_count=0
4068 $as_echo_n 0123456789 >"conftest.in"
4069 while :
4070 do
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 $as_echo 'GREP' >> "conftest.nl"
4075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 as_fn_arith $ac_count + 1 && ac_count=$as_val
4078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_GREP="$ac_path_GREP"
4081 ac_path_GREP_max=$ac_count
4082 fi
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087esac
4088
4089 $ac_path_GREP_found && break 3
4090 done
4091 done
4092 done
4093IFS=$as_save_IFS
4094 if test -z "$ac_cv_path_GREP"; then
4095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 fi
4097else
4098 ac_cv_path_GREP=$GREP
4099fi
4100
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4103$as_echo "$ac_cv_path_GREP" >&6; }
4104 GREP="$ac_cv_path_GREP"
4105
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4108$as_echo_n "checking for egrep... " >&6; }
4109if test "${ac_cv_path_EGREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111else
4112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4113 then ac_cv_path_EGREP="$GREP -E"
4114 else
4115 if test -z "$EGREP"; then
4116 ac_path_EGREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in egrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4127# Check for GNU ac_path_EGREP and select it if it is found.
4128 # Check for GNU $ac_path_EGREP
4129case `"$ac_path_EGREP" --version 2>&1` in
4130*GNU*)
4131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4132*)
4133 ac_count=0
4134 $as_echo_n 0123456789 >"conftest.in"
4135 while :
4136 do
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'EGREP' >> "conftest.nl"
4141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_EGREP="$ac_path_EGREP"
4147 ac_path_EGREP_max=$ac_count
4148 fi
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4151 done
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
4155 $ac_path_EGREP_found && break 3
4156 done
4157 done
4158 done
4159IFS=$as_save_IFS
4160 if test -z "$ac_cv_path_EGREP"; then
4161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162 fi
4163else
4164 ac_cv_path_EGREP=$EGREP
4165fi
4166
4167 fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4170$as_echo "$ac_cv_path_EGREP" >&6; }
4171 EGREP="$ac_cv_path_EGREP"
4172
4173
1d92226b
JJ
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4175$as_echo_n "checking for ANSI C header files... " >&6; }
4176if test "${ac_cv_header_stdc+set}" = set; then :
1ec601bf
FXC
4177 $as_echo_n "(cached) " >&6
4178else
1d92226b
JJ
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h. */
4181#include <stdlib.h>
4182#include <stdarg.h>
4183#include <string.h>
4184#include <float.h>
1ec601bf 4185
1d92226b
JJ
4186int
4187main ()
4188{
4189
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_header_stdc=yes
1ec601bf 4196else
1d92226b 4197 ac_cv_header_stdc=no
1ec601bf 4198fi
1d92226b 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4200
1d92226b
JJ
4201if test $ac_cv_header_stdc = yes; then
4202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#include <string.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "memchr" >/dev/null 2>&1; then :
4210
4211else
4212 ac_cv_header_stdc=no
1ec601bf 4213fi
1d92226b 4214rm -f conftest*
1ec601bf 4215
1d92226b 4216fi
1ec601bf 4217
1d92226b
JJ
4218if test $ac_cv_header_stdc = yes; then
4219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h. */
4222#include <stdlib.h>
1ec601bf 4223
1d92226b
JJ
4224_ACEOF
4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "free" >/dev/null 2>&1; then :
1ec601bf 4227
1d92226b
JJ
4228else
4229 ac_cv_header_stdc=no
4230fi
4231rm -f conftest*
1ec601bf 4232
1d92226b 4233fi
1ec601bf 4234
1d92226b
JJ
4235if test $ac_cv_header_stdc = yes; then
4236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237 if test "$cross_compiling" = yes; then :
4238 :
4239else
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
4242#include <ctype.h>
4243#include <stdlib.h>
4244#if ((' ' & 0x0FF) == 0x020)
4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247#else
4248# define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253#endif
1ec601bf 4254
1d92226b
JJ
4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256int
4257main ()
4258{
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4263 return 2;
4264 return 0;
4265}
4266_ACEOF
4267if ac_fn_c_try_run "$LINENO"; then :
1ec601bf 4268
1d92226b
JJ
4269else
4270 ac_cv_header_stdc=no
4271fi
4272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4273 conftest.$ac_objext conftest.beam conftest.$ac_ext
4274fi
1ec601bf 4275
1d92226b
JJ
4276fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4279$as_echo "$ac_cv_header_stdc" >&6; }
4280if test $ac_cv_header_stdc = yes; then
1ec601bf 4281
1d92226b 4282$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1ec601bf 4283
1d92226b 4284fi
1ec601bf 4285
1d92226b
JJ
4286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288 inttypes.h stdint.h unistd.h
4289do :
4290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4292"
4293eval as_val=\$$as_ac_Header
4294 if test "x$as_val" = x""yes; then :
4295 cat >>confdefs.h <<_ACEOF
4296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
1ec601bf 4298
1d92226b 4299fi
1ec601bf 4300
1d92226b 4301done
1ec601bf
FXC
4302
4303
4304
1d92226b
JJ
4305 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4306if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4307 MINIX=yes
4308else
4309 MINIX=
4310fi
1ec601bf
FXC
4311
4312
1d92226b 4313 if test "$MINIX" = yes; then
1ec601bf 4314
1d92226b 4315$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
1ec601bf 4316
1ec601bf 4317
1d92226b
JJ
4318$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4319
4320
4321$as_echo "#define _MINIX 1" >>confdefs.h
4322
4323 fi
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4327$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4328if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
1ec601bf
FXC
4329 $as_echo_n "(cached) " >&6
4330else
1d92226b
JJ
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h. */
1ec601bf 4333
1d92226b
JJ
4334# define __EXTENSIONS__ 1
4335 $ac_includes_default
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_safe_to_define___extensions__=yes
1ec601bf 4346else
1d92226b 4347 ac_cv_safe_to_define___extensions__=no
1ec601bf 4348fi
1d92226b 4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4350fi
1d92226b
JJ
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4352$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4353 test $ac_cv_safe_to_define___extensions__ = yes &&
4354 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
1ec601bf 4355
1d92226b 4356 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1ec601bf 4357
1d92226b 4358 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
1ec601bf 4359
1d92226b 4360 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1ec601bf 4361
1d92226b 4362 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
1ec601bf
FXC
4363
4364
4365
1d92226b
JJ
4366# See if makeinfo has been installed and is modern enough
4367# that we can use it.
1ec601bf 4368
1d92226b
JJ
4369 # Extract the first word of "makeinfo", so it can be a program name with args.
4370set dummy makeinfo; ac_word=$2
1ec601bf
FXC
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 4373if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
1ec601bf
FXC
4374 $as_echo_n "(cached) " >&6
4375else
1d92226b
JJ
4376 if test -n "$MAKEINFO"; then
4377 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1ec601bf
FXC
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 4386 ac_cv_prog_MAKEINFO="makeinfo"
1ec601bf
FXC
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390done
4391 done
4392IFS=$as_save_IFS
4393
4394fi
4395fi
1d92226b
JJ
4396MAKEINFO=$ac_cv_prog_MAKEINFO
4397if test -n "$MAKEINFO"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4399$as_echo "$MAKEINFO" >&6; }
1ec601bf
FXC
4400else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404
4405
1d92226b
JJ
4406 if test -n "$MAKEINFO"; then
4407 # Found it, now check the version.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4409$as_echo_n "checking for modern makeinfo... " >&6; }
4410if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
1ec601bf
FXC
4411 $as_echo_n "(cached) " >&6
4412else
1d92226b
JJ
4413 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4414 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4415
4416 case $ac_prog_version in
4417 '') gcc_cv_prog_makeinfo_modern=no;;
4418 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4419 *) gcc_cv_prog_makeinfo_modern=no;;
4420 esac
1ec601bf
FXC
4421
4422fi
1d92226b
JJ
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4424$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4425 else
4426 gcc_cv_prog_makeinfo_modern=no
4427 fi
4428 if test $gcc_cv_prog_makeinfo_modern = no; then
4429 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4430 fi
4431
4432 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4433 BUILD_INFO_TRUE=
4434 BUILD_INFO_FALSE='#'
1ec601bf 4435else
1d92226b
JJ
4436 BUILD_INFO_TRUE='#'
4437 BUILD_INFO_FALSE=
1ec601bf
FXC
4438fi
4439
4440
1ec601bf 4441
1ec601bf 4442
1d92226b
JJ
4443# Check whether --with-bugurl was given.
4444if test "${with_bugurl+set}" = set; then :
4445 withval=$with_bugurl; case "$withval" in
4446 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4447 no) BUGURL=
4448 ;;
4449 *) BUGURL="$withval"
4450 ;;
4451 esac
4452else
19e30111 4453 BUGURL="https://gcc.gnu.org/bugs/"
1ec601bf 4454
1ec601bf 4455fi
1ec601bf 4456
1d92226b
JJ
4457 case ${BUGURL} in
4458 "")
4459 REPORT_BUGS_TO=
4460 REPORT_BUGS_TEXI=
4461 ;;
4462 *)
4463 REPORT_BUGS_TO="<$BUGURL>"
4464 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4465 ;;
4466 esac;
1ec601bf
FXC
4467
4468
4469
4470
1d92226b
JJ
4471# Configure libtool
4472case `pwd` in
4473 *\ * | *\ *)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4475$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4476esac
1ec601bf 4477
1ec601bf 4478
1ec601bf 4479
1d92226b
JJ
4480macro_version='2.2.7a'
4481macro_revision='1.3134'
1ec601bf 4482
1ec601bf 4483
1ec601bf 4484
1ec601bf 4485
1ec601bf 4486
1ec601bf 4487
1ec601bf 4488
1ec601bf 4489
1ec601bf 4490
1ec601bf
FXC
4491
4492
4493
4494
1d92226b 4495ltmain="$ac_aux_dir/ltmain.sh"
1ec601bf 4496
1d92226b
JJ
4497# Backslashify metacharacters that are still active within
4498# double-quoted strings.
4499sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1ec601bf 4500
1d92226b
JJ
4501# Same as above, but do not quote variable references.
4502double_quote_subst='s/\(["`\\]\)/\\\1/g'
1ec601bf 4503
1d92226b
JJ
4504# Sed substitution to delay expansion of an escaped shell variable in a
4505# double_quote_subst'ed string.
4506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1ec601bf 4507
1d92226b
JJ
4508# Sed substitution to delay expansion of an escaped single quote.
4509delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1ec601bf 4510
1d92226b
JJ
4511# Sed substitution to avoid accidental globbing in evaled expressions
4512no_glob_subst='s/\*/\\\*/g'
1ec601bf 4513
1d92226b
JJ
4514ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4515ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1ec601bf 4517
1d92226b
JJ
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4519$as_echo_n "checking how to print strings... " >&6; }
4520# Test print first, because it will be a builtin if present.
4521if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4523 ECHO='print -r --'
4524elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4525 ECHO='printf %s\n'
1ec601bf 4526else
1d92226b
JJ
4527 # Use this function as a fallback that always works.
4528 func_fallback_echo ()
4529 {
4530 eval 'cat <<_LTECHO_EOF
4531$1
4532_LTECHO_EOF'
4533 }
4534 ECHO='func_fallback_echo'
1ec601bf
FXC
4535fi
4536
1d92226b
JJ
4537# func_echo_all arg...
4538# Invoke $ECHO with all args, space-separated.
4539func_echo_all ()
4540{
4541 $ECHO ""
4542}
1ec601bf 4543
1d92226b
JJ
4544case "$ECHO" in
4545 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4546$as_echo "printf" >&6; } ;;
4547 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4548$as_echo "print -r" >&6; } ;;
4549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4550$as_echo "cat" >&6; } ;;
1ec601bf
FXC
4551esac
4552
4553
4554
4555
4556
4557
4558
4559
4560
1ec601bf
FXC
4561
4562
4563
4564
4565
1d92226b
JJ
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4567$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4568if test "${ac_cv_path_SED+set}" = set; then :
1ec601bf
FXC
4569 $as_echo_n "(cached) " >&6
4570else
1d92226b
JJ
4571 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4572 for ac_i in 1 2 3 4 5 6 7; do
4573 ac_script="$ac_script$as_nl$ac_script"
4574 done
4575 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4576 { ac_script=; unset ac_script;}
4577 if test -z "$SED"; then
4578 ac_path_SED_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1ec601bf
FXC
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
1d92226b 4585 for ac_prog in sed gsed; do
1ec601bf 4586 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b
JJ
4587 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4589# Check for GNU ac_path_SED and select it if it is found.
4590 # Check for GNU $ac_path_SED
4591case `"$ac_path_SED" --version 2>&1` in
4592*GNU*)
4593 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4594*)
4595 ac_count=0
4596 $as_echo_n 0123456789 >"conftest.in"
4597 while :
4598 do
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 $as_echo '' >> "conftest.nl"
4603 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 as_fn_arith $ac_count + 1 && ac_count=$as_val
4606 if test $ac_count -gt ${ac_path_SED_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_SED="$ac_path_SED"
4609 ac_path_SED_max=$ac_count
4610 fi
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
1ec601bf 4613 done
1d92226b
JJ
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615esac
1ec601bf 4616
1d92226b
JJ
4617 $ac_path_SED_found && break 3
4618 done
4619 done
4620 done
4621IFS=$as_save_IFS
4622 if test -z "$ac_cv_path_SED"; then
4623 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4624 fi
1ec601bf 4625else
1d92226b 4626 ac_cv_path_SED=$SED
1ec601bf
FXC
4627fi
4628
1ec601bf 4629fi
1d92226b
JJ
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4631$as_echo "$ac_cv_path_SED" >&6; }
4632 SED="$ac_cv_path_SED"
4633 rm -f conftest.sed
4634
4635test -z "$SED" && SED=sed
4636Xsed="$SED -e 1s/^X//"
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4649$as_echo_n "checking for fgrep... " >&6; }
4650if test "${ac_cv_path_FGREP+set}" = set; then :
1ec601bf
FXC
4651 $as_echo_n "(cached) " >&6
4652else
1d92226b
JJ
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4655 else
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1ec601bf
FXC
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
1d92226b 4664 for ac_prog in fgrep; do
1ec601bf 4665 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b
JJ
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4668# Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670case `"$ac_path_FGREP" --version 2>&1` in
4671*GNU*)
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4673*)
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4677 do
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'FGREP' >> "conftest.nl"
4682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4689 fi
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
1ec601bf 4692 done
1d92226b
JJ
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694esac
1ec601bf 4695
1d92226b
JJ
4696 $ac_path_FGREP_found && break 3
4697 done
4698 done
4699 done
4700IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 fi
1ec601bf 4704else
1d92226b 4705 ac_cv_path_FGREP=$FGREP
1ec601bf
FXC
4706fi
4707
1d92226b 4708 fi
1ec601bf 4709fi
1d92226b
JJ
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4711$as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
1ec601bf 4713
1ec601bf 4714
1d92226b 4715test -z "$GREP" && GREP=grep
1ec601bf
FXC
4716
4717
4718
4719
4720
4721
4722
4723
1d92226b
JJ
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735# Check whether --with-gnu-ld was given.
4736if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4738else
4739 with_gnu_ld=no
4740fi
4741
4742ac_prog=ld
4743if test "$GCC" = yes; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746$as_echo_n "checking for ld used by $CC... " >&6; }
4747 case $host in
4748 *-*-mingw*)
4749 # gcc leaves a trailing carriage return which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4751 *)
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753 esac
4754 case $ac_prog in
4755 # Accept absolute paths.
4756 [\\/]* | ?:[\\/]*)
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4762 done
4763 test -z "$LD" && LD="$ac_prog"
4764 ;;
4765 "")
4766 # If it fails, then pretend we aren't using GCC.
4767 ac_prog=ld
4768 ;;
4769 *)
4770 # If it is relative, then search for the first ld in PATH.
4771 with_gnu_ld=unknown
4772 ;;
4773 esac
4774elif test "$with_gnu_ld" = yes; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776$as_echo_n "checking for GNU ld... " >&6; }
4777else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779$as_echo_n "checking for non-GNU ld... " >&6; }
4780fi
4781if test "${lt_cv_path_LD+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783else
4784 if test -z "$LD"; then
4785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4787 IFS="$lt_save_ifs"
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD="$ac_dir/$ac_prog"
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test "$with_gnu_ld" != no && break
4797 ;;
4798 *)
4799 test "$with_gnu_ld" != yes && break
4800 ;;
4801 esac
4802 fi
4803 done
4804 IFS="$lt_save_ifs"
4805else
4806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4807fi
4808fi
4809
4810LD="$lt_cv_path_LD"
4811if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813$as_echo "$LD" >&6; }
4814else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823else
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825case `$LD -v 2>&1 </dev/null` in
4826*GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4828 ;;
4829*)
4830 lt_cv_prog_gnu_ld=no
4831 ;;
4832esac
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4835$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836with_gnu_ld=$lt_cv_prog_gnu_ld
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848if test "${lt_cv_path_NM+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM="$NM"
4854else
4855 lt_nm_to_check="${ac_tool_prefix}nm"
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4858 fi
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS="$lt_save_ifs"
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm="$ac_dir/$lt_tmp_nm"
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4871 */dev/null* | *'Invalid file or object type'*)
4872 lt_cv_path_NM="$tmp_nm -B"
4873 break
4874 ;;
4875 *)
4876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 */dev/null*)
4878 lt_cv_path_NM="$tmp_nm -p"
4879 break
4880 ;;
4881 *)
4882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4883 continue # so that we can try to find one that supports BSD flags
4884 ;;
4885 esac
4886 ;;
4887 esac
4888 fi
4889 done
4890 IFS="$lt_save_ifs"
4891 done
4892 : ${lt_cv_path_NM=no}
4893fi
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4896$as_echo "$lt_cv_path_NM" >&6; }
4897if test "$lt_cv_path_NM" != "no"; then
4898 NM="$lt_cv_path_NM"
4899else
4900 # Didn't find any BSD compatible name lister, look for dumpbin.
4901 if test -n "$DUMPBIN"; then :
4902 # Let the user override the test.
4903 else
4904 if test -n "$ac_tool_prefix"; then
4905 for ac_prog in dumpbin "link -dump"
4906 do
4907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
4911if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913else
4914 if test -n "$DUMPBIN"; then
4915 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4916else
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928done
4929 done
4930IFS=$as_save_IFS
4931
4932fi
4933fi
4934DUMPBIN=$ac_cv_prog_DUMPBIN
4935if test -n "$DUMPBIN"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4937$as_echo "$DUMPBIN" >&6; }
4938else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
4941fi
4942
4943
4944 test -n "$DUMPBIN" && break
4945 done
4946fi
4947if test -z "$DUMPBIN"; then
4948 ac_ct_DUMPBIN=$DUMPBIN
4949 for ac_prog in dumpbin "link -dump"
4950do
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952set dummy $ac_prog; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 if test -n "$ac_ct_DUMPBIN"; then
4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973 done
4974IFS=$as_save_IFS
4975
4976fi
4977fi
4978ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4979if test -n "$ac_ct_DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4981$as_echo "$ac_ct_DUMPBIN" >&6; }
4982else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984$as_echo "no" >&6; }
4985fi
4986
4987
4988 test -n "$ac_ct_DUMPBIN" && break
4989done
4990
4991 if test "x$ac_ct_DUMPBIN" = x; then
4992 DUMPBIN=":"
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995yes:)
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998ac_tool_warned=yes ;;
4999esac
5000 DUMPBIN=$ac_ct_DUMPBIN
5001 fi
5002fi
5003
5004 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5005 *COFF*)
5006 DUMPBIN="$DUMPBIN -symbols"
5007 ;;
5008 *)
5009 DUMPBIN=:
5010 ;;
5011 esac
5012 fi
5013
5014 if test "$DUMPBIN" != ":"; then
5015 NM="$DUMPBIN"
5016 fi
5017fi
5018test -z "$NM" && NM=nm
5019
5020
5021
5022
5023
5024
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5026$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5027if test "${lt_cv_nm_interface+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 lt_cv_nm_interface="BSD nm"
5031 echo "int some_variable = 0;" > conftest.$ac_ext
5032 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5033 (eval "$ac_compile" 2>conftest.err)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5036 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5037 cat conftest.err >&5
5038 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5039 cat conftest.out >&5
5040 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5041 lt_cv_nm_interface="MS dumpbin"
5042 fi
5043 rm -f conftest*
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5046$as_echo "$lt_cv_nm_interface" >&6; }
5047
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049$as_echo_n "checking whether ln -s works... " >&6; }
5050LN_S=$as_ln_s
5051if test "$LN_S" = "ln -s"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053$as_echo "yes" >&6; }
5054else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056$as_echo "no, using $LN_S" >&6; }
5057fi
5058
5059# find the maximum length of command line arguments
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5061$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5062if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064else
5065 i=0
5066 teststring="ABCD"
5067
5068 case $build_os in
5069 msdosdjgpp*)
5070 # On DJGPP, this test can blow up pretty badly due to problems in libc
5071 # (any single argument exceeding 2000 bytes causes a buffer overrun
5072 # during glob expansion). Even if it were fixed, the result of this
5073 # check would be larger than it should be.
5074 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5075 ;;
5076
5077 gnu*)
5078 # Under GNU Hurd, this test is not required because there is
5079 # no limit to the length of command line arguments.
5080 # Libtool will interpret -1 as no limit whatsoever
5081 lt_cv_sys_max_cmd_len=-1;
5082 ;;
5083
5084 cygwin* | mingw* | cegcc*)
5085 # On Win9x/ME, this test blows up -- it succeeds, but takes
5086 # about 5 minutes as the teststring grows exponentially.
5087 # Worse, since 9x/ME are not pre-emptively multitasking,
5088 # you end up with a "frozen" computer, even though with patience
5089 # the test eventually succeeds (with a max line length of 256k).
5090 # Instead, let's just punt: use the minimum linelength reported by
5091 # all of the supported platforms: 8192 (on NT/2K/XP).
5092 lt_cv_sys_max_cmd_len=8192;
5093 ;;
5094
5095 mint*)
5096 # On MiNT this can take a long time and run out of memory.
5097 lt_cv_sys_max_cmd_len=8192;
5098 ;;
5099
5100 amigaos*)
5101 # On AmigaOS with pdksh, this test takes hours, literally.
5102 # So we just punt and use a minimum line length of 8192.
5103 lt_cv_sys_max_cmd_len=8192;
5104 ;;
5105
5106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5107 # This has been around since 386BSD, at least. Likely further.
5108 if test -x /sbin/sysctl; then
5109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5110 elif test -x /usr/sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5112 else
5113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5114 fi
5115 # And add a safety zone
5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5118 ;;
5119
5120 interix*)
5121 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5122 lt_cv_sys_max_cmd_len=196608
5123 ;;
5124
5125 osf*)
5126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5128 # nice to cause kernel panics so lets avoid the loop below.
5129 # First set a reasonable default.
5130 lt_cv_sys_max_cmd_len=16384
5131 #
5132 if test -x /sbin/sysconfig; then
5133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5134 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5135 esac
5136 fi
5137 ;;
5138 sco3.2v5*)
5139 lt_cv_sys_max_cmd_len=102400
5140 ;;
5141 sysv5* | sco5v6* | sysv4.2uw2*)
5142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5143 if test -n "$kargmax"; then
5144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5145 else
5146 lt_cv_sys_max_cmd_len=32768
5147 fi
5148 ;;
5149 *)
5150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5151 if test -n "$lt_cv_sys_max_cmd_len"; then
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154 else
5155 # Make teststring a little bigger before we do anything with it.
5156 # a 1K string should be a reasonable start.
5157 for i in 1 2 3 4 5 6 7 8 ; do
5158 teststring=$teststring$teststring
5159 done
5160 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5161 # If test is not a shell built-in, we'll probably end up computing a
5162 # maximum length that is only half of the actual maximum length, but
5163 # we can't tell.
5164 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5165 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5166 test $i != 17 # 1/2 MB should be enough
5167 do
5168 i=`expr $i + 1`
5169 teststring=$teststring$teststring
5170 done
5171 # Only check the string length outside the loop.
5172 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5173 teststring=
5174 # Add a significant safety factor because C++ compilers can tack on
5175 # massive amounts of additional arguments before passing them to the
5176 # linker. It appears as though 1/2 is a usable value.
5177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5178 fi
5179 ;;
5180 esac
5181
5182fi
5183
5184if test -n $lt_cv_sys_max_cmd_len ; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5186$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5187else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5189$as_echo "none" >&6; }
5190fi
5191max_cmd_len=$lt_cv_sys_max_cmd_len
5192
5193
5194
5195
5196
5197
5198: ${CP="cp -f"}
5199: ${MV="mv -f"}
5200: ${RM="rm -f"}
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5203$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5204# Try some XSI features
5205xsi_shell=no
5206( _lt_dummy="a/b/c"
5207 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5208 = c,a/b,, \
5209 && eval 'test $(( 1 + 1 )) -eq 2 \
5210 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5211 && xsi_shell=yes
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5213$as_echo "$xsi_shell" >&6; }
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5217$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5218lt_shell_append=no
5219( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5220 >/dev/null 2>&1 \
5221 && lt_shell_append=yes
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5223$as_echo "$lt_shell_append" >&6; }
5224
5225
5226if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5227 lt_unset=unset
5228else
5229 lt_unset=false
5230fi
5231
5232
5233
5234
5235
5236# test EBCDIC or ASCII
5237case `echo X|tr X '\101'` in
5238 A) # ASCII based system
5239 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5240 lt_SP2NL='tr \040 \012'
5241 lt_NL2SP='tr \015\012 \040\040'
5242 ;;
5243 *) # EBCDIC based system
5244 lt_SP2NL='tr \100 \n'
5245 lt_NL2SP='tr \r\n \100\100'
5246 ;;
5247esac
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5258$as_echo_n "checking for $LD option to reload object files... " >&6; }
5259if test "${lt_cv_ld_reload_flag+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261else
5262 lt_cv_ld_reload_flag='-r'
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5265$as_echo "$lt_cv_ld_reload_flag" >&6; }
5266reload_flag=$lt_cv_ld_reload_flag
5267case $reload_flag in
5268"" | " "*) ;;
5269*) reload_flag=" $reload_flag" ;;
5270esac
5271reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272case $host_os in
5273 darwin*)
5274 if test "$GCC" = yes; then
5275 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5276 else
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5278 fi
5279 ;;
5280esac
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}objdump; ac_word=$2
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297else
5298 if test -n "$OBJDUMP"; then
5299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313 done
5314IFS=$as_save_IFS
5315
5316fi
5317fi
5318OBJDUMP=$ac_cv_prog_OBJDUMP
5319if test -n "$OBJDUMP"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5321$as_echo "$OBJDUMP" >&6; }
5322else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328fi
5329if test -z "$ac_cv_prog_OBJDUMP"; then
5330 ac_ct_OBJDUMP=$OBJDUMP
5331 # Extract the first word of "objdump", so it can be a program name with args.
5332set dummy objdump; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337else
5338 if test -n "$ac_ct_OBJDUMP"; then
5339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352done
5353 done
5354IFS=$as_save_IFS
5355
5356fi
5357fi
5358ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5359if test -n "$ac_ct_OBJDUMP"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5361$as_echo "$ac_ct_OBJDUMP" >&6; }
5362else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367 if test "x$ac_ct_OBJDUMP" = x; then
5368 OBJDUMP="false"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371yes:)
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374ac_tool_warned=yes ;;
5375esac
5376 OBJDUMP=$ac_ct_OBJDUMP
5377 fi
5378else
5379 OBJDUMP="$ac_cv_prog_OBJDUMP"
5380fi
5381
5382test -z "$OBJDUMP" && OBJDUMP=objdump
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5393$as_echo_n "checking how to recognize dependent libraries... " >&6; }
1ec601bf
FXC
5394if test "${lt_cv_deplibs_check_method+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396else
5397 lt_cv_file_magic_cmd='$MAGIC_CMD'
5398lt_cv_file_magic_test_file=
5399lt_cv_deplibs_check_method='unknown'
5400# Need to set the preceding variable on all platforms that support
5401# interlibrary dependencies.
5402# 'none' -- dependencies not supported.
5403# `unknown' -- same as none, but documents that we really don't know.
5404# 'pass_all' -- all dependencies passed with no checks.
5405# 'test_compile' -- check by making test program.
5406# 'file_magic [[regex]]' -- check by looking for files in library path
5407# which responds to the $file_magic_cmd with a given extended regex.
5408# If you have `file' or equivalent on your system and you're not sure
5409# whether `pass_all' will *always* work, you probably want this one.
5410
5411case $host_os in
5412aix[4-9]*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416beos*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420bsdi[45]*)
5421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5422 lt_cv_file_magic_cmd='/usr/bin/file -L'
5423 lt_cv_file_magic_test_file=/shlib/libc.so
5424 ;;
5425
5426cygwin*)
5427 # func_win32_libid is a shell function defined in ltmain.sh
5428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5429 lt_cv_file_magic_cmd='func_win32_libid'
5430 ;;
5431
5432mingw* | pw32*)
5433 # Base MSYS/MinGW do not provide the 'file' command needed by
5434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5435 # unless we find 'file', for example because we are cross-compiling.
5436 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5437 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 else
5441 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5443 fi
5444 ;;
5445
5446cegcc*)
5447 # use the weaker test based on 'objdump'. See mingw*.
5448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5449 lt_cv_file_magic_cmd='$OBJDUMP -f'
5450 ;;
5451
5452darwin* | rhapsody*)
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
5456freebsd* | dragonfly*)
5457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5458 case $host_cpu in
5459 i*86 )
5460 # Not sure whether the presence of OpenBSD here was a mistake.
5461 # Let's accept both of them until this is cleared up.
5462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5465 ;;
5466 esac
5467 else
5468 lt_cv_deplibs_check_method=pass_all
5469 fi
5470 ;;
5471
5472gnu*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476haiku*)
5477 lt_cv_deplibs_check_method=pass_all
5478 ;;
5479
5480hpux10.20* | hpux11*)
5481 lt_cv_file_magic_cmd=/usr/bin/file
5482 case $host_cpu in
5483 ia64*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5486 ;;
5487 hppa*64*)
5488 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]'
5489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5490 ;;
5491 *)
5492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5494 ;;
5495 esac
5496 ;;
5497
5498interix[3-9]*)
5499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5501 ;;
5502
5503irix5* | irix6* | nonstopux*)
5504 case $LD in
5505 *-32|*"-32 ") libmagic=32-bit;;
5506 *-n32|*"-n32 ") libmagic=N32;;
5507 *-64|*"-64 ") libmagic=64-bit;;
5508 *) libmagic=never-match;;
5509 esac
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513# This must be Linux ELF.
5514linux* | k*bsd*-gnu | kopensolaris*-gnu)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517
5518netbsd*)
5519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5523 fi
5524 ;;
5525
5526newos6*)
5527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5530 ;;
5531
5532*nto* | *qnx*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536openbsd*)
5537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 else
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541 fi
5542 ;;
5543
5544osf3* | osf4* | osf5*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548rdos*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552solaris*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
5556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559
5560sysv4 | sysv4.3*)
5561 case $host_vendor in
5562 motorola)
5563 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]'
5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5565 ;;
5566 ncr)
5567 lt_cv_deplibs_check_method=pass_all
5568 ;;
5569 sequent)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5572 ;;
5573 sni)
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576 lt_cv_file_magic_test_file=/lib/libc.so
5577 ;;
5578 siemens)
5579 lt_cv_deplibs_check_method=pass_all
5580 ;;
5581 pc)
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584 esac
5585 ;;
5586
5587tpf*)
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590esac
5591
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5594$as_echo "$lt_cv_deplibs_check_method" >&6; }
5595file_magic_cmd=$lt_cv_file_magic_cmd
5596deplibs_check_method=$lt_cv_deplibs_check_method
5597test -z "$deplibs_check_method" && deplibs_check_method=unknown
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5612set dummy ${ac_tool_prefix}ar; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if test "${ac_cv_prog_AR+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617else
5618 if test -n "$AR"; then
5619 ac_cv_prog_AR="$AR" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_AR="${ac_tool_prefix}ar"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632done
5633 done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638AR=$ac_cv_prog_AR
5639if test -n "$AR"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5641$as_echo "$AR" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647
5648fi
5649if test -z "$ac_cv_prog_AR"; then
5650 ac_ct_AR=$AR
5651 # Extract the first word of "ar", so it can be a program name with args.
5652set dummy ar; ac_word=$2
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654$as_echo_n "checking for $ac_word... " >&6; }
5655if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -n "$ac_ct_AR"; then
5659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_AR="ar"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673 done
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678ac_ct_AR=$ac_cv_prog_ac_ct_AR
5679if test -n "$ac_ct_AR"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5681$as_echo "$ac_ct_AR" >&6; }
5682else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686
5687 if test "x$ac_ct_AR" = x; then
5688 AR="false"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691yes:)
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694ac_tool_warned=yes ;;
5695esac
5696 AR=$ac_ct_AR
5697 fi
5698else
5699 AR="$ac_cv_prog_AR"
5700fi
5701
5702test -z "$AR" && AR=ar
5703test -z "$AR_FLAGS" && AR_FLAGS=cru
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717set dummy ${ac_tool_prefix}strip; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
5720if test "${ac_cv_prog_STRIP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722else
5723 if test -n "$STRIP"; then
5724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737done
5738 done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743STRIP=$ac_cv_prog_STRIP
5744if test -n "$STRIP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746$as_echo "$STRIP" >&6; }
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752
5753fi
5754if test -z "$ac_cv_prog_STRIP"; then
5755 ac_ct_STRIP=$STRIP
5756 # Extract the first word of "strip", so it can be a program name with args.
5757set dummy strip; ac_word=$2
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759$as_echo_n "checking for $ac_word... " >&6; }
5760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 if test -n "$ac_ct_STRIP"; then
5764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_STRIP="strip"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777done
5778 done
5779IFS=$as_save_IFS
5780
5781fi
5782fi
5783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784if test -n "$ac_ct_STRIP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786$as_echo "$ac_ct_STRIP" >&6; }
5787else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790fi
5791
5792 if test "x$ac_ct_STRIP" = x; then
5793 STRIP=":"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796yes:)
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799ac_tool_warned=yes ;;
5800esac
5801 STRIP=$ac_ct_STRIP
5802 fi
5803else
5804 STRIP="$ac_cv_prog_STRIP"
5805fi
5806
5807test -z "$STRIP" && STRIP=:
5808
5809
5810
5811
5812
5813
5814if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if test "${ac_cv_prog_RANLIB+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$RANLIB"; then
5823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842RANLIB=$ac_cv_prog_RANLIB
5843if test -n "$RANLIB"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845$as_echo "$RANLIB" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856set dummy ranlib; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883if test -n "$ac_ct_RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885$as_echo "$ac_ct_RANLIB" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891 if test "x$ac_ct_RANLIB" = x; then
5892 RANLIB=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900 RANLIB=$ac_ct_RANLIB
5901 fi
5902else
5903 RANLIB="$ac_cv_prog_RANLIB"
5904fi
5905
5906test -z "$RANLIB" && RANLIB=:
5907
5908
5909
5910
5911
5912
5913# Determine commands to create old-style static archives.
5914old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915old_postinstall_cmds='chmod 644 $oldlib'
5916old_postuninstall_cmds=
5917
5918if test -n "$RANLIB"; then
5919 case $host_os in
5920 openbsd*)
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5922 ;;
5923 *)
5924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5925 ;;
5926 esac
5927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5928fi
5929
5930case $host_os in
5931 darwin*)
5932 lock_old_archive_extraction=yes ;;
5933 *)
5934 lock_old_archive_extraction=no ;;
5935esac
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975# If no C compiler was specified, use CC.
5976LTCC=${LTCC-"$CC"}
5977
5978# If no C compiler flags were specified, use CFLAGS.
5979LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5980
5981# Allow CC to be a program name with arguments.
5982compiler=$CC
5983
5984
5985# Check for command to grab the raw symbol name followed by C symbol from nm.
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990else
5991
5992# These are sane defaults that work on at least a few old systems.
5993# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5994
5995# Character class describing NM global symbol codes.
5996symcode='[BCDEGRST]'
5997
5998# Regexp to match symbols that can be accessed directly from C.
5999sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6000
6001# Define system-specific variables.
6002case $host_os in
6003aix*)
6004 symcode='[BCDT]'
6005 ;;
6006cygwin* | mingw* | pw32* | cegcc*)
6007 symcode='[ABCDGISTW]'
6008 ;;
6009hpux*)
6010 if test "$host_cpu" = ia64; then
6011 symcode='[ABCDEGRST]'
6012 fi
6013 ;;
6014irix* | nonstopux*)
6015 symcode='[BCDEGRST]'
6016 ;;
6017osf*)
6018 symcode='[BCDEGQRST]'
6019 ;;
6020solaris*)
6021 symcode='[BDRT]'
6022 ;;
6023sco3.2v5*)
6024 symcode='[DT]'
6025 ;;
6026sysv4.2uw2*)
6027 symcode='[DT]'
6028 ;;
6029sysv5* | sco5v6* | unixware* | OpenUNIX*)
6030 symcode='[ABDT]'
6031 ;;
6032sysv4)
6033 symcode='[DFNSTU]'
6034 ;;
6035esac
6036
6037# If we're using GNU nm, then use its standard symbol codes.
6038case `$NM -V 2>&1` in
6039*GNU* | *'with BFD'*)
6040 symcode='[ABCDGIRSTW]' ;;
6041esac
6042
6043# Transform an extracted symbol line into a proper C declaration.
6044# Some systems (esp. on ia64) link data and code symbols differently,
6045# so use this general approach.
6046lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6047
6048# Transform an extracted symbol line into symbol name and symbol address
6049lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6050lt_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'"
6051
6052# Handle CRLF in mingw tool chain
6053opt_cr=
6054case $build_os in
6055mingw*)
6056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6057 ;;
6058esac
6059
6060# Try without a prefix underscore, then with it.
6061for ac_symprfx in "" "_"; do
6062
6063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064 symxfrm="\\1 $ac_symprfx\\2 \\2"
6065
6066 # Write the raw and C identifiers.
6067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068 # Fake it for dumpbin and say T for any non-static function
6069 # and D for any global variable.
6070 # Also find C++ and __fastcall symbols from MSVC++,
6071 # which start with @ or ?.
6072 lt_cv_sys_global_symbol_pipe="$AWK '"\
6073" {last_section=section; section=\$ 3};"\
6074" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6075" \$ 0!~/External *\|/{next};"\
6076" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6077" {if(hide[section]) next};"\
6078" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6079" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6080" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6081" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6082" ' prfx=^$ac_symprfx"
6083 else
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085 fi
6086
6087 # Check to see that the pipe works correctly.
6088 pipe_works=no
6089
6090 rm -f conftest*
6091 cat > conftest.$ac_ext <<_LT_EOF
6092#ifdef __cplusplus
6093extern "C" {
6094#endif
6095char nm_test_var;
6096void nm_test_func(void);
6097void nm_test_func(void){}
6098#ifdef __cplusplus
6099}
6100#endif
6101int main(){nm_test_var='a';nm_test_func();return(0);}
6102_LT_EOF
6103
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 # Now try to grab the symbols.
6110 nlist=conftest.nm
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6112 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } && test -s "$nlist"; then
6116 # Try sorting and uniquifying the output.
6117 if sort "$nlist" | uniq > "$nlist"T; then
6118 mv -f "$nlist"T "$nlist"
6119 else
6120 rm -f "$nlist"T
6121 fi
6122
6123 # Make sure that we snagged all the symbols we need.
6124 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6125 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6126 cat <<_LT_EOF > conftest.$ac_ext
6127#ifdef __cplusplus
6128extern "C" {
6129#endif
6130
6131_LT_EOF
6132 # Now generate the symbol file.
6133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6134
6135 cat <<_LT_EOF >> conftest.$ac_ext
6136
6137/* The mapping between symbol names and symbols. */
6138const struct {
6139 const char *name;
6140 void *address;
6141}
6142lt__PROGRAM__LTX_preloaded_symbols[] =
6143{
6144 { "@PROGRAM@", (void *) 0 },
6145_LT_EOF
6146 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6147 cat <<\_LT_EOF >> conftest.$ac_ext
6148 {0, (void *) 0}
6149};
6150
6151/* This works around a problem in FreeBSD linker */
6152#ifdef FREEBSD_WORKAROUND
6153static const void *lt_preloaded_setup() {
6154 return lt__PROGRAM__LTX_preloaded_symbols;
6155}
6156#endif
6157
6158#ifdef __cplusplus
6159}
6160#endif
6161_LT_EOF
6162 # Now try linking the two files.
6163 mv conftest.$ac_objext conftstm.$ac_objext
6164 lt_save_LIBS="$LIBS"
6165 lt_save_CFLAGS="$CFLAGS"
6166 LIBS="conftstm.$ac_objext"
6167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6173 pipe_works=yes
6174 fi
6175 LIBS="$lt_save_LIBS"
6176 CFLAGS="$lt_save_CFLAGS"
6177 else
6178 echo "cannot find nm_test_func in $nlist" >&5
6179 fi
6180 else
6181 echo "cannot find nm_test_var in $nlist" >&5
6182 fi
6183 else
6184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6185 fi
6186 else
6187 echo "$progname: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 fi
6190 rm -rf conftest* conftst*
6191
6192 # Do not use the global_symbol_pipe unless it works.
6193 if test "$pipe_works" = yes; then
6194 break
6195 else
6196 lt_cv_sys_global_symbol_pipe=
6197 fi
6198done
6199
6200fi
6201
6202if test -z "$lt_cv_sys_global_symbol_pipe"; then
6203 lt_cv_sys_global_symbol_to_cdecl=
6204fi
6205if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6207$as_echo "failed" >&6; }
6208else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6210$as_echo "ok" >&6; }
6211fi
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
1ec601bf
FXC
6232
6233
6234# Check whether --enable-libtool-lock was given.
6235if test "${enable_libtool_lock+set}" = set; then :
6236 enableval=$enable_libtool_lock;
6237fi
6238
6239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6240
6241# Some flags need to be propagated to the compiler or linker for good
6242# libtool support.
6243case $host in
6244ia64-*-hpux*)
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248 (eval $ac_compile) 2>&5
6249 ac_status=$?
6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *ELF-32*)
6254 HPUX_IA64_MODE="32"
6255 ;;
6256 *ELF-64*)
6257 HPUX_IA64_MODE="64"
6258 ;;
6259 esac
6260 fi
6261 rm -rf conftest*
6262 ;;
6263*-*-irix6*)
6264 # Find out which ABI we are using.
6265 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6273 *32-bit*)
6274 LD="${LD-ld} -melf32bsmip"
6275 ;;
6276 *N32*)
6277 LD="${LD-ld} -melf32bmipn32"
6278 ;;
6279 *64-bit*)
6280 LD="${LD-ld} -melf64bmip"
6281 ;;
6282 esac
6283 else
6284 case `/usr/bin/file conftest.$ac_objext` in
6285 *32-bit*)
6286 LD="${LD-ld} -32"
6287 ;;
6288 *N32*)
6289 LD="${LD-ld} -n32"
6290 ;;
6291 *64-bit*)
6292 LD="${LD-ld} -64"
6293 ;;
6294 esac
6295 fi
6296 fi
6297 rm -rf conftest*
6298 ;;
6299
3cbe17f7 6300x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1ec601bf
FXC
6301s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 case `/usr/bin/file conftest.o` in
6310 *32-bit*)
6311 case $host in
6312 x86_64-*kfreebsd*-gnu)
6313 LD="${LD-ld} -m elf_i386_fbsd"
6314 ;;
6315 x86_64-*linux*)
e6d5f8c9
L
6316 case `/usr/bin/file conftest.o` in
6317 *x86-64*)
6318 LD="${LD-ld} -m elf32_x86_64"
6319 ;;
6320 *)
6321 LD="${LD-ld} -m elf_i386"
6322 ;;
6323 esac
1ec601bf 6324 ;;
3cbe17f7
AM
6325 powerpc64le-*linux*)
6326 LD="${LD-ld} -m elf32lppclinux"
6327 ;;
6328 powerpc64-*linux*)
1ec601bf
FXC
6329 LD="${LD-ld} -m elf32ppclinux"
6330 ;;
6331 s390x-*linux*)
6332 LD="${LD-ld} -m elf_s390"
6333 ;;
6334 sparc64-*linux*)
6335 LD="${LD-ld} -m elf32_sparc"
6336 ;;
6337 esac
6338 ;;
6339 *64-bit*)
6340 case $host in
6341 x86_64-*kfreebsd*-gnu)
6342 LD="${LD-ld} -m elf_x86_64_fbsd"
6343 ;;
6344 x86_64-*linux*)
6345 LD="${LD-ld} -m elf_x86_64"
6346 ;;
3cbe17f7
AM
6347 powerpcle-*linux*)
6348 LD="${LD-ld} -m elf64lppc"
6349 ;;
6350 powerpc-*linux*)
1ec601bf
FXC
6351 LD="${LD-ld} -m elf64ppc"
6352 ;;
6353 s390*-*linux*|s390*-*tpf*)
6354 LD="${LD-ld} -m elf64_s390"
6355 ;;
6356 sparc*-*linux*)
6357 LD="${LD-ld} -m elf64_sparc"
6358 ;;
6359 esac
6360 ;;
6361 esac
6362 fi
6363 rm -rf conftest*
6364 ;;
6365
6366*-*-sco3.2v5*)
6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368 SAVE_CFLAGS="$CFLAGS"
6369 CFLAGS="$CFLAGS -belf"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372if test "${lt_cv_cc_needs_belf+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374else
6375 ac_ext=c
6376ac_cpp='$CPP $CPPFLAGS'
6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380
fabfcf5e
KT
6381 if test x$gcc_no_link = xyes; then
6382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6383fi
6384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
6385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_link "$LINENO"; then :
6396 lt_cv_cc_needs_belf=yes
6397else
6398 lt_cv_cc_needs_belf=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 ac_ext=c
6403ac_cpp='$CPP $CPPFLAGS'
6404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6410$as_echo "$lt_cv_cc_needs_belf" >&6; }
6411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413 CFLAGS="$SAVE_CFLAGS"
6414 fi
6415 ;;
6416sparc*-*solaris*)
6417 # Find out which ABI we are using.
6418 echo 'int i;' > conftest.$ac_ext
6419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420 (eval $ac_compile) 2>&5
6421 ac_status=$?
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }; then
6424 case `/usr/bin/file conftest.o` in
6425 *64-bit*)
6426 case $lt_cv_prog_gnu_ld in
6427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428 *)
6429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6430 LD="${LD-ld} -64"
6431 fi
6432 ;;
6433 esac
6434 ;;
6435 esac
6436 fi
6437 rm -rf conftest*
6438 ;;
6439esac
6440
6441need_locks="$enable_libtool_lock"
6442
6443
6444 case $host_os in
6445 rhapsody* | darwin*)
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
6451if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453else
6454 if test -n "$DSYMUTIL"; then
6455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469 done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475if test -n "$DSYMUTIL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6477$as_echo "$DSYMUTIL" >&6; }
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484fi
6485if test -z "$ac_cv_prog_DSYMUTIL"; then
6486 ac_ct_DSYMUTIL=$DSYMUTIL
6487 # Extract the first word of "dsymutil", so it can be a program name with args.
6488set dummy dsymutil; ac_word=$2
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
6491if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 if test -n "$ac_ct_DSYMUTIL"; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509 done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515if test -n "$ac_ct_DSYMUTIL"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6517$as_echo "$ac_ct_DSYMUTIL" >&6; }
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
6521fi
6522
6523 if test "x$ac_ct_DSYMUTIL" = x; then
6524 DSYMUTIL=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530ac_tool_warned=yes ;;
6531esac
6532 DSYMUTIL=$ac_ct_DSYMUTIL
6533 fi
6534else
6535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6536fi
6537
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
6543if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$NMEDIT"; then
6547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566NMEDIT=$ac_cv_prog_NMEDIT
6567if test -n "$NMEDIT"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6569$as_echo "$NMEDIT" >&6; }
6570else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575
6576fi
6577if test -z "$ac_cv_prog_NMEDIT"; then
6578 ac_ct_NMEDIT=$NMEDIT
6579 # Extract the first word of "nmedit", so it can be a program name with args.
6580set dummy nmedit; ac_word=$2
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
6583if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585else
6586 if test -n "$ac_ct_NMEDIT"; then
6587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601 done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6607if test -n "$ac_ct_NMEDIT"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6609$as_echo "$ac_ct_NMEDIT" >&6; }
6610else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615 if test "x$ac_ct_NMEDIT" = x; then
6616 NMEDIT=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619yes:)
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622ac_tool_warned=yes ;;
6623esac
6624 NMEDIT=$ac_ct_NMEDIT
6625 fi
6626else
6627 NMEDIT="$ac_cv_prog_NMEDIT"
6628fi
6629
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6632set dummy ${ac_tool_prefix}lipo; ac_word=$2
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634$as_echo_n "checking for $ac_word... " >&6; }
6635if test "${ac_cv_prog_LIPO+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637else
6638 if test -n "$LIPO"; then
6639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653 done
6654IFS=$as_save_IFS
6655
6656fi
6657fi
6658LIPO=$ac_cv_prog_LIPO
1d92226b
JJ
6659if test -n "$LIPO"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6661$as_echo "$LIPO" >&6; }
1ec601bf
FXC
6662else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664$as_echo "no" >&6; }
6665fi
6666
6667
6668fi
1d92226b
JJ
6669if test -z "$ac_cv_prog_LIPO"; then
6670 ac_ct_LIPO=$LIPO
6671 # Extract the first word of "lipo", so it can be a program name with args.
6672set dummy lipo; ac_word=$2
1ec601bf
FXC
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674$as_echo_n "checking for $ac_word... " >&6; }
1d92226b 6675if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
1ec601bf
FXC
6676 $as_echo_n "(cached) " >&6
6677else
1d92226b
JJ
6678 if test -n "$ac_ct_LIPO"; then
6679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
1ec601bf
FXC
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1d92226b 6688 ac_cv_prog_ac_ct_LIPO="lipo"
1ec601bf
FXC
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693 done
6694IFS=$as_save_IFS
6695
6696fi
6697fi
1d92226b
JJ
6698ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6699if test -n "$ac_ct_LIPO"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6701$as_echo "$ac_ct_LIPO" >&6; }
1ec601bf
FXC
6702else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704$as_echo "no" >&6; }
6705fi
6706
1d92226b
JJ
6707 if test "x$ac_ct_LIPO" = x; then
6708 LIPO=":"
1ec601bf
FXC
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711yes:)
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714ac_tool_warned=yes ;;
6715esac
1d92226b 6716 LIPO=$ac_ct_LIPO
1ec601bf
FXC
6717 fi
6718else
1d92226b 6719 LIPO="$ac_cv_prog_LIPO"
1ec601bf
FXC
6720fi
6721
1d92226b
JJ
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6724set dummy ${ac_tool_prefix}otool; ac_word=$2
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726$as_echo_n "checking for $ac_word... " >&6; }
6727if test "${ac_cv_prog_OTOOL+set}" = set; then :
1ec601bf
FXC
6728 $as_echo_n "(cached) " >&6
6729else
1d92226b
JJ
6730 if test -n "$OTOOL"; then
6731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
1ec601bf 6732else
1d92226b
JJ
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745 done
6746IFS=$as_save_IFS
1ec601bf 6747
1ec601bf 6748fi
1ec601bf 6749fi
1d92226b
JJ
6750OTOOL=$ac_cv_prog_OTOOL
6751if test -n "$OTOOL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6753$as_echo "$OTOOL" >&6; }
1ec601bf 6754else
1d92226b
JJ
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756$as_echo "no" >&6; }
1ec601bf 6757fi
1ec601bf 6758
1d92226b 6759
1ec601bf 6760fi
1d92226b
JJ
6761if test -z "$ac_cv_prog_OTOOL"; then
6762 ac_ct_OTOOL=$OTOOL
6763 # Extract the first word of "otool", so it can be a program name with args.
6764set dummy otool; ac_word=$2
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766$as_echo_n "checking for $ac_word... " >&6; }
6767if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
1ec601bf
FXC
6768 $as_echo_n "(cached) " >&6
6769else
1d92226b
JJ
6770 if test -n "$ac_ct_OTOOL"; then
6771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_OTOOL="otool"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785 done
6786IFS=$as_save_IFS
1ec601bf 6787
1d92226b
JJ
6788fi
6789fi
6790ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6791if test -n "$ac_ct_OTOOL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6793$as_echo "$ac_ct_OTOOL" >&6; }
1ec601bf 6794else
1d92226b
JJ
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796$as_echo "no" >&6; }
1ec601bf 6797fi
1ec601bf 6798
1d92226b
JJ
6799 if test "x$ac_ct_OTOOL" = x; then
6800 OTOOL=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803yes:)
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808 OTOOL=$ac_ct_OTOOL
6809 fi
1ec601bf 6810else
1d92226b 6811 OTOOL="$ac_cv_prog_OTOOL"
1ec601bf 6812fi
1ec601bf 6813
1d92226b
JJ
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6816set dummy ${ac_tool_prefix}otool64; ac_word=$2
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818$as_echo_n "checking for $ac_word... " >&6; }
6819if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821else
6822 if test -n "$OTOOL64"; then
6823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6824else
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
1ec601bf 6836done
1d92226b
JJ
6837 done
6838IFS=$as_save_IFS
6839
6840fi
6841fi
6842OTOOL64=$ac_cv_prog_OTOOL64
6843if test -n "$OTOOL64"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6845$as_echo "$OTOOL64" >&6; }
6846else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848$as_echo "no" >&6; }
1ec601bf
FXC
6849fi
6850
1ec601bf
FXC
6851
6852fi
1d92226b
JJ
6853if test -z "$ac_cv_prog_OTOOL64"; then
6854 ac_ct_OTOOL64=$OTOOL64
6855 # Extract the first word of "otool64", so it can be a program name with args.
6856set dummy otool64; ac_word=$2
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
6859if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
1ec601bf 6861else
1d92226b
JJ
6862 if test -n "$ac_ct_OTOOL64"; then
6863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
1ec601bf 6867do
1d92226b
JJ
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_OTOOL64="otool64"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877 done
6878IFS=$as_save_IFS
1ec601bf 6879
1d92226b
JJ
6880fi
6881fi
6882ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6883if test -n "$ac_ct_OTOOL64"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6885$as_echo "$ac_ct_OTOOL64" >&6; }
1ec601bf 6886else
1d92226b
JJ
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
1ec601bf 6889fi
1ec601bf 6890
1d92226b
JJ
6891 if test "x$ac_ct_OTOOL64" = x; then
6892 OTOOL64=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895yes:)
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898ac_tool_warned=yes ;;
6899esac
6900 OTOOL64=$ac_ct_OTOOL64
6901 fi
1ec601bf 6902else
1d92226b 6903 OTOOL64="$ac_cv_prog_OTOOL64"
1ec601bf 6904fi
1ec601bf 6905
1ec601bf 6906
1ec601bf 6907
1ec601bf
FXC
6908
6909
1ec601bf 6910
1ec601bf 6911
1ec601bf 6912
1ec601bf 6913
1ec601bf 6914
1ec601bf 6915
1d92226b
JJ
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6933$as_echo_n "checking for -single_module linker flag... " >&6; }
6934if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936else
6937 lt_cv_apple_cc_single_mod=no
6938 if test -z "${LT_MULTI_MODULE}"; then
6939 # By default we will add the -single_module flag. You can override
6940 # by either setting the environment variable LT_MULTI_MODULE
6941 # non-empty at configure time, or by adding -multi_module to the
6942 # link flags.
6943 rm -rf libconftest.dylib*
6944 echo "int foo(void){return 1;}" > conftest.c
6945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946-dynamiclib -Wl,-single_module conftest.c" >&5
6947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6949 _lt_result=$?
6950 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6951 lt_cv_apple_cc_single_mod=yes
6952 else
6953 cat conftest.err >&5
6954 fi
6955 rm -rf libconftest.dylib*
6956 rm -f conftest.*
6957 fi
1ec601bf 6958fi
1d92226b
JJ
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6960$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6962$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6963if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
1ec601bf 6965else
1d92226b
JJ
6966 lt_cv_ld_exported_symbols_list=no
6967 save_LDFLAGS=$LDFLAGS
6968 echo "_main" > conftest.sym
6969 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6970 if test x$gcc_no_link = xyes; then
6971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf 6972fi
1d92226b 6973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf 6974/* end confdefs.h. */
1ec601bf 6975
1ec601bf
FXC
6976int
6977main ()
6978{
1d92226b
JJ
6979
6980 ;
1ec601bf
FXC
6981 return 0;
6982}
6983_ACEOF
1d92226b
JJ
6984if ac_fn_c_try_link "$LINENO"; then :
6985 lt_cv_ld_exported_symbols_list=yes
1ec601bf 6986else
1d92226b 6987 lt_cv_ld_exported_symbols_list=no
1ec601bf 6988fi
1d92226b
JJ
6989rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LDFLAGS="$save_LDFLAGS"
1ec601bf
FXC
6992
6993fi
1d92226b
JJ
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6995$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6997$as_echo_n "checking for -force_load linker flag... " >&6; }
6998if test "${lt_cv_ld_force_load+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000else
7001 lt_cv_ld_force_load=no
7002 cat > conftest.c << _LT_EOF
7003int forced_loaded() { return 2;}
7004_LT_EOF
7005 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7006 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7007 echo "$AR cru libconftest.a conftest.o" >&5
7008 $AR cru libconftest.a conftest.o 2>&5
7009 cat > conftest.c << _LT_EOF
7010int main() { return 0;}
7011_LT_EOF
7012 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7013 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7014 _lt_result=$?
7015 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7016 lt_cv_ld_force_load=yes
7017 else
7018 cat conftest.err >&5
7019 fi
7020 rm -f conftest.err libconftest.a conftest conftest.c
7021 rm -rf conftest.dSYM
1ec601bf
FXC
7022
7023fi
1d92226b
JJ
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7025$as_echo "$lt_cv_ld_force_load" >&6; }
7026 case $host_os in
7027 rhapsody* | darwin1.[012])
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7029 darwin1.*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 darwin*) # darwin 5.x on
7032 # if running on 10.5 or later, the deployment target defaults
7033 # to the OS version, if on x86, and 10.4, the deployment
7034 # target defaults to 10.4. Don't you love it?
7035 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7036 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7038 10.[012][,.]*)
1d92226b
JJ
7039 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040 10.*)
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042 esac
7043 ;;
7044 esac
7045 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7046 _lt_dar_single_mod='$single_module'
7047 fi
7048 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7049 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7050 else
7051 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7052 fi
7053 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7054 _lt_dsymutil='~$DSYMUTIL $lib || :'
7055 else
7056 _lt_dsymutil=
7057 fi
7058 ;;
7059 esac
1ec601bf
FXC
7060
7061for ac_header in dlfcn.h
7062do :
7063 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7064"
7065if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7066 cat >>confdefs.h <<_ACEOF
7067#define HAVE_DLFCN_H 1
7068_ACEOF
7069
7070fi
7071
7072done
7073
7074
7075
7076
7077
7078# Set options
7079
7080
7081
7082 enable_dlopen=no
7083
7084
7085 enable_win32_dll=no
7086
7087
7088 # Check whether --enable-shared was given.
7089if test "${enable_shared+set}" = set; then :
7090 enableval=$enable_shared; p=${PACKAGE-default}
7091 case $enableval in
7092 yes) enable_shared=yes ;;
7093 no) enable_shared=no ;;
7094 *)
7095 enable_shared=no
7096 # Look at the argument we got. We use all the common list separators.
7097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7098 for pkg in $enableval; do
7099 IFS="$lt_save_ifs"
7100 if test "X$pkg" = "X$p"; then
7101 enable_shared=yes
7102 fi
7103 done
7104 IFS="$lt_save_ifs"
7105 ;;
7106 esac
7107else
7108 enable_shared=yes
7109fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 # Check whether --enable-static was given.
7120if test "${enable_static+set}" = set; then :
7121 enableval=$enable_static; p=${PACKAGE-default}
7122 case $enableval in
7123 yes) enable_static=yes ;;
7124 no) enable_static=no ;;
7125 *)
7126 enable_static=no
7127 # Look at the argument we got. We use all the common list separators.
7128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7129 for pkg in $enableval; do
7130 IFS="$lt_save_ifs"
7131 if test "X$pkg" = "X$p"; then
7132 enable_static=yes
7133 fi
7134 done
7135 IFS="$lt_save_ifs"
7136 ;;
7137 esac
7138else
7139 enable_static=yes
7140fi
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151# Check whether --with-pic was given.
7152if test "${with_pic+set}" = set; then :
7153 withval=$with_pic; pic_mode="$withval"
7154else
7155 pic_mode=default
7156fi
7157
7158
7159test -z "$pic_mode" && pic_mode=default
7160
7161
7162
7163
7164
7165
7166
7167 # Check whether --enable-fast-install was given.
7168if test "${enable_fast_install+set}" = set; then :
7169 enableval=$enable_fast_install; p=${PACKAGE-default}
7170 case $enableval in
7171 yes) enable_fast_install=yes ;;
7172 no) enable_fast_install=no ;;
7173 *)
7174 enable_fast_install=no
7175 # Look at the argument we got. We use all the common list separators.
7176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7177 for pkg in $enableval; do
7178 IFS="$lt_save_ifs"
7179 if test "X$pkg" = "X$p"; then
7180 enable_fast_install=yes
7181 fi
7182 done
7183 IFS="$lt_save_ifs"
7184 ;;
7185 esac
7186else
7187 enable_fast_install=yes
7188fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200# This can be used to rebuild libtool when needed
7201LIBTOOL_DEPS="$ltmain"
7202
7203# Always use our own libtool.
7204LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231test -z "$LN_S" && LN_S="ln -s"
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246if test -n "${ZSH_VERSION+set}" ; then
7247 setopt NO_GLOB_SUBST
7248fi
7249
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7251$as_echo_n "checking for objdir... " >&6; }
7252if test "${lt_cv_objdir+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254else
7255 rm -f .libs 2>/dev/null
7256mkdir .libs 2>/dev/null
7257if test -d .libs; then
7258 lt_cv_objdir=.libs
7259else
7260 # MS-DOS does not allow filenames that begin with a dot.
7261 lt_cv_objdir=_libs
7262fi
7263rmdir .libs 2>/dev/null
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7266$as_echo "$lt_cv_objdir" >&6; }
7267objdir=$lt_cv_objdir
7268
7269
7270
7271
7272
7273cat >>confdefs.h <<_ACEOF
7274#define LT_OBJDIR "$lt_cv_objdir/"
7275_ACEOF
7276
7277
7278
7279
7280case $host_os in
7281aix3*)
7282 # AIX sometimes has problems with the GCC collect2 program. For some
7283 # reason, if we set the COLLECT_NAMES environment variable, the problems
7284 # vanish in a puff of smoke.
7285 if test "X${COLLECT_NAMES+set}" != Xset; then
7286 COLLECT_NAMES=
7287 export COLLECT_NAMES
7288 fi
7289 ;;
7290esac
7291
7292# Global variables:
7293ofile=libtool
7294can_build_shared=yes
7295
7296# All known linkers require a `.a' archive for static linking (except MSVC,
7297# which needs '.lib').
7298libext=a
7299
7300with_gnu_ld="$lt_cv_prog_gnu_ld"
7301
7302old_CC="$CC"
7303old_CFLAGS="$CFLAGS"
7304
7305# Set sane defaults for various variables
7306test -z "$CC" && CC=cc
7307test -z "$LTCC" && LTCC=$CC
7308test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7309test -z "$LD" && LD=ld
7310test -z "$ac_objext" && ac_objext=o
7311
7312for cc_temp in $compiler""; do
7313 case $cc_temp in
7314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7316 \-*) ;;
7317 *) break;;
7318 esac
7319done
7320cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7321
7322
7323# Only perform the check for file, if the check method requires it
7324test -z "$MAGIC_CMD" && MAGIC_CMD=file
7325case $deplibs_check_method in
7326file_magic*)
7327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7329$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332else
7333 case $MAGIC_CMD in
7334[\\/*] | ?:[\\/]*)
7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 ;;
7337*)
7338 lt_save_MAGIC_CMD="$MAGIC_CMD"
7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341 for ac_dir in $ac_dummy; do
7342 IFS="$lt_save_ifs"
7343 test -z "$ac_dir" && ac_dir=.
7344 if test -f $ac_dir/${ac_tool_prefix}file; then
7345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346 if test -n "$file_magic_test_file"; then
7347 case $deplibs_check_method in
7348 "file_magic "*)
7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352 $EGREP "$file_magic_regex" > /dev/null; then
7353 :
7354 else
7355 cat <<_LT_EOF 1>&2
7356
7357*** Warning: the command libtool uses to detect shared libraries,
7358*** $file_magic_cmd, produces output that libtool cannot recognize.
7359*** The result is that libtool may fail to recognize shared libraries
7360*** as such. This will affect the creation of libtool libraries that
7361*** depend on shared libraries, but programs linked with such libtool
7362*** libraries will work regardless of this problem. Nevertheless, you
7363*** may want to report the problem to your system manager and/or to
7364*** bug-libtool@gnu.org
7365
7366_LT_EOF
7367 fi ;;
7368 esac
7369 fi
7370 break
7371 fi
7372 done
7373 IFS="$lt_save_ifs"
7374 MAGIC_CMD="$lt_save_MAGIC_CMD"
7375 ;;
7376esac
7377fi
7378
7379MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380if test -n "$MAGIC_CMD"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7382$as_echo "$MAGIC_CMD" >&6; }
7383else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389
7390
7391
7392if test -z "$lt_cv_path_MAGIC_CMD"; then
7393 if test -n "$ac_tool_prefix"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7395$as_echo_n "checking for file... " >&6; }
7396if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398else
7399 case $MAGIC_CMD in
7400[\\/*] | ?:[\\/]*)
7401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 ;;
7403*)
7404 lt_save_MAGIC_CMD="$MAGIC_CMD"
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7407 for ac_dir in $ac_dummy; do
7408 IFS="$lt_save_ifs"
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f $ac_dir/file; then
7411 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7412 if test -n "$file_magic_test_file"; then
7413 case $deplibs_check_method in
7414 "file_magic "*)
7415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7418 $EGREP "$file_magic_regex" > /dev/null; then
7419 :
7420 else
7421 cat <<_LT_EOF 1>&2
7422
7423*** Warning: the command libtool uses to detect shared libraries,
7424*** $file_magic_cmd, produces output that libtool cannot recognize.
7425*** The result is that libtool may fail to recognize shared libraries
7426*** as such. This will affect the creation of libtool libraries that
7427*** depend on shared libraries, but programs linked with such libtool
7428*** libraries will work regardless of this problem. Nevertheless, you
7429*** may want to report the problem to your system manager and/or to
7430*** bug-libtool@gnu.org
7431
7432_LT_EOF
7433 fi ;;
7434 esac
7435 fi
7436 break
7437 fi
7438 done
7439 IFS="$lt_save_ifs"
7440 MAGIC_CMD="$lt_save_MAGIC_CMD"
7441 ;;
7442esac
7443fi
7444
7445MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446if test -n "$MAGIC_CMD"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7448$as_echo "$MAGIC_CMD" >&6; }
7449else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454
7455 else
7456 MAGIC_CMD=:
7457 fi
7458fi
7459
7460 fi
7461 ;;
7462esac
7463
7464# Use C for the default configuration in the libtool script
7465
7466lt_save_CC="$CC"
7467ac_ext=c
7468ac_cpp='$CPP $CPPFLAGS'
7469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472
7473
7474# Source file extension for C test sources.
7475ac_ext=c
7476
7477# Object file extension for compiled C test sources.
7478objext=o
7479objext=$objext
7480
7481# Code to be used in simple compile tests
7482lt_simple_compile_test_code="int some_variable = 0;"
7483
7484# Code to be used in simple link tests
7485lt_simple_link_test_code='int main(){return(0);}'
7486
7487
7488
7489
7490
7491
7492
7493# If no C compiler was specified, use CC.
7494LTCC=${LTCC-"$CC"}
7495
7496# If no C compiler flags were specified, use CFLAGS.
7497LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
7499# Allow CC to be a program name with arguments.
7500compiler=$CC
7501
7502# Save the default compiler, since it gets overwritten when the other
7503# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7504compiler_DEFAULT=$CC
7505
7506# save warnings/boilerplate of simple test code
7507ac_outfile=conftest.$ac_objext
7508echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510_lt_compiler_boilerplate=`cat conftest.err`
7511$RM conftest*
7512
7513ac_outfile=conftest.$ac_objext
7514echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516_lt_linker_boilerplate=`cat conftest.err`
7517$RM -r conftest*
7518
7519
7520## CAVEAT EMPTOR:
7521## There is no encapsulation within the following macros, do not change
7522## the running order or otherwise move them around unless you know exactly
7523## what you are doing...
7524if test -n "$compiler"; then
7525
7526lt_prog_compiler_no_builtin_flag=
7527
7528if test "$GCC" = yes; then
7529 case $cc_basename in
7530 nvcc*)
7531 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7532 *)
7533 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7534 esac
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7538if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540else
7541 lt_cv_prog_compiler_rtti_exceptions=no
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="-fno-rtti -fno-exceptions"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
7554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7555 (eval "$lt_compile" 2>conftest.err)
7556 ac_status=$?
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings other than the usual output.
7562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565 lt_cv_prog_compiler_rtti_exceptions=yes
7566 fi
7567 fi
7568 $RM conftest*
7569
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7573
7574if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7576else
7577 :
7578fi
7579
7580fi
7581
7582
7583
7584
7585
7586
7587 lt_prog_compiler_wl=
7588lt_prog_compiler_pic=
7589lt_prog_compiler_static=
7590
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7592$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7593
7594 if test "$GCC" = yes; then
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_static='-static'
7597
7598 case $host_os in
7599 aix*)
7600 # All AIX code is PIC.
7601 if test "$host_cpu" = ia64; then
7602 # AIX 5 now supports IA64 processor
7603 lt_prog_compiler_static='-Bstatic'
7604 fi
249b09fa 7605 lt_prog_compiler_pic='-fPIC'
1ec601bf
FXC
7606 ;;
7607
7608 amigaos*)
7609 case $host_cpu in
7610 powerpc)
7611 # see comment about AmigaOS4 .so support
7612 lt_prog_compiler_pic='-fPIC'
7613 ;;
7614 m68k)
7615 # FIXME: we need at least 68020 code to build shared libraries, but
7616 # adding the `-m68020' flag to GCC prevents building anything better,
7617 # like `-m68040'.
7618 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7619 ;;
7620 esac
7621 ;;
7622
7623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7624 # PIC is the default for these OSes.
7625 ;;
7626
7627 mingw* | cygwin* | pw32* | os2* | cegcc*)
7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
7630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7631 # (--disable-auto-import) libraries
7632 lt_prog_compiler_pic='-DDLL_EXPORT'
7633 ;;
7634
7635 darwin* | rhapsody*)
7636 # PIC is the default on this platform
7637 # Common symbols not allowed in MH_DYLIB files
7638 lt_prog_compiler_pic='-fno-common'
7639 ;;
7640
7641 haiku*)
7642 # PIC is the default for Haiku.
7643 # The "-static" flag exists, but is broken.
7644 lt_prog_compiler_static=
7645 ;;
7646
7647 hpux*)
7648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7650 # sets the default TLS model and affects inlining.
7651 case $host_cpu in
7652 hppa*64*)
7653 # +Z the default
7654 ;;
7655 *)
7656 lt_prog_compiler_pic='-fPIC'
7657 ;;
7658 esac
7659 ;;
7660
7661 interix[3-9]*)
7662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7663 # Instead, we relocate shared libraries at runtime.
7664 ;;
7665
7666 msdosdjgpp*)
7667 # Just because we use GCC doesn't mean we suddenly get shared libraries
7668 # on systems that don't support them.
7669 lt_prog_compiler_can_build_shared=no
7670 enable_shared=no
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 sysv4*MP*)
7680 if test -d /usr/nec; then
7681 lt_prog_compiler_pic=-Kconform_pic
7682 fi
7683 ;;
7684
7685 *)
7686 lt_prog_compiler_pic='-fPIC'
7687 ;;
7688 esac
7689
7690 case $cc_basename in
7691 nvcc*) # Cuda Compiler Driver 2.2
7692 lt_prog_compiler_wl='-Xlinker '
7693 lt_prog_compiler_pic='-Xcompiler -fPIC'
7694 ;;
7695 esac
7696 else
7697 # PORTME Check for flag to pass linker flags through the system compiler.
7698 case $host_os in
7699 aix*)
7700 lt_prog_compiler_wl='-Wl,'
7701 if test "$host_cpu" = ia64; then
7702 # AIX 5 now supports IA64 processor
7703 lt_prog_compiler_static='-Bstatic'
7704 else
7705 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7706 fi
7707 ;;
7708
7709 mingw* | cygwin* | pw32* | os2* | cegcc*)
7710 # This hack is so that the source file can tell whether it is being
7711 # built for inclusion in a dll (and should export symbols for example).
7712 lt_prog_compiler_pic='-DDLL_EXPORT'
7713 ;;
7714
7715 hpux9* | hpux10* | hpux11*)
7716 lt_prog_compiler_wl='-Wl,'
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718 # not for PA HP-UX.
7719 case $host_cpu in
7720 hppa*64*|ia64*)
7721 # +Z the default
7722 ;;
7723 *)
7724 lt_prog_compiler_pic='+Z'
7725 ;;
7726 esac
7727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7728 lt_prog_compiler_static='${wl}-a ${wl}archive'
7729 ;;
7730
7731 irix5* | irix6* | nonstopux*)
7732 lt_prog_compiler_wl='-Wl,'
7733 # PIC (with -KPIC) is the default.
7734 lt_prog_compiler_static='-non_shared'
7735 ;;
7736
7737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7738 case $cc_basename in
7739 # old Intel for x86_64 which still supported -KPIC.
7740 ecc*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-static'
7744 ;;
7745 # icc used to be incompatible with GCC.
7746 # ICC 10 doesn't accept -KPIC any more.
7747 icc* | ifort*)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='-fPIC'
7750 lt_prog_compiler_static='-static'
7751 ;;
7752 # Lahey Fortran 8.1.
7753 lf95*)
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='--shared'
7756 lt_prog_compiler_static='--static'
7757 ;;
7758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7759 # Portland Group compilers (*not* the Pentium gcc compiler,
7760 # which looks to be a dead project)
7761 lt_prog_compiler_wl='-Wl,'
7762 lt_prog_compiler_pic='-fpic'
7763 lt_prog_compiler_static='-Bstatic'
7764 ;;
7765 ccc*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # All Alpha code is PIC.
7768 lt_prog_compiler_static='-non_shared'
7769 ;;
7770 xl* | bgxl* | bgf* | mpixl*)
7771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_pic='-qpic'
7774 lt_prog_compiler_static='-qstaticlink'
7775 ;;
7776 *)
7777 case `$CC -V 2>&1 | sed 5q` in
7778 *Sun\ F* | *Sun*Fortran*)
7779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl=''
7783 ;;
7784 *Sun\ C*)
7785 # Sun C 5.9
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 lt_prog_compiler_wl='-Wl,'
7789 ;;
7790 esac
7791 ;;
7792 esac
7793 ;;
7794
7795 newsos6)
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 ;;
7799
7800 *nto* | *qnx*)
7801 # QNX uses GNU C++, but need to define -shared option too, otherwise
7802 # it will coredump.
7803 lt_prog_compiler_pic='-fPIC -shared'
7804 ;;
7805
7806 osf3* | osf4* | osf5*)
7807 lt_prog_compiler_wl='-Wl,'
7808 # All OSF/1 code is PIC.
7809 lt_prog_compiler_static='-non_shared'
7810 ;;
7811
7812 rdos*)
7813 lt_prog_compiler_static='-non_shared'
7814 ;;
7815
7816 solaris*)
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 case $cc_basename in
7820 f77* | f90* | f95*)
7821 lt_prog_compiler_wl='-Qoption ld ';;
7822 *)
7823 lt_prog_compiler_wl='-Wl,';;
7824 esac
7825 ;;
7826
7827 sunos4*)
7828 lt_prog_compiler_wl='-Qoption ld '
7829 lt_prog_compiler_pic='-PIC'
7830 lt_prog_compiler_static='-Bstatic'
7831 ;;
7832
7833 sysv4 | sysv4.2uw2* | sysv4.3*)
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_pic='-KPIC'
7836 lt_prog_compiler_static='-Bstatic'
7837 ;;
7838
7839 sysv4*MP*)
7840 if test -d /usr/nec ;then
7841 lt_prog_compiler_pic='-Kconform_pic'
7842 lt_prog_compiler_static='-Bstatic'
7843 fi
7844 ;;
7845
7846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7850 ;;
7851
7852 unicos*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_can_build_shared=no
7855 ;;
7856
7857 uts4*)
7858 lt_prog_compiler_pic='-pic'
7859 lt_prog_compiler_static='-Bstatic'
7860 ;;
7861
7862 *)
7863 lt_prog_compiler_can_build_shared=no
7864 ;;
7865 esac
7866 fi
7867
7868case $host_os in
7869 # For platforms which do not support PIC, -DPIC is meaningless:
7870 *djgpp*)
7871 lt_prog_compiler_pic=
7872 ;;
7873 *)
7874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7875 ;;
7876esac
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7878$as_echo "$lt_prog_compiler_pic" >&6; }
7879
7880
7881
7882
7883
7884
7885#
7886# Check to make sure the PIC flag actually works.
7887#
7888if test -n "$lt_prog_compiler_pic"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7891if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893else
7894 lt_cv_prog_compiler_pic_works=no
7895 ac_outfile=conftest.$ac_objext
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>conftest.err)
7909 ac_status=$?
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918 lt_cv_prog_compiler_pic_works=yes
7919 fi
7920 fi
7921 $RM conftest*
7922
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7925$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7926
7927if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7928 case $lt_prog_compiler_pic in
7929 "" | " "*) ;;
7930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7931 esac
7932else
7933 lt_prog_compiler_pic=
7934 lt_prog_compiler_can_build_shared=no
7935fi
7936
7937fi
7938
7939
7940
7941
7942
7943
7944#
7945# Check to make sure the static flag actually works.
7946#
7947wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7949$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7950if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952else
7953 lt_cv_prog_compiler_static_works=no
7954 save_LDFLAGS="$LDFLAGS"
7955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7958 # The linker can only warn and ignore the option if not recognized
7959 # So say no if there are warnings
7960 if test -s conftest.err; then
7961 # Append any errors to the config.log.
7962 cat conftest.err 1>&5
7963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7965 if diff conftest.exp conftest.er2 >/dev/null; then
7966 lt_cv_prog_compiler_static_works=yes
7967 fi
7968 else
7969 lt_cv_prog_compiler_static_works=yes
7970 fi
7971 fi
7972 $RM -r conftest*
7973 LDFLAGS="$save_LDFLAGS"
7974
7975fi
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7977$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7978
7979if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7980 :
7981else
7982 lt_prog_compiler_static=
7983fi
7984
7985
7986
7987
7988
7989
7990
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7993if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995else
7996 lt_cv_prog_compiler_c_o=no
7997 $RM -r conftest 2>/dev/null
7998 mkdir conftest
7999 cd conftest
8000 mkdir out
8001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8002
8003 lt_compiler_flag="-o out/conftest2.$ac_objext"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 lt_compile=`echo "$ac_compile" | $SED \
8009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8011 -e 's:$: $lt_compiler_flag:'`
8012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8013 (eval "$lt_compile" 2>out/conftest.err)
8014 ac_status=$?
8015 cat out/conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8018 then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings
8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8024 lt_cv_prog_compiler_c_o=yes
8025 fi
8026 fi
8027 chmod u+w . 2>&5
8028 $RM conftest*
8029 # SGI C++ compiler will create directory out/ii_files/ for
8030 # template instantiation
8031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8032 $RM out/* && rmdir out
8033 cd ..
8034 $RM -r conftest
8035 $RM conftest*
8036
8037fi
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8039$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8040
8041
8042
8043
8044
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8048if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 lt_cv_prog_compiler_c_o=no
8052 $RM -r conftest 2>/dev/null
8053 mkdir conftest
8054 cd conftest
8055 mkdir out
8056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057
8058 lt_compiler_flag="-o out/conftest2.$ac_objext"
8059 # Insert the option either (1) after the last *FLAGS variable, or
8060 # (2) before a word containing "conftest.", or (3) at the end.
8061 # Note that $ac_compile itself does not contain backslashes and begins
8062 # with a dollar sign (not a hyphen), so the echo should work correctly.
8063 lt_compile=`echo "$ac_compile" | $SED \
8064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066 -e 's:$: $lt_compiler_flag:'`
8067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8068 (eval "$lt_compile" 2>out/conftest.err)
8069 ac_status=$?
8070 cat out/conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8073 then
8074 # The compiler can only warn and ignore the option if not recognized
8075 # So say no if there are warnings
8076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_c_o=yes
8080 fi
8081 fi
8082 chmod u+w . 2>&5
8083 $RM conftest*
8084 # SGI C++ compiler will create directory out/ii_files/ for
8085 # template instantiation
8086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8087 $RM out/* && rmdir out
8088 cd ..
8089 $RM -r conftest
8090 $RM conftest*
8091
8092fi
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8094$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8095
8096
8097
8098
8099hard_links="nottested"
8100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8101 # do not overwrite the value of need_locks provided by the user
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8103$as_echo_n "checking if we can lock with hard links... " >&6; }
8104 hard_links=yes
8105 $RM conftest*
8106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8107 touch conftest.a
8108 ln conftest.a conftest.b 2>&5 || hard_links=no
8109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8111$as_echo "$hard_links" >&6; }
8112 if test "$hard_links" = no; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8114$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8115 need_locks=warn
8116 fi
8117else
8118 need_locks=no
8119fi
8120
8121
8122
8123
8124
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8127$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8128
8129 runpath_var=
8130 allow_undefined_flag=
8131 always_export_symbols=no
8132 archive_cmds=
8133 archive_expsym_cmds=
8134 compiler_needs_object=no
8135 enable_shared_with_static_runtimes=no
8136 export_dynamic_flag_spec=
8137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8138 hardcode_automatic=no
8139 hardcode_direct=no
8140 hardcode_direct_absolute=no
8141 hardcode_libdir_flag_spec=
8142 hardcode_libdir_flag_spec_ld=
8143 hardcode_libdir_separator=
8144 hardcode_minus_L=no
8145 hardcode_shlibpath_var=unsupported
8146 inherit_rpath=no
8147 link_all_deplibs=unknown
8148 module_cmds=
8149 module_expsym_cmds=
8150 old_archive_from_new_cmds=
8151 old_archive_from_expsyms_cmds=
8152 thread_safe_flag_spec=
8153 whole_archive_flag_spec=
8154 # include_expsyms should be a list of space-separated symbols to be *always*
8155 # included in the symbol list
8156 include_expsyms=
8157 # exclude_expsyms can be an extended regexp of symbols to exclude
8158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8160 # as well as any symbol that contains `d'.
8161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8163 # platforms (ab)use it in PIC code, but their linkers get confused if
8164 # the symbol is explicitly referenced. Since portable code cannot
8165 # rely on this symbol name, it's probably fine to never include it in
8166 # preloaded symbol tables.
8167 # Exclude shared library initialization/finalization symbols.
8168 extract_expsyms_cmds=
8169
8170 case $host_os in
8171 cygwin* | mingw* | pw32* | cegcc*)
8172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8173 # When not using gcc, we currently assume that we are using
8174 # Microsoft Visual C++.
8175 if test "$GCC" != yes; then
8176 with_gnu_ld=no
8177 fi
8178 ;;
8179 interix*)
8180 # we just hope/assume this is gcc and not c89 (= MSVC++)
8181 with_gnu_ld=yes
8182 ;;
8183 openbsd*)
8184 with_gnu_ld=no
8185 ;;
8186 esac
8187
8188 ld_shlibs=yes
8189
8190 # On some targets, GNU ld is compatible enough with the native linker
8191 # that we're better off using the native interface for both.
8192 lt_use_gnu_ld_interface=no
8193 if test "$with_gnu_ld" = yes; then
8194 case $host_os in
8195 aix*)
8196 # The AIX port of GNU ld has always aspired to compatibility
8197 # with the native linker. However, as the warning in the GNU ld
8198 # block says, versions before 2.19.5* couldn't really create working
8199 # shared libraries, regardless of the interface used.
8200 case `$LD -v 2>&1` in
8201 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8202 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8203 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8204 *)
8205 lt_use_gnu_ld_interface=yes
8206 ;;
8207 esac
8208 ;;
8209 *)
8210 lt_use_gnu_ld_interface=yes
8211 ;;
8212 esac
8213 fi
8214
8215 if test "$lt_use_gnu_ld_interface" = yes; then
8216 # If archive_cmds runs LD, not CC, wlarc should be empty
8217 wlarc='${wl}'
8218
8219 # Set some defaults for GNU ld with shared library support. These
8220 # are reset later if shared libraries are not supported. Putting them
8221 # here allows them to be overridden if necessary.
8222 runpath_var=LD_RUN_PATH
8223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8224 export_dynamic_flag_spec='${wl}--export-dynamic'
8225 # ancient GNU ld didn't support --whole-archive et. al.
8226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8228 else
8229 whole_archive_flag_spec=
8230 fi
8231 supports_anon_versioning=no
8232 case `$LD -v 2>&1` in
8233 *GNU\ gold*) supports_anon_versioning=yes ;;
8234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8237 *\ 2.11.*) ;; # other 2.11 versions
8238 *) supports_anon_versioning=yes ;;
8239 esac
8240
8241 # See if GNU ld supports shared libraries.
8242 case $host_os in
8243 aix[3-9]*)
8244 # On AIX/PPC, the GNU linker is very broken
8245 if test "$host_cpu" != ia64; then
8246 ld_shlibs=no
8247 cat <<_LT_EOF 1>&2
8248
8249*** Warning: the GNU linker, at least up to release 2.19, is reported
8250*** to be unable to reliably create shared libraries on AIX.
8251*** Therefore, libtool is disabling shared libraries support. If you
8252*** really care for shared libraries, you may want to install binutils
8253*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8254*** You will then need to restart the configuration process.
8255
8256_LT_EOF
8257 fi
8258 ;;
8259
8260 amigaos*)
8261 case $host_cpu in
8262 powerpc)
8263 # see comment about AmigaOS4 .so support
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds=''
8266 ;;
8267 m68k)
8268 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)'
8269 hardcode_libdir_flag_spec='-L$libdir'
8270 hardcode_minus_L=yes
8271 ;;
8272 esac
8273 ;;
8274
8275 beos*)
8276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8277 allow_undefined_flag=unsupported
8278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8279 # support --undefined. This deserves some investigation. FIXME
8280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 else
8282 ld_shlibs=no
8283 fi
8284 ;;
8285
8286 cygwin* | mingw* | pw32* | cegcc*)
8287 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8288 # as there is no search path for DLLs.
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 export_dynamic_flag_spec='${wl}--export-all-symbols'
8291 allow_undefined_flag=unsupported
8292 always_export_symbols=no
8293 enable_shared_with_static_runtimes=yes
8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8295
8296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298 # If the export-symbols file already is a .def file (1st line
8299 # is EXPORTS), use it as is; otherwise, prepend...
8300 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8301 cp $export_symbols $output_objdir/$soname.def;
8302 else
8303 echo EXPORTS > $output_objdir/$soname.def;
8304 cat $export_symbols >> $output_objdir/$soname.def;
8305 fi~
8306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8307 else
8308 ld_shlibs=no
8309 fi
8310 ;;
8311
8312 haiku*)
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 link_all_deplibs=yes
8315 ;;
8316
8317 interix[3-9]*)
8318 hardcode_direct=no
8319 hardcode_shlibpath_var=no
8320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8321 export_dynamic_flag_spec='${wl}-E'
8322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8323 # Instead, shared libraries are loaded at an image base (0x10000000 by
8324 # default) and relocated if they conflict, which is a slow very memory
8325 # consuming and fragmenting process. To avoid this, we pick a random,
8326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8329 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'
8330 ;;
8331
8332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8333 tmp_diet=no
8334 if test "$host_os" = linux-dietlibc; then
8335 case $cc_basename in
8336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8337 esac
8338 fi
8339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8340 && test "$tmp_diet" = no
8341 then
a699d672 8342 tmp_addflag=' $pic_flag'
1ec601bf
FXC
8343 tmp_sharedflag='-shared'
8344 case $cc_basename,$host_cpu in
8345 pgcc*) # Portland Group C compiler
8346 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'
8347 tmp_addflag=' $pic_flag'
8348 ;;
8349 pgf77* | pgf90* | pgf95* | pgfortran*)
8350 # Portland Group f77 and f90 compilers
8351 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'
8352 tmp_addflag=' $pic_flag -Mnomain' ;;
8353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8354 tmp_addflag=' -i_dynamic' ;;
8355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8356 tmp_addflag=' -i_dynamic -nofor_main' ;;
8357 ifc* | ifort*) # Intel Fortran compiler
8358 tmp_addflag=' -nofor_main' ;;
8359 lf95*) # Lahey Fortran 8.1
8360 whole_archive_flag_spec=
8361 tmp_sharedflag='--shared' ;;
8362 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8363 tmp_sharedflag='-qmkshrobj'
8364 tmp_addflag= ;;
8365 nvcc*) # Cuda Compiler Driver 2.2
8366 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'
8367 compiler_needs_object=yes
8368 ;;
8369 esac
8370 case `$CC -V 2>&1 | sed 5q` in
8371 *Sun\ C*) # Sun C 5.9
8372 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'
8373 compiler_needs_object=yes
8374 tmp_sharedflag='-G' ;;
8375 *Sun\ F*) # Sun Fortran 8.3
8376 tmp_sharedflag='-G' ;;
8377 esac
8378 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379
8380 if test "x$supports_anon_versioning" = xyes; then
8381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8383 echo "local: *; };" >> $output_objdir/$libname.ver~
8384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8385 fi
8386
8387 case $cc_basename in
8388 xlf* | bgf* | bgxlf* | mpixlf*)
8389 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8390 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8391 hardcode_libdir_flag_spec=
8392 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8393 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8394 if test "x$supports_anon_versioning" = xyes; then
8395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8397 echo "local: *; };" >> $output_objdir/$libname.ver~
8398 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8399 fi
8400 ;;
8401 esac
8402 else
8403 ld_shlibs=no
8404 fi
8405 ;;
8406
8407 netbsd*)
8408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8409 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8410 wlarc=
8411 else
8412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8414 fi
8415 ;;
8416
8417 solaris*)
8418 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8419 ld_shlibs=no
8420 cat <<_LT_EOF 1>&2
8421
8422*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8423*** create shared libraries on Solaris systems. Therefore, libtool
8424*** is disabling shared libraries support. We urge you to upgrade GNU
8425*** binutils to release 2.9.1 or newer. Another option is to modify
8426*** your PATH or compiler configuration so that the native linker is
8427*** used, and then restart.
8428
8429_LT_EOF
8430 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8433 else
8434 ld_shlibs=no
8435 fi
8436 ;;
8437
8438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8439 case `$LD -v 2>&1` in
8440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8441 ld_shlibs=no
8442 cat <<_LT_EOF 1>&2
8443
8444*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8445*** reliably create shared libraries on SCO systems. Therefore, libtool
8446*** is disabling shared libraries support. We urge you to upgrade GNU
8447*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8448*** your PATH or compiler configuration so that the native linker is
8449*** used, and then restart.
8450
8451_LT_EOF
8452 ;;
8453 *)
8454 # For security reasons, it is highly recommended that you always
8455 # use absolute paths for naming shared libraries, and exclude the
8456 # DT_RUNPATH tag from executables and libraries. But doing so
8457 # requires that you compile everything twice, which is a pain.
8458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462 else
8463 ld_shlibs=no
8464 fi
8465 ;;
8466 esac
8467 ;;
8468
8469 sunos4*)
8470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8471 wlarc=
8472 hardcode_direct=yes
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 *)
8477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8480 else
8481 ld_shlibs=no
8482 fi
8483 ;;
8484 esac
8485
8486 if test "$ld_shlibs" = no; then
8487 runpath_var=
8488 hardcode_libdir_flag_spec=
8489 export_dynamic_flag_spec=
8490 whole_archive_flag_spec=
8491 fi
8492 else
8493 # PORTME fill in a description of your system's linker (not GNU ld)
8494 case $host_os in
8495 aix3*)
8496 allow_undefined_flag=unsupported
8497 always_export_symbols=yes
8498 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'
8499 # Note: this linker hardcodes the directories in LIBPATH if there
8500 # are no directories specified by -L.
8501 hardcode_minus_L=yes
8502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8503 # Neither direct hardcoding nor static linking is supported with a
8504 # broken collect2.
8505 hardcode_direct=unsupported
8506 fi
8507 ;;
8508
8509 aix[4-9]*)
8510 if test "$host_cpu" = ia64; then
8511 # On IA64, the linker does run time linking by default, so we don't
8512 # have to do anything special.
8513 aix_use_runtimelinking=no
8514 exp_sym_flag='-Bexport'
8515 no_entry_flag=""
8516 else
8517 # If we're using GNU nm, then we don't want the "-C" option.
8518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8519 # Also, AIX nm treats weak defined symbols like other global
8520 # defined symbols, whereas GNU nm marks them as "W".
8521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8522 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'
8523 else
84c1b9d3 8524 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1ec601bf
FXC
8525 fi
8526 aix_use_runtimelinking=no
8527
8528 # Test if we are trying to use run time linking or normal
8529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8530 # need to do runtime linking.
8531 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8532 for ld_flag in $LDFLAGS; do
8533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8534 aix_use_runtimelinking=yes
8535 break
8536 fi
8537 done
8538 ;;
8539 esac
8540
8541 exp_sym_flag='-bexport'
8542 no_entry_flag='-bnoentry'
8543 fi
8544
8545 # When large executables or shared objects are built, AIX ld can
8546 # have problems creating the table of contents. If linking a library
8547 # or program results in "error TOC overflow" add -mminimal-toc to
8548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8550
8551 archive_cmds=''
8552 hardcode_direct=yes
8553 hardcode_direct_absolute=yes
8554 hardcode_libdir_separator=':'
8555 link_all_deplibs=yes
8556 file_list_spec='${wl}-f,'
8557
8558 if test "$GCC" = yes; then
8559 case $host_os in aix4.[012]|aix4.[012].*)
8560 # We only want to do this on AIX 4.2 and lower, the check
8561 # below for broken collect2 doesn't work under 4.3+
8562 collect2name=`${CC} -print-prog-name=collect2`
8563 if test -f "$collect2name" &&
8564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8565 then
8566 # We have reworked collect2
8567 :
8568 else
8569 # We have old collect2
8570 hardcode_direct=unsupported
8571 # It fails to find uninstalled libraries when the uninstalled
8572 # path is not listed in the libpath. Setting hardcode_minus_L
8573 # to unsupported forces relinking
8574 hardcode_minus_L=yes
8575 hardcode_libdir_flag_spec='-L$libdir'
8576 hardcode_libdir_separator=
8577 fi
8578 ;;
8579 esac
8580 shared_flag='-shared'
8581 if test "$aix_use_runtimelinking" = yes; then
8582 shared_flag="$shared_flag "'${wl}-G'
8583 fi
8584 else
8585 # not using gcc
8586 if test "$host_cpu" = ia64; then
8587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8588 # chokes on -Wl,-G. The following line is correct:
8589 shared_flag='-G'
8590 else
8591 if test "$aix_use_runtimelinking" = yes; then
8592 shared_flag='${wl}-G'
8593 else
8594 shared_flag='${wl}-bM:SRE'
8595 fi
8596 fi
8597 fi
8598
8599 export_dynamic_flag_spec='${wl}-bexpall'
8600 # It seems that -bexpall does not export symbols beginning with
8601 # underscore (_), so it is better to generate a list of symbols to export.
8602 always_export_symbols=yes
8603 if test "$aix_use_runtimelinking" = yes; then
8604 # Warning - without using the other runtime loading flags (-brtl),
8605 # -berok will link without error, but may produce a broken library.
8606 allow_undefined_flag='-berok'
8607 # Determine the default libpath from the value encoded in an
8608 # empty executable.
fabfcf5e
KT
8609 if test x$gcc_no_link = xyes; then
8610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8611fi
8612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8613/* end confdefs.h. */
8614
8615int
8616main ()
8617{
8618
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"; then :
8624
8625lt_aix_libpath_sed='
8626 /Import File Strings/,/^$/ {
8627 /^0/ {
8628 s/^0 *\(.*\)$/\1/
8629 p
8630 }
8631 }'
8632aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633# Check for a 64-bit object if we didn't find anything.
8634if test -z "$aix_libpath"; then
8635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8636fi
8637fi
8638rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 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"
8644 else
8645 if test "$host_cpu" = ia64; then
8646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647 allow_undefined_flag="-z nodefs"
8648 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"
8649 else
8650 # Determine the default libpath from the value encoded in an
8651 # empty executable.
fabfcf5e
KT
8652 if test x$gcc_no_link = xyes; then
8653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8654fi
8655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8656/* end confdefs.h. */
8657
8658int
8659main ()
8660{
8661
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667
8668lt_aix_libpath_sed='
8669 /Import File Strings/,/^$/ {
8670 /^0/ {
8671 s/^0 *\(.*\)$/\1/
8672 p
8673 }
8674 }'
8675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8676# Check for a 64-bit object if we didn't find anything.
8677if test -z "$aix_libpath"; then
8678 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8679fi
8680fi
8681rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8684
8685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8686 # Warning - without using the other run time loading flags,
8687 # -berok will link without error, but may produce a broken library.
8688 no_undefined_flag=' ${wl}-bernotok'
8689 allow_undefined_flag=' ${wl}-berok'
8690 if test "$with_gnu_ld" = yes; then
8691 # We only use this code for GNU lds that support --whole-archive.
8692 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8693 else
8694 # Exported symbols can be pulled into shared objects from archives
8695 whole_archive_flag_spec='$convenience'
8696 fi
8697 archive_cmds_need_lc=yes
8698 # This is similar to how AIX traditionally builds its shared libraries.
8699 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'
8700 fi
8701 fi
8702 ;;
8703
8704 amigaos*)
8705 case $host_cpu in
8706 powerpc)
8707 # see comment about AmigaOS4 .so support
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds=''
8710 ;;
8711 m68k)
8712 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)'
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_minus_L=yes
8715 ;;
8716 esac
8717 ;;
8718
8719 bsdi[45]*)
8720 export_dynamic_flag_spec=-rdynamic
8721 ;;
8722
8723 cygwin* | mingw* | pw32* | cegcc*)
8724 # When not using gcc, we currently assume that we are using
8725 # Microsoft Visual C++.
8726 # hardcode_libdir_flag_spec is actually meaningless, as there is
8727 # no search path for DLLs.
8728 hardcode_libdir_flag_spec=' '
8729 allow_undefined_flag=unsupported
8730 # Tell ltmain to make .lib files, not .a files.
8731 libext=lib
8732 # Tell ltmain to make .dll files, not .so files.
8733 shrext_cmds=".dll"
8734 # FIXME: Setting linknames here is a bad hack.
8735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8736 # The linker will automatically build a .lib file if we build a DLL.
8737 old_archive_from_new_cmds='true'
8738 # FIXME: Should let the user specify the lib program.
8739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8740 fix_srcfile_path='`cygpath -w "$srcfile"`'
8741 enable_shared_with_static_runtimes=yes
8742 ;;
8743
8744 darwin* | rhapsody*)
8745
8746
8747 archive_cmds_need_lc=no
8748 hardcode_direct=no
8749 hardcode_automatic=yes
8750 hardcode_shlibpath_var=unsupported
8751 if test "$lt_cv_ld_force_load" = "yes"; then
8752 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\"`'
8753 else
8754 whole_archive_flag_spec=''
8755 fi
8756 link_all_deplibs=yes
8757 allow_undefined_flag="$_lt_dar_allow_undefined"
8758 case $cc_basename in
8759 ifort*) _lt_dar_can_shared=yes ;;
8760 *) _lt_dar_can_shared=$GCC ;;
8761 esac
8762 if test "$_lt_dar_can_shared" = "yes"; then
8763 output_verbose_link_cmd=func_echo_all
8764 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8765 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8766 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}"
8767 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}"
8768
8769 else
8770 ld_shlibs=no
8771 fi
8772
8773 ;;
8774
8775 dgux*)
8776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_shlibpath_var=no
8779 ;;
8780
1ec601bf
FXC
8781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8782 # support. Future versions do this automatically, but an explicit c++rt0.o
8783 # does not break anything, and helps significantly (at the cost of a little
8784 # extra space).
8785 freebsd2.2*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 8793 freebsd2.*)
1ec601bf
FXC
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=yes
8796 hardcode_minus_L=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8801 freebsd* | dragonfly*)
8802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 hardcode_direct=yes
8805 hardcode_shlibpath_var=no
8806 ;;
8807
8808 hpux9*)
8809 if test "$GCC" = yes; then
8810 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'
8811 else
8812 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'
8813 fi
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_separator=:
8816 hardcode_direct=yes
8817
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 export_dynamic_flag_spec='${wl}-E'
8822 ;;
8823
8824 hpux10*)
8825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8829 fi
8830 if test "$with_gnu_ld" = no; then
8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832 hardcode_libdir_flag_spec_ld='+b $libdir'
8833 hardcode_libdir_separator=:
8834 hardcode_direct=yes
8835 hardcode_direct_absolute=yes
8836 export_dynamic_flag_spec='${wl}-E'
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8840 fi
8841 ;;
8842
8843 hpux11*)
8844 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8845 case $host_cpu in
8846 hppa*64*)
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 ;;
8849 ia64*)
8850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851 ;;
8852 *)
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8854 ;;
8855 esac
8856 else
8857 case $host_cpu in
8858 hppa*64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 ;;
8861 ia64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 *)
8865
8866 # Older versions of the 11.00 compiler do not understand -b yet
8867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8869$as_echo_n "checking if $CC understands -b... " >&6; }
8870if test "${lt_cv_prog_compiler__b+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872else
8873 lt_cv_prog_compiler__b=no
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS -b"
8876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8878 # The linker can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 if test -s conftest.err; then
8881 # Append any errors to the config.log.
8882 cat conftest.err 1>&5
8883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler__b=yes
8887 fi
8888 else
8889 lt_cv_prog_compiler__b=yes
8890 fi
8891 fi
8892 $RM -r conftest*
8893 LDFLAGS="$save_LDFLAGS"
8894
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8897$as_echo "$lt_cv_prog_compiler__b" >&6; }
8898
8899if test x"$lt_cv_prog_compiler__b" = xyes; then
8900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8901else
8902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8903fi
8904
8905 ;;
8906 esac
8907 fi
8908 if test "$with_gnu_ld" = no; then
8909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910 hardcode_libdir_separator=:
8911
8912 case $host_cpu in
8913 hppa*64*|ia64*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8916 ;;
8917 *)
8918 hardcode_direct=yes
8919 hardcode_direct_absolute=yes
8920 export_dynamic_flag_spec='${wl}-E'
8921
8922 # hardcode_minus_L: Not really in the search PATH,
8923 # but as the default location of the library.
8924 hardcode_minus_L=yes
8925 ;;
8926 esac
8927 fi
8928 ;;
8929
8930 irix5* | irix6* | nonstopux*)
8931 if test "$GCC" = yes; then
8932 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'
8933 # Try to use the -exported_symbol ld option, if it does not
8934 # work, assume that -exports_file does not work either and
8935 # implicitly export all symbols.
8936 save_LDFLAGS="$LDFLAGS"
8937 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
fabfcf5e
KT
8938 if test x$gcc_no_link = xyes; then
8939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8940fi
8941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8942/* end confdefs.h. */
8943int foo(void) {}
8944_ACEOF
8945if ac_fn_c_try_link "$LINENO"; then :
8946 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'
8947
8948fi
8949rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LDFLAGS="$save_LDFLAGS"
8952 else
8953 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'
8954 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'
8955 fi
8956 archive_cmds_need_lc='no'
8957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8958 hardcode_libdir_separator=:
8959 inherit_rpath=yes
8960 link_all_deplibs=yes
8961 ;;
8962
8963 netbsd*)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8966 else
8967 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8968 fi
8969 hardcode_libdir_flag_spec='-R$libdir'
8970 hardcode_direct=yes
8971 hardcode_shlibpath_var=no
8972 ;;
8973
8974 newsos6)
8975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 hardcode_direct=yes
8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978 hardcode_libdir_separator=:
8979 hardcode_shlibpath_var=no
8980 ;;
8981
8982 *nto* | *qnx*)
8983 ;;
8984
8985 openbsd*)
8986 if test -f /usr/libexec/ld.so; then
8987 hardcode_direct=yes
8988 hardcode_shlibpath_var=no
8989 hardcode_direct_absolute=yes
8990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8992 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8994 export_dynamic_flag_spec='${wl}-E'
8995 else
8996 case $host_os in
8997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999 hardcode_libdir_flag_spec='-R$libdir'
9000 ;;
9001 *)
9002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004 ;;
9005 esac
9006 fi
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
9012 os2*)
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9015 allow_undefined_flag=unsupported
9016 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'
9017 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9018 ;;
9019
9020 osf3*)
9021 if test "$GCC" = yes; then
9022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9023 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'
9024 else
9025 allow_undefined_flag=' -expect_unresolved \*'
9026 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'
9027 fi
9028 archive_cmds_need_lc='no'
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 ;;
9032
9033 osf4* | osf5*) # as osf3* with the addition of -msym flag
9034 if test "$GCC" = yes; then
9035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9036 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'
9037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038 else
9039 allow_undefined_flag=' -expect_unresolved \*'
9040 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'
9041 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~
9042 $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'
9043
9044 # Both c and cxx compiler support -rpath directly
9045 hardcode_libdir_flag_spec='-rpath $libdir'
9046 fi
9047 archive_cmds_need_lc='no'
9048 hardcode_libdir_separator=:
9049 ;;
9050
9051 solaris*)
9052 no_undefined_flag=' -z defs'
9053 if test "$GCC" = yes; then
9054 wlarc='${wl}'
9055 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9058 else
9059 case `$CC -V 2>&1` in
9060 *"Compilers 5.0"*)
9061 wlarc=''
9062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9065 ;;
9066 *)
9067 wlarc='${wl}'
9068 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9071 ;;
9072 esac
9073 fi
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_shlibpath_var=no
9076 case $host_os in
9077 solaris2.[0-5] | solaris2.[0-5].*) ;;
9078 *)
9079 # The compiler driver will combine and reorder linker options,
9080 # but understands `-z linker_flag'. GCC discards it without `$wl',
9081 # but is careful enough not to reorder.
9082 # Supported since Solaris 2.6 (maybe 2.5.1?)
9083 if test "$GCC" = yes; then
9084 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9085 else
9086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9087 fi
9088 ;;
9089 esac
9090 link_all_deplibs=yes
9091 ;;
9092
9093 sunos4*)
9094 if test "x$host_vendor" = xsequent; then
9095 # Use $CC to link under sequent, because it throws in some extra .o
9096 # files that make .init and .fini sections work.
9097 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9098 else
9099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9100 fi
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_direct=yes
9103 hardcode_minus_L=yes
9104 hardcode_shlibpath_var=no
9105 ;;
9106
9107 sysv4)
9108 case $host_vendor in
9109 sni)
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_direct=yes # is this really true???
9112 ;;
9113 siemens)
9114 ## LD is ld it makes a PLAMLIB
9115 ## CC just makes a GrossModule.
9116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9117 reload_cmds='$CC -r -o $output$reload_objs'
9118 hardcode_direct=no
9119 ;;
9120 motorola)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9123 ;;
9124 esac
9125 runpath_var='LD_RUN_PATH'
9126 hardcode_shlibpath_var=no
9127 ;;
9128
9129 sysv4.3*)
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_shlibpath_var=no
9132 export_dynamic_flag_spec='-Bexport'
9133 ;;
9134
9135 sysv4*MP*)
9136 if test -d /usr/nec; then
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9139 runpath_var=LD_RUN_PATH
9140 hardcode_runpath_var=yes
9141 ld_shlibs=yes
9142 fi
9143 ;;
9144
9145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9146 no_undefined_flag='${wl}-z,text'
9147 archive_cmds_need_lc=no
9148 hardcode_shlibpath_var=no
9149 runpath_var='LD_RUN_PATH'
9150
9151 if test "$GCC" = yes; then
9152 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 else
9155 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 fi
9158 ;;
9159
9160 sysv5* | sco3.2v5* | sco5v6*)
9161 # Note: We can NOT use -z defs as we might desire, because we do not
9162 # link with -lc, and that would cause any symbols used from libc to
9163 # always be unresolved, which means just about no library would
9164 # ever link correctly. If we're not using GNU ld we use -z text
9165 # though, which does catch some bad symbols but isn't as heavy-handed
9166 # as -z defs.
9167 no_undefined_flag='${wl}-z,text'
9168 allow_undefined_flag='${wl}-z,nodefs'
9169 archive_cmds_need_lc=no
9170 hardcode_shlibpath_var=no
9171 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9172 hardcode_libdir_separator=':'
9173 link_all_deplibs=yes
9174 export_dynamic_flag_spec='${wl}-Bexport'
9175 runpath_var='LD_RUN_PATH'
9176
9177 if test "$GCC" = yes; then
9178 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9180 else
9181 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 fi
9184 ;;
9185
9186 uts4*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_shlibpath_var=no
9190 ;;
9191
9192 *)
9193 ld_shlibs=no
9194 ;;
9195 esac
9196
9197 if test x$host_vendor = xsni; then
9198 case $host in
9199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9200 export_dynamic_flag_spec='${wl}-Blargedynsym'
9201 ;;
9202 esac
9203 fi
9204 fi
9205
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9207$as_echo "$ld_shlibs" >&6; }
9208test "$ld_shlibs" = no && can_build_shared=no
9209
9210with_gnu_ld=$with_gnu_ld
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226#
9227# Do we need to explicitly link libc?
9228#
9229case "x$archive_cmds_need_lc" in
9230x|xyes)
9231 # Assume -lc should be added
9232 archive_cmds_need_lc=yes
9233
9234 if test "$enable_shared" = yes && test "$GCC" = yes; then
9235 case $archive_cmds in
9236 *'~'*)
9237 # FIXME: we may have to deal with multi-command sequences.
9238 ;;
9239 '$CC '*)
9240 # Test whether the compiler implicitly links with -lc since on some
9241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9242 # to ld, don't add -lc before -lgcc.
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9244$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9245if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247else
9248 $RM conftest*
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250
9251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9252 (eval $ac_compile) 2>&5
9253 ac_status=$?
9254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255 test $ac_status = 0; } 2>conftest.err; then
9256 soname=conftest
9257 lib=conftest
9258 libobjs=conftest.$ac_objext
9259 deplibs=
9260 wl=$lt_prog_compiler_wl
9261 pic_flag=$lt_prog_compiler_pic
9262 compiler_flags=-v
9263 linker_flags=-v
9264 verstring=
9265 output_objdir=.
9266 libname=conftest
9267 lt_save_allow_undefined_flag=$allow_undefined_flag
9268 allow_undefined_flag=
9269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9271 ac_status=$?
9272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9273 test $ac_status = 0; }
9274 then
9275 lt_cv_archive_cmds_need_lc=no
9276 else
9277 lt_cv_archive_cmds_need_lc=yes
9278 fi
9279 allow_undefined_flag=$lt_save_allow_undefined_flag
9280 else
9281 cat conftest.err 1>&5
9282 fi
9283 $RM conftest*
9284
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9287$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9288 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9289 ;;
9290 esac
9291 fi
9292 ;;
9293esac
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
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9452$as_echo_n "checking dynamic linker characteristics... " >&6; }
9453
9454if test "$GCC" = yes; then
9455 case $host_os in
9456 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9457 *) lt_awk_arg="/^libraries:/" ;;
9458 esac
9459 case $host_os in
9460 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9461 *) lt_sed_strip_eq="s,=/,/,g" ;;
9462 esac
9463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9464 case $lt_search_path_spec in
9465 *\;*)
9466 # if the path contains ";" then we assume it to be the separator
9467 # otherwise default to the standard path separator (i.e. ":") - it is
9468 # assumed that no part of a normal pathname contains ";" but that should
9469 # okay in the real world where ";" in dirpaths is itself problematic.
9470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9471 ;;
9472 *)
9473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9474 ;;
9475 esac
9476 # Ok, now we have the path, separated by spaces, we can step through it
9477 # and add multilib dir if necessary.
9478 lt_tmp_lt_search_path_spec=
9479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9480 for lt_sys_path in $lt_search_path_spec; do
9481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9483 else
9484 test -d "$lt_sys_path" && \
9485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9486 fi
9487 done
9488 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9489BEGIN {RS=" "; FS="/|\n";} {
9490 lt_foo="";
9491 lt_count=0;
9492 for (lt_i = NF; lt_i > 0; lt_i--) {
9493 if ($lt_i != "" && $lt_i != ".") {
9494 if ($lt_i == "..") {
9495 lt_count++;
9496 } else {
9497 if (lt_count == 0) {
9498 lt_foo="/" $lt_i lt_foo;
9499 } else {
9500 lt_count--;
9501 }
9502 }
9503 }
9504 }
9505 if (lt_foo != "") { lt_freq[lt_foo]++; }
9506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9507}'`
9508 # AWK program above erroneously prepends '/' to C:/dos/paths
9509 # for these hosts.
9510 case $host_os in
9511 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9512 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9513 esac
9514 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9515else
9516 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9517fi
9518library_names_spec=
9519libname_spec='lib$name'
9520soname_spec=
9521shrext_cmds=".so"
9522postinstall_cmds=
9523postuninstall_cmds=
9524finish_cmds=
9525finish_eval=
9526shlibpath_var=
9527shlibpath_overrides_runpath=unknown
9528version_type=none
9529dynamic_linker="$host_os ld.so"
9530sys_lib_dlsearch_path_spec="/lib /usr/lib"
9531need_lib_prefix=unknown
9532hardcode_into_libs=no
9533
9534# when you set need_version to no, make sure it does not cause -set_version
9535# flags to be left without arguments
9536need_version=unknown
9537
9538case $host_os in
9539aix3*)
9540 version_type=linux
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9542 shlibpath_var=LIBPATH
9543
9544 # AIX 3 has no versioning support, so we append a major version to the name.
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 ;;
9547
9548aix[4-9]*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 hardcode_into_libs=yes
9553 if test "$host_cpu" = ia64; then
9554 # AIX 5 supports IA64
9555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 else
9558 # With GCC up to 2.95.x, collect2 would create an import file
9559 # for dependence libraries. The import file would start with
9560 # the line `#! .'. This would cause the generated library to
9561 # depend on `.', always an invalid library. This was fixed in
9562 # development snapshots of GCC prior to 3.0.
9563 case $host_os in
9564 aix4 | aix4.[01] | aix4.[01].*)
9565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9566 echo ' yes '
9567 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9568 :
9569 else
9570 can_build_shared=no
9571 fi
9572 ;;
9573 esac
9574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9575 # soname into executable. Probably we can add versioning support to
9576 # collect2, so additional links can be useful in future.
9577 if test "$aix_use_runtimelinking" = yes; then
9578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9579 # instead of lib<name>.a to let people know that these are not
9580 # typical AIX shared libraries.
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 else
9583 # We preserve .a as extension for shared libraries through AIX4.2
9584 # and later when we are not doing run time linking.
9585 library_names_spec='${libname}${release}.a $libname.a'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 fi
9588 shlibpath_var=LIBPATH
9589 fi
9590 ;;
9591
9592amigaos*)
9593 case $host_cpu in
9594 powerpc)
9595 # Since July 2007 AmigaOS4 officially supports .so libraries.
9596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 ;;
9599 m68k)
9600 library_names_spec='$libname.ixlibrary $libname.a'
9601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9602 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'
9603 ;;
9604 esac
9605 ;;
9606
9607beos*)
9608 library_names_spec='${libname}${shared_ext}'
9609 dynamic_linker="$host_os ld.so"
9610 shlibpath_var=LIBRARY_PATH
9611 ;;
9612
9613bsdi[45]*)
9614 version_type=linux
9615 need_version=no
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9622 # the default ld.so.conf also contains /usr/contrib/lib and
9623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9624 # libtool to hard-code these into programs
9625 ;;
9626
9627cygwin* | mingw* | pw32* | cegcc*)
9628 version_type=windows
9629 shrext_cmds=".dll"
9630 need_version=no
9631 need_lib_prefix=no
9632
9633 case $GCC,$host_os in
9634 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9635 library_names_spec='$libname.dll.a'
9636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9637 postinstall_cmds='base_file=`basename \${file}`~
9638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9639 dldir=$destdir/`dirname \$dlpath`~
9640 test -d \$dldir || mkdir -p \$dldir~
9641 $install_prog $dir/$dlname \$dldir/$dlname~
9642 chmod a+x \$dldir/$dlname~
9643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9645 fi'
9646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9647 dlpath=$dir/\$dldll~
9648 $RM \$dlpath'
9649 shlibpath_overrides_runpath=yes
9650
9651 case $host_os in
9652 cygwin*)
9653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9655
9656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9657 ;;
9658 mingw* | cegcc*)
9659 # MinGW DLLs use traditional 'lib' prefix
9660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661 ;;
9662 pw32*)
9663 # pw32 DLLs use 'pw' prefix rather than 'lib'
9664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 ;;
9666 esac
9667 ;;
9668
9669 *)
9670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671 ;;
9672 esac
9673 dynamic_linker='Win32 ld.exe'
9674 # FIXME: first we should search . and the directory the executable is in
9675 shlibpath_var=PATH
9676 ;;
9677
9678darwin* | rhapsody*)
9679 dynamic_linker="$host_os dyld"
9680 version_type=darwin
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9684 soname_spec='${libname}${release}${major}$shared_ext'
9685 shlibpath_overrides_runpath=yes
9686 shlibpath_var=DYLD_LIBRARY_PATH
9687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9688
9689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9691 ;;
9692
9693dgux*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 ;;
9701
1ec601bf
FXC
9702freebsd* | dragonfly*)
9703 # DragonFly does not have aout. When/if they implement a new
9704 # versioning mechanism, adjust this.
9705 if test -x /usr/bin/objformat; then
9706 objformat=`/usr/bin/objformat`
9707 else
9708 case $host_os in
c6084f68 9709 freebsd[23].*) objformat=aout ;;
1ec601bf
FXC
9710 *) objformat=elf ;;
9711 esac
9712 fi
9713 version_type=freebsd-$objformat
9714 case $version_type in
9715 freebsd-elf*)
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9717 need_version=no
9718 need_lib_prefix=no
9719 ;;
9720 freebsd-*)
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9722 need_version=yes
9723 ;;
9724 esac
9725 shlibpath_var=LD_LIBRARY_PATH
9726 case $host_os in
c6084f68 9727 freebsd2.*)
1ec601bf
FXC
9728 shlibpath_overrides_runpath=yes
9729 ;;
9730 freebsd3.[01]* | freebsdelf3.[01]*)
9731 shlibpath_overrides_runpath=yes
9732 hardcode_into_libs=yes
9733 ;;
9734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9736 shlibpath_overrides_runpath=no
9737 hardcode_into_libs=yes
9738 ;;
9739 *) # from 4.6 on, and DragonFly
9740 shlibpath_overrides_runpath=yes
9741 hardcode_into_libs=yes
9742 ;;
9743 esac
9744 ;;
9745
9746gnu*)
9747 version_type=linux
9748 need_lib_prefix=no
9749 need_version=no
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 hardcode_into_libs=yes
9754 ;;
9755
9756haiku*)
9757 version_type=linux
9758 need_lib_prefix=no
9759 need_version=no
9760 dynamic_linker="$host_os runtime_loader"
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9766 hardcode_into_libs=yes
9767 ;;
9768
9769hpux9* | hpux10* | hpux11*)
9770 # Give a soname corresponding to the major version so that dld.sl refuses to
9771 # link against other versions.
9772 version_type=sunos
9773 need_lib_prefix=no
9774 need_version=no
9775 case $host_cpu in
9776 ia64*)
9777 shrext_cmds='.so'
9778 hardcode_into_libs=yes
9779 dynamic_linker="$host_os dld.so"
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 if test "X$HPUX_IA64_MODE" = X32; then
9785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9786 else
9787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9788 fi
9789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9790 ;;
9791 hppa*64*)
9792 shrext_cmds='.sl'
9793 hardcode_into_libs=yes
9794 dynamic_linker="$host_os dld.sl"
9795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9801 ;;
9802 *)
9803 shrext_cmds='.sl'
9804 dynamic_linker="$host_os dld.sl"
9805 shlibpath_var=SHLIB_PATH
9806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 ;;
9810 esac
9811 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9812 postinstall_cmds='chmod 555 $lib'
9813 # or fails outright, so override atomically:
9814 install_override_mode=555
9815 ;;
9816
9817interix[3-9]*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826 hardcode_into_libs=yes
9827 ;;
9828
9829irix5* | irix6* | nonstopux*)
9830 case $host_os in
9831 nonstopux*) version_type=nonstopux ;;
9832 *)
9833 if test "$lt_cv_prog_gnu_ld" = yes; then
9834 version_type=linux
9835 else
9836 version_type=irix
9837 fi ;;
9838 esac
9839 need_lib_prefix=no
9840 need_version=no
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9843 case $host_os in
9844 irix5* | nonstopux*)
9845 libsuff= shlibsuff=
9846 ;;
9847 *)
9848 case $LD in # libtool.m4 will add one of these switches to LD
9849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9850 libsuff= shlibsuff= libmagic=32-bit;;
9851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9852 libsuff=32 shlibsuff=N32 libmagic=N32;;
9853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9855 *) libsuff= shlibsuff= libmagic=never-match;;
9856 esac
9857 ;;
9858 esac
9859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9860 shlibpath_overrides_runpath=no
9861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9863 hardcode_into_libs=yes
9864 ;;
9865
9866# No shared lib support for Linux oldld, aout, or coff.
9867linux*oldld* | linux*aout* | linux*coff*)
9868 dynamic_linker=no
9869 ;;
9870
9871# This must be Linux ELF.
9872linux* | k*bsd*-gnu | kopensolaris*-gnu)
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=no
9881
9882 # Some binutils ld are patched to set DT_RUNPATH
9883 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885else
9886 lt_cv_shlibpath_overrides_runpath=no
9887 save_LDFLAGS=$LDFLAGS
9888 save_libdir=$libdir
9889 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9890 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
fabfcf5e
KT
9891 if test x$gcc_no_link = xyes; then
9892 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9893fi
9894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
9895/* end confdefs.h. */
9896
9897int
9898main ()
9899{
9900
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9907 lt_cv_shlibpath_overrides_runpath=yes
9908fi
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LDFLAGS=$save_LDFLAGS
9913 libdir=$save_libdir
9914
9915fi
9916
9917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9918
9919 # This implies no fast_install, which is unacceptable.
9920 # Some rework will be needed to allow for fast_install
9921 # before this can be enabled.
9922 hardcode_into_libs=yes
9923
9924 # Append ld.so.conf contents to the search path
9925 if test -f /etc/ld.so.conf; then
9926 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' ' '`
9927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9928 fi
9929
9930 # We used to test for /lib/ld.so.1 and disable shared libraries on
9931 # powerpc, because MkLinux only supported shared libraries with the
9932 # GNU dynamic linker. Since this was broken with cross compilers,
9933 # most powerpc-linux boxes support dynamic linking these days and
9934 # people can always --disable-shared, the test was removed, and we
9935 # assume the GNU/Linux dynamic linker is in use.
9936 dynamic_linker='GNU/Linux ld.so'
9937 ;;
9938
9939netbsd*)
9940 version_type=sunos
9941 need_lib_prefix=no
9942 need_version=no
9943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9946 dynamic_linker='NetBSD (a.out) ld.so'
9947 else
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 dynamic_linker='NetBSD ld.elf_so'
9951 fi
9952 shlibpath_var=LD_LIBRARY_PATH
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9955 ;;
9956
9957newsos6)
9958 version_type=linux
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9962 ;;
9963
9964*nto* | *qnx*)
9965 version_type=qnx
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 shlibpath_overrides_runpath=no
9972 hardcode_into_libs=yes
9973 dynamic_linker='ldqnx.so'
9974 ;;
9975
9976openbsd*)
9977 version_type=sunos
9978 sys_lib_dlsearch_path_spec="/usr/lib"
9979 need_lib_prefix=no
9980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9981 case $host_os in
9982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9983 *) need_version=no ;;
9984 esac
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9989 case $host_os in
9990 openbsd2.[89] | openbsd2.[89].*)
9991 shlibpath_overrides_runpath=no
9992 ;;
9993 *)
9994 shlibpath_overrides_runpath=yes
9995 ;;
9996 esac
9997 else
9998 shlibpath_overrides_runpath=yes
9999 fi
10000 ;;
10001
10002os2*)
10003 libname_spec='$name'
10004 shrext_cmds=".dll"
10005 need_lib_prefix=no
10006 library_names_spec='$libname${shared_ext} $libname.a'
10007 dynamic_linker='OS/2 ld.exe'
10008 shlibpath_var=LIBPATH
10009 ;;
10010
10011osf3* | osf4* | osf5*)
10012 version_type=osf
10013 need_lib_prefix=no
10014 need_version=no
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10020 ;;
10021
10022rdos*)
10023 dynamic_linker=no
10024 ;;
10025
10026solaris*)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 hardcode_into_libs=yes
10035 # ldd complains unless libraries are executable
10036 postinstall_cmds='chmod +x $lib'
10037 ;;
10038
10039sunos4*)
10040 version_type=sunos
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=yes
10045 if test "$with_gnu_ld" = yes; then
10046 need_lib_prefix=no
10047 fi
10048 need_version=yes
10049 ;;
10050
10051sysv4 | sysv4.3*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 case $host_vendor in
10057 sni)
10058 shlibpath_overrides_runpath=no
10059 need_lib_prefix=no
10060 runpath_var=LD_RUN_PATH
10061 ;;
10062 siemens)
10063 need_lib_prefix=no
10064 ;;
10065 motorola)
10066 need_lib_prefix=no
10067 need_version=no
10068 shlibpath_overrides_runpath=no
10069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10070 ;;
10071 esac
10072 ;;
10073
10074sysv4*MP*)
10075 if test -d /usr/nec ;then
10076 version_type=linux
10077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10078 soname_spec='$libname${shared_ext}.$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 fi
10081 ;;
10082
10083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10084 version_type=freebsd-elf
10085 need_lib_prefix=no
10086 need_version=no
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes
10091 hardcode_into_libs=yes
10092 if test "$with_gnu_ld" = yes; then
10093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10094 else
10095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10096 case $host_os in
10097 sco3.2v5*)
10098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10099 ;;
10100 esac
10101 fi
10102 sys_lib_dlsearch_path_spec='/usr/lib'
10103 ;;
10104
10105tpf*)
10106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10114 ;;
10115
10116uts4*)
10117 version_type=linux
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 ;;
10122
10123*)
10124 dynamic_linker=no
10125 ;;
10126esac
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10128$as_echo "$dynamic_linker" >&6; }
10129test "$dynamic_linker" = no && can_build_shared=no
10130
10131variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10132if test "$GCC" = yes; then
10133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10134fi
10135
10136if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10138fi
10139if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10141fi
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10235$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10236hardcode_action=
10237if test -n "$hardcode_libdir_flag_spec" ||
10238 test -n "$runpath_var" ||
10239 test "X$hardcode_automatic" = "Xyes" ; then
10240
10241 # We can hardcode non-existent directories.
10242 if test "$hardcode_direct" != no &&
10243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10244 # have to relink, otherwise we might link with an installed library
10245 # when we should be linking with a yet-to-be-installed one
10246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10247 test "$hardcode_minus_L" != no; then
10248 # Linking always hardcodes the temporary library directory.
10249 hardcode_action=relink
10250 else
10251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10252 hardcode_action=immediate
10253 fi
10254else
10255 # We cannot hardcode anything, or else we can only hardcode existing
10256 # directories.
10257 hardcode_action=unsupported
10258fi
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10260$as_echo "$hardcode_action" >&6; }
10261
10262if test "$hardcode_action" = relink ||
10263 test "$inherit_rpath" = yes; then
10264 # Fast installation is not supported
10265 enable_fast_install=no
10266elif test "$shlibpath_overrides_runpath" = yes ||
10267 test "$enable_shared" = no; then
10268 # Fast installation is not necessary
10269 enable_fast_install=needless
10270fi
10271
10272
10273
10274
10275
10276
10277 if test "x$enable_dlopen" != xyes; then
10278 enable_dlopen=unknown
10279 enable_dlopen_self=unknown
10280 enable_dlopen_self_static=unknown
10281else
10282 lt_cv_dlopen=no
10283 lt_cv_dlopen_libs=
10284
10285 case $host_os in
10286 beos*)
10287 lt_cv_dlopen="load_add_on"
10288 lt_cv_dlopen_libs=
10289 lt_cv_dlopen_self=yes
10290 ;;
10291
10292 mingw* | pw32* | cegcc*)
10293 lt_cv_dlopen="LoadLibrary"
10294 lt_cv_dlopen_libs=
10295 ;;
10296
10297 cygwin*)
10298 lt_cv_dlopen="dlopen"
10299 lt_cv_dlopen_libs=
10300 ;;
10301
10302 darwin*)
10303 # if libdl is installed we need to link against it
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10305$as_echo_n "checking for dlopen in -ldl... " >&6; }
10306if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308else
10309 ac_check_lib_save_LIBS=$LIBS
10310LIBS="-ldl $LIBS"
fabfcf5e
KT
10311if test x$gcc_no_link = xyes; then
10312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10313fi
1ec601bf
FXC
10314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315/* end confdefs.h. */
10316
10317/* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10320#ifdef __cplusplus
10321extern "C"
10322#endif
10323char dlopen ();
10324int
10325main ()
10326{
10327return dlopen ();
10328 ;
10329 return 0;
10330}
10331_ACEOF
10332if ac_fn_c_try_link "$LINENO"; then :
10333 ac_cv_lib_dl_dlopen=yes
10334else
10335 ac_cv_lib_dl_dlopen=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339LIBS=$ac_check_lib_save_LIBS
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10342$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10343if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10345else
10346
10347 lt_cv_dlopen="dyld"
10348 lt_cv_dlopen_libs=
10349 lt_cv_dlopen_self=yes
10350
10351fi
10352
10353 ;;
10354
10355 *)
10356 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10357if test "x$ac_cv_func_shl_load" = x""yes; then :
10358 lt_cv_dlopen="shl_load"
10359else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10361$as_echo_n "checking for shl_load in -ldld... " >&6; }
10362if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 ac_check_lib_save_LIBS=$LIBS
10366LIBS="-ldld $LIBS"
fabfcf5e
KT
10367if test x$gcc_no_link = xyes; then
10368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10369fi
1ec601bf
FXC
10370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371/* end confdefs.h. */
10372
10373/* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376#ifdef __cplusplus
10377extern "C"
10378#endif
10379char shl_load ();
10380int
10381main ()
10382{
10383return shl_load ();
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_link "$LINENO"; then :
10389 ac_cv_lib_dld_shl_load=yes
10390else
10391 ac_cv_lib_dld_shl_load=no
10392fi
10393rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395LIBS=$ac_check_lib_save_LIBS
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10398$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10399if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10400 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10401else
10402 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10403if test "x$ac_cv_func_dlopen" = x""yes; then :
10404 lt_cv_dlopen="dlopen"
10405else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10407$as_echo_n "checking for dlopen in -ldl... " >&6; }
10408if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410else
10411 ac_check_lib_save_LIBS=$LIBS
10412LIBS="-ldl $LIBS"
fabfcf5e
KT
10413if test x$gcc_no_link = xyes; then
10414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10415fi
1ec601bf
FXC
10416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h. */
10418
10419/* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10422#ifdef __cplusplus
10423extern "C"
10424#endif
10425char dlopen ();
10426int
10427main ()
10428{
10429return dlopen ();
10430 ;
10431 return 0;
10432}
10433_ACEOF
10434if ac_fn_c_try_link "$LINENO"; then :
10435 ac_cv_lib_dl_dlopen=yes
10436else
10437 ac_cv_lib_dl_dlopen=no
10438fi
10439rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10444$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10445if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10449$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10450if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452else
10453 ac_check_lib_save_LIBS=$LIBS
10454LIBS="-lsvld $LIBS"
fabfcf5e
KT
10455if test x$gcc_no_link = xyes; then
10456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10457fi
1ec601bf
FXC
10458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459/* end confdefs.h. */
10460
10461/* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10464#ifdef __cplusplus
10465extern "C"
10466#endif
10467char dlopen ();
10468int
10469main ()
10470{
10471return dlopen ();
10472 ;
10473 return 0;
10474}
10475_ACEOF
10476if ac_fn_c_try_link "$LINENO"; then :
10477 ac_cv_lib_svld_dlopen=yes
10478else
10479 ac_cv_lib_svld_dlopen=no
10480fi
10481rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
10484fi
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10486$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10487if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10489else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10491$as_echo_n "checking for dld_link in -ldld... " >&6; }
10492if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494else
10495 ac_check_lib_save_LIBS=$LIBS
10496LIBS="-ldld $LIBS"
fabfcf5e
KT
10497if test x$gcc_no_link = xyes; then
10498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10499fi
1ec601bf
FXC
10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h. */
10502
10503/* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509char dld_link ();
10510int
10511main ()
10512{
10513return dld_link ();
10514 ;
10515 return 0;
10516}
10517_ACEOF
10518if ac_fn_c_try_link "$LINENO"; then :
10519 ac_cv_lib_dld_dld_link=yes
10520else
10521 ac_cv_lib_dld_dld_link=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525LIBS=$ac_check_lib_save_LIBS
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10528$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10529if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10531fi
10532
10533
10534fi
10535
10536
10537fi
10538
10539
10540fi
10541
10542
10543fi
10544
10545
10546fi
10547
10548 ;;
10549 esac
10550
10551 if test "x$lt_cv_dlopen" != xno; then
10552 enable_dlopen=yes
10553 else
10554 enable_dlopen=no
10555 fi
10556
10557 case $lt_cv_dlopen in
10558 dlopen)
10559 save_CPPFLAGS="$CPPFLAGS"
10560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10561
10562 save_LDFLAGS="$LDFLAGS"
10563 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10564
10565 save_LIBS="$LIBS"
10566 LIBS="$lt_cv_dlopen_libs $LIBS"
10567
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10569$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10570if test "${lt_cv_dlopen_self+set}" = set; then :
10571 $as_echo_n "(cached) " >&6
10572else
10573 if test "$cross_compiling" = yes; then :
10574 lt_cv_dlopen_self=cross
10575else
10576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10577 lt_status=$lt_dlunknown
10578 cat > conftest.$ac_ext <<_LT_EOF
fda26abe 10579#line 10579 "configure"
1ec601bf
FXC
10580#include "confdefs.h"
10581
10582#if HAVE_DLFCN_H
10583#include <dlfcn.h>
10584#endif
10585
10586#include <stdio.h>
10587
10588#ifdef RTLD_GLOBAL
10589# define LT_DLGLOBAL RTLD_GLOBAL
10590#else
10591# ifdef DL_GLOBAL
10592# define LT_DLGLOBAL DL_GLOBAL
10593# else
10594# define LT_DLGLOBAL 0
10595# endif
10596#endif
10597
10598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10599 find out it does not work in some platform. */
10600#ifndef LT_DLLAZY_OR_NOW
10601# ifdef RTLD_LAZY
10602# define LT_DLLAZY_OR_NOW RTLD_LAZY
10603# else
10604# ifdef DL_LAZY
10605# define LT_DLLAZY_OR_NOW DL_LAZY
10606# else
10607# ifdef RTLD_NOW
10608# define LT_DLLAZY_OR_NOW RTLD_NOW
10609# else
10610# ifdef DL_NOW
10611# define LT_DLLAZY_OR_NOW DL_NOW
10612# else
10613# define LT_DLLAZY_OR_NOW 0
10614# endif
10615# endif
10616# endif
10617# endif
10618#endif
10619
10620/* When -fvisbility=hidden is used, assume the code has been annotated
10621 correspondingly for the symbols needed. */
10622#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10623void fnord () __attribute__((visibility("default")));
10624#endif
10625
10626void fnord () { int i=42; }
10627int main ()
10628{
10629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10630 int status = $lt_dlunknown;
10631
10632 if (self)
10633 {
10634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10635 else
10636 {
10637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10638 else puts (dlerror ());
10639 }
10640 /* dlclose (self); */
10641 }
10642 else
10643 puts (dlerror ());
10644
10645 return status;
10646}
10647_LT_EOF
10648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10649 (eval $ac_link) 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10653 (./conftest; exit; ) >&5 2>/dev/null
10654 lt_status=$?
10655 case x$lt_status in
10656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10658 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10659 esac
10660 else :
10661 # compilation failed
10662 lt_cv_dlopen_self=no
10663 fi
10664fi
10665rm -fr conftest*
10666
10667
10668fi
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10670$as_echo "$lt_cv_dlopen_self" >&6; }
10671
10672 if test "x$lt_cv_dlopen_self" = xyes; then
10673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10675$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10676if test "${lt_cv_dlopen_self_static+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678else
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self_static=cross
10681else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<_LT_EOF
fda26abe 10685#line 10685 "configure"
1ec601bf
FXC
10686#include "confdefs.h"
10687
10688#if HAVE_DLFCN_H
10689#include <dlfcn.h>
10690#endif
10691
10692#include <stdio.h>
10693
10694#ifdef RTLD_GLOBAL
10695# define LT_DLGLOBAL RTLD_GLOBAL
10696#else
10697# ifdef DL_GLOBAL
10698# define LT_DLGLOBAL DL_GLOBAL
10699# else
10700# define LT_DLGLOBAL 0
10701# endif
10702#endif
10703
10704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706#ifndef LT_DLLAZY_OR_NOW
10707# ifdef RTLD_LAZY
10708# define LT_DLLAZY_OR_NOW RTLD_LAZY
10709# else
10710# ifdef DL_LAZY
10711# define LT_DLLAZY_OR_NOW DL_LAZY
10712# else
10713# ifdef RTLD_NOW
10714# define LT_DLLAZY_OR_NOW RTLD_NOW
10715# else
10716# ifdef DL_NOW
10717# define LT_DLLAZY_OR_NOW DL_NOW
10718# else
10719# define LT_DLLAZY_OR_NOW 0
10720# endif
10721# endif
10722# endif
10723# endif
10724#endif
10725
10726/* When -fvisbility=hidden is used, assume the code has been annotated
10727 correspondingly for the symbols needed. */
10728#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10729void fnord () __attribute__((visibility("default")));
10730#endif
10731
10732void fnord () { int i=42; }
10733int main ()
10734{
10735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10736 int status = $lt_dlunknown;
10737
10738 if (self)
10739 {
10740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10741 else
10742 {
10743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10744 else puts (dlerror ());
10745 }
10746 /* dlclose (self); */
10747 }
10748 else
10749 puts (dlerror ());
10750
10751 return status;
10752}
10753_LT_EOF
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10759 (./conftest; exit; ) >&5 2>/dev/null
10760 lt_status=$?
10761 case x$lt_status in
10762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10765 esac
10766 else :
10767 # compilation failed
10768 lt_cv_dlopen_self_static=no
10769 fi
10770fi
10771rm -fr conftest*
10772
10773
10774fi
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10776$as_echo "$lt_cv_dlopen_self_static" >&6; }
10777 fi
10778
10779 CPPFLAGS="$save_CPPFLAGS"
10780 LDFLAGS="$save_LDFLAGS"
10781 LIBS="$save_LIBS"
10782 ;;
10783 esac
10784
10785 case $lt_cv_dlopen_self in
10786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10787 *) enable_dlopen_self=unknown ;;
10788 esac
10789
10790 case $lt_cv_dlopen_self_static in
10791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10792 *) enable_dlopen_self_static=unknown ;;
10793 esac
10794fi
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812striplib=
10813old_striplib=
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10815$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10816if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820$as_echo "yes" >&6; }
10821else
10822# FIXME - insert some real tests, host_os isn't really good enough
10823 case $host_os in
10824 darwin*)
10825 if test -n "$STRIP" ; then
10826 striplib="$STRIP -x"
10827 old_striplib="$STRIP -S"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829$as_echo "yes" >&6; }
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
10833 fi
10834 ;;
10835 *)
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838 ;;
10839 esac
10840fi
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853 # Report which library types will actually be built
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10855$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10857$as_echo "$can_build_shared" >&6; }
10858
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10860$as_echo_n "checking whether to build shared libraries... " >&6; }
10861 test "$can_build_shared" = "no" && enable_shared=no
10862
10863 # On AIX, shared libraries and static libraries use the same namespace, and
10864 # are all built from PIC.
10865 case $host_os in
10866 aix3*)
10867 test "$enable_shared" = yes && enable_static=no
10868 if test -n "$RANLIB"; then
10869 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10870 postinstall_cmds='$RANLIB $lib'
10871 fi
fabfcf5e
KT
10872 ;;
10873
10874 aix[4-9]*)
10875 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10876 test "$enable_shared" = yes && enable_static=no
10877 fi
10878 ;;
10879 esac
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10881$as_echo "$enable_shared" >&6; }
10882
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10884$as_echo_n "checking whether to build static libraries... " >&6; }
10885 # Make sure either enable_shared or enable_static is yes.
10886 test "$enable_shared" = yes || enable_static=yes
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10888$as_echo "$enable_static" >&6; }
10889
10890
10891
10892
10893fi
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
10899
10900CC="$lt_save_CC"
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 ac_config_commands="$ac_config_commands libtool"
10915
10916
10917
10918
10919# Only expand once:
10920
10921
10922
10923
10924
7de6ba7a
DK
10925case $host in
10926 *-cygwin* | *-mingw*)
10927 # 'host' will be top-level target in the case of a target lib,
10928 # we must compare to with_cross_host to decide if this is a native
10929 # or cross-compiler and select where to install dlls appropriately.
10930 if test -n "$with_cross_host" &&
10931 test x"$with_cross_host" != x"no"; then
10932 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10933 else
10934 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10935 fi
10936 ;;
10937 *)
10938 lt_host_flags=
10939 ;;
10940esac
10941
10942
10943
10944
10945
10946
fabfcf5e
KT
10947
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10949$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10950 # Check whether --enable-maintainer-mode was given.
10951if test "${enable_maintainer_mode+set}" = set; then :
10952 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10953else
10954 USE_MAINTAINER_MODE=no
10955fi
10956
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10958$as_echo "$USE_MAINTAINER_MODE" >&6; }
10959 if test $USE_MAINTAINER_MODE = yes; then
10960 MAINTAINER_MODE_TRUE=
10961 MAINTAINER_MODE_FALSE='#'
10962else
10963 MAINTAINER_MODE_TRUE='#'
10964 MAINTAINER_MODE_FALSE=
10965fi
10966
10967 MAINT=$MAINTAINER_MODE_TRUE
10968
10969
fabfcf5e
KT
10970
10971ac_ext=c
10972ac_cpp='$CPP $CPPFLAGS'
10973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
10977# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10978# We must force CC to /not/ be precious variables; otherwise
10979# the wrong, non-multilib-adjusted value will be used in multilibs.
10980# As a side effect, we have to subst CFLAGS ourselves.
10981
10982
10983
10984ac_ext=c
10985ac_cpp='$CPP $CPPFLAGS'
10986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989if test -n "$ac_tool_prefix"; then
10990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10991set dummy ${ac_tool_prefix}gcc; ac_word=$2
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
10994if test "${ac_cv_prog_CC+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996else
10997 if test -n "$CC"; then
10998 ac_cv_prog_CC="$CC" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012 done
11013IFS=$as_save_IFS
11014
11015fi
11016fi
11017CC=$ac_cv_prog_CC
11018if test -n "$CC"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11020$as_echo "$CC" >&6; }
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
11024fi
11025
11026
11027fi
11028if test -z "$ac_cv_prog_CC"; then
11029 ac_ct_CC=$CC
11030 # Extract the first word of "gcc", so it can be a program name with args.
11031set dummy gcc; ac_word=$2
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
11034if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036else
11037 if test -n "$ac_ct_CC"; then
11038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11039else
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_ac_ct_CC="gcc"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051done
11052 done
11053IFS=$as_save_IFS
11054
11055fi
11056fi
11057ac_ct_CC=$ac_cv_prog_ac_ct_CC
11058if test -n "$ac_ct_CC"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11060$as_echo "$ac_ct_CC" >&6; }
11061else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064fi
11065
11066 if test "x$ac_ct_CC" = x; then
11067 CC=""
11068 else
11069 case $cross_compiling:$ac_tool_warned in
11070yes:)
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11073ac_tool_warned=yes ;;
11074esac
11075 CC=$ac_ct_CC
11076 fi
11077else
11078 CC="$ac_cv_prog_CC"
11079fi
11080
11081if test -z "$CC"; then
11082 if test -n "$ac_tool_prefix"; then
11083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11084set dummy ${ac_tool_prefix}cc; ac_word=$2
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086$as_echo_n "checking for $ac_word... " >&6; }
11087if test "${ac_cv_prog_CC+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089else
11090 if test -n "$CC"; then
11091 ac_cv_prog_CC="$CC" # Let the user override the test.
11092else
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_CC="${ac_tool_prefix}cc"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104done
11105 done
11106IFS=$as_save_IFS
11107
11108fi
11109fi
11110CC=$ac_cv_prog_CC
11111if test -n "$CC"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11113$as_echo "$CC" >&6; }
11114else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
11117fi
11118
11119
11120 fi
11121fi
11122if test -z "$CC"; then
11123 # Extract the first word of "cc", so it can be a program name with args.
11124set dummy cc; ac_word=$2
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126$as_echo_n "checking for $ac_word... " >&6; }
11127if test "${ac_cv_prog_CC+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129else
11130 if test -n "$CC"; then
11131 ac_cv_prog_CC="$CC" # Let the user override the test.
11132else
11133 ac_prog_rejected=no
11134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135for as_dir in $PATH
11136do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11142 ac_prog_rejected=yes
11143 continue
11144 fi
11145 ac_cv_prog_CC="cc"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149done
11150 done
11151IFS=$as_save_IFS
11152
11153if test $ac_prog_rejected = yes; then
11154 # We found a bogon in the path, so make sure we never use it.
11155 set dummy $ac_cv_prog_CC
11156 shift
11157 if test $# != 0; then
11158 # We chose a different compiler from the bogus one.
11159 # However, it has the same basename, so the bogon will be chosen
11160 # first if we set CC to just the basename; use the full file name.
11161 shift
11162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11163 fi
11164fi
11165fi
11166fi
11167CC=$ac_cv_prog_CC
11168if test -n "$CC"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11170$as_echo "$CC" >&6; }
11171else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
11174fi
11175
11176
11177fi
11178if test -z "$CC"; then
11179 if test -n "$ac_tool_prefix"; then
11180 for ac_prog in cl.exe
11181 do
11182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if test "${ac_cv_prog_CC+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188else
11189 if test -n "$CC"; then
11190 ac_cv_prog_CC="$CC" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204 done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209CC=$ac_cv_prog_CC
11210if test -n "$CC"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11212$as_echo "$CC" >&6; }
11213else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218
11219 test -n "$CC" && break
11220 done
11221fi
11222if test -z "$CC"; then
11223 ac_ct_CC=$CC
11224 for ac_prog in cl.exe
11225do
11226 # Extract the first word of "$ac_prog", so it can be a program name with args.
11227set dummy $ac_prog; ac_word=$2
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229$as_echo_n "checking for $ac_word... " >&6; }
11230if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232else
11233 if test -n "$ac_ct_CC"; then
11234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_prog_ac_ct_CC="$ac_prog"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11246 fi
11247done
11248 done
11249IFS=$as_save_IFS
11250
11251fi
11252fi
11253ac_ct_CC=$ac_cv_prog_ac_ct_CC
11254if test -n "$ac_ct_CC"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11256$as_echo "$ac_ct_CC" >&6; }
11257else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259$as_echo "no" >&6; }
11260fi
11261
11262
11263 test -n "$ac_ct_CC" && break
11264done
11265
11266 if test "x$ac_ct_CC" = x; then
11267 CC=""
11268 else
11269 case $cross_compiling:$ac_tool_warned in
11270yes:)
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11273ac_tool_warned=yes ;;
11274esac
11275 CC=$ac_ct_CC
11276 fi
11277fi
11278
11279fi
11280
11281
11282test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11284as_fn_error "no acceptable C compiler found in \$PATH
11285See \`config.log' for more details." "$LINENO" 5; }
11286
11287# Provide some information about the compiler.
11288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11289set X $ac_compile
11290ac_compiler=$2
11291for ac_option in --version -v -V -qversion; do
11292 { { ac_try="$ac_compiler $ac_option >&5"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11298$as_echo "$ac_try_echo"; } >&5
11299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11300 ac_status=$?
11301 if test -s conftest.err; then
11302 sed '10a\
11303... rest of stderr output deleted ...
11304 10q' conftest.err >conftest.er1
11305 cat conftest.er1 >&5
11306 rm -f conftest.er1 conftest.err
11307 fi
11308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; }
11310done
11311
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11314if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316else
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h. */
11319
11320int
11321main ()
11322{
11323#ifndef __GNUC__
11324 choke me
11325#endif
11326
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331if ac_fn_c_try_compile "$LINENO"; then :
11332 ac_compiler_gnu=yes
11333else
11334 ac_compiler_gnu=no
11335fi
11336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337ac_cv_c_compiler_gnu=$ac_compiler_gnu
11338
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11341$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11342if test $ac_compiler_gnu = yes; then
11343 GCC=yes
11344else
11345 GCC=
11346fi
11347ac_test_CFLAGS=${CFLAGS+set}
11348ac_save_CFLAGS=$CFLAGS
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11350$as_echo_n "checking whether $CC accepts -g... " >&6; }
11351if test "${ac_cv_prog_cc_g+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353else
11354 ac_save_c_werror_flag=$ac_c_werror_flag
11355 ac_c_werror_flag=yes
11356 ac_cv_prog_cc_g=no
11357 CFLAGS="-g"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h. */
11360
11361int
11362main ()
11363{
11364
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369if ac_fn_c_try_compile "$LINENO"; then :
11370 ac_cv_prog_cc_g=yes
11371else
11372 CFLAGS=""
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h. */
11375
11376int
11377main ()
11378{
11379
11380 ;
11381 return 0;
11382}
11383_ACEOF
11384if ac_fn_c_try_compile "$LINENO"; then :
11385
11386else
11387 ac_c_werror_flag=$ac_save_c_werror_flag
11388 CFLAGS="-g"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390/* end confdefs.h. */
11391
11392int
11393main ()
11394{
11395
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400if ac_fn_c_try_compile "$LINENO"; then :
11401 ac_cv_prog_cc_g=yes
11402fi
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404fi
11405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406fi
11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 ac_c_werror_flag=$ac_save_c_werror_flag
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11411$as_echo "$ac_cv_prog_cc_g" >&6; }
11412if test "$ac_test_CFLAGS" = set; then
11413 CFLAGS=$ac_save_CFLAGS
11414elif test $ac_cv_prog_cc_g = yes; then
11415 if test "$GCC" = yes; then
11416 CFLAGS="-g -O2"
11417 else
11418 CFLAGS="-g"
11419 fi
11420else
11421 if test "$GCC" = yes; then
11422 CFLAGS="-O2"
11423 else
11424 CFLAGS=
11425 fi
11426fi
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11428$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11429if test "${ac_cv_prog_cc_c89+set}" = set; then :
11430 $as_echo_n "(cached) " >&6
11431else
11432 ac_cv_prog_cc_c89=no
11433ac_save_CC=$CC
11434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435/* end confdefs.h. */
11436#include <stdarg.h>
11437#include <stdio.h>
11438#include <sys/types.h>
11439#include <sys/stat.h>
11440/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11441struct buf { int x; };
11442FILE * (*rcsopen) (struct buf *, struct stat *, int);
11443static char *e (p, i)
11444 char **p;
11445 int i;
11446{
11447 return p[i];
11448}
11449static char *f (char * (*g) (char **, int), char **p, ...)
11450{
11451 char *s;
11452 va_list v;
11453 va_start (v,p);
11454 s = g (p, va_arg (v,int));
11455 va_end (v);
11456 return s;
11457}
11458
11459/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11460 function prototypes and stuff, but not '\xHH' hex character constants.
11461 These don't provoke an error unfortunately, instead are silently treated
11462 as 'x'. The following induces an error, until -std is added to get
11463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11464 array size at least. It's necessary to write '\x00'==0 to get something
11465 that's true only with -std. */
11466int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11467
11468/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11469 inside strings and character constants. */
11470#define FOO(x) 'x'
11471int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11472
11473int test (int i, double x);
11474struct s1 {int (*f) (int a);};
11475struct s2 {int (*f) (double a);};
11476int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11477int argc;
11478char **argv;
11479int
11480main ()
11481{
11482return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11489do
11490 CC="$ac_save_CC $ac_arg"
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_prog_cc_c89=$ac_arg
11493fi
11494rm -f core conftest.err conftest.$ac_objext
11495 test "x$ac_cv_prog_cc_c89" != "xno" && break
11496done
11497rm -f conftest.$ac_ext
11498CC=$ac_save_CC
11499
11500fi
11501# AC_CACHE_VAL
11502case "x$ac_cv_prog_cc_c89" in
11503 x)
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11505$as_echo "none needed" >&6; } ;;
11506 xno)
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11508$as_echo "unsupported" >&6; } ;;
11509 *)
11510 CC="$CC $ac_cv_prog_cc_c89"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11512$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11513esac
11514if test "x$ac_cv_prog_cc_c89" != xno; then :
11515
11516fi
11517
11518ac_ext=c
11519ac_cpp='$CPP $CPPFLAGS'
11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524depcc="$CC" am_compiler_list=
11525
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11527$as_echo_n "checking dependency style of $depcc... " >&6; }
11528if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530else
11531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11532 # We make a subdir and do the tests there. Otherwise we can end up
11533 # making bogus files that we don't know about and never remove. For
11534 # instance it was reported that on HP-UX the gcc test will end up
11535 # making a dummy file named `D' -- because `-MD' means `put the output
11536 # in D'.
5d79f496 11537 rm -rf conftest.dir
fabfcf5e
KT
11538 mkdir conftest.dir
11539 # Copy depcomp to subdir because otherwise we won't find it if we're
11540 # using a relative directory.
11541 cp "$am_depcomp" conftest.dir
11542 cd conftest.dir
11543 # We will build objects and dependencies in a subdirectory because
11544 # it helps to detect inapplicable dependency modes. For instance
11545 # both Tru64's cc and ICC support -MD to output dependencies as a
11546 # side effect of compilation, but ICC will put the dependencies in
11547 # the current directory while Tru64 will put them in the object
11548 # directory.
11549 mkdir sub
11550
11551 am_cv_CC_dependencies_compiler_type=none
11552 if test "$am_compiler_list" = ""; then
11553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11554 fi
11555 am__universal=false
11556 case " $depcc " in #(
11557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11558 esac
11559
11560 for depmode in $am_compiler_list; do
11561 # Setup a source with many dependencies, because some compilers
11562 # like to wrap large dependency lists on column 80 (with \), and
11563 # we should not choose a depcomp mode which is confused by this.
11564 #
11565 # We need to recreate these files for each test, as the compiler may
11566 # overwrite some of them when testing with obscure command lines.
11567 # This happens at least with the AIX C compiler.
11568 : > sub/conftest.c
11569 for i in 1 2 3 4 5 6; do
11570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11572 # Solaris 8's {/usr,}/bin/sh.
11573 touch sub/conftst$i.h
11574 done
11575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11576
11577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11578 # mode. It turns out that the SunPro C++ compiler does not properly
11579 # handle `-M -o', and we need to detect this. Also, some Intel
11580 # versions had trouble with output in subdirs
11581 am__obj=sub/conftest.${OBJEXT-o}
11582 am__minus_obj="-o $am__obj"
11583 case $depmode in
11584 gcc)
11585 # This depmode causes a compiler race in universal mode.
11586 test "$am__universal" = false || continue
11587 ;;
11588 nosideeffect)
11589 # after this tag, mechanisms are not by side-effect, so they'll
11590 # only be used when explicitly requested
11591 if test "x$enable_dependency_tracking" = xyes; then
11592 continue
11593 else
11594 break
11595 fi
11596 ;;
5d79f496 11597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
fabfcf5e
KT
11598 # This compiler won't grok `-c -o', but also, the minuso test has
11599 # not run yet. These depmodes are late enough in the game, and
11600 # so weak that their functioning should not be impacted.
11601 am__obj=conftest.${OBJEXT-o}
11602 am__minus_obj=
11603 ;;
11604 none) break ;;
11605 esac
11606 if depmode=$depmode \
11607 source=sub/conftest.c object=$am__obj \
11608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11610 >/dev/null 2>conftest.err &&
11611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11615 # icc doesn't choke on unknown options, it will just issue warnings
11616 # or remarks (even with -Werror). So we grep stderr for any message
11617 # that says an option was ignored or not supported.
11618 # When given -MP, icc 7.0 and 7.1 complain thusly:
11619 # icc: Command line warning: ignoring option '-M'; no argument required
11620 # The diagnosis changed in icc 8.0:
11621 # icc: Command line remark: option '-MP' not supported
11622 if (grep 'ignoring option' conftest.err ||
11623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11624 am_cv_CC_dependencies_compiler_type=$depmode
11625 break
11626 fi
11627 fi
11628 done
11629
11630 cd ..
11631 rm -rf conftest.dir
11632else
11633 am_cv_CC_dependencies_compiler_type=none
11634fi
11635
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11638$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11640
11641 if
11642 test "x$enable_dependency_tracking" != xno \
11643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11644 am__fastdepCC_TRUE=
11645 am__fastdepCC_FALSE='#'
11646else
11647 am__fastdepCC_TRUE='#'
11648 am__fastdepCC_FALSE=
11649fi
11650
11651
11652
11653
11654
11655
11656if test "x$CC" != xcc; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11658$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11659else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11661$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11662fi
11663set dummy $CC; ac_cc=`$as_echo "$2" |
11664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11665if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11666 $as_echo_n "(cached) " >&6
11667else
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669/* end confdefs.h. */
11670
11671int
11672main ()
11673{
11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679# Make sure it works both with $CC and with simple cc.
11680# We do the test twice because some compilers refuse to overwrite an
11681# existing .o file with -o, though they will create one.
11682ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11683rm -f conftest2.*
11684if { { case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11689$as_echo "$ac_try_echo"; } >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693 test $ac_status = 0; } &&
11694 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697esac
11698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11699$as_echo "$ac_try_echo"; } >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11703 test $ac_status = 0; };
11704then
11705 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11706 if test "x$CC" != xcc; then
11707 # Test first that cc exists at all.
11708 if { ac_try='cc -c conftest.$ac_ext >&5'
11709 { { case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
11713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11714$as_echo "$ac_try_echo"; } >&5
11715 (eval "$ac_try") 2>&5
11716 ac_status=$?
11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718 test $ac_status = 0; }; }; then
11719 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11720 rm -f conftest2.*
11721 if { { case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724esac
11725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11726$as_echo "$ac_try_echo"; } >&5
11727 (eval "$ac_try") 2>&5
11728 ac_status=$?
11729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11730 test $ac_status = 0; } &&
11731 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734esac
11735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11736$as_echo "$ac_try_echo"; } >&5
11737 (eval "$ac_try") 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; };
11741 then
11742 # cc works too.
11743 :
11744 else
11745 # cc exists but doesn't like -o.
11746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11747 fi
11748 fi
11749 fi
11750else
11751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11752fi
11753rm -f core conftest*
1ec601bf 11754
fabfcf5e
KT
11755fi
11756if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758$as_echo "yes" >&6; }
11759else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
1ec601bf 11762
fabfcf5e
KT
11763$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11764
11765fi
1ec601bf 11766
fabfcf5e
KT
11767# FIXME: we rely on the cache variable name because
11768# there is no other way.
11769set dummy $CC
11770am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11771eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11772if test "$am_t" != yes; then
11773 # Losing compiler, so override with the script.
11774 # FIXME: It is wrong to rewrite CC.
11775 # But if we don't then we get into trouble of one sort or another.
11776 # A longer-term fix would be to have automake use am__CC in this case,
11777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11778 CC="$am_aux_dir/compile $CC"
11779fi
1ec601bf
FXC
11780
11781
11782
fabfcf5e
KT
11783if test "x$GCC" != "xyes"; then
11784 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
1ec601bf
FXC
11785fi
11786ac_ext=c
11787ac_cpp='$CPP $CPPFLAGS'
11788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790ac_compiler_gnu=$ac_cv_c_compiler_gnu
fabfcf5e
KT
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11792$as_echo_n "checking how to run the C preprocessor... " >&6; }
11793# On Suns, sometimes $CPP names a directory.
11794if test -n "$CPP" && test -d "$CPP"; then
11795 CPP=
11796fi
11797if test -z "$CPP"; then
11798 if test "${ac_cv_prog_CPP+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800else
11801 # Double quotes because CPP needs to be expanded
11802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11803 do
11804 ac_preproc_ok=false
11805for ac_c_preproc_warn_flag in '' yes
11806do
11807 # Use a header file that comes with gcc, so configuring glibc
11808 # with a fresh cross-compiler works.
11809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 # <limits.h> exists even on freestanding compilers.
11811 # On the NeXT, cc -E runs the code through the compiler's parser,
11812 # not just through cpp. "Syntax error" is here to catch this case.
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815#ifdef __STDC__
11816# include <limits.h>
11817#else
11818# include <assert.h>
11819#endif
11820 Syntax error
11821_ACEOF
11822if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11823
1ec601bf 11824else
fabfcf5e
KT
11825 # Broken: fails on valid input.
11826continue
1ec601bf 11827fi
fabfcf5e 11828rm -f conftest.err conftest.$ac_ext
1ec601bf 11829
fabfcf5e
KT
11830 # OK, works on sane cases. Now check whether nonexistent headers
11831 # can be detected and how.
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h. */
11834#include <ac_nonexistent.h>
11835_ACEOF
11836if ac_fn_c_try_cpp "$LINENO"; then :
11837 # Broken: success on invalid input.
11838continue
1ec601bf 11839else
fabfcf5e
KT
11840 # Passes both tests.
11841ac_preproc_ok=:
11842break
1ec601bf 11843fi
fabfcf5e 11844rm -f conftest.err conftest.$ac_ext
1ec601bf 11845
fabfcf5e
KT
11846done
11847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11848rm -f conftest.err conftest.$ac_ext
11849if $ac_preproc_ok; then :
11850 break
11851fi
1ec601bf 11852
fabfcf5e
KT
11853 done
11854 ac_cv_prog_CPP=$CPP
1ec601bf 11855
fabfcf5e
KT
11856fi
11857 CPP=$ac_cv_prog_CPP
1ec601bf 11858else
fabfcf5e 11859 ac_cv_prog_CPP=$CPP
1ec601bf 11860fi
fabfcf5e
KT
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11862$as_echo "$CPP" >&6; }
11863ac_preproc_ok=false
11864for ac_c_preproc_warn_flag in '' yes
11865do
11866 # Use a header file that comes with gcc, so configuring glibc
11867 # with a fresh cross-compiler works.
11868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 # <limits.h> exists even on freestanding compilers.
11870 # On the NeXT, cc -E runs the code through the compiler's parser,
11871 # not just through cpp. "Syntax error" is here to catch this case.
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h. */
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879 Syntax error
11880_ACEOF
11881if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11882
fabfcf5e
KT
11883else
11884 # Broken: fails on valid input.
11885continue
11886fi
11887rm -f conftest.err conftest.$ac_ext
1ec601bf 11888
fabfcf5e
KT
11889 # OK, works on sane cases. Now check whether nonexistent headers
11890 # can be detected and how.
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892/* end confdefs.h. */
11893#include <ac_nonexistent.h>
11894_ACEOF
11895if ac_fn_c_try_cpp "$LINENO"; then :
11896 # Broken: success on invalid input.
11897continue
1ec601bf 11898else
fabfcf5e
KT
11899 # Passes both tests.
11900ac_preproc_ok=:
11901break
1ec601bf 11902fi
fabfcf5e 11903rm -f conftest.err conftest.$ac_ext
1ec601bf 11904
fabfcf5e
KT
11905done
11906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11907rm -f conftest.err conftest.$ac_ext
11908if $ac_preproc_ok; then :
1ec601bf 11909
fabfcf5e
KT
11910else
11911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11913as_fn_error "C preprocessor \"$CPP\" fails sanity check
11914See \`config.log' for more details." "$LINENO" 5; }
1ec601bf
FXC
11915fi
11916
fabfcf5e
KT
11917ac_ext=c
11918ac_cpp='$CPP $CPPFLAGS'
11919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf
FXC
11922
11923
11924# Calculate toolexeclibdir
11925# Also toolexecdir, though it's only used in toolexeclibdir
11926case ${version_specific_libs} in
11927 yes)
11928 # Need the gcc compiler version to know where to install libraries
11929 # and header files if --enable-version-specific-runtime-libs option
11930 # is selected.
11931 toolexecdir='$(libdir)/gcc/$(target_alias)'
11932 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11933 ;;
11934 no)
11935 if test -n "$with_cross_host" &&
11936 test x"$with_cross_host" != x"no"; then
11937 # Install a library built with a cross compiler in tooldir, not libdir.
11938 toolexecdir='$(exec_prefix)/$(target_alias)'
11939 toolexeclibdir='$(toolexecdir)/lib'
11940 else
11941 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11942 toolexeclibdir='$(libdir)'
11943 fi
11944 multi_os_directory=`$CC -print-multi-os-directory`
11945 case $multi_os_directory in
11946 .) ;; # Avoid trailing /.
11947 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11948 esac
11949 ;;
11950esac
11951
11952
11953
d2995f21 11954for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
e8d42d28 11955do :
1d92226b
JJ
11956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11958eval as_val=\$$as_ac_Header
11959 if test "x$as_val" = x""yes; then :
e8d42d28 11960 cat >>confdefs.h <<_ACEOF
1d92226b 11961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e8d42d28
JJ
11962_ACEOF
11963
11964fi
11965
11966done
11967
11968
5a09d908
TB
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11970$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11971if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973else
11974
11975 save_CFLAGS="$CFLAGS"
11976 CFLAGS="$CFLAGS -Werror"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978/* end confdefs.h. */
11979
11980#include <math.h>
11981void foo(void) { signgam = 1; }
11982int
11983main ()
11984{
11985
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990if ac_fn_c_try_compile "$LINENO"; then :
11991 libgfor_cv_have_math_h_signgam=yes
11992else
11993 libgfor_cv_have_math_h_signgam=no
11994fi
11995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 CFLAGS="$save_CFLAGS"
11997fi
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11999$as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12000 if test $libgfor_cv_have_math_h_signgam = yes; then
12001
12002$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12003
12004 fi
12005
6f468984
TB
12006# If available, sqrtl and cbrtl speed up the calculation -
12007# but they are not required
12008if test x$gcc_no_link != xyes; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
1ec601bf
FXC
12010$as_echo_n "checking for sqrtl in -lm... " >&6; }
12011if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013else
12014 ac_check_lib_save_LIBS=$LIBS
12015LIBS="-lm $LIBS"
fabfcf5e
KT
12016if test x$gcc_no_link = xyes; then
12017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12018fi
1ec601bf
FXC
12019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020/* end confdefs.h. */
12021
12022/* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025#ifdef __cplusplus
12026extern "C"
12027#endif
12028char sqrtl ();
12029int
12030main ()
12031{
12032return sqrtl ();
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_lib_m_sqrtl=yes
12039else
12040 ac_cv_lib_m_sqrtl=no
12041fi
12042rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044LIBS=$ac_check_lib_save_LIBS
12045fi
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12047$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12048if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12049
12050$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12051
12052fi
12053
6f468984 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
1ec601bf
FXC
12055$as_echo_n "checking for cbrtl in -lm... " >&6; }
12056if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058else
12059 ac_check_lib_save_LIBS=$LIBS
12060LIBS="-lm $LIBS"
fabfcf5e
KT
12061if test x$gcc_no_link = xyes; then
12062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12063fi
1ec601bf
FXC
12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h. */
12066
12067/* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070#ifdef __cplusplus
12071extern "C"
12072#endif
12073char cbrtl ();
12074int
12075main ()
12076{
12077return cbrtl ();
12078 ;
12079 return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_m_cbrtl=yes
12084else
12085 ac_cv_lib_m_cbrtl=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089LIBS=$ac_check_lib_save_LIBS
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12092$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12093if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12094
12095$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12096
e8d42d28
JJ
12097fi
12098
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12100$as_echo_n "checking for feholdexcept in -lm... " >&6; }
12101if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12102 $as_echo_n "(cached) " >&6
12103else
12104 ac_check_lib_save_LIBS=$LIBS
12105LIBS="-lm $LIBS"
12106if test x$gcc_no_link = xyes; then
12107 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12108fi
12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h. */
12111
12112/* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115#ifdef __cplusplus
12116extern "C"
12117#endif
12118char feholdexcept ();
12119int
12120main ()
12121{
12122return feholdexcept ();
12123 ;
12124 return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_link "$LINENO"; then :
12128 ac_cv_lib_m_feholdexcept=yes
12129else
12130 ac_cv_lib_m_feholdexcept=no
12131fi
12132rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134LIBS=$ac_check_lib_save_LIBS
12135fi
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12137$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12138if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12139
12140$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12141
12142fi
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12145$as_echo_n "checking for fesetround in -lm... " >&6; }
12146if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 ac_check_lib_save_LIBS=$LIBS
12150LIBS="-lm $LIBS"
12151if test x$gcc_no_link = xyes; then
12152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12153fi
12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155/* end confdefs.h. */
12156
12157/* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160#ifdef __cplusplus
12161extern "C"
12162#endif
12163char fesetround ();
12164int
12165main ()
12166{
12167return fesetround ();
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_m_fesetround=yes
12174else
12175 ac_cv_lib_m_fesetround=no
12176fi
12177rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179LIBS=$ac_check_lib_save_LIBS
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12182$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12183if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12184
12185$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12186
12187fi
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12190$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12191if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193else
12194 ac_check_lib_save_LIBS=$LIBS
12195LIBS="-lm $LIBS"
12196if test x$gcc_no_link = xyes; then
12197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12198fi
12199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h. */
12201
12202/* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205#ifdef __cplusplus
12206extern "C"
12207#endif
12208char feupdateenv ();
12209int
12210main ()
12211{
12212return feupdateenv ();
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_m_feupdateenv=yes
12219else
12220 ac_cv_lib_m_feupdateenv=no
12221fi
12222rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224LIBS=$ac_check_lib_save_LIBS
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12227$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12228if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12229
12230$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12231
12232fi
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12235$as_echo_n "checking for fesetenv in -lm... " >&6; }
12236if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238else
12239 ac_check_lib_save_LIBS=$LIBS
12240LIBS="-lm $LIBS"
12241if test x$gcc_no_link = xyes; then
12242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12243fi
12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h. */
12246
12247/* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250#ifdef __cplusplus
12251extern "C"
12252#endif
12253char fesetenv ();
12254int
12255main ()
12256{
12257return fesetenv ();
12258 ;
12259 return 0;
12260}
12261_ACEOF
12262if ac_fn_c_try_link "$LINENO"; then :
12263 ac_cv_lib_m_fesetenv=yes
12264else
12265 ac_cv_lib_m_fesetenv=no
12266fi
12267rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269LIBS=$ac_check_lib_save_LIBS
12270fi
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12272$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12273if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12274
12275$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12276
12277fi
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12280$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12281if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283else
12284 ac_check_lib_save_LIBS=$LIBS
12285LIBS="-lm $LIBS"
12286if test x$gcc_no_link = xyes; then
12287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12288fi
12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h. */
12291
12292/* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char fetestexcept ();
12299int
12300main ()
12301{
12302return fetestexcept ();
12303 ;
12304 return 0;
12305}
12306_ACEOF
12307if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_m_fetestexcept=yes
12309else
12310 ac_cv_lib_m_fetestexcept=no
12311fi
12312rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314LIBS=$ac_check_lib_save_LIBS
12315fi
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12317$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12318if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12319
12320$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12321
1ec601bf
FXC
12322fi
12323
a855debf
JJ
12324 for ac_func in strtoull
12325do :
12326 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12327if test "x$ac_cv_func_strtoull" = x""yes; then :
12328 cat >>confdefs.h <<_ACEOF
12329#define HAVE_STRTOULL 1
12330_ACEOF
12331
12332fi
12333done
12334
6f468984
TB
12335else
12336 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12337
12338$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12339
12340 fi
12341 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12342
12343$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12344
e8d42d28
JJ
12345 fi
12346 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12347
12348$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12349
12350 fi
12351 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12352
12353$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12354
12355 fi
12356 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12357
12358$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12359
12360 fi
12361 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12362
12363$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12364
12365 fi
12366 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12367
12368$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12369
6f468984
TB
12370 fi
12371fi
1ec601bf 12372
1d92226b 12373# Check for hidden visibility (copied from libssp).
49f0e1ba
JJ
12374saved_CFLAGS="$CFLAGS"
12375CFLAGS="$CFLAGS -Werror"
1d92226b
JJ
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12377$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h. */
12380
12381void __attribute__((visibility ("hidden"))) bar (void) {}
12382int
12383main ()
12384{
12385
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390if ac_fn_c_try_compile "$LINENO"; then :
12391 quadmath_hidden=yes
12392else
12393 quadmath_hidden=no
12394fi
12395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12397$as_echo "$quadmath_hidden" >&6; }
12398if test x$quadmath_hidden = xyes; then
12399
12400$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12401
12402fi
49f0e1ba 12403CFLAGS="$saved_CFLAGS"
1d92226b 12404
1ec601bf
FXC
12405# Check for symbol versioning (copied from libssp).
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12407$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
12408# Check whether --enable-symvers was given.
12409if test "${enable_symvers+set}" = set; then :
12410 enableval=$enable_symvers; quadmath_use_symver=$enableval
fabfcf5e 12411else
bf382f5f
RO
12412 quadmath_use_symver=yes
12413fi
12414
19af62db 12415if test "x$quadmath_use_symver" != xno; then
bf382f5f
RO
12416 if test x$gcc_no_link = xyes; then
12417 # If we cannot link, we cannot build shared libraries, so do not use
12418 # symbol versioning.
12419 quadmath_use_symver=no
12420 else
12421 save_LDFLAGS="$LDFLAGS"
12422 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12423 cat > conftest.map <<EOF
1ec601bf
FXC
12424FOO_1.0 {
12425 global: *foo*; bar; local: *;
12426};
12427EOF
bf382f5f 12428 if test x$gcc_no_link = xyes; then
fabfcf5e
KT
12429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12430fi
1ec601bf
FXC
12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h. */
12433int foo;
12434int
12435main ()
12436{
12437
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442if ac_fn_c_try_link "$LINENO"; then :
12443 quadmath_use_symver=gnu
12444else
12445 quadmath_use_symver=no
12446fi
12447rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
12449 if test x$quadmath_use_symver = xno; then
12450 case "$target_os" in
12451 solaris2*)
12452 LDFLAGS="$save_LDFLAGS"
12453 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12454 # Sun ld cannot handle wildcards and treats all entries as undefined.
12455 cat > conftest.map <<EOF
1ec601bf
FXC
12456FOO_1.0 {
12457 global: foo; local: *;
12458};
12459EOF
bf382f5f 12460 if test x$gcc_no_link = xyes; then
fabfcf5e
KT
12461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12462fi
12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12464/* end confdefs.h. */
12465int foo;
12466int
12467main ()
12468{
12469
12470 ;
12471 return 0;
12472}
12473_ACEOF
12474if ac_fn_c_try_link "$LINENO"; then :
12475 quadmath_use_symver=sun
12476else
12477 quadmath_use_symver=no
12478fi
12479rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
12481 ;;
12482 esac
12483 fi
12484 LDFLAGS="$save_LDFLAGS"
fabfcf5e 12485 fi
1ec601bf 12486fi
1ec601bf
FXC
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12488$as_echo "$quadmath_use_symver" >&6; }
12489 if test "x$quadmath_use_symver" != xno; then
12490 LIBQUAD_USE_SYMVER_TRUE=
12491 LIBQUAD_USE_SYMVER_FALSE='#'
12492else
12493 LIBQUAD_USE_SYMVER_TRUE='#'
12494 LIBQUAD_USE_SYMVER_FALSE=
12495fi
12496
12497 if test "x$quadmath_use_symver" = xgnu; then
12498 LIBQUAD_USE_SYMVER_GNU_TRUE=
12499 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12500else
12501 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12502 LIBQUAD_USE_SYMVER_GNU_FALSE=
12503fi
12504
12505 if test "x$quadmath_use_symver" = xsun; then
12506 LIBQUAD_USE_SYMVER_SUN_TRUE=
12507 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12508else
12509 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12510 LIBQUAD_USE_SYMVER_SUN_FALSE=
12511fi
12512
12513
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12515$as_echo_n "checking whether __float128 is supported... " >&6; }
abccc9a9
TB
12516if test "${libquad_cv_have_float128+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518else
12519 if test x$gcc_no_link = xyes; then
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
0c949f0a 12523 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
abccc9a9 12524 typedef _Complex float __attribute__((mode(TC))) __complex128;
0c949f0a
MM
12525 #else
12526 typedef _Complex float __attribute__((mode(KC))) __complex128;
12527 #endif
abccc9a9
TB
12528
12529 __float128 foo (__float128 x)
12530 {
12531
12532 __complex128 z1, z2;
12533
12534 z1 = x;
12535 z2 = x / 7.Q;
12536 z2 /= z1;
12537
12538 return (__float128) z2;
12539 }
12540
12541 __float128 bar (__float128 x)
12542 {
12543 return x * __builtin_huge_valq ();
12544 }
12545
12546int
12547main ()
12548{
12549
12550 foo (1.2Q);
12551 bar (1.2Q);
12552
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557if ac_fn_c_try_compile "$LINENO"; then :
12558
12559 libquad_cv_have_float128=yes
12560
12561else
12562
12563 libquad_cv_have_float128=no
12564
12565fi
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567else
fabfcf5e
KT
12568 if test x$gcc_no_link = xyes; then
12569 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12570fi
12571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12572/* end confdefs.h. */
12573
0c949f0a 12574 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
1ec601bf 12575 typedef _Complex float __attribute__((mode(TC))) __complex128;
0c949f0a
MM
12576 #else
12577 typedef _Complex float __attribute__((mode(KC))) __complex128;
12578 #endif
1ec601bf
FXC
12579
12580 __float128 foo (__float128 x)
12581 {
12582
12583 __complex128 z1, z2;
12584
12585 z1 = x;
12586 z2 = x / 7.Q;
12587 z2 /= z1;
12588
12589 return (__float128) z2;
12590 }
12591
12592 __float128 bar (__float128 x)
12593 {
12594 return x * __builtin_huge_valq ();
12595 }
12596
12597int
12598main ()
12599{
12600
12601 foo (1.2Q);
12602 bar (1.2Q);
12603
12604 ;
12605 return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_link "$LINENO"; then :
12609
abccc9a9 12610 libquad_cv_have_float128=yes
1ec601bf
FXC
12611
12612else
12613
abccc9a9 12614 libquad_cv_have_float128=no
1ec601bf
FXC
12615
12616fi
12617rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
abccc9a9
TB
12619fi
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12622$as_echo "$libquad_cv_have_float128" >&6; }
12623 if test "x$libquad_cv_have_float128" = xyes; then
1ec601bf
FXC
12624 BUILD_LIBQUADMATH_TRUE=
12625 BUILD_LIBQUADMATH_FALSE='#'
12626else
12627 BUILD_LIBQUADMATH_TRUE='#'
12628 BUILD_LIBQUADMATH_FALSE=
12629fi
12630
12631
1d92226b
JJ
12632# Check for printf hook support.
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12634$as_echo_n "checking whether printf hooks are supported... " >&6; }
12635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636/* end confdefs.h. */
12637
12638#include <printf.h>
12639#include <stdarg.h>
12640#include <stdlib.h>
12641extern void flt128_va (void *, va_list *);
12642extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12643extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12644
12645int
12646main ()
12647{
12648
12649int pa_flt128 = register_printf_type (flt128_va);
12650int mod_Q = register_printf_modifier (L"Q");
12651int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12967872 12652struct printf_info info = { .user = -1 };
1d92226b
JJ
12653
12654 ;
12655 return 0;
12656}
12657_ACEOF
12658if ac_fn_c_try_compile "$LINENO"; then :
12659 quadmath_printf_hooks=yes
12660else
12661 quadmath_printf_hooks=no
12662fi
12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12665$as_echo "$quadmath_printf_hooks" >&6; }
12666if test x$quadmath_printf_hooks = xyes; then
12667
12668$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12669
12670fi
12671
12672# Check for whether locale support for quadmath_snprintf or Q printf hooks
12673# should be provided.
d2995f21
JJ
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12675$as_echo_n "checking whether nl_langinfo should be used... " >&6; }
1d92226b
JJ
12676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677/* end confdefs.h. */
12678#include <langinfo.h>
12679int
12680main ()
12681{
12682
12683const char *s;
12684s = nl_langinfo (DECIMAL_POINT);
12685s = nl_langinfo (MON_DECIMAL_POINT);
12686s = nl_langinfo (GROUPING);
12687s = nl_langinfo (MON_GROUPING);
12688s = nl_langinfo (THOUSANDS_SEP);
12689s = nl_langinfo (MON_THOUSANDS_SEP);
d2995f21
JJ
12690(void) s;
12691
12692 ;
12693 return 0;
12694}
12695_ACEOF
12696if ac_fn_c_try_compile "$LINENO"; then :
12697 quadmath_use_nl_langinfo=yes
12698else
12699 quadmath_use_nl_langinfo=no
12700fi
12701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12703$as_echo "$quadmath_use_nl_langinfo" >&6; }
12704if test x$quadmath_use_nl_langinfo = xyes; then
12705
12706$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12707
12708fi
12709
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12711$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h. */
12714#include <langinfo.h>
12715int
12716main ()
12717{
12718
12719const char *s;
1d92226b
JJ
12720s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12721s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12722s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12723s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
1d92226b
JJ
12724(void) s;
12725
12726 ;
12727 return 0;
12728}
12729_ACEOF
12730if ac_fn_c_try_compile "$LINENO"; then :
d2995f21 12731 quadmath_use_nl_langinfo_wc=yes
1d92226b 12732else
d2995f21 12733 quadmath_use_nl_langinfo_wc=no
1d92226b
JJ
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2995f21
JJ
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12737$as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12738if test x$quadmath_use_nl_langinfo_wc = xyes; then
1d92226b 12739
d2995f21
JJ
12740$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12741
12742fi
12743
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12745$as_echo_n "checking whether localeconv should be used... " >&6; }
12746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h. */
12748#include <locale.h>
12749int
12750main ()
12751{
12752
12753const struct lconv *l = localeconv ();
12754const char *s;
12755s = l->decimal_point;
12756s = l->mon_decimal_point;
12757s = l->grouping;
12758s = l->mon_grouping;
12759s = l->thousands_sep;
12760s = l->mon_thousands_sep;
12761(void) s;
12762
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767if ac_fn_c_try_compile "$LINENO"; then :
12768 quadmath_use_localeconv=yes
12769else
12770 quadmath_use_localeconv=no
12771fi
12772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12774$as_echo "$quadmath_use_localeconv" >&6; }
12775if test x$quadmath_use_localeconv = xyes; then
12776
12777$as_echo "#define USE_LOCALECONV 1" >>confdefs.h
1d92226b
JJ
12778
12779fi
12780
12781# Check for whether i18n number rewriting support for quadmath_snprintf
12782# or Q printf hooks should be provided.
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12784$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786/* end confdefs.h. */
12787#include <langinfo.h>
12788#include <limits.h>
12789#include <string.h>
12790#include <wchar.h>
12791#include <wctype.h>
12792int
12793main ()
12794{
12795
12796const char *s;
12797char decimal[MB_LEN_MAX];
12798wctrans_t map = wctrans ("to_outpunct");
12799wint_t wdecimal = towctrans (L'.', map);
12800mbstate_t state;
12801memset (&state, '\0', sizeof (state));
12802wcrtomb (decimal, wdecimal, &state);
12803s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12804s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
d2995f21 12805s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
1d92226b
JJ
12806(void) s;
12807
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_compile "$LINENO"; then :
12813 quadmath_use_i18n_number_h=yes
12814else
12815 quadmath_use_i18n_number_h=no
12816fi
12817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12819$as_echo "$quadmath_use_i18n_number_h" >&6; }
12820if test x$quadmath_use_i18n_number_h = xyes; then
12821
12822$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12823
12824fi
12825
fda26abe
IT
12826# Add CET specific flags if CET is enabled
12827 # Check whether --enable-cet was given.
12828if test "${enable_cet+set}" = set; then :
12829 enableval=$enable_cet;
12830 case "$enableval" in
12831 yes|no|default) ;;
12832 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12833 esac
12834
12835else
12836 enable_cet=default
12837fi
12838
12839
12840case "$host" in
12841 i[34567]86-*-linux* | x86_64-*-linux*)
12842 case "$enable_cet" in
12843 default)
12844 # Check if assembler supports CET.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h. */
12847
12848int
12849main ()
12850{
12851asm ("setssbsy");
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856if ac_fn_c_try_compile "$LINENO"; then :
12857 enable_cet=yes
12858else
12859 enable_cet=no
12860fi
12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 ;;
12863 yes)
12864 # Check if assembler supports CET.
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h. */
12867
12868int
12869main ()
12870{
12871asm ("setssbsy");
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_compile "$LINENO"; then :
12877
12878else
12879 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
12880fi
12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 ;;
12883 esac
12884 ;;
12885 *)
12886 enable_cet=no
12887 ;;
12888esac
12889if test x$enable_cet = xyes; then
12890 CET_FLAGS="-fcf-protection -mcet"
12891fi
12892
12893XCFLAGS="$XCFLAGS $CET_FLAGS"
12894
12895
1ec601bf
FXC
12896cat >confcache <<\_ACEOF
12897# This file is a shell script that caches the results of configure
12898# tests run on this system so they can be shared between configure
12899# scripts and configure runs, see configure's option --config-cache.
12900# It is not useful on other systems. If it contains results you don't
12901# want to keep, you may remove or edit it.
12902#
12903# config.status only pays attention to the cache file if you give it
12904# the --recheck option to rerun configure.
12905#
12906# `ac_cv_env_foo' variables (set or unset) will be overridden when
12907# loading this file, other *unset* `ac_cv_foo' will be assigned the
12908# following values.
12909
12910_ACEOF
12911
12912# The following way of writing the cache mishandles newlines in values,
12913# but we know of no workaround that is simple, portable, and efficient.
12914# So, we kill variables containing newlines.
12915# Ultrix sh set writes to stderr and can't be redirected directly,
12916# and sets the high bit in the cache file unless we assign to the vars.
12917(
12918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12919 eval ac_val=\$$ac_var
12920 case $ac_val in #(
12921 *${as_nl}*)
12922 case $ac_var in #(
12923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12925 esac
12926 case $ac_var in #(
12927 _ | IFS | as_nl) ;; #(
12928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12929 *) { eval $ac_var=; unset $ac_var;} ;;
12930 esac ;;
12931 esac
12932 done
12933
12934 (set) 2>&1 |
12935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12936 *${as_nl}ac_space=\ *)
12937 # `set' does not quote correctly, so add quotes: double-quote
12938 # substitution turns \\\\ into \\, and sed turns \\ into \.
12939 sed -n \
12940 "s/'/'\\\\''/g;
12941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12942 ;; #(
12943 *)
12944 # `set' quotes correctly as required by POSIX, so do not add quotes.
12945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12946 ;;
12947 esac |
12948 sort
12949) |
12950 sed '
12951 /^ac_cv_env_/b end
12952 t clear
12953 :clear
12954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12955 t end
12956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12957 :end' >>confcache
12958if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12959 if test -w "$cache_file"; then
12960 test "x$cache_file" != "x/dev/null" &&
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12962$as_echo "$as_me: updating cache $cache_file" >&6;}
12963 cat confcache >$cache_file
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12966$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12967 fi
12968fi
12969rm -f confcache
12970
12971if test ${multilib} = yes; then
12972 multilib_arg="--enable-multilib"
12973else
12974 multilib_arg=
12975fi
12976
4c993c44
TB
12977
12978# We would like our source tree to be readonly. However when releases or
12979# pre-releases are generated, the flex/bison generated files as well as the
12980# various formats of manuals need to be included along with the rest of the
12981# sources. Therefore we have --enable-generated-files-in-srcdir to do
12982# just that.
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12984$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12985# Check whether --enable-generated-files-in-srcdir was given.
12986if test "${enable_generated_files_in_srcdir+set}" = set; then :
12987 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12988 yes) enable_generated_files_in_srcdir=yes ;;
12989 no) enable_generated_files_in_srcdir=no ;;
12990 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12991 esac
12992else
12993 enable_generated_files_in_srcdir=no
12994fi
12995
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12997$as_echo "$enable_generated_files_in_srcdir" >&6; }
12998 if test "$enable_generated_files_in_srcdir" = yes; then
12999 GENINSRC_TRUE=
13000 GENINSRC_FALSE='#'
13001else
13002 GENINSRC_TRUE='#'
13003 GENINSRC_FALSE=
13004fi
13005
13006
3c36aa6b
JJ
13007# Determine what GCC version number to use in filesystem paths.
13008
13009 get_gcc_base_ver="cat"
13010
13011# Check whether --with-gcc-major-version-only was given.
13012if test "${with_gcc_major_version_only+set}" = set; then :
13013 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13014 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
13015 fi
13016
13017fi
13018
13019
13020
4c993c44 13021
1ec601bf
FXC
13022ac_config_files="$ac_config_files Makefile"
13023
13024cat >confcache <<\_ACEOF
13025# This file is a shell script that caches the results of configure
13026# tests run on this system so they can be shared between configure
13027# scripts and configure runs, see configure's option --config-cache.
13028# It is not useful on other systems. If it contains results you don't
13029# want to keep, you may remove or edit it.
13030#
13031# config.status only pays attention to the cache file if you give it
13032# the --recheck option to rerun configure.
13033#
13034# `ac_cv_env_foo' variables (set or unset) will be overridden when
13035# loading this file, other *unset* `ac_cv_foo' will be assigned the
13036# following values.
13037
13038_ACEOF
13039
13040# The following way of writing the cache mishandles newlines in values,
13041# but we know of no workaround that is simple, portable, and efficient.
13042# So, we kill variables containing newlines.
13043# Ultrix sh set writes to stderr and can't be redirected directly,
13044# and sets the high bit in the cache file unless we assign to the vars.
13045(
13046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13047 eval ac_val=\$$ac_var
13048 case $ac_val in #(
13049 *${as_nl}*)
13050 case $ac_var in #(
13051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13053 esac
13054 case $ac_var in #(
13055 _ | IFS | as_nl) ;; #(
13056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13057 *) { eval $ac_var=; unset $ac_var;} ;;
13058 esac ;;
13059 esac
13060 done
13061
13062 (set) 2>&1 |
13063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13064 *${as_nl}ac_space=\ *)
13065 # `set' does not quote correctly, so add quotes: double-quote
13066 # substitution turns \\\\ into \\, and sed turns \\ into \.
13067 sed -n \
13068 "s/'/'\\\\''/g;
13069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13070 ;; #(
13071 *)
13072 # `set' quotes correctly as required by POSIX, so do not add quotes.
13073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13074 ;;
13075 esac |
13076 sort
13077) |
13078 sed '
13079 /^ac_cv_env_/b end
13080 t clear
13081 :clear
13082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13083 t end
13084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13085 :end' >>confcache
13086if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13087 if test -w "$cache_file"; then
13088 test "x$cache_file" != "x/dev/null" &&
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13090$as_echo "$as_me: updating cache $cache_file" >&6;}
13091 cat confcache >$cache_file
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13094$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13095 fi
13096fi
13097rm -f confcache
13098
13099test "x$prefix" = xNONE && prefix=$ac_default_prefix
13100# Let make expand exec_prefix.
13101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13102
13103DEFS=-DHAVE_CONFIG_H
13104
13105ac_libobjs=
13106ac_ltlibobjs=
13107for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13108 # 1. Remove the extension, and $U if already installed.
13109 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13110 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13112 # will be set to the directory where LIBOBJS objects are built.
13113 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13114 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13115done
13116LIBOBJS=$ac_libobjs
13117
13118LTLIBOBJS=$ac_ltlibobjs
13119
13120
13121 if test -n "$EXEEXT"; then
13122 am__EXEEXT_TRUE=
13123 am__EXEEXT_FALSE='#'
13124else
13125 am__EXEEXT_TRUE='#'
13126 am__EXEEXT_FALSE=
13127fi
13128
13129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13130 as_fn_error "conditional \"AMDEP\" was never defined.
13131Usually this means the macro was only invoked conditionally." "$LINENO" 5
13132fi
13133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13134 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13135Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136fi
1d92226b
JJ
13137if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13138 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13139Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140fi
1ec601bf
FXC
13141if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13142 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13143Usually this means the macro was only invoked conditionally." "$LINENO" 5
13144fi
fabfcf5e
KT
13145if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13146 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13147Usually this means the macro was only invoked conditionally." "$LINENO" 5
13148fi
1ec601bf
FXC
13149if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13150 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13151Usually this means the macro was only invoked conditionally." "$LINENO" 5
13152fi
13153if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13154 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13155Usually this means the macro was only invoked conditionally." "$LINENO" 5
13156fi
13157if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13158 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13159Usually this means the macro was only invoked conditionally." "$LINENO" 5
13160fi
13161if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13162 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
4c993c44
TB
13163Usually this means the macro was only invoked conditionally." "$LINENO" 5
13164fi
13165if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13166 as_fn_error "conditional \"GENINSRC\" was never defined.
1ec601bf
FXC
13167Usually this means the macro was only invoked conditionally." "$LINENO" 5
13168fi
13169
13170: ${CONFIG_STATUS=./config.status}
13171ac_write_fail=0
13172ac_clean_files_save=$ac_clean_files
13173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13176as_write_fail=0
13177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13178#! $SHELL
13179# Generated by $as_me.
13180# Run this file to recreate the current configuration.
13181# Compiler output produced by configure, useful for debugging
13182# configure, is in config.log if it exists.
13183
13184debug=false
13185ac_cs_recheck=false
13186ac_cs_silent=false
13187
13188SHELL=\${CONFIG_SHELL-$SHELL}
13189export SHELL
13190_ASEOF
13191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13192## -------------------- ##
13193## M4sh Initialization. ##
13194## -------------------- ##
13195
13196# Be more Bourne compatible
13197DUALCASE=1; export DUALCASE # for MKS sh
13198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13199 emulate sh
13200 NULLCMD=:
13201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13202 # is contrary to our usage. Disable this feature.
13203 alias -g '${1+"$@"}'='"$@"'
13204 setopt NO_GLOB_SUBST
13205else
13206 case `(set -o) 2>/dev/null` in #(
13207 *posix*) :
13208 set -o posix ;; #(
13209 *) :
13210 ;;
13211esac
13212fi
13213
13214
13215as_nl='
13216'
13217export as_nl
13218# Printing a long string crashes Solaris 7 /usr/bin/printf.
13219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13222# Prefer a ksh shell builtin over an external printf program on Solaris,
13223# but without wasting forks for bash or zsh.
13224if test -z "$BASH_VERSION$ZSH_VERSION" \
13225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13226 as_echo='print -r --'
13227 as_echo_n='print -rn --'
13228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13229 as_echo='printf %s\n'
13230 as_echo_n='printf %s'
13231else
13232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13234 as_echo_n='/usr/ucb/echo -n'
13235 else
13236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13237 as_echo_n_body='eval
13238 arg=$1;
13239 case $arg in #(
13240 *"$as_nl"*)
13241 expr "X$arg" : "X\\(.*\\)$as_nl";
13242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13243 esac;
13244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13245 '
13246 export as_echo_n_body
13247 as_echo_n='sh -c $as_echo_n_body as_echo'
13248 fi
13249 export as_echo_body
13250 as_echo='sh -c $as_echo_body as_echo'
13251fi
13252
13253# The user is always right.
13254if test "${PATH_SEPARATOR+set}" != set; then
13255 PATH_SEPARATOR=:
13256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13258 PATH_SEPARATOR=';'
13259 }
13260fi
13261
13262
13263# IFS
13264# We need space, tab and new line, in precisely that order. Quoting is
13265# there to prevent editors from complaining about space-tab.
13266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13267# splitting by setting IFS to empty value.)
13268IFS=" "" $as_nl"
13269
13270# Find who we are. Look in the path if we contain no directory separator.
13271case $0 in #((
13272 *[\\/]* ) as_myself=$0 ;;
13273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13279 done
13280IFS=$as_save_IFS
13281
13282 ;;
13283esac
13284# We did not find ourselves, most probably we were run as `sh COMMAND'
13285# in which case we are not to be found in the path.
13286if test "x$as_myself" = x; then
13287 as_myself=$0
13288fi
13289if test ! -f "$as_myself"; then
13290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13291 exit 1
13292fi
13293
13294# Unset variables that we do not need and which cause bugs (e.g. in
13295# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13296# suppresses any "Segmentation fault" message there. '((' could
13297# trigger a bug in pdksh 5.2.14.
13298for as_var in BASH_ENV ENV MAIL MAILPATH
13299do eval test x\${$as_var+set} = xset \
13300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13301done
13302PS1='$ '
13303PS2='> '
13304PS4='+ '
13305
13306# NLS nuisances.
13307LC_ALL=C
13308export LC_ALL
13309LANGUAGE=C
13310export LANGUAGE
13311
13312# CDPATH.
13313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13314
13315
13316# as_fn_error ERROR [LINENO LOG_FD]
13317# ---------------------------------
13318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13320# script with status $?, using 1 if that was 0.
13321as_fn_error ()
13322{
13323 as_status=$?; test $as_status -eq 0 && as_status=1
13324 if test "$3"; then
13325 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13327 fi
13328 $as_echo "$as_me: error: $1" >&2
13329 as_fn_exit $as_status
13330} # as_fn_error
13331
13332
13333# as_fn_set_status STATUS
13334# -----------------------
13335# Set $? to STATUS, without forking.
13336as_fn_set_status ()
13337{
13338 return $1
13339} # as_fn_set_status
13340
13341# as_fn_exit STATUS
13342# -----------------
13343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13344as_fn_exit ()
13345{
13346 set +e
13347 as_fn_set_status $1
13348 exit $1
13349} # as_fn_exit
13350
13351# as_fn_unset VAR
13352# ---------------
13353# Portably unset VAR.
13354as_fn_unset ()
13355{
13356 { eval $1=; unset $1;}
13357}
13358as_unset=as_fn_unset
13359# as_fn_append VAR VALUE
13360# ----------------------
13361# Append the text in VALUE to the end of the definition contained in VAR. Take
13362# advantage of any shell optimizations that allow amortized linear growth over
13363# repeated appends, instead of the typical quadratic growth present in naive
13364# implementations.
13365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13366 eval 'as_fn_append ()
13367 {
13368 eval $1+=\$2
13369 }'
13370else
13371 as_fn_append ()
13372 {
13373 eval $1=\$$1\$2
13374 }
13375fi # as_fn_append
13376
13377# as_fn_arith ARG...
13378# ------------------
13379# Perform arithmetic evaluation on the ARGs, and store the result in the
13380# global $as_val. Take advantage of shells that can avoid forks. The arguments
13381# must be portable across $(()) and expr.
13382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13383 eval 'as_fn_arith ()
13384 {
13385 as_val=$(( $* ))
13386 }'
13387else
13388 as_fn_arith ()
13389 {
13390 as_val=`expr "$@" || test $? -eq 1`
13391 }
13392fi # as_fn_arith
13393
13394
13395if expr a : '\(a\)' >/dev/null 2>&1 &&
13396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13397 as_expr=expr
13398else
13399 as_expr=false
13400fi
13401
13402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13403 as_basename=basename
13404else
13405 as_basename=false
13406fi
13407
13408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13409 as_dirname=dirname
13410else
13411 as_dirname=false
13412fi
13413
13414as_me=`$as_basename -- "$0" ||
13415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13416 X"$0" : 'X\(//\)$' \| \
13417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13418$as_echo X/"$0" |
13419 sed '/^.*\/\([^/][^/]*\)\/*$/{
13420 s//\1/
13421 q
13422 }
13423 /^X\/\(\/\/\)$/{
13424 s//\1/
13425 q
13426 }
13427 /^X\/\(\/\).*/{
13428 s//\1/
13429 q
13430 }
13431 s/.*/./; q'`
13432
13433# Avoid depending upon Character Ranges.
13434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13437as_cr_digits='0123456789'
13438as_cr_alnum=$as_cr_Letters$as_cr_digits
13439
13440ECHO_C= ECHO_N= ECHO_T=
13441case `echo -n x` in #(((((
13442-n*)
13443 case `echo 'xy\c'` in
13444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13445 xy) ECHO_C='\c';;
13446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13447 ECHO_T=' ';;
13448 esac;;
13449*)
13450 ECHO_N='-n';;
13451esac
13452
13453rm -f conf$$ conf$$.exe conf$$.file
13454if test -d conf$$.dir; then
13455 rm -f conf$$.dir/conf$$.file
13456else
13457 rm -f conf$$.dir
13458 mkdir conf$$.dir 2>/dev/null
13459fi
13460if (echo >conf$$.file) 2>/dev/null; then
13461 if ln -s conf$$.file conf$$ 2>/dev/null; then
13462 as_ln_s='ln -s'
13463 # ... but there are two gotchas:
13464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13466 # In both cases, we have to default to `cp -p'.
13467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13468 as_ln_s='cp -p'
13469 elif ln conf$$.file conf$$ 2>/dev/null; then
13470 as_ln_s=ln
13471 else
13472 as_ln_s='cp -p'
13473 fi
13474else
13475 as_ln_s='cp -p'
13476fi
13477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13478rmdir conf$$.dir 2>/dev/null
13479
13480
13481# as_fn_mkdir_p
13482# -------------
13483# Create "$as_dir" as a directory, including parents if necessary.
13484as_fn_mkdir_p ()
13485{
13486
13487 case $as_dir in #(
13488 -*) as_dir=./$as_dir;;
13489 esac
13490 test -d "$as_dir" || eval $as_mkdir_p || {
13491 as_dirs=
13492 while :; do
13493 case $as_dir in #(
13494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13495 *) as_qdir=$as_dir;;
13496 esac
13497 as_dirs="'$as_qdir' $as_dirs"
13498 as_dir=`$as_dirname -- "$as_dir" ||
13499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13500 X"$as_dir" : 'X\(//\)[^/]' \| \
13501 X"$as_dir" : 'X\(//\)$' \| \
13502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13503$as_echo X"$as_dir" |
13504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13505 s//\1/
13506 q
13507 }
13508 /^X\(\/\/\)[^/].*/{
13509 s//\1/
13510 q
13511 }
13512 /^X\(\/\/\)$/{
13513 s//\1/
13514 q
13515 }
13516 /^X\(\/\).*/{
13517 s//\1/
13518 q
13519 }
13520 s/.*/./; q'`
13521 test -d "$as_dir" && break
13522 done
13523 test -z "$as_dirs" || eval "mkdir $as_dirs"
13524 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13525
13526
13527} # as_fn_mkdir_p
13528if mkdir -p . 2>/dev/null; then
13529 as_mkdir_p='mkdir -p "$as_dir"'
13530else
13531 test -d ./-p && rmdir ./-p
13532 as_mkdir_p=false
13533fi
13534
13535if test -x / >/dev/null 2>&1; then
13536 as_test_x='test -x'
13537else
13538 if ls -dL / >/dev/null 2>&1; then
13539 as_ls_L_option=L
13540 else
13541 as_ls_L_option=
13542 fi
13543 as_test_x='
13544 eval sh -c '\''
13545 if test -d "$1"; then
13546 test -d "$1/.";
13547 else
13548 case $1 in #(
13549 -*)set "./$1";;
13550 esac;
13551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13552 ???[sx]*):;;*)false;;esac;fi
13553 '\'' sh
13554 '
13555fi
13556as_executable_p=$as_test_x
13557
13558# Sed expression to map a string onto a valid CPP name.
13559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13560
13561# Sed expression to map a string onto a valid variable name.
13562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13563
13564
13565exec 6>&1
13566## ----------------------------------- ##
13567## Main body of $CONFIG_STATUS script. ##
13568## ----------------------------------- ##
13569_ASEOF
13570test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13571
13572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13573# Save the log message, to keep $0 and so on meaningful, and to
13574# report actual input values of CONFIG_FILES etc. instead of their
13575# values after options handling.
13576ac_log="
13577This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13578generated by GNU Autoconf 2.64. Invocation command line was
13579
13580 CONFIG_FILES = $CONFIG_FILES
13581 CONFIG_HEADERS = $CONFIG_HEADERS
13582 CONFIG_LINKS = $CONFIG_LINKS
13583 CONFIG_COMMANDS = $CONFIG_COMMANDS
13584 $ $0 $@
13585
13586on `(hostname || uname -n) 2>/dev/null | sed 1q`
13587"
13588
13589_ACEOF
13590
13591case $ac_config_files in *"
13592"*) set x $ac_config_files; shift; ac_config_files=$*;;
13593esac
13594
13595case $ac_config_headers in *"
13596"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13597esac
13598
13599
13600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13601# Files that config.status was made for.
13602config_files="$ac_config_files"
13603config_headers="$ac_config_headers"
13604config_commands="$ac_config_commands"
13605
13606_ACEOF
13607
13608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13609ac_cs_usage="\
13610\`$as_me' instantiates files and other configuration actions
13611from templates according to the current configuration. Unless the files
13612and actions are specified as TAGs, all are instantiated by default.
13613
13614Usage: $0 [OPTION]... [TAG]...
13615
13616 -h, --help print this help, then exit
13617 -V, --version print version number and configuration settings, then exit
13618 -q, --quiet, --silent
13619 do not print progress messages
13620 -d, --debug don't remove temporary files
13621 --recheck update $as_me by reconfiguring in the same conditions
13622 --file=FILE[:TEMPLATE]
13623 instantiate the configuration file FILE
13624 --header=FILE[:TEMPLATE]
13625 instantiate the configuration header FILE
13626
13627Configuration files:
13628$config_files
13629
13630Configuration headers:
13631$config_headers
13632
13633Configuration commands:
13634$config_commands
13635
13636Report bugs to the package provider."
13637
13638_ACEOF
13639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13640ac_cs_version="\\
13641GCC Quad-precision Math Library config.status 0.1
13642configured by $0, generated by GNU Autoconf 2.64,
13643 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13644
13645Copyright (C) 2009 Free Software Foundation, Inc.
13646This config.status script is free software; the Free Software Foundation
13647gives unlimited permission to copy, distribute and modify it."
13648
13649ac_pwd='$ac_pwd'
13650srcdir='$srcdir'
13651INSTALL='$INSTALL'
13652MKDIR_P='$MKDIR_P'
13653AWK='$AWK'
13654test -n "\$AWK" || AWK=awk
13655_ACEOF
13656
13657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658# The default lists apply if the user does not specify any file.
13659ac_need_defaults=:
13660while test $# != 0
13661do
13662 case $1 in
13663 --*=*)
13664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13666 ac_shift=:
13667 ;;
13668 *)
13669 ac_option=$1
13670 ac_optarg=$2
13671 ac_shift=shift
13672 ;;
13673 esac
13674
13675 case $ac_option in
13676 # Handling of the options.
13677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13678 ac_cs_recheck=: ;;
13679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13680 $as_echo "$ac_cs_version"; exit ;;
13681 --debug | --debu | --deb | --de | --d | -d )
13682 debug=: ;;
13683 --file | --fil | --fi | --f )
13684 $ac_shift
13685 case $ac_optarg in
13686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13687 esac
13688 as_fn_append CONFIG_FILES " '$ac_optarg'"
13689 ac_need_defaults=false;;
13690 --header | --heade | --head | --hea )
13691 $ac_shift
13692 case $ac_optarg in
13693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13694 esac
13695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13696 ac_need_defaults=false;;
13697 --he | --h)
13698 # Conflict between --help and --header
13699 as_fn_error "ambiguous option: \`$1'
13700Try \`$0 --help' for more information.";;
13701 --help | --hel | -h )
13702 $as_echo "$ac_cs_usage"; exit ;;
13703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13705 ac_cs_silent=: ;;
13706
13707 # This is an error.
13708 -*) as_fn_error "unrecognized option: \`$1'
13709Try \`$0 --help' for more information." ;;
13710
13711 *) as_fn_append ac_config_targets " $1"
13712 ac_need_defaults=false ;;
13713
13714 esac
13715 shift
13716done
13717
13718ac_configure_extra_args=
13719
13720if $ac_cs_silent; then
13721 exec 6>/dev/null
13722 ac_configure_extra_args="$ac_configure_extra_args --silent"
13723fi
13724
13725_ACEOF
13726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727if \$ac_cs_recheck; then
13728 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13729 shift
13730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13731 CONFIG_SHELL='$SHELL'
13732 export CONFIG_SHELL
13733 exec "\$@"
13734fi
13735
13736_ACEOF
13737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738exec 5>>config.log
13739{
13740 echo
13741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13742## Running $as_me. ##
13743_ASBOX
13744 $as_echo "$ac_log"
13745} >&5
13746
13747_ACEOF
13748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749#
13750# INIT-COMMANDS
13751#
ee5f0523
MK
13752
13753srcdir="$srcdir"
13754host="$host"
13755target="$target"
13756with_multisubdir="$with_multisubdir"
13757with_multisrctop="$with_multisrctop"
13758with_target_subdir="$with_target_subdir"
13759ac_configure_args="${multilib_arg} ${ac_configure_args}"
13760multi_basedir="$multi_basedir"
13761CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13762CC="$CC"
13763CXX="$CXX"
13764GFORTRAN="$GFORTRAN"
1ec601bf
FXC
13765AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13766
13767
13768# The HP-UX ksh and POSIX shell print the target directory to stdout
13769# if CDPATH is set.
13770(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13771
13772sed_quote_subst='$sed_quote_subst'
13773double_quote_subst='$double_quote_subst'
13774delay_variable_subst='$delay_variable_subst'
13775macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13776macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13777enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13778enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13779pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13780enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13781SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13782ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13783host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13784host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13785host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13786build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13787build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13788build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13789SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13790Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13791GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13792EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13793FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13794LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13795NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13796LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13797max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13798ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13799exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13800lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13801lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13802lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13803reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13804reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13805OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13806deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13807file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13808AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13809AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13810STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13811RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13812old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13813old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13814old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13815lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13816CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13817CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13818compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13819GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13820lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13821lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13822lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13823lt_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"`'
13824objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13825MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13826lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13827lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13828lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13829lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13830lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13831need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13832DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13833NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13834LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13835OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13836OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13837libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13838shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13839extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13840archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13841enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13842export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13843whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13844compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13845old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13846old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13847archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13848archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13849module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13850module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13851with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13852allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13853no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13854hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13855hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13856hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13857hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13858hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13859hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13860hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13861hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13862inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13863link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13864fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13865always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13866export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13867exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13868include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13869prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13870file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13871variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13872need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13873need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13874version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13875runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13876shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13877shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13878libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13879library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13880soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13881install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13882postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13883postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13884finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13885finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13886hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13887sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13888sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13889hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13890enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13891enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13892enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13893old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13894striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13895
13896LTCC='$LTCC'
13897LTCFLAGS='$LTCFLAGS'
13898compiler='$compiler_DEFAULT'
13899
13900# A function that is used when there is no print builtin or printf.
13901func_fallback_echo ()
13902{
13903 eval 'cat <<_LTECHO_EOF
13904\$1
13905_LTECHO_EOF'
13906}
13907
13908# Quote evaled strings.
13909for var in SHELL \
13910ECHO \
13911SED \
13912GREP \
13913EGREP \
13914FGREP \
13915LD \
13916NM \
13917LN_S \
13918lt_SP2NL \
13919lt_NL2SP \
13920reload_flag \
13921OBJDUMP \
13922deplibs_check_method \
13923file_magic_cmd \
13924AR \
13925AR_FLAGS \
13926STRIP \
13927RANLIB \
13928CC \
13929CFLAGS \
13930compiler \
13931lt_cv_sys_global_symbol_pipe \
13932lt_cv_sys_global_symbol_to_cdecl \
13933lt_cv_sys_global_symbol_to_c_name_address \
13934lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13935lt_prog_compiler_no_builtin_flag \
13936lt_prog_compiler_wl \
13937lt_prog_compiler_pic \
13938lt_prog_compiler_static \
13939lt_cv_prog_compiler_c_o \
13940need_locks \
13941DSYMUTIL \
13942NMEDIT \
13943LIPO \
13944OTOOL \
13945OTOOL64 \
13946shrext_cmds \
13947export_dynamic_flag_spec \
13948whole_archive_flag_spec \
13949compiler_needs_object \
13950with_gnu_ld \
13951allow_undefined_flag \
13952no_undefined_flag \
13953hardcode_libdir_flag_spec \
13954hardcode_libdir_flag_spec_ld \
13955hardcode_libdir_separator \
13956fix_srcfile_path \
13957exclude_expsyms \
13958include_expsyms \
13959file_list_spec \
13960variables_saved_for_relink \
13961libname_spec \
13962library_names_spec \
13963soname_spec \
13964install_override_mode \
13965finish_eval \
13966old_striplib \
13967striplib; do
13968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13969 *[\\\\\\\`\\"\\\$]*)
13970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13971 ;;
13972 *)
13973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13974 ;;
13975 esac
13976done
13977
13978# Double-quote double-evaled strings.
13979for var in reload_cmds \
13980old_postinstall_cmds \
13981old_postuninstall_cmds \
13982old_archive_cmds \
13983extract_expsyms_cmds \
13984old_archive_from_new_cmds \
13985old_archive_from_expsyms_cmds \
13986archive_cmds \
13987archive_expsym_cmds \
13988module_cmds \
13989module_expsym_cmds \
13990export_symbols_cmds \
13991prelink_cmds \
13992postinstall_cmds \
13993postuninstall_cmds \
13994finish_cmds \
13995sys_lib_search_path_spec \
13996sys_lib_dlsearch_path_spec; do
13997 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13998 *[\\\\\\\`\\"\\\$]*)
13999 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14000 ;;
14001 *)
14002 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14003 ;;
14004 esac
14005done
14006
14007ac_aux_dir='$ac_aux_dir'
14008xsi_shell='$xsi_shell'
14009lt_shell_append='$lt_shell_append'
14010
14011# See if we are running on zsh, and set the options which allow our
14012# commands through without removal of \ escapes INIT.
14013if test -n "\${ZSH_VERSION+set}" ; then
14014 setopt NO_GLOB_SUBST
14015fi
14016
14017
14018 PACKAGE='$PACKAGE'
14019 VERSION='$VERSION'
14020 TIMESTAMP='$TIMESTAMP'
14021 RM='$RM'
14022 ofile='$ofile'
14023
14024
14025
14026
1ec601bf
FXC
14027_ACEOF
14028
14029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14030
14031# Handling of arguments.
14032for ac_config_target in $ac_config_targets
14033do
14034 case $ac_config_target in
14035 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
ee5f0523 14036 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1ec601bf
FXC
14037 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14038 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1ec601bf
FXC
14039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14040
14041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14042 esac
14043done
14044
14045
14046# If the user did not use the arguments to specify the items to instantiate,
14047# then the envvar interface is used. Set only those that are not.
14048# We use the long form for the default assignment because of an extremely
14049# bizarre bug on SunOS 4.1.3.
14050if $ac_need_defaults; then
14051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14054fi
14055
14056# Have a temporary directory for convenience. Make it in the build tree
14057# simply because there is no reason against having it here, and in addition,
14058# creating and moving files from /tmp can sometimes cause problems.
14059# Hook for its removal unless debugging.
14060# Note that there is a small window in which the directory will not be cleaned:
14061# after its creation but before its name has been assigned to `$tmp'.
14062$debug ||
14063{
14064 tmp=
14065 trap 'exit_status=$?
14066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14067' 0
14068 trap 'as_fn_exit 1' 1 2 13 15
14069}
14070# Create a (secure) tmp directory for tmp files.
14071
14072{
14073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14074 test -n "$tmp" && test -d "$tmp"
14075} ||
14076{
14077 tmp=./conf$$-$RANDOM
14078 (umask 077 && mkdir "$tmp")
14079} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14080
14081# Set up the scripts for CONFIG_FILES section.
14082# No need to generate them if there are no CONFIG_FILES.
14083# This happens for instance with `./config.status config.h'.
14084if test -n "$CONFIG_FILES"; then
14085
14086
14087ac_cr=`echo X | tr X '\015'`
14088# On cygwin, bash can eat \r inside `` if the user requested igncr.
14089# But we know of no other shell where ac_cr would be empty at this
14090# point, so we can use a bashism as a fallback.
14091if test "x$ac_cr" = x; then
14092 eval ac_cr=\$\'\\r\'
14093fi
14094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14096 ac_cs_awk_cr='\r'
14097else
14098 ac_cs_awk_cr=$ac_cr
14099fi
14100
14101echo 'BEGIN {' >"$tmp/subs1.awk" &&
14102_ACEOF
14103
14104
14105{
14106 echo "cat >conf$$subs.awk <<_ACEOF" &&
14107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14108 echo "_ACEOF"
14109} >conf$$subs.sh ||
14110 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14111ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14112ac_delim='%!_!# '
14113for ac_last_try in false false false false false :; do
14114 . ./conf$$subs.sh ||
14115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14116
14117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14118 if test $ac_delim_n = $ac_delim_num; then
14119 break
14120 elif $ac_last_try; then
14121 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14122 else
14123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14124 fi
14125done
14126rm -f conf$$subs.sh
14127
14128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14129cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14130_ACEOF
14131sed -n '
14132h
14133s/^/S["/; s/!.*/"]=/
14134p
14135g
14136s/^[^!]*!//
14137:repl
14138t repl
14139s/'"$ac_delim"'$//
14140t delim
14141:nl
14142h
14143s/\(.\{148\}\).*/\1/
14144t more1
14145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14146p
14147n
14148b repl
14149:more1
14150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14151p
14152g
14153s/.\{148\}//
14154t nl
14155:delim
14156h
14157s/\(.\{148\}\).*/\1/
14158t more2
14159s/["\\]/\\&/g; s/^/"/; s/$/"/
14160p
14161b
14162:more2
14163s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14164p
14165g
14166s/.\{148\}//
14167t delim
14168' <conf$$subs.awk | sed '
14169/^[^""]/{
14170 N
14171 s/\n//
14172}
14173' >>$CONFIG_STATUS || ac_write_fail=1
14174rm -f conf$$subs.awk
14175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14176_ACAWK
14177cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14178 for (key in S) S_is_set[key] = 1
14179 FS = "\a"
14180
14181}
14182{
14183 line = $ 0
14184 nfields = split(line, field, "@")
14185 substed = 0
14186 len = length(field[1])
14187 for (i = 2; i < nfields; i++) {
14188 key = field[i]
14189 keylen = length(key)
14190 if (S_is_set[key]) {
14191 value = S[key]
14192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14193 len += length(value) + length(field[++i])
14194 substed = 1
14195 } else
14196 len += 1 + keylen
14197 }
14198
14199 print line
14200}
14201
14202_ACAWK
14203_ACEOF
14204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14207else
14208 cat
14209fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14210 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14211_ACEOF
14212
14213# VPATH may cause trouble with some makes, so we remove $(srcdir),
14214# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14215# trailing colons and then remove the whole line if VPATH becomes empty
14216# (actually we leave an empty line to preserve line numbers).
14217if test "x$srcdir" = x.; then
14218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14219s/:*\$(srcdir):*/:/
14220s/:*\${srcdir}:*/:/
14221s/:*@srcdir@:*/:/
14222s/^\([^=]*=[ ]*\):*/\1/
14223s/:*$//
14224s/^[^=]*=[ ]*$//
14225}'
14226fi
14227
14228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14229fi # test -n "$CONFIG_FILES"
14230
14231# Set up the scripts for CONFIG_HEADERS section.
14232# No need to generate them if there are no CONFIG_HEADERS.
14233# This happens for instance with `./config.status Makefile'.
14234if test -n "$CONFIG_HEADERS"; then
14235cat >"$tmp/defines.awk" <<\_ACAWK ||
14236BEGIN {
14237_ACEOF
14238
14239# Transform confdefs.h into an awk script `defines.awk', embedded as
14240# here-document in config.status, that substitutes the proper values into
14241# config.h.in to produce config.h.
14242
14243# Create a delimiter string that does not exist in confdefs.h, to ease
14244# handling of long lines.
14245ac_delim='%!_!# '
14246for ac_last_try in false false :; do
14247 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14248 if test -z "$ac_t"; then
14249 break
14250 elif $ac_last_try; then
14251 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14252 else
14253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14254 fi
14255done
14256
14257# For the awk script, D is an array of macro values keyed by name,
14258# likewise P contains macro parameters if any. Preserve backslash
14259# newline sequences.
14260
14261ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14262sed -n '
14263s/.\{148\}/&'"$ac_delim"'/g
14264t rset
14265:rset
14266s/^[ ]*#[ ]*define[ ][ ]*/ /
14267t def
14268d
14269:def
14270s/\\$//
14271t bsnl
14272s/["\\]/\\&/g
14273s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14274D["\1"]=" \3"/p
14275s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14276d
14277:bsnl
14278s/["\\]/\\&/g
14279s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14280D["\1"]=" \3\\\\\\n"\\/p
14281t cont
14282s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14283t cont
14284d
14285:cont
14286n
14287s/.\{148\}/&'"$ac_delim"'/g
14288t clear
14289:clear
14290s/\\$//
14291t bsnlc
14292s/["\\]/\\&/g; s/^/"/; s/$/"/p
14293d
14294:bsnlc
14295s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14296b cont
14297' <confdefs.h | sed '
14298s/'"$ac_delim"'/"\\\
14299"/g' >>$CONFIG_STATUS || ac_write_fail=1
14300
14301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14302 for (key in D) D_is_set[key] = 1
14303 FS = "\a"
14304}
14305/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14306 line = \$ 0
14307 split(line, arg, " ")
14308 if (arg[1] == "#") {
14309 defundef = arg[2]
14310 mac1 = arg[3]
14311 } else {
14312 defundef = substr(arg[1], 2)
14313 mac1 = arg[2]
14314 }
14315 split(mac1, mac2, "(") #)
14316 macro = mac2[1]
14317 prefix = substr(line, 1, index(line, defundef) - 1)
14318 if (D_is_set[macro]) {
14319 # Preserve the white space surrounding the "#".
14320 print prefix "define", macro P[macro] D[macro]
14321 next
14322 } else {
14323 # Replace #undef with comments. This is necessary, for example,
14324 # in the case of _POSIX_SOURCE, which is predefined and required
14325 # on some systems where configure will not decide to define it.
14326 if (defundef == "undef") {
14327 print "/*", prefix defundef, macro, "*/"
14328 next
14329 }
14330 }
14331}
14332{ print }
14333_ACAWK
14334_ACEOF
14335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14337fi # test -n "$CONFIG_HEADERS"
14338
14339
14340eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14341shift
14342for ac_tag
14343do
14344 case $ac_tag in
14345 :[FHLC]) ac_mode=$ac_tag; continue;;
14346 esac
14347 case $ac_mode$ac_tag in
14348 :[FHL]*:*);;
14349 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14350 :[FH]-) ac_tag=-:-;;
14351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14352 esac
14353 ac_save_IFS=$IFS
14354 IFS=:
14355 set x $ac_tag
14356 IFS=$ac_save_IFS
14357 shift
14358 ac_file=$1
14359 shift
14360
14361 case $ac_mode in
14362 :L) ac_source=$1;;
14363 :[FH])
14364 ac_file_inputs=
14365 for ac_f
14366 do
14367 case $ac_f in
14368 -) ac_f="$tmp/stdin";;
14369 *) # Look for the file first in the build tree, then in the source tree
14370 # (if the path is not absolute). The absolute path cannot be DOS-style,
14371 # because $ac_f cannot contain `:'.
14372 test -f "$ac_f" ||
14373 case $ac_f in
14374 [\\/$]*) false;;
14375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14376 esac ||
14377 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14378 esac
14379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14380 as_fn_append ac_file_inputs " '$ac_f'"
14381 done
14382
14383 # Let's still pretend it is `configure' which instantiates (i.e., don't
14384 # use $as_me), people would be surprised to read:
14385 # /* config.h. Generated by config.status. */
14386 configure_input='Generated from '`
14387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14388 `' by configure.'
14389 if test x"$ac_file" != x-; then
14390 configure_input="$ac_file. $configure_input"
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14392$as_echo "$as_me: creating $ac_file" >&6;}
14393 fi
14394 # Neutralize special characters interpreted by sed in replacement strings.
14395 case $configure_input in #(
14396 *\&* | *\|* | *\\* )
14397 ac_sed_conf_input=`$as_echo "$configure_input" |
14398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14399 *) ac_sed_conf_input=$configure_input;;
14400 esac
14401
14402 case $ac_tag in
14403 *:-:* | *:-) cat >"$tmp/stdin" \
14404 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14405 esac
14406 ;;
14407 esac
14408
14409 ac_dir=`$as_dirname -- "$ac_file" ||
14410$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411 X"$ac_file" : 'X\(//\)[^/]' \| \
14412 X"$ac_file" : 'X\(//\)$' \| \
14413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14414$as_echo X"$ac_file" |
14415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416 s//\1/
14417 q
14418 }
14419 /^X\(\/\/\)[^/].*/{
14420 s//\1/
14421 q
14422 }
14423 /^X\(\/\/\)$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\(\/\).*/{
14428 s//\1/
14429 q
14430 }
14431 s/.*/./; q'`
14432 as_dir="$ac_dir"; as_fn_mkdir_p
14433 ac_builddir=.
14434
14435case "$ac_dir" in
14436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14437*)
14438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14439 # A ".." for each directory in $ac_dir_suffix.
14440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14441 case $ac_top_builddir_sub in
14442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14444 esac ;;
14445esac
14446ac_abs_top_builddir=$ac_pwd
14447ac_abs_builddir=$ac_pwd$ac_dir_suffix
14448# for backward compatibility:
14449ac_top_builddir=$ac_top_build_prefix
14450
14451case $srcdir in
14452 .) # We are building in place.
14453 ac_srcdir=.
14454 ac_top_srcdir=$ac_top_builddir_sub
14455 ac_abs_top_srcdir=$ac_pwd ;;
14456 [\\/]* | ?:[\\/]* ) # Absolute name.
14457 ac_srcdir=$srcdir$ac_dir_suffix;
14458 ac_top_srcdir=$srcdir
14459 ac_abs_top_srcdir=$srcdir ;;
14460 *) # Relative name.
14461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14462 ac_top_srcdir=$ac_top_build_prefix$srcdir
14463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14464esac
14465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14466
14467
14468 case $ac_mode in
14469 :F)
14470 #
14471 # CONFIG_FILE
14472 #
14473
14474 case $INSTALL in
14475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14477 esac
14478 ac_MKDIR_P=$MKDIR_P
14479 case $MKDIR_P in
14480 [\\/$]* | ?:[\\/]* ) ;;
14481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14482 esac
14483_ACEOF
14484
14485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486# If the template does not know about datarootdir, expand it.
14487# FIXME: This hack should be removed a few years after 2.60.
14488ac_datarootdir_hack=; ac_datarootdir_seen=
14489ac_sed_dataroot='
14490/datarootdir/ {
14491 p
14492 q
14493}
14494/@datadir@/p
14495/@docdir@/p
14496/@infodir@/p
14497/@localedir@/p
14498/@mandir@/p'
14499case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14500*datarootdir*) ac_datarootdir_seen=yes;;
14501*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14503$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14504_ACEOF
14505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14506 ac_datarootdir_hack='
14507 s&@datadir@&$datadir&g
14508 s&@docdir@&$docdir&g
14509 s&@infodir@&$infodir&g
14510 s&@localedir@&$localedir&g
14511 s&@mandir@&$mandir&g
14512 s&\\\${datarootdir}&$datarootdir&g' ;;
14513esac
14514_ACEOF
14515
14516# Neutralize VPATH when `$srcdir' = `.'.
14517# Shell code in configure.ac might set extrasub.
14518# FIXME: do we really want to maintain this feature?
14519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520ac_sed_extra="$ac_vpsub
14521$extrasub
14522_ACEOF
14523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14524:t
14525/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14526s|@configure_input@|$ac_sed_conf_input|;t t
14527s&@top_builddir@&$ac_top_builddir_sub&;t t
14528s&@top_build_prefix@&$ac_top_build_prefix&;t t
14529s&@srcdir@&$ac_srcdir&;t t
14530s&@abs_srcdir@&$ac_abs_srcdir&;t t
14531s&@top_srcdir@&$ac_top_srcdir&;t t
14532s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14533s&@builddir@&$ac_builddir&;t t
14534s&@abs_builddir@&$ac_abs_builddir&;t t
14535s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14536s&@INSTALL@&$ac_INSTALL&;t t
14537s&@MKDIR_P@&$ac_MKDIR_P&;t t
14538$ac_datarootdir_hack
14539"
14540eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14541 || as_fn_error "could not create $ac_file" "$LINENO" 5
14542
14543test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14547which seems to be undefined. Please make sure it is defined." >&5
14548$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14549which seems to be undefined. Please make sure it is defined." >&2;}
14550
14551 rm -f "$tmp/stdin"
14552 case $ac_file in
14553 -) cat "$tmp/out" && rm -f "$tmp/out";;
14554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14555 esac \
14556 || as_fn_error "could not create $ac_file" "$LINENO" 5
14557 ;;
14558 :H)
14559 #
14560 # CONFIG_HEADER
14561 #
14562 if test x"$ac_file" != x-; then
14563 {
14564 $as_echo "/* $configure_input */" \
14565 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14566 } >"$tmp/config.h" \
14567 || as_fn_error "could not create $ac_file" "$LINENO" 5
14568 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14570$as_echo "$as_me: $ac_file is unchanged" >&6;}
14571 else
14572 rm -f "$ac_file"
14573 mv "$tmp/config.h" "$ac_file" \
14574 || as_fn_error "could not create $ac_file" "$LINENO" 5
14575 fi
14576 else
14577 $as_echo "/* $configure_input */" \
14578 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14579 || as_fn_error "could not create -" "$LINENO" 5
14580 fi
14581# Compute "$ac_file"'s index in $config_headers.
14582_am_arg="$ac_file"
14583_am_stamp_count=1
14584for _am_header in $config_headers :; do
14585 case $_am_header in
14586 $_am_arg | $_am_arg:* )
14587 break ;;
14588 * )
14589 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14590 esac
14591done
14592echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14593$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14594 X"$_am_arg" : 'X\(//\)[^/]' \| \
14595 X"$_am_arg" : 'X\(//\)$' \| \
14596 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14597$as_echo X"$_am_arg" |
14598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14599 s//\1/
14600 q
14601 }
14602 /^X\(\/\/\)[^/].*/{
14603 s//\1/
14604 q
14605 }
14606 /^X\(\/\/\)$/{
14607 s//\1/
14608 q
14609 }
14610 /^X\(\/\).*/{
14611 s//\1/
14612 q
14613 }
14614 s/.*/./; q'`/stamp-h$_am_stamp_count
14615 ;;
14616
14617 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14618$as_echo "$as_me: executing $ac_file commands" >&6;}
14619 ;;
14620 esac
14621
14622
14623 case $ac_file$ac_mode in
ee5f0523
MK
14624 "default-1":C)
14625# Only add multilib support code if we just rebuilt the top-level
14626# Makefile.
14627case " $CONFIG_FILES " in
14628 *" Makefile "*)
14629 ac_file=Makefile . ${multi_basedir}/config-ml.in
14630 ;;
14631esac ;;
1ec601bf
FXC
14632 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14633 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14634 # are listed without --file. Let's play safe and only enable the eval
14635 # if we detect the quoting.
14636 case $CONFIG_FILES in
14637 *\'*) eval set x "$CONFIG_FILES" ;;
14638 *) set x $CONFIG_FILES ;;
14639 esac
14640 shift
14641 for mf
14642 do
14643 # Strip MF so we end up with the name of the file.
14644 mf=`echo "$mf" | sed -e 's/:.*$//'`
14645 # Check whether this is an Automake generated Makefile or not.
14646 # We used to match only the files named `Makefile.in', but
14647 # some people rename them; so instead we look at the file content.
14648 # Grep'ing the first line is not enough: some people post-process
14649 # each Makefile.in and add a new line on top of each file to say so.
14650 # Grep'ing the whole file is not good either: AIX grep has a line
14651 # limit of 2048, but all sed's we know have understand at least 4000.
14652 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14653 dirpart=`$as_dirname -- "$mf" ||
14654$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14655 X"$mf" : 'X\(//\)[^/]' \| \
14656 X"$mf" : 'X\(//\)$' \| \
14657 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14658$as_echo X"$mf" |
14659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14660 s//\1/
14661 q
14662 }
14663 /^X\(\/\/\)[^/].*/{
14664 s//\1/
14665 q
14666 }
14667 /^X\(\/\/\)$/{
14668 s//\1/
14669 q
14670 }
14671 /^X\(\/\).*/{
14672 s//\1/
14673 q
14674 }
14675 s/.*/./; q'`
14676 else
14677 continue
14678 fi
14679 # Extract the definition of DEPDIR, am__include, and am__quote
14680 # from the Makefile without running `make'.
14681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14682 test -z "$DEPDIR" && continue
14683 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14684 test -z "am__include" && continue
14685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14686 # When using ansi2knr, U may be empty or an underscore; expand it
14687 U=`sed -n 's/^U = //p' < "$mf"`
14688 # Find all dependency output files, they are included files with
14689 # $(DEPDIR) in their names. We invoke sed twice because it is the
14690 # simplest approach to changing $(DEPDIR) to its actual value in the
14691 # expansion.
14692 for file in `sed -n "
14693 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14694 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14695 # Make sure the directory exists.
14696 test -f "$dirpart/$file" && continue
14697 fdir=`$as_dirname -- "$file" ||
14698$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699 X"$file" : 'X\(//\)[^/]' \| \
14700 X"$file" : 'X\(//\)$' \| \
14701 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14702$as_echo X"$file" |
14703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\(\/\/\)[^/].*/{
14708 s//\1/
14709 q
14710 }
14711 /^X\(\/\/\)$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\(\/\).*/{
14716 s//\1/
14717 q
14718 }
14719 s/.*/./; q'`
14720 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14721 # echo "creating $dirpart/$file"
14722 echo '# dummy' > "$dirpart/$file"
14723 done
14724 done
14725}
14726 ;;
14727 "libtool":C)
14728
14729 # See if we are running on zsh, and set the options which allow our
14730 # commands through without removal of \ escapes.
14731 if test -n "${ZSH_VERSION+set}" ; then
14732 setopt NO_GLOB_SUBST
14733 fi
14734
14735 cfgfile="${ofile}T"
14736 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14737 $RM "$cfgfile"
14738
14739 cat <<_LT_EOF >> "$cfgfile"
14740#! $SHELL
14741
14742# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14743# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14744# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14745# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14746#
14747# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14748# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14749# Written by Gordon Matzigkeit, 1996
14750#
14751# This file is part of GNU Libtool.
14752#
14753# GNU Libtool is free software; you can redistribute it and/or
14754# modify it under the terms of the GNU General Public License as
14755# published by the Free Software Foundation; either version 2 of
14756# the License, or (at your option) any later version.
14757#
14758# As a special exception to the GNU General Public License,
14759# if you distribute this file as part of a program or library that
14760# is built using GNU Libtool, you may include this file under the
14761# same distribution terms that you use for the rest of that program.
14762#
14763# GNU Libtool is distributed in the hope that it will be useful,
14764# but WITHOUT ANY WARRANTY; without even the implied warranty of
14765# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14766# GNU General Public License for more details.
14767#
14768# You should have received a copy of the GNU General Public License
14769# along with GNU Libtool; see the file COPYING. If not, a copy
14770# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14771# obtained by writing to the Free Software Foundation, Inc.,
14772# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14773
14774
14775# The names of the tagged configurations supported by this script.
14776available_tags=""
14777
14778# ### BEGIN LIBTOOL CONFIG
14779
14780# Which release of libtool.m4 was used?
14781macro_version=$macro_version
14782macro_revision=$macro_revision
14783
14784# Whether or not to build shared libraries.
14785build_libtool_libs=$enable_shared
14786
14787# Whether or not to build static libraries.
14788build_old_libs=$enable_static
14789
14790# What type of objects to build.
14791pic_mode=$pic_mode
14792
14793# Whether or not to optimize for fast installation.
14794fast_install=$enable_fast_install
14795
14796# Shell to use when invoking shell scripts.
14797SHELL=$lt_SHELL
14798
14799# An echo program that protects backslashes.
14800ECHO=$lt_ECHO
14801
14802# The host system.
14803host_alias=$host_alias
14804host=$host
14805host_os=$host_os
14806
14807# The build system.
14808build_alias=$build_alias
14809build=$build
14810build_os=$build_os
14811
14812# A sed program that does not truncate output.
14813SED=$lt_SED
14814
14815# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14816Xsed="\$SED -e 1s/^X//"
14817
14818# A grep program that handles long lines.
14819GREP=$lt_GREP
14820
14821# An ERE matcher.
14822EGREP=$lt_EGREP
14823
14824# A literal string matcher.
14825FGREP=$lt_FGREP
14826
14827# A BSD- or MS-compatible name lister.
14828NM=$lt_NM
14829
14830# Whether we need soft or hard links.
14831LN_S=$lt_LN_S
14832
14833# What is the maximum length of a command?
14834max_cmd_len=$max_cmd_len
14835
14836# Object file suffix (normally "o").
14837objext=$ac_objext
14838
14839# Executable file suffix (normally "").
14840exeext=$exeext
14841
14842# whether the shell understands "unset".
14843lt_unset=$lt_unset
14844
14845# turn spaces into newlines.
14846SP2NL=$lt_lt_SP2NL
14847
14848# turn newlines into spaces.
14849NL2SP=$lt_lt_NL2SP
14850
14851# An object symbol dumper.
14852OBJDUMP=$lt_OBJDUMP
14853
14854# Method to check whether dependent libraries are shared objects.
14855deplibs_check_method=$lt_deplibs_check_method
14856
14857# Command to use when deplibs_check_method == "file_magic".
14858file_magic_cmd=$lt_file_magic_cmd
14859
14860# The archiver.
14861AR=$lt_AR
14862AR_FLAGS=$lt_AR_FLAGS
14863
14864# A symbol stripping program.
14865STRIP=$lt_STRIP
14866
14867# Commands used to install an old-style archive.
14868RANLIB=$lt_RANLIB
14869old_postinstall_cmds=$lt_old_postinstall_cmds
14870old_postuninstall_cmds=$lt_old_postuninstall_cmds
14871
14872# Whether to use a lock for old archive extraction.
14873lock_old_archive_extraction=$lock_old_archive_extraction
14874
14875# A C compiler.
14876LTCC=$lt_CC
14877
14878# LTCC compiler flags.
14879LTCFLAGS=$lt_CFLAGS
14880
14881# Take the output of nm and produce a listing of raw symbols and C names.
14882global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14883
14884# Transform the output of nm in a proper C declaration.
14885global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14886
14887# Transform the output of nm in a C name address pair.
14888global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14889
14890# Transform the output of nm in a C name address pair when lib prefix is needed.
14891global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14892
14893# The name of the directory that contains temporary libtool files.
14894objdir=$objdir
14895
14896# Used to examine libraries when file_magic_cmd begins with "file".
14897MAGIC_CMD=$MAGIC_CMD
14898
14899# Must we lock files when doing compilation?
14900need_locks=$lt_need_locks
14901
14902# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14903DSYMUTIL=$lt_DSYMUTIL
14904
14905# Tool to change global to local symbols on Mac OS X.
14906NMEDIT=$lt_NMEDIT
14907
14908# Tool to manipulate fat objects and archives on Mac OS X.
14909LIPO=$lt_LIPO
14910
14911# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14912OTOOL=$lt_OTOOL
14913
14914# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14915OTOOL64=$lt_OTOOL64
14916
14917# Old archive suffix (normally "a").
14918libext=$libext
14919
14920# Shared library suffix (normally ".so").
14921shrext_cmds=$lt_shrext_cmds
14922
14923# The commands to extract the exported symbol list from a shared archive.
14924extract_expsyms_cmds=$lt_extract_expsyms_cmds
14925
14926# Variables whose values should be saved in libtool wrapper scripts and
14927# restored at link time.
14928variables_saved_for_relink=$lt_variables_saved_for_relink
14929
14930# Do we need the "lib" prefix for modules?
14931need_lib_prefix=$need_lib_prefix
14932
14933# Do we need a version for libraries?
14934need_version=$need_version
14935
14936# Library versioning type.
14937version_type=$version_type
14938
14939# Shared library runtime path variable.
14940runpath_var=$runpath_var
14941
14942# Shared library path variable.
14943shlibpath_var=$shlibpath_var
14944
14945# Is shlibpath searched before the hard-coded library search path?
14946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14947
14948# Format of library name prefix.
14949libname_spec=$lt_libname_spec
14950
14951# List of archive names. First name is the real one, the rest are links.
14952# The last name is the one that the linker finds with -lNAME
14953library_names_spec=$lt_library_names_spec
14954
14955# The coded name of the library, if different from the real name.
14956soname_spec=$lt_soname_spec
14957
14958# Permission mode override for installation of shared libraries.
14959install_override_mode=$lt_install_override_mode
14960
14961# Command to use after installation of a shared archive.
14962postinstall_cmds=$lt_postinstall_cmds
14963
14964# Command to use after uninstallation of a shared archive.
14965postuninstall_cmds=$lt_postuninstall_cmds
14966
14967# Commands used to finish a libtool library installation in a directory.
14968finish_cmds=$lt_finish_cmds
14969
14970# As "finish_cmds", except a single script fragment to be evaled but
14971# not shown.
14972finish_eval=$lt_finish_eval
14973
14974# Whether we should hardcode library paths into libraries.
14975hardcode_into_libs=$hardcode_into_libs
14976
14977# Compile-time system search path for libraries.
14978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14979
14980# Run-time system search path for libraries.
14981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14982
14983# Whether dlopen is supported.
14984dlopen_support=$enable_dlopen
14985
14986# Whether dlopen of programs is supported.
14987dlopen_self=$enable_dlopen_self
14988
14989# Whether dlopen of statically linked programs is supported.
14990dlopen_self_static=$enable_dlopen_self_static
14991
14992# Commands to strip libraries.
14993old_striplib=$lt_old_striplib
14994striplib=$lt_striplib
14995
14996
14997# The linker used to build libraries.
14998LD=$lt_LD
14999
15000# How to create reloadable object files.
15001reload_flag=$lt_reload_flag
15002reload_cmds=$lt_reload_cmds
15003
15004# Commands used to build an old-style archive.
15005old_archive_cmds=$lt_old_archive_cmds
15006
15007# A language specific compiler.
15008CC=$lt_compiler
15009
15010# Is the compiler the GNU compiler?
15011with_gcc=$GCC
15012
15013# Compiler flag to turn off builtin functions.
15014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15015
15016# How to pass a linker flag through the compiler.
15017wl=$lt_lt_prog_compiler_wl
15018
15019# Additional compiler flags for building library objects.
15020pic_flag=$lt_lt_prog_compiler_pic
15021
15022# Compiler flag to prevent dynamic linking.
15023link_static_flag=$lt_lt_prog_compiler_static
15024
15025# Does compiler simultaneously support -c and -o options?
15026compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15027
15028# Whether or not to add -lc for building shared libraries.
15029build_libtool_need_lc=$archive_cmds_need_lc
15030
15031# Whether or not to disallow shared libs when runtime libs are static.
15032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15033
15034# Compiler flag to allow reflexive dlopens.
15035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15036
15037# Compiler flag to generate shared objects directly from archives.
15038whole_archive_flag_spec=$lt_whole_archive_flag_spec
15039
15040# Whether the compiler copes with passing no objects directly.
15041compiler_needs_object=$lt_compiler_needs_object
15042
15043# Create an old-style archive from a shared archive.
15044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15045
15046# Create a temporary old-style archive to link instead of a shared archive.
15047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15048
15049# Commands used to build a shared archive.
15050archive_cmds=$lt_archive_cmds
15051archive_expsym_cmds=$lt_archive_expsym_cmds
15052
15053# Commands used to build a loadable module if different from building
15054# a shared archive.
15055module_cmds=$lt_module_cmds
15056module_expsym_cmds=$lt_module_expsym_cmds
15057
15058# Whether we are building with GNU ld or not.
15059with_gnu_ld=$lt_with_gnu_ld
15060
15061# Flag that allows shared libraries with undefined symbols to be built.
15062allow_undefined_flag=$lt_allow_undefined_flag
15063
15064# Flag that enforces no undefined symbols.
15065no_undefined_flag=$lt_no_undefined_flag
15066
15067# Flag to hardcode \$libdir into a binary during linking.
15068# This must work even if \$libdir does not exist
15069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15070
15071# If ld is used when linking, flag to hardcode \$libdir into a binary
15072# during linking. This must work even if \$libdir does not exist.
15073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15074
15075# Whether we need a single "-rpath" flag with a separated argument.
15076hardcode_libdir_separator=$lt_hardcode_libdir_separator
15077
15078# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15079# DIR into the resulting binary.
15080hardcode_direct=$hardcode_direct
15081
15082# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15083# DIR into the resulting binary and the resulting library dependency is
15084# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15085# library is relocated.
15086hardcode_direct_absolute=$hardcode_direct_absolute
15087
15088# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15089# into the resulting binary.
15090hardcode_minus_L=$hardcode_minus_L
15091
15092# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15093# into the resulting binary.
15094hardcode_shlibpath_var=$hardcode_shlibpath_var
15095
15096# Set to "yes" if building a shared library automatically hardcodes DIR
15097# into the library and all subsequent libraries and executables linked
15098# against it.
15099hardcode_automatic=$hardcode_automatic
15100
15101# Set to yes if linker adds runtime paths of dependent libraries
15102# to runtime path list.
15103inherit_rpath=$inherit_rpath
15104
15105# Whether libtool must link a program against all its dependency libraries.
15106link_all_deplibs=$link_all_deplibs
15107
15108# Fix the shell variable \$srcfile for the compiler.
15109fix_srcfile_path=$lt_fix_srcfile_path
15110
15111# Set to "yes" if exported symbols are required.
15112always_export_symbols=$always_export_symbols
15113
15114# The commands to list exported symbols.
15115export_symbols_cmds=$lt_export_symbols_cmds
15116
15117# Symbols that should not be listed in the preloaded symbols.
15118exclude_expsyms=$lt_exclude_expsyms
15119
15120# Symbols that must always be exported.
15121include_expsyms=$lt_include_expsyms
15122
15123# Commands necessary for linking programs (against libraries) with templates.
15124prelink_cmds=$lt_prelink_cmds
15125
15126# Specify filename containing input files.
15127file_list_spec=$lt_file_list_spec
15128
15129# How to hardcode a shared library path into an executable.
15130hardcode_action=$hardcode_action
15131
15132# ### END LIBTOOL CONFIG
15133
15134_LT_EOF
15135
15136 case $host_os in
15137 aix3*)
15138 cat <<\_LT_EOF >> "$cfgfile"
15139# AIX sometimes has problems with the GCC collect2 program. For some
15140# reason, if we set the COLLECT_NAMES environment variable, the problems
15141# vanish in a puff of smoke.
15142if test "X${COLLECT_NAMES+set}" != Xset; then
15143 COLLECT_NAMES=
15144 export COLLECT_NAMES
15145fi
15146_LT_EOF
15147 ;;
15148 esac
15149
15150
15151ltmain="$ac_aux_dir/ltmain.sh"
15152
15153
15154 # We use sed instead of cat because bash on DJGPP gets confused if
15155 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15156 # text mode, it properly converts lines to CR/LF. This bash problem
15157 # is reportedly fixed, but why not run on old versions too?
15158 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15159 || (rm -f "$cfgfile"; exit 1)
15160
15161 case $xsi_shell in
15162 yes)
15163 cat << \_LT_EOF >> "$cfgfile"
15164
15165# func_dirname file append nondir_replacement
15166# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15167# otherwise set result to NONDIR_REPLACEMENT.
15168func_dirname ()
15169{
15170 case ${1} in
15171 */*) func_dirname_result="${1%/*}${2}" ;;
15172 * ) func_dirname_result="${3}" ;;
15173 esac
15174}
15175
15176# func_basename file
15177func_basename ()
15178{
15179 func_basename_result="${1##*/}"
15180}
15181
15182# func_dirname_and_basename file append nondir_replacement
15183# perform func_basename and func_dirname in a single function
15184# call:
15185# dirname: Compute the dirname of FILE. If nonempty,
15186# add APPEND to the result, otherwise set result
15187# to NONDIR_REPLACEMENT.
15188# value returned in "$func_dirname_result"
15189# basename: Compute filename of FILE.
15190# value retuned in "$func_basename_result"
15191# Implementation must be kept synchronized with func_dirname
15192# and func_basename. For efficiency, we do not delegate to
15193# those functions but instead duplicate the functionality here.
15194func_dirname_and_basename ()
15195{
15196 case ${1} in
15197 */*) func_dirname_result="${1%/*}${2}" ;;
15198 * ) func_dirname_result="${3}" ;;
15199 esac
15200 func_basename_result="${1##*/}"
15201}
15202
15203# func_stripname prefix suffix name
15204# strip PREFIX and SUFFIX off of NAME.
15205# PREFIX and SUFFIX must not contain globbing or regex special
15206# characters, hashes, percent signs, but SUFFIX may contain a leading
15207# dot (in which case that matches only a dot).
15208func_stripname ()
15209{
15210 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15211 # positional parameters, so assign one to ordinary parameter first.
15212 func_stripname_result=${3}
15213 func_stripname_result=${func_stripname_result#"${1}"}
15214 func_stripname_result=${func_stripname_result%"${2}"}
15215}
15216
15217# func_opt_split
15218func_opt_split ()
15219{
15220 func_opt_split_opt=${1%%=*}
15221 func_opt_split_arg=${1#*=}
15222}
15223
15224# func_lo2o object
15225func_lo2o ()
15226{
15227 case ${1} in
15228 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15229 *) func_lo2o_result=${1} ;;
15230 esac
15231}
15232
15233# func_xform libobj-or-source
15234func_xform ()
15235{
15236 func_xform_result=${1%.*}.lo
15237}
15238
15239# func_arith arithmetic-term...
15240func_arith ()
15241{
15242 func_arith_result=$(( $* ))
15243}
15244
15245# func_len string
15246# STRING may not start with a hyphen.
15247func_len ()
15248{
15249 func_len_result=${#1}
15250}
15251
15252_LT_EOF
15253 ;;
15254 *) # Bourne compatible functions.
15255 cat << \_LT_EOF >> "$cfgfile"
15256
15257# func_dirname file append nondir_replacement
15258# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15259# otherwise set result to NONDIR_REPLACEMENT.
15260func_dirname ()
15261{
15262 # Extract subdirectory from the argument.
15263 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15264 if test "X$func_dirname_result" = "X${1}"; then
15265 func_dirname_result="${3}"
15266 else
15267 func_dirname_result="$func_dirname_result${2}"
15268 fi
15269}
15270
15271# func_basename file
15272func_basename ()
15273{
15274 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15275}
15276
15277
15278# func_stripname prefix suffix name
15279# strip PREFIX and SUFFIX off of NAME.
15280# PREFIX and SUFFIX must not contain globbing or regex special
15281# characters, hashes, percent signs, but SUFFIX may contain a leading
15282# dot (in which case that matches only a dot).
15283# func_strip_suffix prefix name
15284func_stripname ()
15285{
15286 case ${2} in
15287 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15288 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15289 esac
15290}
15291
15292# sed scripts:
15293my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15294my_sed_long_arg='1s/^-[^=]*=//'
15295
15296# func_opt_split
15297func_opt_split ()
15298{
15299 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15300 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15301}
15302
15303# func_lo2o object
15304func_lo2o ()
15305{
15306 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15307}
15308
15309# func_xform libobj-or-source
15310func_xform ()
15311{
15312 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15313}
15314
15315# func_arith arithmetic-term...
15316func_arith ()
15317{
15318 func_arith_result=`expr "$@"`
15319}
15320
15321# func_len string
15322# STRING may not start with a hyphen.
15323func_len ()
15324{
15325 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15326}
15327
15328_LT_EOF
15329esac
15330
15331case $lt_shell_append in
15332 yes)
15333 cat << \_LT_EOF >> "$cfgfile"
15334
15335# func_append var value
15336# Append VALUE to the end of shell variable VAR.
15337func_append ()
15338{
15339 eval "$1+=\$2"
15340}
15341_LT_EOF
15342 ;;
15343 *)
15344 cat << \_LT_EOF >> "$cfgfile"
15345
15346# func_append var value
15347# Append VALUE to the end of shell variable VAR.
15348func_append ()
15349{
15350 eval "$1=\$$1\$2"
15351}
15352
15353_LT_EOF
15354 ;;
15355 esac
15356
15357
15358 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15359 || (rm -f "$cfgfile"; exit 1)
15360
15361 mv -f "$cfgfile" "$ofile" ||
15362 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15363 chmod +x "$ofile"
15364
15365 ;;
1ec601bf
FXC
15366
15367 esac
15368done # for ac_tag
15369
15370
15371as_fn_exit 0
15372_ACEOF
15373ac_clean_files=$ac_clean_files_save
15374
15375test $ac_write_fail = 0 ||
15376 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15377
15378
15379# configure is writing to config.log, and then calls config.status.
15380# config.status does its own redirection, appending to config.log.
15381# Unfortunately, on DOS this fails, as config.log is still kept open
15382# by configure, so config.status won't be able to write to it; its
15383# output is simply discarded. So we exec the FD to /dev/null,
15384# effectively closing config.log, so it can be properly (re)opened and
15385# appended to by config.status. When coming back to configure, we
15386# need to make the FD available again.
15387if test "$no_create" != yes; then
15388 ac_cs_success=:
15389 ac_config_status_args=
15390 test "$silent" = yes &&
15391 ac_config_status_args="$ac_config_status_args --quiet"
15392 exec 5>/dev/null
15393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15394 exec 5>>config.log
15395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15396 # would make configure fail if this is the last instruction.
15397 $ac_cs_success || as_fn_exit $?
15398fi
15399if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15401$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15402fi
15403