]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
2013-09-20 Janus Weil <janus@gcc.gnu.org>
[thirdparty/gcc.git] / libquadmath / configure
CommitLineData
87969c8c 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
0c0fb0a6 172test \$(( 1 + 1 )) = 2 || exit 1
87969c8c 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\" \\
0c0fb0a6 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
87969c8c 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
d6580113 604GENINSRC_FALSE
605GENINSRC_TRUE
87969c8c 606BUILD_LIBQUADMATH_FALSE
607BUILD_LIBQUADMATH_TRUE
608LIBQUAD_USE_SYMVER_SUN_FALSE
609LIBQUAD_USE_SYMVER_SUN_TRUE
610LIBQUAD_USE_SYMVER_GNU_FALSE
611LIBQUAD_USE_SYMVER_GNU_TRUE
612LIBQUAD_USE_SYMVER_FALSE
613LIBQUAD_USE_SYMVER_TRUE
614toolexeclibdir
615toolexecdir
616multi_basedir
617MAINT
618MAINTAINER_MODE_FALSE
619MAINTAINER_MODE_TRUE
620enable_static
621enable_shared
8c35d268 622lt_host_flags
87969c8c 623OTOOL64
624OTOOL
625LIPO
626NMEDIT
627DSYMUTIL
628RANLIB
629AR
630OBJDUMP
631LN_S
632NM
633ac_ct_DUMPBIN
634DUMPBIN
635LD
636FGREP
0c0fb0a6 637SED
638LIBTOOL
639REPORT_BUGS_TEXI
640REPORT_BUGS_TO
641BUILD_INFO_FALSE
642BUILD_INFO_TRUE
87969c8c 643EGREP
644GREP
0c0fb0a6 645CPP
87969c8c 646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662am__untar
663am__tar
664AMTAR
665am__leading_dot
666SET_MAKE
667AWK
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671STRIP
672install_sh
673MAKEINFO
674AUTOHEADER
675AUTOMAKE
676AUTOCONF
677ACLOCAL
678VERSION
679PACKAGE
680CYGPATH_W
681am__isrc
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
cb3103a1 685target_noncanonical
87969c8c 686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698target_alias
699host_alias
700build_alias
701LIBS
702ECHO_T
703ECHO_N
704ECHO_C
705DEFS
706mandir
707localedir
708libdir
709psdir
710pdfdir
711dvidir
712htmldir
713infodir
714docdir
715oldincludedir
716includedir
717localstatedir
718sharedstatedir
719sysconfdir
720datadir
721datarootdir
722libexecdir
723sbindir
724bindir
725program_transform_name
726prefix
727exec_prefix
728PACKAGE_URL
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
736ac_subst_files=''
737ac_user_opts='
738enable_option_checking
87969c8c 739enable_version_specific_runtime_libs
0c0fb0a6 740enable_dependency_tracking
95cdaa86 741with_bugurl
87969c8c 742enable_shared
743enable_static
744with_pic
745enable_fast_install
746with_gnu_ld
747enable_libtool_lock
748enable_maintainer_mode
749enable_multilib
bbb514dc 750enable_symvers
d6580113 751enable_generated_files_in_srcdir
87969c8c 752'
753 ac_precious_vars='build_alias
754host_alias
755target_alias
756CC
757CFLAGS
758LDFLAGS
759LIBS
760CPPFLAGS
761CPP'
762
763
764# Initialize some variables set by options.
765ac_init_help=
766ac_init_version=false
767ac_unrecognized_opts=
768ac_unrecognized_sep=
769# The variables have the same names as the options, with
770# dashes changed to underlines.
771cache_file=/dev/null
772exec_prefix=NONE
773no_create=
774no_recursion=
775prefix=NONE
776program_prefix=NONE
777program_suffix=NONE
778program_transform_name=s,x,x,
779silent=
780site=
781srcdir=
782verbose=
783x_includes=NONE
784x_libraries=NONE
785
786# Installation directory options.
787# These are left unexpanded so users can "make install exec_prefix=/foo"
788# and all the variables that are supposed to be based on exec_prefix
789# by default will actually change.
790# Use braces instead of parens because sh, perl, etc. also accept them.
791# (The list follows the same order as the GNU Coding Standards.)
792bindir='${exec_prefix}/bin'
793sbindir='${exec_prefix}/sbin'
794libexecdir='${exec_prefix}/libexec'
795datarootdir='${prefix}/share'
796datadir='${datarootdir}'
797sysconfdir='${prefix}/etc'
798sharedstatedir='${prefix}/com'
799localstatedir='${prefix}/var'
800includedir='${prefix}/include'
801oldincludedir='/usr/include'
802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803infodir='${datarootdir}/info'
804htmldir='${docdir}'
805dvidir='${docdir}'
806pdfdir='${docdir}'
807psdir='${docdir}'
808libdir='${exec_prefix}/lib'
809localedir='${datarootdir}/locale'
810mandir='${datarootdir}/man'
811
812ac_prev=
813ac_dashdash=
814for ac_option
815do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 # Accept the important Cygnus configure options, so we can diagnose typos.
829
830 case $ac_dashdash$ac_option in
831 --)
832 ac_dashdash=yes ;;
833
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
838
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
843
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
850
851 --config-cache | -C)
852 cache_file=config.cache ;;
853
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
858
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
865
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875"enable_$ac_useropt"
876"*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
881
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
886
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
891
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=\$ac_optarg ;;
907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
927
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
932
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
962
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
979
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1000
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1036
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1067
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1077
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1084
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1095
1096 -with-* | --with-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105"with_$ac_useropt"
1106"*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1111
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121"with_$ac_useropt"
1122"*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=no ;;
1127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1145
1146 -*) as_fn_error "unrecognized option: \`$ac_option'
1147Try \`$0 --help' for more information."
1148 ;;
1149
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1156 esac
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1159
1160 *)
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 ;;
1167
1168 esac
1169done
1170
1171if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error "missing argument to $ac_option"
1174fi
1175
1176if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1178 no) ;;
1179 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 esac
1182fi
1183
1184# Check all directory arguments for consistency.
1185for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1189do
1190 eval ac_val=\$$ac_var
1191 # Remove trailing slashes.
1192 case $ac_val in
1193 */ )
1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\$ac_val;;
1196 esac
1197 # Be sure to have absolute directory names.
1198 case $ac_val in
1199 [\\/$]* | ?:[\\/]* ) continue;;
1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 esac
1202 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1203done
1204
1205# There might be people who depend on the old broken behavior: `$host'
1206# used to hold the argument of --host etc.
1207# FIXME: To remove some day.
1208build=$build_alias
1209host=$host_alias
1210target=$target_alias
1211
1212# FIXME: To remove some day.
1213if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used." >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1220 fi
1221fi
1222
1223ac_tool_prefix=
1224test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226test "$silent" = yes && exec 6>/dev/null
1227
1228
1229ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230ac_ls_di=`ls -di .` &&
1231ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error "working directory cannot be determined"
1233test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error "pwd does not report name of working directory"
1235
1236
1237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246$as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
1264 srcdir=$ac_confdir
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 srcdir=..
1267 fi
1268else
1269 ac_srcdir_defaulted=no
1270fi
1271if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274fi
1275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
1295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
1323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 [PREFIX]
1328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356_ACEOF
1357
1358 cat <<\_ACEOF
1359
1360Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364
1365System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 --target=TARGET configure for building compilers for TARGET [HOST]
1369_ACEOF
1370fi
1371
1372if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d6580113 1382 --enable-version-specific-runtime-libs
1383 specify that runtime libraries should be installed
1384 in a compiler-specific directory
0c0fb0a6 1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
87969c8c 1387 --enable-shared[=PKGS] build shared libraries [default=yes]
1388 --enable-static[=PKGS] build static libraries [default=yes]
1389 --enable-fast-install[=PKGS]
1390 optimize for fast installation [default=yes]
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --enable-multilib build many library versions (default)
bbb514dc 1395 --disable-symvers disable symbol versioning for libquadmath
d6580113 1396 --enable-generated-files-in-srcdir
1397 put copies of generated files in source dir intended
1398 for creating source tarballs for users without
1399 texinfo bison or flex
87969c8c 1400
1401Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
95cdaa86 1404 --with-bugurl=URL Direct users to URL to report a bug
87969c8c 1405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408
1409Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CPP C preprocessor
1418
1419Use these variables to override the choices made by `configure' or to help
1420it to find libraries and programs with nonstandard names/locations.
1421
1422Report bugs to the package provider.
1423_ACEOF
1424ac_status=$?
1425fi
1426
1427if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435case "$ac_dir" in
1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437*)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445esac
1446ac_abs_top_builddir=$ac_pwd
1447ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448# for backward compatibility:
1449ac_top_builddir=$ac_top_build_prefix
1450
1451case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464esac
1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480fi
1481
1482test -n "$ac_init_help" && exit $ac_status
1483if $ac_init_version; then
1484 cat <<\_ACEOF
1485GCC Quad-precision Math Library configure 0.1
1486generated by GNU Autoconf 2.64
1487
1488Copyright (C) 2009 Free Software Foundation, Inc.
1489This configure script is free software; the Free Software Foundation
1490gives unlimited permission to copy, distribute and modify it.
1491_ACEOF
1492 exit
1493fi
1494
1495## ------------------------ ##
1496## Autoconf initialization. ##
1497## ------------------------ ##
1498
1499# ac_fn_c_try_compile LINENO
1500# --------------------------
1501# Try to compile conftest.$ac_ext, and return whether this succeeded.
1502ac_fn_c_try_compile ()
1503{
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1534
1535} # ac_fn_c_try_compile
1536
0c0fb0a6 1537# ac_fn_c_try_cpp LINENO
1538# ----------------------
1539# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_cpp ()
87969c8c 1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0c0fb0a6 1543 if { { ac_try="$ac_cpp conftest.$ac_ext"
87969c8c 1544case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
0c0fb0a6 1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
87969c8c 1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0c0fb0a6 1558 test $ac_status = 0; } >/dev/null && {
1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
87969c8c 1560 test ! -s conftest.err
87969c8c 1561 }; then :
1562 ac_retval=0
1563else
1564 $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
0c0fb0a6 1567 ac_retval=1
87969c8c 1568fi
87969c8c 1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1571
0c0fb0a6 1572} # ac_fn_c_try_cpp
87969c8c 1573
0c0fb0a6 1574# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
87969c8c 1575# -------------------------------------------------------
0c0fb0a6 1576# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577# the include files in INCLUDES and setting the cache variable VAR
1578# accordingly.
1579ac_fn_c_check_header_mongrel ()
87969c8c 1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0c0fb0a6 1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
87969c8c 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584$as_echo_n "checking for $2... " >&6; }
1585if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 $as_echo_n "(cached) " >&6
0c0fb0a6 1587fi
1588eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590$as_echo "$ac_res" >&6; }
87969c8c 1591else
0c0fb0a6 1592 # Is the header compilable?
1593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594$as_echo_n "checking $2 usability... " >&6; }
1595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 1596/* end confdefs.h. */
1597$4
1598#include <$2>
1599_ACEOF
1600if ac_fn_c_try_compile "$LINENO"; then :
0c0fb0a6 1601 ac_header_compiler=yes
87969c8c 1602else
0c0fb0a6 1603 ac_header_compiler=no
87969c8c 1604fi
1605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0c0fb0a6 1606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607$as_echo "$ac_header_compiler" >&6; }
87969c8c 1608
0c0fb0a6 1609# Is the header present?
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611$as_echo_n "checking $2 presence... " >&6; }
1612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614#include <$2>
1615_ACEOF
1616if ac_fn_c_try_cpp "$LINENO"; then :
1617 ac_header_preproc=yes
1618else
1619 ac_header_preproc=no
1620fi
1621rm -f conftest.err conftest.$ac_ext
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623$as_echo "$ac_header_preproc" >&6; }
87969c8c 1624
0c0fb0a6 1625# So? What about this header?
1626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627 yes:no: )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ;;
1633 no:yes:* )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1637$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1641$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ;;
87969c8c 1645esac
0c0fb0a6 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
87969c8c 1650else
0c0fb0a6 1651 eval "$3=\$ac_header_compiler"
1652fi
1653eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; }
87969c8c 1656fi
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
87969c8c 1658
0c0fb0a6 1659} # ac_fn_c_check_header_mongrel
87969c8c 1660
1661# ac_fn_c_try_run LINENO
1662# ----------------------
1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664# that executables *can* be run.
1665ac_fn_c_try_run ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1700
1701} # ac_fn_c_try_run
1702
0c0fb0a6 1703# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704# -------------------------------------------------------
1705# Tests whether HEADER exists and can be compiled using the include files in
1706# INCLUDES, setting the cache variable VAR accordingly.
1707ac_fn_c_check_header_compile ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h. */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722else
1723 eval "$3=no"
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732} # ac_fn_c_check_header_compile
1733
1734# ac_fn_c_try_link LINENO
1735# -----------------------
1736# Try to link conftest.$ac_ext, and return whether this succeeded.
1737ac_fn_c_try_link ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769fi
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1777
1778} # ac_fn_c_try_link
1779
87969c8c 1780# ac_fn_c_check_func LINENO FUNC VAR
1781# ----------------------------------
1782# Tests whether FUNC exists, setting the cache variable VAR accordingly
1783ac_fn_c_check_func ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790else
cb3103a1 1791 if test x$gcc_no_link = xyes; then
1792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1793fi
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 1795/* end confdefs.h. */
1796/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798#define $2 innocuous_$2
1799
1800/* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1804
1805#ifdef __STDC__
1806# include <limits.h>
1807#else
1808# include <assert.h>
1809#endif
1810
1811#undef $2
1812
1813/* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816#ifdef __cplusplus
1817extern "C"
1818#endif
1819char $2 ();
1820/* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823#if defined __stub_$2 || defined __stub___$2
1824choke me
1825#endif
1826
1827int
1828main ()
1829{
1830return $2 ();
1831 ;
1832 return 0;
1833}
1834_ACEOF
1835if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837else
1838 eval "$3=no"
1839fi
1840rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1842fi
1843eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848} # ac_fn_c_check_func
0c0fb0a6 1849cat >config.log <<_ACEOF
1850This file contains any messages produced by compilers while
1851running configure, to aid debugging if configure makes a mistake.
bcaa791f 1852
0c0fb0a6 1853It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1854generated by GNU Autoconf 2.64. Invocation command line was
1855
1856 $ $0 $@
1857
1858_ACEOF
1859exec 5>>config.log
87969c8c 1860{
1861cat <<_ASUNAME
1862## --------- ##
1863## Platform. ##
1864## --------- ##
1865
1866hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883_ASUNAME
1884
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 $as_echo "PATH: $as_dir"
1891 done
1892IFS=$as_save_IFS
1893
1894} >&5
1895
1896cat >&5 <<_ACEOF
1897
1898
1899## ----------- ##
1900## Core tests. ##
1901## ----------- ##
1902
1903_ACEOF
1904
1905
1906# Keep a trace of the command line.
1907# Strip out --no-create and --no-recursion so they do not pile up.
1908# Strip out --silent because we don't want to record it for future runs.
1909# Also quote any args containing shell meta-characters.
1910# Make two passes to allow for proper duplicate-argument suppression.
1911ac_configure_args=
1912ac_configure_args0=
1913ac_configure_args1=
1914ac_must_keep_next=false
1915for ac_pass in 1 2
1916do
1917 for ac_arg
1918 do
1919 case $ac_arg in
1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922 | -silent | --silent | --silen | --sile | --sil)
1923 continue ;;
1924 *\'*)
1925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 esac
1927 case $ac_pass in
1928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929 2)
1930 as_fn_append ac_configure_args1 " '$ac_arg'"
1931 if test $ac_must_keep_next = true; then
1932 ac_must_keep_next=false # Got value, back to normal.
1933 else
1934 case $ac_arg in
1935 *=* | --config-cache | -C | -disable-* | --disable-* \
1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938 | -with-* | --with-* | -without-* | --without-* | --x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 esac
1942 ;;
1943 -* ) ac_must_keep_next=true ;;
1944 esac
1945 fi
1946 as_fn_append ac_configure_args " '$ac_arg'"
1947 ;;
1948 esac
1949 done
1950done
1951{ ac_configure_args0=; unset ac_configure_args0;}
1952{ ac_configure_args1=; unset ac_configure_args1;}
1953
1954# When interrupted or exit'd, cleanup temporary files, and complete
1955# config.log. We remove comments because anyway the quotes in there
1956# would cause problems or look ugly.
1957# WARNING: Use '\'' to represent an apostrophe within the trap.
1958# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1961 {
1962 echo
1963
1964 cat <<\_ASBOX
1965## ---------------- ##
1966## Cache variables. ##
1967## ---------------- ##
1968_ASBOX
1969 echo
1970 # The following way of writing the cache mishandles newlines in values,
1971(
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in #(
1975 *${as_nl}*)
1976 case $ac_var in #(
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979 esac
1980 case $ac_var in #(
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1984 esac ;;
1985 esac
1986 done
1987 (set) 2>&1 |
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1990 sed -n \
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993 ;; #(
1994 *)
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ;;
1997 esac |
1998 sort
1999)
2000 echo
2001
2002 cat <<\_ASBOX
2003## ----------------- ##
2004## Output variables. ##
2005## ----------------- ##
2006_ASBOX
2007 echo
2008 for ac_var in $ac_subst_vars
2009 do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 esac
2014 $as_echo "$ac_var='\''$ac_val'\''"
2015 done | sort
2016 echo
2017
2018 if test -n "$ac_subst_files"; then
2019 cat <<\_ASBOX
2020## ------------------- ##
2021## File substitutions. ##
2022## ------------------- ##
2023_ASBOX
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 $as_echo "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 cat <<\_ASBOX
2038## ----------- ##
2039## confdefs.h. ##
2040## ----------- ##
2041_ASBOX
2042 echo
2043 cat confdefs.h
2044 echo
2045 fi
2046 test "$ac_signal" != 0 &&
2047 $as_echo "$as_me: caught signal $ac_signal"
2048 $as_echo "$as_me: exit $exit_status"
2049 } >&5
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052 exit $exit_status
2053' 0
2054for ac_signal in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2056done
2057ac_signal=0
2058
2059# confdefs.h avoids OS command line length limits that DEFS can exceed.
2060rm -f -r conftest* confdefs.h
2061
2062$as_echo "/* confdefs.h */" > confdefs.h
2063
2064# Predefined preprocessor variables.
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_NAME "$PACKAGE_NAME"
2068_ACEOF
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072_ACEOF
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_VERSION "$PACKAGE_VERSION"
2076_ACEOF
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_STRING "$PACKAGE_STRING"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_URL "$PACKAGE_URL"
2088_ACEOF
2089
2090
2091# Let the site file select an alternate cache file if it wants to.
2092# Prefer an explicitly selected file to automatically selected ones.
2093ac_site_file1=NONE
2094ac_site_file2=NONE
2095if test -n "$CONFIG_SITE"; then
2096 ac_site_file1=$CONFIG_SITE
2097elif test "x$prefix" != xNONE; then
2098 ac_site_file1=$prefix/share/config.site
2099 ac_site_file2=$prefix/etc/config.site
2100else
2101 ac_site_file1=$ac_default_prefix/share/config.site
2102 ac_site_file2=$ac_default_prefix/etc/config.site
2103fi
2104for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2105do
2106 test "x$ac_site_file" = xNONE && continue
2107 if test -r "$ac_site_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2109$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2110 sed 's/^/| /' "$ac_site_file" >&5
2111 . "$ac_site_file"
2112 fi
2113done
2114
2115if test -r "$cache_file"; then
2116 # Some versions of bash will fail to source /dev/null (special
2117 # files actually), so we avoid doing that.
2118 if test -f "$cache_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2120$as_echo "$as_me: loading cache $cache_file" >&6;}
2121 case $cache_file in
2122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2123 *) . "./$cache_file";;
2124 esac
2125 fi
2126else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2128$as_echo "$as_me: creating cache $cache_file" >&6;}
2129 >$cache_file
2130fi
2131
2132# Check that the precious variables saved in the cache have kept the same
2133# value.
2134ac_cache_corrupted=false
2135for ac_var in $ac_precious_vars; do
2136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2137 eval ac_new_set=\$ac_env_${ac_var}_set
2138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2139 eval ac_new_val=\$ac_env_${ac_var}_value
2140 case $ac_old_set,$ac_new_set in
2141 set,)
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2143$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2145 ,set)
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2147$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2148 ac_cache_corrupted=: ;;
2149 ,);;
2150 *)
2151 if test "x$ac_old_val" != "x$ac_new_val"; then
2152 # differences in whitespace do not lead to failure.
2153 ac_old_val_w=`echo x $ac_old_val`
2154 ac_new_val_w=`echo x $ac_new_val`
2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2157$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2158 ac_cache_corrupted=:
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2161$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2162 eval $ac_var=\$ac_old_val
2163 fi
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2165$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2167$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2168 fi;;
2169 esac
2170 # Pass precious variables to config.status.
2171 if test "$ac_new_set" = set; then
2172 case $ac_new_val in
2173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 *) ac_arg=$ac_var=$ac_new_val ;;
2175 esac
2176 case " $ac_configure_args " in
2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2179 esac
2180 fi
2181done
2182if $ac_cache_corrupted; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2186$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2187 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2188fi
2189## -------------------- ##
2190## Main body of script. ##
2191## -------------------- ##
2192
2193ac_ext=c
2194ac_cpp='$CPP $CPPFLAGS'
2195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198
2199
2200
2201
2202
2203ac_config_headers="$ac_config_headers config.h"
2204
2205
2206# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2207#
2208# You will slowly go insane if you do not grok the following fact: when
2209# building this library, the top-level /target/ becomes the library's /host/.
2210#
2211# configure then causes --target to default to --host, exactly like any
2212# other package using autoconf. Therefore, 'target' and 'host' will
2213# always be the same. This makes sense both for native and cross compilers
2214# just think about it for a little while. :-)
2215#
2216# Also, if this library is being configured as part of a cross compiler, the
2217# top-level configure script will pass the "real" host as $with_cross_host.
2218#
2219# Do not delete or change the following two lines. For why, see
2220# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2221ac_aux_dir=
2222for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2223 for ac_t in install-sh install.sh shtool; do
2224 if test -f "$ac_dir/$ac_t"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/$ac_t -c"
2227 break 2
2228 fi
2229 done
2230done
2231if test -z "$ac_aux_dir"; then
2232 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2233fi
2234
2235# These three variables are undocumented and unsupported,
2236# and are intended to be withdrawn in a future Autoconf release.
2237# They can cause serious problems if a builder's source tree is in a directory
2238# whose full name contains unusual characters.
2239ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2240ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2241ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242
2243
2244# Make sure we can run config.sub.
2245$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2246 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2247
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2249$as_echo_n "checking build system type... " >&6; }
2250if test "${ac_cv_build+set}" = set; then :
2251 $as_echo_n "(cached) " >&6
2252else
2253 ac_build_alias=$build_alias
2254test "x$ac_build_alias" = x &&
2255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2256test "x$ac_build_alias" = x &&
2257 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2258ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2259 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2260
2261fi
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2263$as_echo "$ac_cv_build" >&6; }
2264case $ac_cv_build in
2265*-*-*) ;;
2266*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2267esac
2268build=$ac_cv_build
2269ac_save_IFS=$IFS; IFS='-'
2270set x $ac_cv_build
2271shift
2272build_cpu=$1
2273build_vendor=$2
2274shift; shift
2275# Remember, the first character of IFS is used to create $*,
2276# except with old shells:
2277build_os=$*
2278IFS=$ac_save_IFS
2279case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280
2281
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283$as_echo_n "checking host system type... " >&6; }
2284if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286else
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292fi
2293
2294fi
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296$as_echo "$ac_cv_host" >&6; }
2297case $ac_cv_host in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300esac
2301host=$ac_cv_host
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_host
2304shift
2305host_cpu=$1
2306host_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310host_os=$*
2311IFS=$ac_save_IFS
2312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2313
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316$as_echo_n "checking target system type... " >&6; }
2317if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319else
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325fi
2326
2327fi
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329$as_echo "$ac_cv_target" >&6; }
2330case $ac_cv_target in
2331*-*-*) ;;
2332*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333esac
2334target=$ac_cv_target
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_target
2337shift
2338target_cpu=$1
2339target_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343target_os=$*
2344IFS=$ac_save_IFS
2345case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2346
2347
2348# The aliases save the names the user supplied, while $host etc.
2349# will get canonicalized.
2350test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
2354
cb3103a1 2355 case ${build_alias} in
2356 "") build_noncanonical=${build} ;;
2357 *) build_noncanonical=${build_alias} ;;
2358esac
2359
2360 case ${host_alias} in
2361 "") host_noncanonical=${build_noncanonical} ;;
2362 *) host_noncanonical=${host_alias} ;;
2363esac
2364
2365 case ${target_alias} in
2366 "") target_noncanonical=${host_noncanonical} ;;
2367 *) target_noncanonical=${target_alias} ;;
2368esac
2369
2370
2371
2372
87969c8c 2373target_alias=${target_alias-$host_alias}
2374
cb3103a1 2375
87969c8c 2376am__api_version='1.11'
2377
2378# Find a good install program. We prefer a C program (faster),
2379# so one script is as good as another. But avoid the broken or
2380# incompatible versions:
2381# SysV /etc/install, /usr/sbin/install
2382# SunOS /usr/etc/install
2383# IRIX /sbin/install
2384# AIX /bin/install
2385# AmigaOS /C/install, which installs bootblocks on floppy discs
2386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389# OS/2's system install, which has a completely different semantic
2390# ./install, which can be erroneously created by make from ./install.sh.
2391# Reject install programs that cannot install multiple files.
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393$as_echo_n "checking for a BSD-compatible install... " >&6; }
2394if test -z "$INSTALL"; then
2395if test "${ac_cv_path_install+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
2397else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 # Account for people who put trailing slashes in PATH elements.
2404case $as_dir/ in #((
2405 ./ | .// | /[cC]/* | \
2406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408 /usr/ucb/* ) ;;
2409 *)
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2412 # by default.
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2419 :
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2423 :
2424 else
2425 rm -rf conftest.one conftest.two conftest.dir
2426 echo one > conftest.one
2427 echo two > conftest.two
2428 mkdir conftest.dir
2429 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430 test -s conftest.one && test -s conftest.two &&
2431 test -s conftest.dir/conftest.one &&
2432 test -s conftest.dir/conftest.two
2433 then
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2436 fi
2437 fi
2438 fi
2439 done
2440 done
2441 ;;
2442esac
2443
2444 done
2445IFS=$as_save_IFS
2446
2447rm -rf conftest.one conftest.two conftest.dir
2448
2449fi
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2452 else
2453 # As a last resort, use the slow shell script. Don't cache a
2454 # value for INSTALL within a source directory, because that will
2455 # break other packages using the cache if that directory is
2456 # removed, or if the value is a relative name.
2457 INSTALL=$ac_install_sh
2458 fi
2459fi
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461$as_echo "$INSTALL" >&6; }
2462
2463# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464# It thinks the first close brace ends the variable substitution.
2465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472$as_echo_n "checking whether build environment is sane... " >&6; }
2473# Just in case
2474sleep 1
2475echo timestamp > conftest.file
2476# Reject unsafe characters in $srcdir or the absolute working directory
2477# name. Accept space and tab only in the latter.
2478am_lf='
2479'
2480case `pwd` in
2481 *[\\\"\#\$\&\'\`$am_lf]*)
2482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2483esac
2484case $srcdir in
2485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487esac
2488
2489# Do `set' in a subshell so we don't clobber the current shell's
2490# arguments. Must try -L first in case configure is actually a
2491# symlink; some systems play weird games with the mod time of symlinks
2492# (eg FreeBSD returns the mod time of the symlink's containing
2493# directory).
2494if (
2495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496 if test "$*" = "X"; then
2497 # -L didn't work.
2498 set X `ls -t "$srcdir/configure" conftest.file`
2499 fi
2500 rm -f conftest.file
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
2508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2509alias in your environment" "$LINENO" 5
2510 fi
2511
2512 test "$2" = conftest.file
2513 )
2514then
2515 # Ok.
2516 :
2517else
2518 as_fn_error "newly created file is older than distributed files!
2519Check your system clock" "$LINENO" 5
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522$as_echo "yes" >&6; }
2523test "$program_prefix" != NONE &&
2524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525# Use a double $ so make ignores it.
2526test "$program_suffix" != NONE &&
2527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528# Double any \ or $.
2529# By default was `s,x,x', remove it if useless.
2530ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532
2533# expand $ac_aux_dir to an absolute path
2534am_aux_dir=`cd $ac_aux_dir && pwd`
2535
2536if test x"${MISSING+set}" != xset; then
2537 case $am_aux_dir in
2538 *\ * | *\ *)
2539 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540 *)
2541 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2542 esac
2543fi
2544# Use eval to expand $SHELL
2545if eval "$MISSING --run true"; then
2546 am_missing_run="$MISSING --run "
2547else
2548 am_missing_run=
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2550$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551fi
2552
2553if test x"${install_sh}" != xset; then
2554 case $am_aux_dir in
2555 *\ * | *\ *)
2556 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557 *)
2558 install_sh="\${SHELL} $am_aux_dir/install-sh"
2559 esac
2560fi
2561
2562# Installed binaries are usually stripped using `strip' when the user
2563# run `make install-strip'. However `strip' might not be the right
2564# tool to use in cross-compilation environments, therefore Automake
2565# will honor the `STRIP' environment variable to overrule this program.
2566if test "$cross_compiling" != no; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}strip; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if test "${ac_cv_prog_STRIP+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 if test -n "$STRIP"; then
2576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590 done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595STRIP=$ac_cv_prog_STRIP
2596if test -n "$STRIP"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2598$as_echo "$STRIP" >&6; }
2599else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605fi
2606if test -z "$ac_cv_prog_STRIP"; then
2607 ac_ct_STRIP=$STRIP
2608 # Extract the first word of "strip", so it can be a program name with args.
2609set dummy strip; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614else
2615 if test -n "$ac_ct_STRIP"; then
2616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_STRIP="strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630 done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2636if test -n "$ac_ct_STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2638$as_echo "$ac_ct_STRIP" >&6; }
2639else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644 if test "x$ac_ct_STRIP" = x; then
2645 STRIP=":"
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648yes:)
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651ac_tool_warned=yes ;;
2652esac
2653 STRIP=$ac_ct_STRIP
2654 fi
2655else
2656 STRIP="$ac_cv_prog_STRIP"
2657fi
2658
2659fi
2660INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2663$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2664if test -z "$MKDIR_P"; then
2665 if test "${ac_cv_path_mkdir+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_prog in mkdir gmkdir; do
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2676 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2677 'mkdir (GNU coreutils) '* | \
2678 'mkdir (coreutils) '* | \
2679 'mkdir (fileutils) '4.1*)
2680 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2681 break 3;;
2682 esac
2683 done
2684 done
2685 done
2686IFS=$as_save_IFS
2687
2688fi
2689
2690 if test "${ac_cv_path_mkdir+set}" = set; then
2691 MKDIR_P="$ac_cv_path_mkdir -p"
2692 else
2693 # As a last resort, use the slow shell script. Don't cache a
2694 # value for MKDIR_P within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the value is a relative name.
2697 test -d ./--version && rmdir ./--version
2698 MKDIR_P="$ac_install_sh -d"
2699 fi
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2702$as_echo "$MKDIR_P" >&6; }
2703
2704mkdir_p="$MKDIR_P"
2705case $mkdir_p in
2706 [\\/$]* | ?:[\\/]*) ;;
2707 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2708esac
2709
2710for ac_prog in gawk mawk nawk awk
2711do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713set dummy $ac_prog; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if test "${ac_cv_prog_AWK+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734 done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739AWK=$ac_cv_prog_AWK
2740if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742$as_echo "$AWK" >&6; }
2743else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749 test -n "$AWK" && break
2750done
2751
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2754set x ${MAKE-make}
2755ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2758else
2759 cat >conftest.make <<\_ACEOF
2760SHELL = /bin/sh
2761all:
2762 @echo '@@@%%%=$(MAKE)=@@@%%%'
2763_ACEOF
2764# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2765case `${MAKE-make} -f conftest.make 2>/dev/null` in
2766 *@@@%%%=?*=@@@%%%*)
2767 eval ac_cv_prog_make_${ac_make}_set=yes;;
2768 *)
2769 eval ac_cv_prog_make_${ac_make}_set=no;;
2770esac
2771rm -f conftest.make
2772fi
2773if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775$as_echo "yes" >&6; }
2776 SET_MAKE=
2777else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780 SET_MAKE="MAKE=${MAKE-make}"
2781fi
2782
2783rm -rf .tst 2>/dev/null
2784mkdir .tst 2>/dev/null
2785if test -d .tst; then
2786 am__leading_dot=.
2787else
2788 am__leading_dot=_
2789fi
2790rmdir .tst 2>/dev/null
2791
2792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794 # is not polluted with repeated "-I."
2795 am__isrc=' -I$(srcdir)'
2796 # test to see if srcdir already configured
2797 if test -f $srcdir/config.status; then
2798 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799 fi
2800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804 if (cygpath --version) >/dev/null 2>/dev/null; then
2805 CYGPATH_W='cygpath -w'
2806 else
2807 CYGPATH_W=echo
2808 fi
2809fi
2810
2811
2812# Define the identity of the package.
2813 PACKAGE='libquadmath'
2814 VERSION='0.1'
2815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842# We need awk for the "check" target. The system "awk" is bad on
2843# some platforms.
2844# Always define AMTAR for backward compatibility.
2845
2846AMTAR=${AMTAR-"${am_missing_run}tar"}
2847
2848am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2849
2850
2851
2852
2853
2854
cb3103a1 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2856$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2857# Check whether --enable-version-specific-runtime-libs was given.
2858if test "${enable_version_specific_runtime_libs+set}" = set; then :
2859 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2860 yes) version_specific_libs=yes ;;
2861 no) version_specific_libs=no ;;
2862 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2863 esac
2864else
2865 version_specific_libs=no
2866fi
2867
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2869$as_echo "$version_specific_libs" >&6; }
2870
2871
2872
0c0fb0a6 2873DEPDIR="${am__leading_dot}deps"
d6580113 2874
0c0fb0a6 2875ac_config_commands="$ac_config_commands depfiles"
2876
2877
2878am_make=${MAKE-make}
2879cat > confinc << 'END'
2880am__doit:
2881 @echo this is the am__doit target
2882.PHONY: am__doit
2883END
2884# If we don't find an include directive, just comment out the code.
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2886$as_echo_n "checking for style of include used by $am_make... " >&6; }
2887am__include="#"
2888am__quote=
2889_am_result=none
2890# First try GNU make style include.
2891echo "include confinc" > confmf
2892# Ignore all kinds of additional output from `make'.
2893case `$am_make -s -f confmf 2> /dev/null` in #(
2894*the\ am__doit\ target*)
2895 am__include=include
2896 am__quote=
2897 _am_result=GNU
2898 ;;
2899esac
2900# Now try BSD make style include.
2901if test "$am__include" = "#"; then
2902 echo '.include "confinc"' > confmf
2903 case `$am_make -s -f confmf 2> /dev/null` in #(
2904 *the\ am__doit\ target*)
2905 am__include=.include
2906 am__quote="\""
2907 _am_result=BSD
2908 ;;
2909 esac
2910fi
2911
2912
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2914$as_echo "$_am_result" >&6; }
2915rm -f confinc confmf
2916
2917# Check whether --enable-dependency-tracking was given.
2918if test "${enable_dependency_tracking+set}" = set; then :
2919 enableval=$enable_dependency_tracking;
2920fi
2921
2922if test "x$enable_dependency_tracking" != xno; then
2923 am_depcomp="$ac_aux_dir/depcomp"
2924 AMDEPBACKSLASH='\'
2925fi
2926 if test "x$enable_dependency_tracking" != xno; then
2927 AMDEP_TRUE=
2928 AMDEP_FALSE='#'
2929else
2930 AMDEP_TRUE='#'
2931 AMDEP_FALSE=
2932fi
2933
2934
2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}gcc; ac_word=$2
d6580113 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 2945if test "${ac_cv_prog_CC+set}" = set; then :
d6580113 2946 $as_echo_n "(cached) " >&6
2947else
0c0fb0a6 2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
d6580113 2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 2958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
d6580113 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
0c0fb0a6 2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
d6580113 2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
0c0fb0a6 2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982set dummy gcc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d6580113 2986 $as_echo_n "(cached) " >&6
2987else
0c0fb0a6 2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003 done
3004IFS=$as_save_IFS
d6580113 3005
3006fi
0c0fb0a6 3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017 if test "x$ac_ct_CC" = x; then
3018 CC=""
d6580113 3019 else
0c0fb0a6 3020 case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026 CC=$ac_ct_CC
d6580113 3027 fi
d6580113 3028else
0c0fb0a6 3029 CC="$ac_cv_prog_CC"
d6580113 3030fi
3031
0c0fb0a6 3032if test -z "$CC"; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}cc; ac_word=$2
87969c8c 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if test "${ac_cv_prog_CC+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3051 ac_cv_prog_CC="${ac_tool_prefix}cc"
87969c8c 3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055done
3056 done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
0c0fb0a6 3071 fi
87969c8c 3072fi
0c0fb0a6 3073if test -z "$CC"; then
3074 # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
87969c8c 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 3078if test "${ac_cv_prog_CC+set}" = set; then :
87969c8c 3079 $as_echo_n "(cached) " >&6
3080else
0c0fb0a6 3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
87969c8c 3083else
0c0fb0a6 3084 ac_prog_rejected=no
87969c8c 3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093 ac_prog_rejected=yes
3094 continue
3095 fi
3096 ac_cv_prog_CC="cc"
87969c8c 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101 done
3102IFS=$as_save_IFS
3103
0c0fb0a6 3104if test $ac_prog_rejected = yes; then
3105 # We found a bogon in the path, so make sure we never use it.
3106 set dummy $ac_cv_prog_CC
3107 shift
3108 if test $# != 0; then
3109 # We chose a different compiler from the bogus one.
3110 # However, it has the same basename, so the bogon will be chosen
3111 # first if we set CC to just the basename; use the full file name.
3112 shift
3113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 fi
87969c8c 3115fi
3116fi
0c0fb0a6 3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
87969c8c 3122else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
87969c8c 3127
0c0fb0a6 3128fi
87969c8c 3129if test -z "$CC"; then
0c0fb0a6 3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in cl.exe
3132 do
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
87969c8c 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if test "${ac_cv_prog_CC+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
87969c8c 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154done
3155 done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170 test -n "$CC" && break
3171 done
3172fi
3173if test -z "$CC"; then
3174 ac_ct_CC=$CC
3175 for ac_prog in cl.exe
3176do
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198done
3199 done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207$as_echo "$ac_ct_CC" >&6; }
3208else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214 test -n "$ac_ct_CC" && break
3215done
3216
3217 if test "x$ac_ct_CC" = x; then
3218 CC=""
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226 CC=$ac_ct_CC
3227 fi
3228fi
3229
3230fi
3231
3232
3233test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error "no acceptable C compiler found in \$PATH
3236See \`config.log' for more details." "$LINENO" 5; }
3237
3238# Provide some information about the compiler.
3239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240set X $ac_compile
3241ac_compiler=$2
3242for ac_option in --version -v -V -qversion; do
3243 { { ac_try="$ac_compiler $ac_option >&5"
3244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251 ac_status=$?
3252 if test -s conftest.err; then
3253 sed '10a\
3254... rest of stderr output deleted ...
3255 10q' conftest.err >conftest.er1
3256 cat conftest.er1 >&5
3257 rm -f conftest.er1 conftest.err
3258 fi
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261done
3262
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h. */
3265
cb3103a1 3266int
3267main ()
3268{
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274# FIXME: Cleanup?
3275if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3276 (eval $ac_link) 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 gcc_no_link=no
3281else
3282 gcc_no_link=yes
3283fi
3284if test x$gcc_no_link = xyes; then
3285 # Setting cross_compile will disable run tests; it will
3286 # also disable AC_CHECK_FILE but that's generally
3287 # correct if we can't link.
3288 cross_compiling=yes
3289 EXEEXT=
3290else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h. */
3293
87969c8c 3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302ac_clean_files_save=$ac_clean_files
3303ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3304# Try to create an executable without -o first, disregard a.out.
3305# It will help us diagnose broken compilers, and finding out an intuition
3306# of exeext.
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3308$as_echo_n "checking for C compiler default output file name... " >&6; }
3309ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310
3311# The possible output files:
3312ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313
3314ac_rmfiles=
3315for ac_file in $ac_files
3316do
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3320 esac
3321done
3322rm -f $ac_rmfiles
3323
3324if { { ac_try="$ac_link_default"
3325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link_default") 2>&5
3332 ac_status=$?
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3336# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3337# in a Makefile. We should not override ac_cv_exeext if it was cached,
3338# so that the user can short-circuit this test for compilers unknown to
3339# Autoconf.
3340for ac_file in $ac_files ''
3341do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 ;;
3346 [ab].out )
3347 # We found the default executable, but exeext='' is most
3348 # certainly right.
3349 break;;
3350 *.* )
3351 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3352 then :; else
3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 fi
3355 # We set ac_cv_exeext here because the later test for it is not
3356 # safe: cross compilers may not add the suffix if given an `-o'
3357 # argument, so we may need to know it at that point already.
3358 # Even if this section looks crufty: it has the advantage of
3359 # actually working.
3360 break;;
3361 * )
3362 break;;
3363 esac
3364done
3365test "$ac_cv_exeext" = no && ac_cv_exeext=
3366
3367else
3368 ac_file=''
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371$as_echo "$ac_file" >&6; }
3372if test -z "$ac_file"; then :
3373 $as_echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378{ as_fn_set_status 77
3379as_fn_error "C compiler cannot create executables
3380See \`config.log' for more details." "$LINENO" 5; }; }
3381fi
3382ac_exeext=$ac_cv_exeext
3383
3384# Check that the compiler produces executables we can run. If not, either
3385# the compiler is broken, or we cross compile.
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387$as_echo_n "checking whether the C compiler works... " >&6; }
3388# If not cross compiling, check that we can run a simple program.
3389if test "$cross_compiling" != yes; then
3390 if { ac_try='./$ac_file'
3391 { { case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; }; then
3401 cross_compiling=no
3402 else
3403 if test "$cross_compiling" = maybe; then
3404 cross_compiling=yes
3405 else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error "cannot run C compiled programs.
3409If you meant to cross compile, use \`--host'.
3410See \`config.log' for more details." "$LINENO" 5; }
3411 fi
3412 fi
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415$as_echo "yes" >&6; }
3416
3417rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3418ac_clean_files=$ac_clean_files_save
3419# Check that the compiler produces executables we can run. If not, either
3420# the compiler is broken, or we cross compile.
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3422$as_echo_n "checking whether we are cross compiling... " >&6; }
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424$as_echo "$cross_compiling" >&6; }
3425
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3427$as_echo_n "checking for suffix of executables... " >&6; }
3428if { { ac_try="$ac_link"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3441# work properly (i.e., refer to `conftest.exe'), while it won't with
3442# `rm'.
3443for ac_file in conftest.exe conftest conftest.*; do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 break;;
3449 * ) break;;
3450 esac
3451done
3452else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455as_fn_error "cannot compute suffix of executables: cannot compile and link
3456See \`config.log' for more details." "$LINENO" 5; }
3457fi
3458rm -f conftest$ac_cv_exeext
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3460$as_echo "$ac_cv_exeext" >&6; }
3461
3462rm -f conftest.$ac_ext
3463EXEEXT=$ac_cv_exeext
3464ac_exeext=$EXEEXT
cb3103a1 3465fi
87969c8c 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467$as_echo_n "checking for suffix of object files... " >&6; }
3468if test "${ac_cv_objext+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482rm -f conftest.o conftest.obj
3483if { { ac_try="$ac_compile"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501done
3502else
3503 $as_echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error "cannot compute suffix of object files: cannot compile
3509See \`config.log' for more details." "$LINENO" 5; }
3510fi
3511rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512fi
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514$as_echo "$ac_cv_objext" >&6; }
3515OBJEXT=$ac_cv_objext
3516ac_objext=$OBJEXT
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528#ifndef __GNUC__
3529 choke me
3530#endif
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538else
3539 ac_compiler_gnu=no
3540fi
3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549else
3550 GCC=
3551fi
3552ac_test_CFLAGS=${CFLAGS+set}
3553ac_save_CFLAGS=$CFLAGS
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555$as_echo_n "checking whether $CC accepts -g... " >&6; }
3556if test "${ac_cv_prog_cc_g+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h. */
3565
3566int
3567main ()
3568{
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h. */
3580
3581int
3582main ()
3583{
3584
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590
3591else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596
3597int
3598main ()
3599{
3600
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616$as_echo "$ac_cv_prog_cc_g" >&6; }
3617if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634if test "${ac_cv_prog_cc_c89+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 ac_cv_prog_cc_c89=no
3638ac_save_CC=$CC
3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h. */
3641#include <stdarg.h>
3642#include <stdio.h>
3643#include <sys/types.h>
3644#include <sys/stat.h>
3645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3646struct buf { int x; };
3647FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648static char *e (p, i)
3649 char **p;
3650 int i;
3651{
3652 return p[i];
3653}
3654static char *f (char * (*g) (char **, int), char **p, ...)
3655{
3656 char *s;
3657 va_list v;
3658 va_start (v,p);
3659 s = g (p, va_arg (v,int));
3660 va_end (v);
3661 return s;
3662}
3663
3664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3665 function prototypes and stuff, but not '\xHH' hex character constants.
3666 These don't provoke an error unfortunately, instead are silently treated
3667 as 'x'. The following induces an error, until -std is added to get
3668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3669 array size at least. It's necessary to write '\x00'==0 to get something
3670 that's true only with -std. */
3671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672
3673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674 inside strings and character constants. */
3675#define FOO(x) 'x'
3676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677
3678int test (int i, double x);
3679struct s1 {int (*f) (int a);};
3680struct s2 {int (*f) (double a);};
3681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682int argc;
3683char **argv;
3684int
3685main ()
3686{
3687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694do
3695 CC="$ac_save_CC $ac_arg"
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_prog_cc_c89=$ac_arg
3698fi
3699rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701done
3702rm -f conftest.$ac_ext
3703CC=$ac_save_CC
3704
3705fi
3706# AC_CACHE_VAL
3707case "x$ac_cv_prog_cc_c89" in
3708 x)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710$as_echo "none needed" >&6; } ;;
3711 xno)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3713$as_echo "unsupported" >&6; } ;;
3714 *)
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3718esac
3719if test "x$ac_cv_prog_cc_c89" != xno; then :
3720
3721fi
3722
3723ac_ext=c
3724ac_cpp='$CPP $CPPFLAGS'
3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_c_compiler_gnu
87969c8c 3728
cb3103a1 3729depcc="$CC" am_compiler_list=
87969c8c 3730
cb3103a1 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3732$as_echo_n "checking dependency style of $depcc... " >&6; }
3733if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735else
3736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3737 # We make a subdir and do the tests there. Otherwise we can end up
3738 # making bogus files that we don't know about and never remove. For
3739 # instance it was reported that on HP-UX the gcc test will end up
3740 # making a dummy file named `D' -- because `-MD' means `put the output
3741 # in D'.
3742 mkdir conftest.dir
3743 # Copy depcomp to subdir because otherwise we won't find it if we're
3744 # using a relative directory.
3745 cp "$am_depcomp" conftest.dir
3746 cd conftest.dir
3747 # We will build objects and dependencies in a subdirectory because
3748 # it helps to detect inapplicable dependency modes. For instance
3749 # both Tru64's cc and ICC support -MD to output dependencies as a
3750 # side effect of compilation, but ICC will put the dependencies in
3751 # the current directory while Tru64 will put them in the object
3752 # directory.
3753 mkdir sub
87969c8c 3754
3755 am_cv_CC_dependencies_compiler_type=none
3756 if test "$am_compiler_list" = ""; then
3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3758 fi
3759 am__universal=false
3760 case " $depcc " in #(
3761 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3762 esac
3763
3764 for depmode in $am_compiler_list; do
3765 # Setup a source with many dependencies, because some compilers
3766 # like to wrap large dependency lists on column 80 (with \), and
3767 # we should not choose a depcomp mode which is confused by this.
3768 #
3769 # We need to recreate these files for each test, as the compiler may
3770 # overwrite some of them when testing with obscure command lines.
3771 # This happens at least with the AIX C compiler.
3772 : > sub/conftest.c
3773 for i in 1 2 3 4 5 6; do
3774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3776 # Solaris 8's {/usr,}/bin/sh.
3777 touch sub/conftst$i.h
3778 done
3779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3780
3781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782 # mode. It turns out that the SunPro C++ compiler does not properly
3783 # handle `-M -o', and we need to detect this. Also, some Intel
3784 # versions had trouble with output in subdirs
3785 am__obj=sub/conftest.${OBJEXT-o}
3786 am__minus_obj="-o $am__obj"
3787 case $depmode in
3788 gcc)
3789 # This depmode causes a compiler race in universal mode.
3790 test "$am__universal" = false || continue
3791 ;;
3792 nosideeffect)
3793 # after this tag, mechanisms are not by side-effect, so they'll
3794 # only be used when explicitly requested
3795 if test "x$enable_dependency_tracking" = xyes; then
3796 continue
3797 else
3798 break
3799 fi
3800 ;;
3801 msvisualcpp | msvcmsys)
3802 # This compiler won't grok `-c -o', but also, the minuso test has
3803 # not run yet. These depmodes are late enough in the game, and
3804 # so weak that their functioning should not be impacted.
3805 am__obj=conftest.${OBJEXT-o}
3806 am__minus_obj=
3807 ;;
3808 none) break ;;
3809 esac
3810 if depmode=$depmode \
3811 source=sub/conftest.c object=$am__obj \
3812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3813 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3814 >/dev/null 2>conftest.err &&
3815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3817 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3819 # icc doesn't choke on unknown options, it will just issue warnings
3820 # or remarks (even with -Werror). So we grep stderr for any message
3821 # that says an option was ignored or not supported.
3822 # When given -MP, icc 7.0 and 7.1 complain thusly:
3823 # icc: Command line warning: ignoring option '-M'; no argument required
3824 # The diagnosis changed in icc 8.0:
3825 # icc: Command line remark: option '-MP' not supported
3826 if (grep 'ignoring option' conftest.err ||
3827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3828 am_cv_CC_dependencies_compiler_type=$depmode
3829 break
3830 fi
3831 fi
3832 done
3833
3834 cd ..
3835 rm -rf conftest.dir
3836else
3837 am_cv_CC_dependencies_compiler_type=none
3838fi
3839
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3842$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3843CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3844
3845 if
3846 test "x$enable_dependency_tracking" != xno \
3847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3848 am__fastdepCC_TRUE=
3849 am__fastdepCC_FALSE='#'
3850else
3851 am__fastdepCC_TRUE='#'
3852 am__fastdepCC_FALSE=
3853fi
3854
3855
0c0fb0a6 3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3863$as_echo_n "checking how to run the C preprocessor... " >&6; }
3864# On Suns, sometimes $CPP names a directory.
3865if test -n "$CPP" && test -d "$CPP"; then
3866 CPP=
3867fi
3868if test -z "$CPP"; then
3869 if test "${ac_cv_prog_CPP+set}" = set; then :
87969c8c 3870 $as_echo_n "(cached) " >&6
3871else
0c0fb0a6 3872 # Double quotes because CPP needs to be expanded
3873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3874 do
3875 ac_preproc_ok=false
3876for ac_c_preproc_warn_flag in '' yes
cb3103a1 3877do
0c0fb0a6 3878 # Use a header file that comes with gcc, so configuring glibc
3879 # with a fresh cross-compiler works.
3880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 # <limits.h> exists even on freestanding compilers.
3882 # On the NeXT, cc -E runs the code through the compiler's parser,
3883 # not just through cpp. "Syntax error" is here to catch this case.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h. */
3886#ifdef __STDC__
3887# include <limits.h>
3888#else
3889# include <assert.h>
3890#endif
3891 Syntax error
3892_ACEOF
3893if ac_fn_c_try_cpp "$LINENO"; then :
cb3103a1 3894
87969c8c 3895else
0c0fb0a6 3896 # Broken: fails on valid input.
3897continue
87969c8c 3898fi
0c0fb0a6 3899rm -f conftest.err conftest.$ac_ext
87969c8c 3900
0c0fb0a6 3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h. */
3905#include <ac_nonexistent.h>
3906_ACEOF
3907if ac_fn_c_try_cpp "$LINENO"; then :
3908 # Broken: success on invalid input.
3909continue
3910else
3911 # Passes both tests.
3912ac_preproc_ok=:
3913break
87969c8c 3914fi
0c0fb0a6 3915rm -f conftest.err conftest.$ac_ext
87969c8c 3916
0c0fb0a6 3917done
3918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3919rm -f conftest.err conftest.$ac_ext
3920if $ac_preproc_ok; then :
3921 break
3922fi
87969c8c 3923
0c0fb0a6 3924 done
3925 ac_cv_prog_CPP=$CPP
87969c8c 3926
0c0fb0a6 3927fi
3928 CPP=$ac_cv_prog_CPP
87969c8c 3929else
0c0fb0a6 3930 ac_cv_prog_CPP=$CPP
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3933$as_echo "$CPP" >&6; }
3934ac_preproc_ok=false
3935for ac_c_preproc_warn_flag in '' yes
87969c8c 3936do
0c0fb0a6 3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945#ifdef __STDC__
3946# include <limits.h>
3947#else
3948# include <assert.h>
3949#endif
3950 Syntax error
3951_ACEOF
3952if ac_fn_c_try_cpp "$LINENO"; then :
3953
3954else
3955 # Broken: fails on valid input.
3956continue
3957fi
3958rm -f conftest.err conftest.$ac_ext
3959
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964#include <ac_nonexistent.h>
3965_ACEOF
3966if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: success on invalid input.
3968continue
3969else
3970 # Passes both tests.
3971ac_preproc_ok=:
3972break
3973fi
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then :
3980
3981else
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984as_fn_error "C preprocessor \"$CPP\" fails sanity check
3985See \`config.log' for more details." "$LINENO" 5; }
3986fi
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997if test "${ac_cv_path_GREP+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999else
4000 if test -z "$GREP"; then
4001 ac_path_GREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in grep ggrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4012# Check for GNU ac_path_GREP and select it if it is found.
4013 # Check for GNU $ac_path_GREP
4014case `"$ac_path_GREP" --version 2>&1` in
4015*GNU*)
87969c8c 4016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4017*)
4018 ac_count=0
4019 $as_echo_n 0123456789 >"conftest.in"
4020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'GREP' >> "conftest.nl"
4026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_GREP="$ac_path_GREP"
4032 ac_path_GREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
4040 $ac_path_GREP_found && break 3
4041 done
4042 done
4043 done
4044IFS=$as_save_IFS
4045 if test -z "$ac_cv_path_GREP"; then
4046 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 fi
4048else
4049 ac_cv_path_GREP=$GREP
4050fi
4051
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4054$as_echo "$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4059$as_echo_n "checking for egrep... " >&6; }
4060if test "${ac_cv_path_EGREP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062else
4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064 then ac_cv_path_EGREP="$GREP -E"
4065 else
4066 if test -z "$EGREP"; then
4067 ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in egrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078# Check for GNU ac_path_EGREP and select it if it is found.
4079 # Check for GNU $ac_path_EGREP
4080case `"$ac_path_EGREP" --version 2>&1` in
4081*GNU*)
4082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083*)
4084 ac_count=0
4085 $as_echo_n 0123456789 >"conftest.in"
4086 while :
4087 do
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 $as_echo 'EGREP' >> "conftest.nl"
4092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 as_fn_arith $ac_count + 1 && ac_count=$as_val
4095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_EGREP="$ac_path_EGREP"
4098 ac_path_EGREP_max=$ac_count
4099 fi
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4102 done
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104esac
4105
4106 $ac_path_EGREP_found && break 3
4107 done
4108 done
4109 done
4110IFS=$as_save_IFS
4111 if test -z "$ac_cv_path_EGREP"; then
4112 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113 fi
4114else
4115 ac_cv_path_EGREP=$EGREP
4116fi
4117
4118 fi
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4121$as_echo "$ac_cv_path_EGREP" >&6; }
4122 EGREP="$ac_cv_path_EGREP"
4123
4124
0c0fb0a6 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4126$as_echo_n "checking for ANSI C header files... " >&6; }
4127if test "${ac_cv_header_stdc+set}" = set; then :
87969c8c 4128 $as_echo_n "(cached) " >&6
4129else
0c0fb0a6 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h. */
4132#include <stdlib.h>
4133#include <stdarg.h>
4134#include <string.h>
4135#include <float.h>
87969c8c 4136
0c0fb0a6 4137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_header_stdc=yes
87969c8c 4147else
0c0fb0a6 4148 ac_cv_header_stdc=no
87969c8c 4149fi
0c0fb0a6 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87969c8c 4151
0c0fb0a6 4152if test $ac_cv_header_stdc = yes; then
4153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h. */
4156#include <string.h>
4157
4158_ACEOF
4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then :
4161
4162else
4163 ac_cv_header_stdc=no
87969c8c 4164fi
0c0fb0a6 4165rm -f conftest*
87969c8c 4166
0c0fb0a6 4167fi
87969c8c 4168
0c0fb0a6 4169if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h. */
4173#include <stdlib.h>
87969c8c 4174
0c0fb0a6 4175_ACEOF
4176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "free" >/dev/null 2>&1; then :
87969c8c 4178
0c0fb0a6 4179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f conftest*
87969c8c 4183
0c0fb0a6 4184fi
87969c8c 4185
0c0fb0a6 4186if test $ac_cv_header_stdc = yes; then
4187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4188 if test "$cross_compiling" = yes; then :
4189 :
4190else
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h. */
4193#include <ctype.h>
4194#include <stdlib.h>
4195#if ((' ' & 0x0FF) == 0x020)
4196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198#else
4199# define ISLOWER(c) \
4200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
4203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204#endif
87969c8c 4205
0c0fb0a6 4206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207int
4208main ()
4209{
4210 int i;
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
4213 || toupper (i) != TOUPPER (i))
4214 return 2;
4215 return 0;
4216}
4217_ACEOF
4218if ac_fn_c_try_run "$LINENO"; then :
87969c8c 4219
0c0fb0a6 4220else
4221 ac_cv_header_stdc=no
4222fi
4223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4224 conftest.$ac_objext conftest.beam conftest.$ac_ext
4225fi
87969c8c 4226
0c0fb0a6 4227fi
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4230$as_echo "$ac_cv_header_stdc" >&6; }
4231if test $ac_cv_header_stdc = yes; then
87969c8c 4232
0c0fb0a6 4233$as_echo "#define STDC_HEADERS 1" >>confdefs.h
87969c8c 4234
0c0fb0a6 4235fi
87969c8c 4236
0c0fb0a6 4237# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4240do :
4241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4243"
4244eval as_val=\$$as_ac_Header
4245 if test "x$as_val" = x""yes; then :
4246 cat >>confdefs.h <<_ACEOF
4247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248_ACEOF
87969c8c 4249
0c0fb0a6 4250fi
87969c8c 4251
0c0fb0a6 4252done
87969c8c 4253
4254
4255
0c0fb0a6 4256 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4257if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4258 MINIX=yes
4259else
4260 MINIX=
4261fi
87969c8c 4262
4263
0c0fb0a6 4264 if test "$MINIX" = yes; then
87969c8c 4265
0c0fb0a6 4266$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
87969c8c 4267
87969c8c 4268
0c0fb0a6 4269$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4270
4271
4272$as_echo "#define _MINIX 1" >>confdefs.h
4273
4274 fi
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4278$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4279if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
87969c8c 4280 $as_echo_n "(cached) " >&6
4281else
0c0fb0a6 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h. */
87969c8c 4284
0c0fb0a6 4285# define __EXTENSIONS__ 1
4286 $ac_includes_default
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_safe_to_define___extensions__=yes
87969c8c 4297else
0c0fb0a6 4298 ac_cv_safe_to_define___extensions__=no
87969c8c 4299fi
0c0fb0a6 4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87969c8c 4301fi
0c0fb0a6 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4303$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4304 test $ac_cv_safe_to_define___extensions__ = yes &&
4305 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
87969c8c 4306
0c0fb0a6 4307 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
87969c8c 4308
0c0fb0a6 4309 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
87969c8c 4310
0c0fb0a6 4311 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
87969c8c 4312
0c0fb0a6 4313 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
87969c8c 4314
4315
4316
0c0fb0a6 4317# See if makeinfo has been installed and is modern enough
4318# that we can use it.
87969c8c 4319
0c0fb0a6 4320 # Extract the first word of "makeinfo", so it can be a program name with args.
4321set dummy makeinfo; ac_word=$2
87969c8c 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 4324if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
87969c8c 4325 $as_echo_n "(cached) " >&6
4326else
0c0fb0a6 4327 if test -n "$MAKEINFO"; then
4328 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
87969c8c 4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 4337 ac_cv_prog_MAKEINFO="makeinfo"
87969c8c 4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341done
4342 done
4343IFS=$as_save_IFS
4344
4345fi
4346fi
0c0fb0a6 4347MAKEINFO=$ac_cv_prog_MAKEINFO
4348if test -n "$MAKEINFO"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4350$as_echo "$MAKEINFO" >&6; }
87969c8c 4351else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
4355
4356
0c0fb0a6 4357 if test -n "$MAKEINFO"; then
4358 # Found it, now check the version.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4360$as_echo_n "checking for modern makeinfo... " >&6; }
4361if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
87969c8c 4362 $as_echo_n "(cached) " >&6
4363else
0c0fb0a6 4364 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4365 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4366
4367 case $ac_prog_version in
4368 '') gcc_cv_prog_makeinfo_modern=no;;
4369 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4370 *) gcc_cv_prog_makeinfo_modern=no;;
4371 esac
87969c8c 4372
4373fi
0c0fb0a6 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4375$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4376 else
4377 gcc_cv_prog_makeinfo_modern=no
4378 fi
4379 if test $gcc_cv_prog_makeinfo_modern = no; then
4380 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4381 fi
4382
4383 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4384 BUILD_INFO_TRUE=
4385 BUILD_INFO_FALSE='#'
87969c8c 4386else
0c0fb0a6 4387 BUILD_INFO_TRUE='#'
4388 BUILD_INFO_FALSE=
87969c8c 4389fi
4390
4391
87969c8c 4392
87969c8c 4393
0c0fb0a6 4394# Check whether --with-bugurl was given.
4395if test "${with_bugurl+set}" = set; then :
4396 withval=$with_bugurl; case "$withval" in
4397 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4398 no) BUGURL=
4399 ;;
4400 *) BUGURL="$withval"
4401 ;;
4402 esac
4403else
4404 BUGURL="http://gcc.gnu.org/bugs.html"
87969c8c 4405
87969c8c 4406fi
87969c8c 4407
0c0fb0a6 4408 case ${BUGURL} in
4409 "")
4410 REPORT_BUGS_TO=
4411 REPORT_BUGS_TEXI=
4412 ;;
4413 *)
4414 REPORT_BUGS_TO="<$BUGURL>"
4415 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4416 ;;
4417 esac;
87969c8c 4418
4419
4420
4421
0c0fb0a6 4422# Configure libtool
4423case `pwd` in
4424 *\ * | *\ *)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4426$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4427esac
87969c8c 4428
87969c8c 4429
87969c8c 4430
0c0fb0a6 4431macro_version='2.2.7a'
4432macro_revision='1.3134'
87969c8c 4433
87969c8c 4434
87969c8c 4435
87969c8c 4436
87969c8c 4437
87969c8c 4438
87969c8c 4439
87969c8c 4440
87969c8c 4441
87969c8c 4442
4443
4444
4445
0c0fb0a6 4446ltmain="$ac_aux_dir/ltmain.sh"
87969c8c 4447
0c0fb0a6 4448# Backslashify metacharacters that are still active within
4449# double-quoted strings.
4450sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
87969c8c 4451
0c0fb0a6 4452# Same as above, but do not quote variable references.
4453double_quote_subst='s/\(["`\\]\)/\\\1/g'
87969c8c 4454
0c0fb0a6 4455# Sed substitution to delay expansion of an escaped shell variable in a
4456# double_quote_subst'ed string.
4457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
87969c8c 4458
0c0fb0a6 4459# Sed substitution to delay expansion of an escaped single quote.
4460delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
87969c8c 4461
0c0fb0a6 4462# Sed substitution to avoid accidental globbing in evaled expressions
4463no_glob_subst='s/\*/\\\*/g'
87969c8c 4464
0c0fb0a6 4465ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
87969c8c 4468
0c0fb0a6 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4470$as_echo_n "checking how to print strings... " >&6; }
4471# Test print first, because it will be a builtin if present.
4472if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4474 ECHO='print -r --'
4475elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4476 ECHO='printf %s\n'
87969c8c 4477else
0c0fb0a6 4478 # Use this function as a fallback that always works.
4479 func_fallback_echo ()
4480 {
4481 eval 'cat <<_LTECHO_EOF
4482$1
4483_LTECHO_EOF'
4484 }
4485 ECHO='func_fallback_echo'
87969c8c 4486fi
4487
0c0fb0a6 4488# func_echo_all arg...
4489# Invoke $ECHO with all args, space-separated.
4490func_echo_all ()
4491{
4492 $ECHO ""
4493}
87969c8c 4494
0c0fb0a6 4495case "$ECHO" in
4496 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4497$as_echo "printf" >&6; } ;;
4498 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4499$as_echo "print -r" >&6; } ;;
4500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4501$as_echo "cat" >&6; } ;;
87969c8c 4502esac
4503
4504
4505
4506
4507
4508
4509
4510
4511
87969c8c 4512
4513
4514
4515
4516
0c0fb0a6 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4518$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4519if test "${ac_cv_path_SED+set}" = set; then :
87969c8c 4520 $as_echo_n "(cached) " >&6
4521else
0c0fb0a6 4522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4523 for ac_i in 1 2 3 4 5 6 7; do
4524 ac_script="$ac_script$as_nl$ac_script"
4525 done
4526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4527 { ac_script=; unset ac_script;}
4528 if test -z "$SED"; then
4529 ac_path_SED_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
87969c8c 4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
0c0fb0a6 4536 for ac_prog in sed gsed; do
87969c8c 4537 for ac_exec_ext in '' $ac_executable_extensions; do
0c0fb0a6 4538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4540# Check for GNU ac_path_SED and select it if it is found.
4541 # Check for GNU $ac_path_SED
4542case `"$ac_path_SED" --version 2>&1` in
4543*GNU*)
4544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4545*)
4546 ac_count=0
4547 $as_echo_n 0123456789 >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo '' >> "conftest.nl"
4554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
4557 if test $ac_count -gt ${ac_path_SED_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_SED="$ac_path_SED"
4560 ac_path_SED_max=$ac_count
4561 fi
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
87969c8c 4564 done
0c0fb0a6 4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566esac
87969c8c 4567
0c0fb0a6 4568 $ac_path_SED_found && break 3
4569 done
4570 done
4571 done
4572IFS=$as_save_IFS
4573 if test -z "$ac_cv_path_SED"; then
4574 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4575 fi
87969c8c 4576else
0c0fb0a6 4577 ac_cv_path_SED=$SED
87969c8c 4578fi
4579
87969c8c 4580fi
0c0fb0a6 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4582$as_echo "$ac_cv_path_SED" >&6; }
4583 SED="$ac_cv_path_SED"
4584 rm -f conftest.sed
4585
4586test -z "$SED" && SED=sed
4587Xsed="$SED -e 1s/^X//"
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4600$as_echo_n "checking for fgrep... " >&6; }
4601if test "${ac_cv_path_FGREP+set}" = set; then :
87969c8c 4602 $as_echo_n "(cached) " >&6
4603else
0c0fb0a6 4604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4605 then ac_cv_path_FGREP="$GREP -F"
4606 else
4607 if test -z "$FGREP"; then
4608 ac_path_FGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
87969c8c 4612do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
0c0fb0a6 4615 for ac_prog in fgrep; do
87969c8c 4616 for ac_exec_ext in '' $ac_executable_extensions; do
0c0fb0a6 4617 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4619# Check for GNU ac_path_FGREP and select it if it is found.
4620 # Check for GNU $ac_path_FGREP
4621case `"$ac_path_FGREP" --version 2>&1` in
4622*GNU*)
4623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4624*)
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4628 do
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'FGREP' >> "conftest.nl"
4633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_FGREP="$ac_path_FGREP"
4639 ac_path_FGREP_max=$ac_count
4640 fi
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
87969c8c 4643 done
0c0fb0a6 4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645esac
87969c8c 4646
0c0fb0a6 4647 $ac_path_FGREP_found && break 3
4648 done
4649 done
4650 done
4651IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_FGREP"; then
4653 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654 fi
87969c8c 4655else
0c0fb0a6 4656 ac_cv_path_FGREP=$FGREP
87969c8c 4657fi
4658
0c0fb0a6 4659 fi
87969c8c 4660fi
0c0fb0a6 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4662$as_echo "$ac_cv_path_FGREP" >&6; }
4663 FGREP="$ac_cv_path_FGREP"
87969c8c 4664
87969c8c 4665
0c0fb0a6 4666test -z "$GREP" && GREP=grep
87969c8c 4667
4668
4669
4670
4671
4672
4673
4674
0c0fb0a6 4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686# Check whether --with-gnu-ld was given.
4687if test "${with_gnu_ld+set}" = set; then :
4688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4689else
4690 with_gnu_ld=no
4691fi
4692
4693ac_prog=ld
4694if test "$GCC" = yes; then
4695 # Check if gcc -print-prog-name=ld gives a path.
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697$as_echo_n "checking for ld used by $CC... " >&6; }
4698 case $host in
4699 *-*-mingw*)
4700 # gcc leaves a trailing carriage return which upsets mingw
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4702 *)
4703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4704 esac
4705 case $ac_prog in
4706 # Accept absolute paths.
4707 [\\/]* | ?:[\\/]*)
4708 re_direlt='/[^/][^/]*/\.\./'
4709 # Canonicalize the pathname of ld
4710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4713 done
4714 test -z "$LD" && LD="$ac_prog"
4715 ;;
4716 "")
4717 # If it fails, then pretend we aren't using GCC.
4718 ac_prog=ld
4719 ;;
4720 *)
4721 # If it is relative, then search for the first ld in PATH.
4722 with_gnu_ld=unknown
4723 ;;
4724 esac
4725elif test "$with_gnu_ld" = yes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727$as_echo_n "checking for GNU ld... " >&6; }
4728else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730$as_echo_n "checking for non-GNU ld... " >&6; }
4731fi
4732if test "${lt_cv_path_LD+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734else
4735 if test -z "$LD"; then
4736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737 for ac_dir in $PATH; do
4738 IFS="$lt_save_ifs"
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741 lt_cv_path_LD="$ac_dir/$ac_prog"
4742 # Check to see if the program is GNU ld. I'd rather use --version,
4743 # but apparently some variants of GNU ld only accept -v.
4744 # Break only if it was the GNU/non-GNU ld that we prefer.
4745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747 test "$with_gnu_ld" != no && break
4748 ;;
4749 *)
4750 test "$with_gnu_ld" != yes && break
4751 ;;
4752 esac
4753 fi
4754 done
4755 IFS="$lt_save_ifs"
4756else
4757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4758fi
4759fi
4760
4761LD="$lt_cv_path_LD"
4762if test -n "$LD"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764$as_echo "$LD" >&6; }
4765else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767$as_echo "no" >&6; }
4768fi
4769test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776case `$LD -v 2>&1 </dev/null` in
4777*GNU* | *'with BFD'*)
4778 lt_cv_prog_gnu_ld=yes
4779 ;;
4780*)
4781 lt_cv_prog_gnu_ld=no
4782 ;;
4783esac
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787with_gnu_ld=$lt_cv_prog_gnu_ld
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4798$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4799if test "${lt_cv_path_NM+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4801else
4802 if test -n "$NM"; then
4803 # Let the user override the test.
4804 lt_cv_path_NM="$NM"
4805else
4806 lt_nm_to_check="${ac_tool_prefix}nm"
4807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4808 lt_nm_to_check="$lt_nm_to_check nm"
4809 fi
4810 for lt_tmp_nm in $lt_nm_to_check; do
4811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4813 IFS="$lt_save_ifs"
4814 test -z "$ac_dir" && ac_dir=.
4815 tmp_nm="$ac_dir/$lt_tmp_nm"
4816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4817 # Check to see if the nm accepts a BSD-compat flag.
4818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4819 # nm: unknown option "B" ignored
4820 # Tru64's nm complains that /dev/null is an invalid object file
4821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4822 */dev/null* | *'Invalid file or object type'*)
4823 lt_cv_path_NM="$tmp_nm -B"
4824 break
4825 ;;
4826 *)
4827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4828 */dev/null*)
4829 lt_cv_path_NM="$tmp_nm -p"
4830 break
4831 ;;
4832 *)
4833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4834 continue # so that we can try to find one that supports BSD flags
4835 ;;
4836 esac
4837 ;;
4838 esac
4839 fi
4840 done
4841 IFS="$lt_save_ifs"
4842 done
4843 : ${lt_cv_path_NM=no}
4844fi
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4847$as_echo "$lt_cv_path_NM" >&6; }
4848if test "$lt_cv_path_NM" != "no"; then
4849 NM="$lt_cv_path_NM"
4850else
4851 # Didn't find any BSD compatible name lister, look for dumpbin.
4852 if test -n "$DUMPBIN"; then :
4853 # Let the user override the test.
4854 else
4855 if test -n "$ac_tool_prefix"; then
4856 for ac_prog in dumpbin "link -dump"
4857 do
4858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4859set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864else
4865 if test -n "$DUMPBIN"; then
4866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880 done
4881IFS=$as_save_IFS
4882
4883fi
4884fi
4885DUMPBIN=$ac_cv_prog_DUMPBIN
4886if test -n "$DUMPBIN"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4888$as_echo "$DUMPBIN" >&6; }
4889else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
4892fi
4893
4894
4895 test -n "$DUMPBIN" && break
4896 done
4897fi
4898if test -z "$DUMPBIN"; then
4899 ac_ct_DUMPBIN=$DUMPBIN
4900 for ac_prog in dumpbin "link -dump"
4901do
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903set dummy $ac_prog; ac_word=$2
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905$as_echo_n "checking for $ac_word... " >&6; }
4906if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 if test -n "$ac_ct_DUMPBIN"; then
4910 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924 done
4925IFS=$as_save_IFS
4926
4927fi
4928fi
4929ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4930if test -n "$ac_ct_DUMPBIN"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4932$as_echo "$ac_ct_DUMPBIN" >&6; }
4933else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936fi
4937
4938
4939 test -n "$ac_ct_DUMPBIN" && break
4940done
4941
4942 if test "x$ac_ct_DUMPBIN" = x; then
4943 DUMPBIN=":"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946yes:)
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949ac_tool_warned=yes ;;
4950esac
4951 DUMPBIN=$ac_ct_DUMPBIN
4952 fi
4953fi
4954
4955 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4956 *COFF*)
4957 DUMPBIN="$DUMPBIN -symbols"
4958 ;;
4959 *)
4960 DUMPBIN=:
4961 ;;
4962 esac
4963 fi
4964
4965 if test "$DUMPBIN" != ":"; then
4966 NM="$DUMPBIN"
4967 fi
4968fi
4969test -z "$NM" && NM=nm
4970
4971
4972
4973
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4977$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4978if test "${lt_cv_nm_interface+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 lt_cv_nm_interface="BSD nm"
4982 echo "int some_variable = 0;" > conftest.$ac_ext
4983 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4984 (eval "$ac_compile" 2>conftest.err)
4985 cat conftest.err >&5
4986 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4988 cat conftest.err >&5
4989 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4990 cat conftest.out >&5
4991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4992 lt_cv_nm_interface="MS dumpbin"
4993 fi
4994 rm -f conftest*
4995fi
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4997$as_echo "$lt_cv_nm_interface" >&6; }
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5000$as_echo_n "checking whether ln -s works... " >&6; }
5001LN_S=$as_ln_s
5002if test "$LN_S" = "ln -s"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004$as_echo "yes" >&6; }
5005else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5007$as_echo "no, using $LN_S" >&6; }
5008fi
5009
5010# find the maximum length of command line arguments
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5012$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5013if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 i=0
5017 teststring="ABCD"
5018
5019 case $build_os in
5020 msdosdjgpp*)
5021 # On DJGPP, this test can blow up pretty badly due to problems in libc
5022 # (any single argument exceeding 2000 bytes causes a buffer overrun
5023 # during glob expansion). Even if it were fixed, the result of this
5024 # check would be larger than it should be.
5025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5026 ;;
5027
5028 gnu*)
5029 # Under GNU Hurd, this test is not required because there is
5030 # no limit to the length of command line arguments.
5031 # Libtool will interpret -1 as no limit whatsoever
5032 lt_cv_sys_max_cmd_len=-1;
5033 ;;
5034
5035 cygwin* | mingw* | cegcc*)
5036 # On Win9x/ME, this test blows up -- it succeeds, but takes
5037 # about 5 minutes as the teststring grows exponentially.
5038 # Worse, since 9x/ME are not pre-emptively multitasking,
5039 # you end up with a "frozen" computer, even though with patience
5040 # the test eventually succeeds (with a max line length of 256k).
5041 # Instead, let's just punt: use the minimum linelength reported by
5042 # all of the supported platforms: 8192 (on NT/2K/XP).
5043 lt_cv_sys_max_cmd_len=8192;
5044 ;;
5045
5046 mint*)
5047 # On MiNT this can take a long time and run out of memory.
5048 lt_cv_sys_max_cmd_len=8192;
5049 ;;
5050
5051 amigaos*)
5052 # On AmigaOS with pdksh, this test takes hours, literally.
5053 # So we just punt and use a minimum line length of 8192.
5054 lt_cv_sys_max_cmd_len=8192;
5055 ;;
5056
5057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5058 # This has been around since 386BSD, at least. Likely further.
5059 if test -x /sbin/sysctl; then
5060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5061 elif test -x /usr/sbin/sysctl; then
5062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5063 else
5064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5065 fi
5066 # And add a safety zone
5067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5069 ;;
5070
5071 interix*)
5072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5073 lt_cv_sys_max_cmd_len=196608
5074 ;;
5075
5076 osf*)
5077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5079 # nice to cause kernel panics so lets avoid the loop below.
5080 # First set a reasonable default.
5081 lt_cv_sys_max_cmd_len=16384
5082 #
5083 if test -x /sbin/sysconfig; then
5084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5085 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5086 esac
5087 fi
5088 ;;
5089 sco3.2v5*)
5090 lt_cv_sys_max_cmd_len=102400
5091 ;;
5092 sysv5* | sco5v6* | sysv4.2uw2*)
5093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5094 if test -n "$kargmax"; then
5095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5096 else
5097 lt_cv_sys_max_cmd_len=32768
5098 fi
5099 ;;
5100 *)
5101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5102 if test -n "$lt_cv_sys_max_cmd_len"; then
5103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5105 else
5106 # Make teststring a little bigger before we do anything with it.
5107 # a 1K string should be a reasonable start.
5108 for i in 1 2 3 4 5 6 7 8 ; do
5109 teststring=$teststring$teststring
5110 done
5111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5112 # If test is not a shell built-in, we'll probably end up computing a
5113 # maximum length that is only half of the actual maximum length, but
5114 # we can't tell.
5115 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5116 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5117 test $i != 17 # 1/2 MB should be enough
5118 do
5119 i=`expr $i + 1`
5120 teststring=$teststring$teststring
5121 done
5122 # Only check the string length outside the loop.
5123 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5124 teststring=
5125 # Add a significant safety factor because C++ compilers can tack on
5126 # massive amounts of additional arguments before passing them to the
5127 # linker. It appears as though 1/2 is a usable value.
5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5129 fi
5130 ;;
5131 esac
5132
5133fi
5134
5135if test -n $lt_cv_sys_max_cmd_len ; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5137$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5140$as_echo "none" >&6; }
5141fi
5142max_cmd_len=$lt_cv_sys_max_cmd_len
5143
5144
5145
5146
5147
5148
5149: ${CP="cp -f"}
5150: ${MV="mv -f"}
5151: ${RM="rm -f"}
5152
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5154$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5155# Try some XSI features
5156xsi_shell=no
5157( _lt_dummy="a/b/c"
5158 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5159 = c,a/b,, \
5160 && eval 'test $(( 1 + 1 )) -eq 2 \
5161 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5162 && xsi_shell=yes
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5164$as_echo "$xsi_shell" >&6; }
5165
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5168$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5169lt_shell_append=no
5170( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5171 >/dev/null 2>&1 \
5172 && lt_shell_append=yes
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5174$as_echo "$lt_shell_append" >&6; }
5175
5176
5177if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5178 lt_unset=unset
5179else
5180 lt_unset=false
5181fi
5182
5183
5184
5185
5186
5187# test EBCDIC or ASCII
5188case `echo X|tr X '\101'` in
5189 A) # ASCII based system
5190 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5191 lt_SP2NL='tr \040 \012'
5192 lt_NL2SP='tr \015\012 \040\040'
5193 ;;
5194 *) # EBCDIC based system
5195 lt_SP2NL='tr \100 \n'
5196 lt_NL2SP='tr \r\n \100\100'
5197 ;;
5198esac
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5209$as_echo_n "checking for $LD option to reload object files... " >&6; }
5210if test "${lt_cv_ld_reload_flag+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 lt_cv_ld_reload_flag='-r'
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5216$as_echo "$lt_cv_ld_reload_flag" >&6; }
5217reload_flag=$lt_cv_ld_reload_flag
5218case $reload_flag in
5219"" | " "*) ;;
5220*) reload_flag=" $reload_flag" ;;
5221esac
5222reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223case $host_os in
5224 darwin*)
5225 if test "$GCC" = yes; then
5226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5227 else
5228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5229 fi
5230 ;;
5231esac
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}objdump; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248else
5249 if test -n "$OBJDUMP"; then
5250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264 done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269OBJDUMP=$ac_cv_prog_OBJDUMP
5270if test -n "$OBJDUMP"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5272$as_echo "$OBJDUMP" >&6; }
5273else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278
5279fi
5280if test -z "$ac_cv_prog_OBJDUMP"; then
5281 ac_ct_OBJDUMP=$OBJDUMP
5282 # Extract the first word of "objdump", so it can be a program name with args.
5283set dummy objdump; ac_word=$2
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285$as_echo_n "checking for $ac_word... " >&6; }
5286if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288else
5289 if test -n "$ac_ct_OBJDUMP"; then
5290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303done
5304 done
5305IFS=$as_save_IFS
5306
5307fi
5308fi
5309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5310if test -n "$ac_ct_OBJDUMP"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5312$as_echo "$ac_ct_OBJDUMP" >&6; }
5313else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316fi
5317
5318 if test "x$ac_ct_OBJDUMP" = x; then
5319 OBJDUMP="false"
5320 else
5321 case $cross_compiling:$ac_tool_warned in
5322yes:)
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325ac_tool_warned=yes ;;
5326esac
5327 OBJDUMP=$ac_ct_OBJDUMP
5328 fi
5329else
5330 OBJDUMP="$ac_cv_prog_OBJDUMP"
5331fi
5332
5333test -z "$OBJDUMP" && OBJDUMP=objdump
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5344$as_echo_n "checking how to recognize dependent libraries... " >&6; }
87969c8c 5345if test "${lt_cv_deplibs_check_method+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347else
5348 lt_cv_file_magic_cmd='$MAGIC_CMD'
5349lt_cv_file_magic_test_file=
5350lt_cv_deplibs_check_method='unknown'
5351# Need to set the preceding variable on all platforms that support
5352# interlibrary dependencies.
5353# 'none' -- dependencies not supported.
5354# `unknown' -- same as none, but documents that we really don't know.
5355# 'pass_all' -- all dependencies passed with no checks.
5356# 'test_compile' -- check by making test program.
5357# 'file_magic [[regex]]' -- check by looking for files in library path
5358# which responds to the $file_magic_cmd with a given extended regex.
5359# If you have `file' or equivalent on your system and you're not sure
5360# whether `pass_all' will *always* work, you probably want this one.
5361
5362case $host_os in
5363aix[4-9]*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
5367beos*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371bsdi[45]*)
5372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5373 lt_cv_file_magic_cmd='/usr/bin/file -L'
5374 lt_cv_file_magic_test_file=/shlib/libc.so
5375 ;;
5376
5377cygwin*)
5378 # func_win32_libid is a shell function defined in ltmain.sh
5379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380 lt_cv_file_magic_cmd='func_win32_libid'
5381 ;;
5382
5383mingw* | pw32*)
5384 # Base MSYS/MinGW do not provide the 'file' command needed by
5385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5386 # unless we find 'file', for example because we are cross-compiling.
5387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5390 lt_cv_file_magic_cmd='func_win32_libid'
5391 else
5392 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5393 lt_cv_file_magic_cmd='$OBJDUMP -f'
5394 fi
5395 ;;
5396
5397cegcc*)
5398 # use the weaker test based on 'objdump'. See mingw*.
5399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5400 lt_cv_file_magic_cmd='$OBJDUMP -f'
5401 ;;
5402
5403darwin* | rhapsody*)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406
5407freebsd* | dragonfly*)
5408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5409 case $host_cpu in
5410 i*86 )
5411 # Not sure whether the presence of OpenBSD here was a mistake.
5412 # Let's accept both of them until this is cleared up.
5413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5414 lt_cv_file_magic_cmd=/usr/bin/file
5415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5416 ;;
5417 esac
5418 else
5419 lt_cv_deplibs_check_method=pass_all
5420 fi
5421 ;;
5422
5423gnu*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426
5427haiku*)
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430
5431hpux10.20* | hpux11*)
5432 lt_cv_file_magic_cmd=/usr/bin/file
5433 case $host_cpu in
5434 ia64*)
5435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5437 ;;
5438 hppa*64*)
5439 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]'
5440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5441 ;;
5442 *)
5443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5445 ;;
5446 esac
5447 ;;
5448
5449interix[3-9]*)
5450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5452 ;;
5453
5454irix5* | irix6* | nonstopux*)
5455 case $LD in
5456 *-32|*"-32 ") libmagic=32-bit;;
5457 *-n32|*"-n32 ") libmagic=N32;;
5458 *-64|*"-64 ") libmagic=64-bit;;
5459 *) libmagic=never-match;;
5460 esac
5461 lt_cv_deplibs_check_method=pass_all
5462 ;;
5463
5464# This must be Linux ELF.
5465linux* | k*bsd*-gnu | kopensolaris*-gnu)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468
5469netbsd*)
5470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472 else
5473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5474 fi
5475 ;;
5476
5477newos6*)
5478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5479 lt_cv_file_magic_cmd=/usr/bin/file
5480 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5481 ;;
5482
5483*nto* | *qnx*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487openbsd*)
5488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5490 else
5491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5492 fi
5493 ;;
5494
5495osf3* | osf4* | osf5*)
5496 lt_cv_deplibs_check_method=pass_all
5497 ;;
5498
5499rdos*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
5502
5503solaris*)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
5511sysv4 | sysv4.3*)
5512 case $host_vendor in
5513 motorola)
5514 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]'
5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5516 ;;
5517 ncr)
5518 lt_cv_deplibs_check_method=pass_all
5519 ;;
5520 sequent)
5521 lt_cv_file_magic_cmd='/bin/file'
5522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5523 ;;
5524 sni)
5525 lt_cv_file_magic_cmd='/bin/file'
5526 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5527 lt_cv_file_magic_test_file=/lib/libc.so
5528 ;;
5529 siemens)
5530 lt_cv_deplibs_check_method=pass_all
5531 ;;
5532 pc)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535 esac
5536 ;;
5537
5538tpf*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541esac
5542
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5545$as_echo "$lt_cv_deplibs_check_method" >&6; }
5546file_magic_cmd=$lt_cv_file_magic_cmd
5547deplibs_check_method=$lt_cv_deplibs_check_method
5548test -z "$deplibs_check_method" && deplibs_check_method=unknown
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5563set dummy ${ac_tool_prefix}ar; ac_word=$2
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565$as_echo_n "checking for $ac_word... " >&6; }
5566if test "${ac_cv_prog_AR+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568else
5569 if test -n "$AR"; then
5570 ac_cv_prog_AR="$AR" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_AR="${ac_tool_prefix}ar"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583done
5584 done
5585IFS=$as_save_IFS
5586
5587fi
5588fi
5589AR=$ac_cv_prog_AR
5590if test -n "$AR"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5592$as_echo "$AR" >&6; }
5593else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597
5598
5599fi
5600if test -z "$ac_cv_prog_AR"; then
5601 ac_ct_AR=$AR
5602 # Extract the first word of "ar", so it can be a program name with args.
5603set dummy ar; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 if test -n "$ac_ct_AR"; then
5610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_AR="ar"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624 done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629ac_ct_AR=$ac_cv_prog_ac_ct_AR
5630if test -n "$ac_ct_AR"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5632$as_echo "$ac_ct_AR" >&6; }
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638 if test "x$ac_ct_AR" = x; then
5639 AR="false"
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642yes:)
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645ac_tool_warned=yes ;;
5646esac
5647 AR=$ac_ct_AR
5648 fi
5649else
5650 AR="$ac_cv_prog_AR"
5651fi
5652
5653test -z "$AR" && AR=ar
5654test -z "$AR_FLAGS" && AR_FLAGS=cru
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}strip; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_STRIP+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$STRIP"; then
5675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694STRIP=$ac_cv_prog_STRIP
5695if test -n "$STRIP"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5697$as_echo "$STRIP" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704fi
5705if test -z "$ac_cv_prog_STRIP"; then
5706 ac_ct_STRIP=$STRIP
5707 # Extract the first word of "strip", so it can be a program name with args.
5708set dummy strip; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5713else
5714 if test -n "$ac_ct_STRIP"; then
5715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_STRIP="strip"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729 done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5735if test -n "$ac_ct_STRIP"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5737$as_echo "$ac_ct_STRIP" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743 if test "x$ac_ct_STRIP" = x; then
5744 STRIP=":"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 STRIP=$ac_ct_STRIP
5753 fi
5754else
5755 STRIP="$ac_cv_prog_STRIP"
5756fi
5757
5758test -z "$STRIP" && STRIP=:
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_RANLIB+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772else
5773 if test -n "$RANLIB"; then
5774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788 done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793RANLIB=$ac_cv_prog_RANLIB
5794if test -n "$RANLIB"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5796$as_echo "$RANLIB" >&6; }
5797else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_RANLIB"; then
5805 ac_ct_RANLIB=$RANLIB
5806 # Extract the first word of "ranlib", so it can be a program name with args.
5807set dummy ranlib; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812else
5813 if test -n "$ac_ct_RANLIB"; then
5814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_RANLIB="ranlib"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828 done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5834if test -n "$ac_ct_RANLIB"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5836$as_echo "$ac_ct_RANLIB" >&6; }
5837else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842 if test "x$ac_ct_RANLIB" = x; then
5843 RANLIB=":"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851 RANLIB=$ac_ct_RANLIB
5852 fi
5853else
5854 RANLIB="$ac_cv_prog_RANLIB"
5855fi
5856
5857test -z "$RANLIB" && RANLIB=:
5858
5859
5860
5861
5862
5863
5864# Determine commands to create old-style static archives.
5865old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5866old_postinstall_cmds='chmod 644 $oldlib'
5867old_postuninstall_cmds=
5868
5869if test -n "$RANLIB"; then
5870 case $host_os in
5871 openbsd*)
5872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5873 ;;
5874 *)
5875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5876 ;;
5877 esac
5878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5879fi
5880
5881case $host_os in
5882 darwin*)
5883 lock_old_archive_extraction=yes ;;
5884 *)
5885 lock_old_archive_extraction=no ;;
5886esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926# If no C compiler was specified, use CC.
5927LTCC=${LTCC-"$CC"}
5928
5929# If no C compiler flags were specified, use CFLAGS.
5930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5931
5932# Allow CC to be a program name with arguments.
5933compiler=$CC
5934
5935
5936# Check for command to grab the raw symbol name followed by C symbol from nm.
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5938$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5939if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941else
5942
5943# These are sane defaults that work on at least a few old systems.
5944# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5945
5946# Character class describing NM global symbol codes.
5947symcode='[BCDEGRST]'
5948
5949# Regexp to match symbols that can be accessed directly from C.
5950sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5951
5952# Define system-specific variables.
5953case $host_os in
5954aix*)
5955 symcode='[BCDT]'
5956 ;;
5957cygwin* | mingw* | pw32* | cegcc*)
5958 symcode='[ABCDGISTW]'
5959 ;;
5960hpux*)
5961 if test "$host_cpu" = ia64; then
5962 symcode='[ABCDEGRST]'
5963 fi
5964 ;;
5965irix* | nonstopux*)
5966 symcode='[BCDEGRST]'
5967 ;;
5968osf*)
5969 symcode='[BCDEGQRST]'
5970 ;;
5971solaris*)
5972 symcode='[BDRT]'
5973 ;;
5974sco3.2v5*)
5975 symcode='[DT]'
5976 ;;
5977sysv4.2uw2*)
5978 symcode='[DT]'
5979 ;;
5980sysv5* | sco5v6* | unixware* | OpenUNIX*)
5981 symcode='[ABDT]'
5982 ;;
5983sysv4)
5984 symcode='[DFNSTU]'
5985 ;;
5986esac
5987
5988# If we're using GNU nm, then use its standard symbol codes.
5989case `$NM -V 2>&1` in
5990*GNU* | *'with BFD'*)
5991 symcode='[ABCDGIRSTW]' ;;
5992esac
5993
5994# Transform an extracted symbol line into a proper C declaration.
5995# Some systems (esp. on ia64) link data and code symbols differently,
5996# so use this general approach.
5997lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998
5999# Transform an extracted symbol line into symbol name and symbol address
6000lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6001lt_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'"
6002
6003# Handle CRLF in mingw tool chain
6004opt_cr=
6005case $build_os in
6006mingw*)
6007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6008 ;;
6009esac
6010
6011# Try without a prefix underscore, then with it.
6012for ac_symprfx in "" "_"; do
6013
6014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6015 symxfrm="\\1 $ac_symprfx\\2 \\2"
6016
6017 # Write the raw and C identifiers.
6018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6019 # Fake it for dumpbin and say T for any non-static function
6020 # and D for any global variable.
6021 # Also find C++ and __fastcall symbols from MSVC++,
6022 # which start with @ or ?.
6023 lt_cv_sys_global_symbol_pipe="$AWK '"\
6024" {last_section=section; section=\$ 3};"\
6025" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6026" \$ 0!~/External *\|/{next};"\
6027" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6028" {if(hide[section]) next};"\
6029" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6030" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6031" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6032" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6033" ' prfx=^$ac_symprfx"
6034 else
6035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6036 fi
6037
6038 # Check to see that the pipe works correctly.
6039 pipe_works=no
6040
6041 rm -f conftest*
6042 cat > conftest.$ac_ext <<_LT_EOF
6043#ifdef __cplusplus
6044extern "C" {
6045#endif
6046char nm_test_var;
6047void nm_test_func(void);
6048void nm_test_func(void){}
6049#ifdef __cplusplus
6050}
6051#endif
6052int main(){nm_test_var='a';nm_test_func();return(0);}
6053_LT_EOF
6054
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056 (eval $ac_compile) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }; then
6060 # Now try to grab the symbols.
6061 nlist=conftest.nm
6062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6063 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6064 ac_status=$?
6065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6066 test $ac_status = 0; } && test -s "$nlist"; then
6067 # Try sorting and uniquifying the output.
6068 if sort "$nlist" | uniq > "$nlist"T; then
6069 mv -f "$nlist"T "$nlist"
6070 else
6071 rm -f "$nlist"T
6072 fi
6073
6074 # Make sure that we snagged all the symbols we need.
6075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6077 cat <<_LT_EOF > conftest.$ac_ext
6078#ifdef __cplusplus
6079extern "C" {
6080#endif
6081
6082_LT_EOF
6083 # Now generate the symbol file.
6084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6085
6086 cat <<_LT_EOF >> conftest.$ac_ext
6087
6088/* The mapping between symbol names and symbols. */
6089const struct {
6090 const char *name;
6091 void *address;
6092}
6093lt__PROGRAM__LTX_preloaded_symbols[] =
6094{
6095 { "@PROGRAM@", (void *) 0 },
6096_LT_EOF
6097 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6098 cat <<\_LT_EOF >> conftest.$ac_ext
6099 {0, (void *) 0}
6100};
6101
6102/* This works around a problem in FreeBSD linker */
6103#ifdef FREEBSD_WORKAROUND
6104static const void *lt_preloaded_setup() {
6105 return lt__PROGRAM__LTX_preloaded_symbols;
6106}
6107#endif
6108
6109#ifdef __cplusplus
6110}
6111#endif
6112_LT_EOF
6113 # Now try linking the two files.
6114 mv conftest.$ac_objext conftstm.$ac_objext
6115 lt_save_LIBS="$LIBS"
6116 lt_save_CFLAGS="$CFLAGS"
6117 LIBS="conftstm.$ac_objext"
6118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6120 (eval $ac_link) 2>&5
6121 ac_status=$?
6122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6124 pipe_works=yes
6125 fi
6126 LIBS="$lt_save_LIBS"
6127 CFLAGS="$lt_save_CFLAGS"
6128 else
6129 echo "cannot find nm_test_func in $nlist" >&5
6130 fi
6131 else
6132 echo "cannot find nm_test_var in $nlist" >&5
6133 fi
6134 else
6135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6136 fi
6137 else
6138 echo "$progname: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 fi
6141 rm -rf conftest* conftst*
6142
6143 # Do not use the global_symbol_pipe unless it works.
6144 if test "$pipe_works" = yes; then
6145 break
6146 else
6147 lt_cv_sys_global_symbol_pipe=
6148 fi
6149done
6150
6151fi
6152
6153if test -z "$lt_cv_sys_global_symbol_pipe"; then
6154 lt_cv_sys_global_symbol_to_cdecl=
6155fi
6156if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6158$as_echo "failed" >&6; }
6159else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6161$as_echo "ok" >&6; }
6162fi
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
87969c8c 6183
6184
6185# Check whether --enable-libtool-lock was given.
6186if test "${enable_libtool_lock+set}" = set; then :
6187 enableval=$enable_libtool_lock;
6188fi
6189
6190test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6191
6192# Some flags need to be propagated to the compiler or linker for good
6193# libtool support.
6194case $host in
6195ia64-*-hpux*)
6196 # Find out which ABI we are using.
6197 echo 'int i;' > conftest.$ac_ext
6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199 (eval $ac_compile) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }; then
6203 case `/usr/bin/file conftest.$ac_objext` in
6204 *ELF-32*)
6205 HPUX_IA64_MODE="32"
6206 ;;
6207 *ELF-64*)
6208 HPUX_IA64_MODE="64"
6209 ;;
6210 esac
6211 fi
6212 rm -rf conftest*
6213 ;;
6214*-*-irix6*)
6215 # Find out which ABI we are using.
6216 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6222 if test "$lt_cv_prog_gnu_ld" = yes; then
6223 case `/usr/bin/file conftest.$ac_objext` in
6224 *32-bit*)
6225 LD="${LD-ld} -melf32bsmip"
6226 ;;
6227 *N32*)
6228 LD="${LD-ld} -melf32bmipn32"
6229 ;;
6230 *64-bit*)
6231 LD="${LD-ld} -melf64bmip"
6232 ;;
6233 esac
6234 else
6235 case `/usr/bin/file conftest.$ac_objext` in
6236 *32-bit*)
6237 LD="${LD-ld} -32"
6238 ;;
6239 *N32*)
6240 LD="${LD-ld} -n32"
6241 ;;
6242 *64-bit*)
6243 LD="${LD-ld} -64"
6244 ;;
6245 esac
6246 fi
6247 fi
6248 rm -rf conftest*
6249 ;;
6250
6251x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6252s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6253 # Find out which ABI we are using.
6254 echo 'int i;' > conftest.$ac_ext
6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256 (eval $ac_compile) 2>&5
6257 ac_status=$?
6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259 test $ac_status = 0; }; then
6260 case `/usr/bin/file conftest.o` in
6261 *32-bit*)
6262 case $host in
6263 x86_64-*kfreebsd*-gnu)
6264 LD="${LD-ld} -m elf_i386_fbsd"
6265 ;;
6266 x86_64-*linux*)
b4b3bbba 6267 case `/usr/bin/file conftest.o` in
6268 *x86-64*)
6269 LD="${LD-ld} -m elf32_x86_64"
6270 ;;
6271 *)
6272 LD="${LD-ld} -m elf_i386"
6273 ;;
6274 esac
87969c8c 6275 ;;
6276 ppc64-*linux*|powerpc64-*linux*)
6277 LD="${LD-ld} -m elf32ppclinux"
6278 ;;
6279 s390x-*linux*)
6280 LD="${LD-ld} -m elf_s390"
6281 ;;
6282 sparc64-*linux*)
6283 LD="${LD-ld} -m elf32_sparc"
6284 ;;
6285 esac
6286 ;;
6287 *64-bit*)
6288 case $host in
6289 x86_64-*kfreebsd*-gnu)
6290 LD="${LD-ld} -m elf_x86_64_fbsd"
6291 ;;
6292 x86_64-*linux*)
6293 LD="${LD-ld} -m elf_x86_64"
6294 ;;
6295 ppc*-*linux*|powerpc*-*linux*)
6296 LD="${LD-ld} -m elf64ppc"
6297 ;;
6298 s390*-*linux*|s390*-*tpf*)
6299 LD="${LD-ld} -m elf64_s390"
6300 ;;
6301 sparc*-*linux*)
6302 LD="${LD-ld} -m elf64_sparc"
6303 ;;
6304 esac
6305 ;;
6306 esac
6307 fi
6308 rm -rf conftest*
6309 ;;
6310
6311*-*-sco3.2v5*)
6312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6313 SAVE_CFLAGS="$CFLAGS"
6314 CFLAGS="$CFLAGS -belf"
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6316$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6317if test "${lt_cv_cc_needs_belf+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319else
6320 ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
cb3103a1 6326 if test x$gcc_no_link = xyes; then
6327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6328fi
6329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 6330/* end confdefs.h. */
6331
6332int
6333main ()
6334{
6335
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340if ac_fn_c_try_link "$LINENO"; then :
6341 lt_cv_cc_needs_belf=yes
6342else
6343 lt_cv_cc_needs_belf=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347 ac_ext=c
6348ac_cpp='$CPP $CPPFLAGS'
6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353fi
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6355$as_echo "$lt_cv_cc_needs_belf" >&6; }
6356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6358 CFLAGS="$SAVE_CFLAGS"
6359 fi
6360 ;;
6361sparc*-*solaris*)
6362 # Find out which ABI we are using.
6363 echo 'int i;' > conftest.$ac_ext
6364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6365 (eval $ac_compile) 2>&5
6366 ac_status=$?
6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368 test $ac_status = 0; }; then
6369 case `/usr/bin/file conftest.o` in
6370 *64-bit*)
6371 case $lt_cv_prog_gnu_ld in
6372 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6373 *)
6374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6375 LD="${LD-ld} -64"
6376 fi
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 rm -rf conftest*
6383 ;;
6384esac
6385
6386need_locks="$enable_libtool_lock"
6387
6388
6389 case $host_os in
6390 rhapsody* | darwin*)
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6393set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398else
6399 if test -n "$DSYMUTIL"; then
6400 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413done
6414 done
6415IFS=$as_save_IFS
6416
6417fi
6418fi
6419DSYMUTIL=$ac_cv_prog_DSYMUTIL
6420if test -n "$DSYMUTIL"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6422$as_echo "$DSYMUTIL" >&6; }
6423else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426fi
6427
6428
6429fi
6430if test -z "$ac_cv_prog_DSYMUTIL"; then
6431 ac_ct_DSYMUTIL=$DSYMUTIL
6432 # Extract the first word of "dsymutil", so it can be a program name with args.
6433set dummy dsymutil; ac_word=$2
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435$as_echo_n "checking for $ac_word... " >&6; }
6436if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438else
6439 if test -n "$ac_ct_DSYMUTIL"; then
6440 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454 done
6455IFS=$as_save_IFS
6456
6457fi
6458fi
6459ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6460if test -n "$ac_ct_DSYMUTIL"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6462$as_echo "$ac_ct_DSYMUTIL" >&6; }
6463else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468 if test "x$ac_ct_DSYMUTIL" = x; then
6469 DSYMUTIL=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472yes:)
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475ac_tool_warned=yes ;;
6476esac
6477 DSYMUTIL=$ac_ct_DSYMUTIL
6478 fi
6479else
6480 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6481fi
6482
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6485set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$NMEDIT"; then
6492 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511NMEDIT=$ac_cv_prog_NMEDIT
6512if test -n "$NMEDIT"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6514$as_echo "$NMEDIT" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521fi
6522if test -z "$ac_cv_prog_NMEDIT"; then
6523 ac_ct_NMEDIT=$NMEDIT
6524 # Extract the first word of "nmedit", so it can be a program name with args.
6525set dummy nmedit; ac_word=$2
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527$as_echo_n "checking for $ac_word... " >&6; }
6528if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530else
6531 if test -n "$ac_ct_NMEDIT"; then
6532 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546 done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6552if test -n "$ac_ct_NMEDIT"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6554$as_echo "$ac_ct_NMEDIT" >&6; }
6555else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560 if test "x$ac_ct_NMEDIT" = x; then
6561 NMEDIT=":"
6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564yes:)
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567ac_tool_warned=yes ;;
6568esac
6569 NMEDIT=$ac_ct_NMEDIT
6570 fi
6571else
6572 NMEDIT="$ac_cv_prog_NMEDIT"
6573fi
6574
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}lipo; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if test "${ac_cv_prog_LIPO+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 if test -n "$LIPO"; then
6584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598 done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603LIPO=$ac_cv_prog_LIPO
0c0fb0a6 6604if test -n "$LIPO"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6606$as_echo "$LIPO" >&6; }
87969c8c 6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613fi
0c0fb0a6 6614if test -z "$ac_cv_prog_LIPO"; then
6615 ac_ct_LIPO=$LIPO
6616 # Extract the first word of "lipo", so it can be a program name with args.
6617set dummy lipo; ac_word=$2
87969c8c 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
0c0fb0a6 6620if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
87969c8c 6621 $as_echo_n "(cached) " >&6
6622else
0c0fb0a6 6623 if test -n "$ac_ct_LIPO"; then
6624 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
87969c8c 6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c0fb0a6 6633 ac_cv_prog_ac_ct_LIPO="lipo"
87969c8c 6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
0c0fb0a6 6643ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6644if test -n "$ac_ct_LIPO"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6646$as_echo "$ac_ct_LIPO" >&6; }
87969c8c 6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
0c0fb0a6 6652 if test "x$ac_ct_LIPO" = x; then
6653 LIPO=":"
87969c8c 6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656yes:)
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659ac_tool_warned=yes ;;
6660esac
0c0fb0a6 6661 LIPO=$ac_ct_LIPO
87969c8c 6662 fi
6663else
0c0fb0a6 6664 LIPO="$ac_cv_prog_LIPO"
87969c8c 6665fi
6666
0c0fb0a6 6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6669set dummy ${ac_tool_prefix}otool; ac_word=$2
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671$as_echo_n "checking for $ac_word... " >&6; }
6672if test "${ac_cv_prog_OTOOL+set}" = set; then :
87969c8c 6673 $as_echo_n "(cached) " >&6
6674else
0c0fb0a6 6675 if test -n "$OTOOL"; then
6676 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
87969c8c 6677else
0c0fb0a6 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690 done
6691IFS=$as_save_IFS
87969c8c 6692
87969c8c 6693fi
87969c8c 6694fi
0c0fb0a6 6695OTOOL=$ac_cv_prog_OTOOL
6696if test -n "$OTOOL"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6698$as_echo "$OTOOL" >&6; }
87969c8c 6699else
0c0fb0a6 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701$as_echo "no" >&6; }
87969c8c 6702fi
87969c8c 6703
0c0fb0a6 6704
87969c8c 6705fi
0c0fb0a6 6706if test -z "$ac_cv_prog_OTOOL"; then
6707 ac_ct_OTOOL=$OTOOL
6708 # Extract the first word of "otool", so it can be a program name with args.
6709set dummy otool; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
87969c8c 6713 $as_echo_n "(cached) " >&6
6714else
0c0fb0a6 6715 if test -n "$ac_ct_OTOOL"; then
6716 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_OTOOL="otool"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730 done
6731IFS=$as_save_IFS
87969c8c 6732
0c0fb0a6 6733fi
6734fi
6735ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6736if test -n "$ac_ct_OTOOL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6738$as_echo "$ac_ct_OTOOL" >&6; }
87969c8c 6739else
0c0fb0a6 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
87969c8c 6742fi
87969c8c 6743
0c0fb0a6 6744 if test "x$ac_ct_OTOOL" = x; then
6745 OTOOL=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748yes:)
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751ac_tool_warned=yes ;;
6752esac
6753 OTOOL=$ac_ct_OTOOL
6754 fi
87969c8c 6755else
0c0fb0a6 6756 OTOOL="$ac_cv_prog_OTOOL"
87969c8c 6757fi
87969c8c 6758
0c0fb0a6 6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6761set dummy ${ac_tool_prefix}otool64; ac_word=$2
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766else
6767 if test -n "$OTOOL64"; then
6768 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
87969c8c 6781done
0c0fb0a6 6782 done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787OTOOL64=$ac_cv_prog_OTOOL64
6788if test -n "$OTOOL64"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6790$as_echo "$OTOOL64" >&6; }
6791else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
87969c8c 6794fi
6795
87969c8c 6796
6797fi
0c0fb0a6 6798if test -z "$ac_cv_prog_OTOOL64"; then
6799 ac_ct_OTOOL64=$OTOOL64
6800 # Extract the first word of "otool64", so it can be a program name with args.
6801set dummy otool64; ac_word=$2
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
6804if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
87969c8c 6806else
0c0fb0a6 6807 if test -n "$ac_ct_OTOOL64"; then
6808 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
87969c8c 6812do
0c0fb0a6 6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_OTOOL64="otool64"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822 done
6823IFS=$as_save_IFS
87969c8c 6824
0c0fb0a6 6825fi
6826fi
6827ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6828if test -n "$ac_ct_OTOOL64"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6830$as_echo "$ac_ct_OTOOL64" >&6; }
87969c8c 6831else
0c0fb0a6 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833$as_echo "no" >&6; }
87969c8c 6834fi
87969c8c 6835
0c0fb0a6 6836 if test "x$ac_ct_OTOOL64" = x; then
6837 OTOOL64=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840yes:)
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843ac_tool_warned=yes ;;
6844esac
6845 OTOOL64=$ac_ct_OTOOL64
6846 fi
87969c8c 6847else
0c0fb0a6 6848 OTOOL64="$ac_cv_prog_OTOOL64"
87969c8c 6849fi
87969c8c 6850
87969c8c 6851
87969c8c 6852
87969c8c 6853
6854
87969c8c 6855
87969c8c 6856
87969c8c 6857
87969c8c 6858
87969c8c 6859
87969c8c 6860
0c0fb0a6 6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6878$as_echo_n "checking for -single_module linker flag... " >&6; }
6879if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881else
6882 lt_cv_apple_cc_single_mod=no
6883 if test -z "${LT_MULTI_MODULE}"; then
6884 # By default we will add the -single_module flag. You can override
6885 # by either setting the environment variable LT_MULTI_MODULE
6886 # non-empty at configure time, or by adding -multi_module to the
6887 # link flags.
6888 rm -rf libconftest.dylib*
6889 echo "int foo(void){return 1;}" > conftest.c
6890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6891-dynamiclib -Wl,-single_module conftest.c" >&5
6892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6894 _lt_result=$?
6895 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6896 lt_cv_apple_cc_single_mod=yes
6897 else
6898 cat conftest.err >&5
6899 fi
6900 rm -rf libconftest.dylib*
6901 rm -f conftest.*
6902 fi
87969c8c 6903fi
0c0fb0a6 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6905$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6907$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6908if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
87969c8c 6910else
0c0fb0a6 6911 lt_cv_ld_exported_symbols_list=no
6912 save_LDFLAGS=$LDFLAGS
6913 echo "_main" > conftest.sym
6914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6915 if test x$gcc_no_link = xyes; then
6916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
87969c8c 6917fi
0c0fb0a6 6918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 6919/* end confdefs.h. */
87969c8c 6920
87969c8c 6921int
6922main ()
6923{
0c0fb0a6 6924
6925 ;
87969c8c 6926 return 0;
6927}
6928_ACEOF
0c0fb0a6 6929if ac_fn_c_try_link "$LINENO"; then :
6930 lt_cv_ld_exported_symbols_list=yes
87969c8c 6931else
0c0fb0a6 6932 lt_cv_ld_exported_symbols_list=no
87969c8c 6933fi
0c0fb0a6 6934rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 LDFLAGS="$save_LDFLAGS"
87969c8c 6937
6938fi
0c0fb0a6 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6940$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6942$as_echo_n "checking for -force_load linker flag... " >&6; }
6943if test "${lt_cv_ld_force_load+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945else
6946 lt_cv_ld_force_load=no
6947 cat > conftest.c << _LT_EOF
6948int forced_loaded() { return 2;}
6949_LT_EOF
6950 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6951 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6952 echo "$AR cru libconftest.a conftest.o" >&5
6953 $AR cru libconftest.a conftest.o 2>&5
6954 cat > conftest.c << _LT_EOF
6955int main() { return 0;}
6956_LT_EOF
6957 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6958 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6959 _lt_result=$?
6960 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6961 lt_cv_ld_force_load=yes
6962 else
6963 cat conftest.err >&5
6964 fi
6965 rm -f conftest.err libconftest.a conftest conftest.c
6966 rm -rf conftest.dSYM
87969c8c 6967
6968fi
0c0fb0a6 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6970$as_echo "$lt_cv_ld_force_load" >&6; }
6971 case $host_os in
6972 rhapsody* | darwin1.[012])
6973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6974 darwin1.*)
6975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976 darwin*) # darwin 5.x on
6977 # if running on 10.5 or later, the deployment target defaults
6978 # to the OS version, if on x86, and 10.4, the deployment
6979 # target defaults to 10.4. Don't you love it?
6980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983 10.[012]*)
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985 10.*)
6986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6987 esac
6988 ;;
6989 esac
6990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6991 _lt_dar_single_mod='$single_module'
6992 fi
6993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6995 else
6996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6997 fi
6998 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6999 _lt_dsymutil='~$DSYMUTIL $lib || :'
7000 else
7001 _lt_dsymutil=
7002 fi
7003 ;;
7004 esac
87969c8c 7005
7006for ac_header in dlfcn.h
7007do :
7008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7009"
7010if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7011 cat >>confdefs.h <<_ACEOF
7012#define HAVE_DLFCN_H 1
7013_ACEOF
7014
7015fi
7016
7017done
7018
7019
7020
7021
7022
7023# Set options
7024
7025
7026
7027 enable_dlopen=no
7028
7029
7030 enable_win32_dll=no
7031
7032
7033 # Check whether --enable-shared was given.
7034if test "${enable_shared+set}" = set; then :
7035 enableval=$enable_shared; p=${PACKAGE-default}
7036 case $enableval in
7037 yes) enable_shared=yes ;;
7038 no) enable_shared=no ;;
7039 *)
7040 enable_shared=no
7041 # Look at the argument we got. We use all the common list separators.
7042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7043 for pkg in $enableval; do
7044 IFS="$lt_save_ifs"
7045 if test "X$pkg" = "X$p"; then
7046 enable_shared=yes
7047 fi
7048 done
7049 IFS="$lt_save_ifs"
7050 ;;
7051 esac
7052else
7053 enable_shared=yes
7054fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064 # Check whether --enable-static was given.
7065if test "${enable_static+set}" = set; then :
7066 enableval=$enable_static; p=${PACKAGE-default}
7067 case $enableval in
7068 yes) enable_static=yes ;;
7069 no) enable_static=no ;;
7070 *)
7071 enable_static=no
7072 # Look at the argument we got. We use all the common list separators.
7073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7074 for pkg in $enableval; do
7075 IFS="$lt_save_ifs"
7076 if test "X$pkg" = "X$p"; then
7077 enable_static=yes
7078 fi
7079 done
7080 IFS="$lt_save_ifs"
7081 ;;
7082 esac
7083else
7084 enable_static=yes
7085fi
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096# Check whether --with-pic was given.
7097if test "${with_pic+set}" = set; then :
7098 withval=$with_pic; pic_mode="$withval"
7099else
7100 pic_mode=default
7101fi
7102
7103
7104test -z "$pic_mode" && pic_mode=default
7105
7106
7107
7108
7109
7110
7111
7112 # Check whether --enable-fast-install was given.
7113if test "${enable_fast_install+set}" = set; then :
7114 enableval=$enable_fast_install; p=${PACKAGE-default}
7115 case $enableval in
7116 yes) enable_fast_install=yes ;;
7117 no) enable_fast_install=no ;;
7118 *)
7119 enable_fast_install=no
7120 # Look at the argument we got. We use all the common list separators.
7121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7122 for pkg in $enableval; do
7123 IFS="$lt_save_ifs"
7124 if test "X$pkg" = "X$p"; then
7125 enable_fast_install=yes
7126 fi
7127 done
7128 IFS="$lt_save_ifs"
7129 ;;
7130 esac
7131else
7132 enable_fast_install=yes
7133fi
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145# This can be used to rebuild libtool when needed
7146LIBTOOL_DEPS="$ltmain"
7147
7148# Always use our own libtool.
7149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176test -z "$LN_S" && LN_S="ln -s"
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191if test -n "${ZSH_VERSION+set}" ; then
7192 setopt NO_GLOB_SUBST
7193fi
7194
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7196$as_echo_n "checking for objdir... " >&6; }
7197if test "${lt_cv_objdir+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7199else
7200 rm -f .libs 2>/dev/null
7201mkdir .libs 2>/dev/null
7202if test -d .libs; then
7203 lt_cv_objdir=.libs
7204else
7205 # MS-DOS does not allow filenames that begin with a dot.
7206 lt_cv_objdir=_libs
7207fi
7208rmdir .libs 2>/dev/null
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7211$as_echo "$lt_cv_objdir" >&6; }
7212objdir=$lt_cv_objdir
7213
7214
7215
7216
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LT_OBJDIR "$lt_cv_objdir/"
7220_ACEOF
7221
7222
7223
7224
7225case $host_os in
7226aix3*)
7227 # AIX sometimes has problems with the GCC collect2 program. For some
7228 # reason, if we set the COLLECT_NAMES environment variable, the problems
7229 # vanish in a puff of smoke.
7230 if test "X${COLLECT_NAMES+set}" != Xset; then
7231 COLLECT_NAMES=
7232 export COLLECT_NAMES
7233 fi
7234 ;;
7235esac
7236
7237# Global variables:
7238ofile=libtool
7239can_build_shared=yes
7240
7241# All known linkers require a `.a' archive for static linking (except MSVC,
7242# which needs '.lib').
7243libext=a
7244
7245with_gnu_ld="$lt_cv_prog_gnu_ld"
7246
7247old_CC="$CC"
7248old_CFLAGS="$CFLAGS"
7249
7250# Set sane defaults for various variables
7251test -z "$CC" && CC=cc
7252test -z "$LTCC" && LTCC=$CC
7253test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7254test -z "$LD" && LD=ld
7255test -z "$ac_objext" && ac_objext=o
7256
7257for cc_temp in $compiler""; do
7258 case $cc_temp in
7259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7261 \-*) ;;
7262 *) break;;
7263 esac
7264done
7265cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7266
7267
7268# Only perform the check for file, if the check method requires it
7269test -z "$MAGIC_CMD" && MAGIC_CMD=file
7270case $deplibs_check_method in
7271file_magic*)
7272 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7274$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 case $MAGIC_CMD in
7279[\\/*] | ?:[\\/]*)
7280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7281 ;;
7282*)
7283 lt_save_MAGIC_CMD="$MAGIC_CMD"
7284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7286 for ac_dir in $ac_dummy; do
7287 IFS="$lt_save_ifs"
7288 test -z "$ac_dir" && ac_dir=.
7289 if test -f $ac_dir/${ac_tool_prefix}file; then
7290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7291 if test -n "$file_magic_test_file"; then
7292 case $deplibs_check_method in
7293 "file_magic "*)
7294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7297 $EGREP "$file_magic_regex" > /dev/null; then
7298 :
7299 else
7300 cat <<_LT_EOF 1>&2
7301
7302*** Warning: the command libtool uses to detect shared libraries,
7303*** $file_magic_cmd, produces output that libtool cannot recognize.
7304*** The result is that libtool may fail to recognize shared libraries
7305*** as such. This will affect the creation of libtool libraries that
7306*** depend on shared libraries, but programs linked with such libtool
7307*** libraries will work regardless of this problem. Nevertheless, you
7308*** may want to report the problem to your system manager and/or to
7309*** bug-libtool@gnu.org
7310
7311_LT_EOF
7312 fi ;;
7313 esac
7314 fi
7315 break
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 MAGIC_CMD="$lt_save_MAGIC_CMD"
7320 ;;
7321esac
7322fi
7323
7324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7325if test -n "$MAGIC_CMD"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7327$as_echo "$MAGIC_CMD" >&6; }
7328else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333
7334
7335
7336
7337if test -z "$lt_cv_path_MAGIC_CMD"; then
7338 if test -n "$ac_tool_prefix"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7340$as_echo_n "checking for file... " >&6; }
7341if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343else
7344 case $MAGIC_CMD in
7345[\\/*] | ?:[\\/]*)
7346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7347 ;;
7348*)
7349 lt_save_MAGIC_CMD="$MAGIC_CMD"
7350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352 for ac_dir in $ac_dummy; do
7353 IFS="$lt_save_ifs"
7354 test -z "$ac_dir" && ac_dir=.
7355 if test -f $ac_dir/file; then
7356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7357 if test -n "$file_magic_test_file"; then
7358 case $deplibs_check_method in
7359 "file_magic "*)
7360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363 $EGREP "$file_magic_regex" > /dev/null; then
7364 :
7365 else
7366 cat <<_LT_EOF 1>&2
7367
7368*** Warning: the command libtool uses to detect shared libraries,
7369*** $file_magic_cmd, produces output that libtool cannot recognize.
7370*** The result is that libtool may fail to recognize shared libraries
7371*** as such. This will affect the creation of libtool libraries that
7372*** depend on shared libraries, but programs linked with such libtool
7373*** libraries will work regardless of this problem. Nevertheless, you
7374*** may want to report the problem to your system manager and/or to
7375*** bug-libtool@gnu.org
7376
7377_LT_EOF
7378 fi ;;
7379 esac
7380 fi
7381 break
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 MAGIC_CMD="$lt_save_MAGIC_CMD"
7386 ;;
7387esac
7388fi
7389
7390MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391if test -n "$MAGIC_CMD"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7393$as_echo "$MAGIC_CMD" >&6; }
7394else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399
7400 else
7401 MAGIC_CMD=:
7402 fi
7403fi
7404
7405 fi
7406 ;;
7407esac
7408
7409# Use C for the default configuration in the libtool script
7410
7411lt_save_CC="$CC"
7412ac_ext=c
7413ac_cpp='$CPP $CPPFLAGS'
7414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417
7418
7419# Source file extension for C test sources.
7420ac_ext=c
7421
7422# Object file extension for compiled C test sources.
7423objext=o
7424objext=$objext
7425
7426# Code to be used in simple compile tests
7427lt_simple_compile_test_code="int some_variable = 0;"
7428
7429# Code to be used in simple link tests
7430lt_simple_link_test_code='int main(){return(0);}'
7431
7432
7433
7434
7435
7436
7437
7438# If no C compiler was specified, use CC.
7439LTCC=${LTCC-"$CC"}
7440
7441# If no C compiler flags were specified, use CFLAGS.
7442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7443
7444# Allow CC to be a program name with arguments.
7445compiler=$CC
7446
7447# Save the default compiler, since it gets overwritten when the other
7448# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7449compiler_DEFAULT=$CC
7450
7451# save warnings/boilerplate of simple test code
7452ac_outfile=conftest.$ac_objext
7453echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7454eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7455_lt_compiler_boilerplate=`cat conftest.err`
7456$RM conftest*
7457
7458ac_outfile=conftest.$ac_objext
7459echo "$lt_simple_link_test_code" >conftest.$ac_ext
7460eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7461_lt_linker_boilerplate=`cat conftest.err`
7462$RM -r conftest*
7463
7464
7465## CAVEAT EMPTOR:
7466## There is no encapsulation within the following macros, do not change
7467## the running order or otherwise move them around unless you know exactly
7468## what you are doing...
7469if test -n "$compiler"; then
7470
7471lt_prog_compiler_no_builtin_flag=
7472
7473if test "$GCC" = yes; then
7474 case $cc_basename in
7475 nvcc*)
7476 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7477 *)
7478 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7479 esac
7480
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7482$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7483if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7485else
7486 lt_cv_prog_compiler_rtti_exceptions=no
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7489 lt_compiler_flag="-fno-rtti -fno-exceptions"
7490 # Insert the option either (1) after the last *FLAGS variable, or
7491 # (2) before a word containing "conftest.", or (3) at the end.
7492 # Note that $ac_compile itself does not contain backslashes and begins
7493 # with a dollar sign (not a hyphen), so the echo should work correctly.
7494 # The option is referenced via a variable to avoid confusing sed.
7495 lt_compile=`echo "$ac_compile" | $SED \
7496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7498 -e 's:$: $lt_compiler_flag:'`
7499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7500 (eval "$lt_compile" 2>conftest.err)
7501 ac_status=$?
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 if (exit $ac_status) && test -s "$ac_outfile"; then
7505 # The compiler can only warn and ignore the option if not recognized
7506 # So say no if there are warnings other than the usual output.
7507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7510 lt_cv_prog_compiler_rtti_exceptions=yes
7511 fi
7512 fi
7513 $RM conftest*
7514
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7517$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7518
7519if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7520 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7521else
7522 :
7523fi
7524
7525fi
7526
7527
7528
7529
7530
7531
7532 lt_prog_compiler_wl=
7533lt_prog_compiler_pic=
7534lt_prog_compiler_static=
7535
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7537$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7538
7539 if test "$GCC" = yes; then
7540 lt_prog_compiler_wl='-Wl,'
7541 lt_prog_compiler_static='-static'
7542
7543 case $host_os in
7544 aix*)
7545 # All AIX code is PIC.
7546 if test "$host_cpu" = ia64; then
7547 # AIX 5 now supports IA64 processor
7548 lt_prog_compiler_static='-Bstatic'
7549 fi
37bbb30d 7550 lt_prog_compiler_pic='-fPIC'
87969c8c 7551 ;;
7552
7553 amigaos*)
7554 case $host_cpu in
7555 powerpc)
7556 # see comment about AmigaOS4 .so support
7557 lt_prog_compiler_pic='-fPIC'
7558 ;;
7559 m68k)
7560 # FIXME: we need at least 68020 code to build shared libraries, but
7561 # adding the `-m68020' flag to GCC prevents building anything better,
7562 # like `-m68040'.
7563 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7564 ;;
7565 esac
7566 ;;
7567
7568 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7569 # PIC is the default for these OSes.
7570 ;;
7571
7572 mingw* | cygwin* | pw32* | os2* | cegcc*)
7573 # This hack is so that the source file can tell whether it is being
7574 # built for inclusion in a dll (and should export symbols for example).
7575 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7576 # (--disable-auto-import) libraries
7577 lt_prog_compiler_pic='-DDLL_EXPORT'
7578 ;;
7579
7580 darwin* | rhapsody*)
7581 # PIC is the default on this platform
7582 # Common symbols not allowed in MH_DYLIB files
7583 lt_prog_compiler_pic='-fno-common'
7584 ;;
7585
7586 haiku*)
7587 # PIC is the default for Haiku.
7588 # The "-static" flag exists, but is broken.
7589 lt_prog_compiler_static=
7590 ;;
7591
7592 hpux*)
7593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7595 # sets the default TLS model and affects inlining.
7596 case $host_cpu in
7597 hppa*64*)
7598 # +Z the default
7599 ;;
7600 *)
7601 lt_prog_compiler_pic='-fPIC'
7602 ;;
7603 esac
7604 ;;
7605
7606 interix[3-9]*)
7607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7608 # Instead, we relocate shared libraries at runtime.
7609 ;;
7610
7611 msdosdjgpp*)
7612 # Just because we use GCC doesn't mean we suddenly get shared libraries
7613 # on systems that don't support them.
7614 lt_prog_compiler_can_build_shared=no
7615 enable_shared=no
7616 ;;
7617
7618 *nto* | *qnx*)
7619 # QNX uses GNU C++, but need to define -shared option too, otherwise
7620 # it will coredump.
7621 lt_prog_compiler_pic='-fPIC -shared'
7622 ;;
7623
7624 sysv4*MP*)
7625 if test -d /usr/nec; then
7626 lt_prog_compiler_pic=-Kconform_pic
7627 fi
7628 ;;
7629
7630 *)
7631 lt_prog_compiler_pic='-fPIC'
7632 ;;
7633 esac
7634
7635 case $cc_basename in
7636 nvcc*) # Cuda Compiler Driver 2.2
7637 lt_prog_compiler_wl='-Xlinker '
7638 lt_prog_compiler_pic='-Xcompiler -fPIC'
7639 ;;
7640 esac
7641 else
7642 # PORTME Check for flag to pass linker flags through the system compiler.
7643 case $host_os in
7644 aix*)
7645 lt_prog_compiler_wl='-Wl,'
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 else
7650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7651 fi
7652 ;;
7653
7654 mingw* | cygwin* | pw32* | os2* | cegcc*)
7655 # This hack is so that the source file can tell whether it is being
7656 # built for inclusion in a dll (and should export symbols for example).
7657 lt_prog_compiler_pic='-DDLL_EXPORT'
7658 ;;
7659
7660 hpux9* | hpux10* | hpux11*)
7661 lt_prog_compiler_wl='-Wl,'
7662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7663 # not for PA HP-UX.
7664 case $host_cpu in
7665 hppa*64*|ia64*)
7666 # +Z the default
7667 ;;
7668 *)
7669 lt_prog_compiler_pic='+Z'
7670 ;;
7671 esac
7672 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7673 lt_prog_compiler_static='${wl}-a ${wl}archive'
7674 ;;
7675
7676 irix5* | irix6* | nonstopux*)
7677 lt_prog_compiler_wl='-Wl,'
7678 # PIC (with -KPIC) is the default.
7679 lt_prog_compiler_static='-non_shared'
7680 ;;
7681
7682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7683 case $cc_basename in
7684 # old Intel for x86_64 which still supported -KPIC.
7685 ecc*)
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-static'
7689 ;;
7690 # icc used to be incompatible with GCC.
7691 # ICC 10 doesn't accept -KPIC any more.
7692 icc* | ifort*)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_pic='-fPIC'
7695 lt_prog_compiler_static='-static'
7696 ;;
7697 # Lahey Fortran 8.1.
7698 lf95*)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='--shared'
7701 lt_prog_compiler_static='--static'
7702 ;;
7703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7704 # Portland Group compilers (*not* the Pentium gcc compiler,
7705 # which looks to be a dead project)
7706 lt_prog_compiler_wl='-Wl,'
7707 lt_prog_compiler_pic='-fpic'
7708 lt_prog_compiler_static='-Bstatic'
7709 ;;
7710 ccc*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # All Alpha code is PIC.
7713 lt_prog_compiler_static='-non_shared'
7714 ;;
7715 xl* | bgxl* | bgf* | mpixl*)
7716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_pic='-qpic'
7719 lt_prog_compiler_static='-qstaticlink'
7720 ;;
7721 *)
7722 case `$CC -V 2>&1 | sed 5q` in
7723 *Sun\ F* | *Sun*Fortran*)
7724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7725 lt_prog_compiler_pic='-KPIC'
7726 lt_prog_compiler_static='-Bstatic'
7727 lt_prog_compiler_wl=''
7728 ;;
7729 *Sun\ C*)
7730 # Sun C 5.9
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7733 lt_prog_compiler_wl='-Wl,'
7734 ;;
7735 esac
7736 ;;
7737 esac
7738 ;;
7739
7740 newsos6)
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 *nto* | *qnx*)
7746 # QNX uses GNU C++, but need to define -shared option too, otherwise
7747 # it will coredump.
7748 lt_prog_compiler_pic='-fPIC -shared'
7749 ;;
7750
7751 osf3* | osf4* | osf5*)
7752 lt_prog_compiler_wl='-Wl,'
7753 # All OSF/1 code is PIC.
7754 lt_prog_compiler_static='-non_shared'
7755 ;;
7756
7757 rdos*)
7758 lt_prog_compiler_static='-non_shared'
7759 ;;
7760
7761 solaris*)
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-Bstatic'
7764 case $cc_basename in
7765 f77* | f90* | f95*)
7766 lt_prog_compiler_wl='-Qoption ld ';;
7767 *)
7768 lt_prog_compiler_wl='-Wl,';;
7769 esac
7770 ;;
7771
7772 sunos4*)
7773 lt_prog_compiler_wl='-Qoption ld '
7774 lt_prog_compiler_pic='-PIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 ;;
7777
7778 sysv4 | sysv4.2uw2* | sysv4.3*)
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 ;;
7783
7784 sysv4*MP*)
7785 if test -d /usr/nec ;then
7786 lt_prog_compiler_pic='-Kconform_pic'
7787 lt_prog_compiler_static='-Bstatic'
7788 fi
7789 ;;
7790
7791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796
7797 unicos*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_can_build_shared=no
7800 ;;
7801
7802 uts4*)
7803 lt_prog_compiler_pic='-pic'
7804 lt_prog_compiler_static='-Bstatic'
7805 ;;
7806
7807 *)
7808 lt_prog_compiler_can_build_shared=no
7809 ;;
7810 esac
7811 fi
7812
7813case $host_os in
7814 # For platforms which do not support PIC, -DPIC is meaningless:
7815 *djgpp*)
7816 lt_prog_compiler_pic=
7817 ;;
7818 *)
7819 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7820 ;;
7821esac
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7823$as_echo "$lt_prog_compiler_pic" >&6; }
7824
7825
7826
7827
7828
7829
7830#
7831# Check to make sure the PIC flag actually works.
7832#
7833if test -n "$lt_prog_compiler_pic"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7835$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7836if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838else
7839 lt_cv_prog_compiler_pic_works=no
7840 ac_outfile=conftest.$ac_objext
7841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7843 # Insert the option either (1) after the last *FLAGS variable, or
7844 # (2) before a word containing "conftest.", or (3) at the end.
7845 # Note that $ac_compile itself does not contain backslashes and begins
7846 # with a dollar sign (not a hyphen), so the echo should work correctly.
7847 # The option is referenced via a variable to avoid confusing sed.
7848 lt_compile=`echo "$ac_compile" | $SED \
7849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851 -e 's:$: $lt_compiler_flag:'`
7852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7853 (eval "$lt_compile" 2>conftest.err)
7854 ac_status=$?
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 if (exit $ac_status) && test -s "$ac_outfile"; then
7858 # The compiler can only warn and ignore the option if not recognized
7859 # So say no if there are warnings other than the usual output.
7860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_pic_works=yes
7864 fi
7865 fi
7866 $RM conftest*
7867
7868fi
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7870$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7871
7872if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7873 case $lt_prog_compiler_pic in
7874 "" | " "*) ;;
7875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7876 esac
7877else
7878 lt_prog_compiler_pic=
7879 lt_prog_compiler_can_build_shared=no
7880fi
7881
7882fi
7883
7884
7885
7886
7887
7888
7889#
7890# Check to make sure the static flag actually works.
7891#
7892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7895if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897else
7898 lt_cv_prog_compiler_static_works=no
7899 save_LDFLAGS="$LDFLAGS"
7900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7901 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7903 # The linker can only warn and ignore the option if not recognized
7904 # So say no if there are warnings
7905 if test -s conftest.err; then
7906 # Append any errors to the config.log.
7907 cat conftest.err 1>&5
7908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910 if diff conftest.exp conftest.er2 >/dev/null; then
7911 lt_cv_prog_compiler_static_works=yes
7912 fi
7913 else
7914 lt_cv_prog_compiler_static_works=yes
7915 fi
7916 fi
7917 $RM -r conftest*
7918 LDFLAGS="$save_LDFLAGS"
7919
7920fi
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7922$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7923
7924if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7925 :
7926else
7927 lt_prog_compiler_static=
7928fi
7929
7930
7931
7932
7933
7934
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7938if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940else
7941 lt_cv_prog_compiler_c_o=no
7942 $RM -r conftest 2>/dev/null
7943 mkdir conftest
7944 cd conftest
7945 mkdir out
7946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7947
7948 lt_compiler_flag="-o out/conftest2.$ac_objext"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>out/conftest.err)
7959 ac_status=$?
7960 cat out/conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7963 then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_c_o=yes
7970 fi
7971 fi
7972 chmod u+w . 2>&5
7973 $RM conftest*
7974 # SGI C++ compiler will create directory out/ii_files/ for
7975 # template instantiation
7976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7977 $RM out/* && rmdir out
7978 cd ..
7979 $RM -r conftest
7980 $RM conftest*
7981
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7984$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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
8044hard_links="nottested"
8045if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8046 # do not overwrite the value of need_locks provided by the user
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8048$as_echo_n "checking if we can lock with hard links... " >&6; }
8049 hard_links=yes
8050 $RM conftest*
8051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8052 touch conftest.a
8053 ln conftest.a conftest.b 2>&5 || hard_links=no
8054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8056$as_echo "$hard_links" >&6; }
8057 if test "$hard_links" = no; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8060 need_locks=warn
8061 fi
8062else
8063 need_locks=no
8064fi
8065
8066
8067
8068
8069
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8072$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8073
8074 runpath_var=
8075 allow_undefined_flag=
8076 always_export_symbols=no
8077 archive_cmds=
8078 archive_expsym_cmds=
8079 compiler_needs_object=no
8080 enable_shared_with_static_runtimes=no
8081 export_dynamic_flag_spec=
8082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8083 hardcode_automatic=no
8084 hardcode_direct=no
8085 hardcode_direct_absolute=no
8086 hardcode_libdir_flag_spec=
8087 hardcode_libdir_flag_spec_ld=
8088 hardcode_libdir_separator=
8089 hardcode_minus_L=no
8090 hardcode_shlibpath_var=unsupported
8091 inherit_rpath=no
8092 link_all_deplibs=unknown
8093 module_cmds=
8094 module_expsym_cmds=
8095 old_archive_from_new_cmds=
8096 old_archive_from_expsyms_cmds=
8097 thread_safe_flag_spec=
8098 whole_archive_flag_spec=
8099 # include_expsyms should be a list of space-separated symbols to be *always*
8100 # included in the symbol list
8101 include_expsyms=
8102 # exclude_expsyms can be an extended regexp of symbols to exclude
8103 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8104 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8105 # as well as any symbol that contains `d'.
8106 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8107 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8108 # platforms (ab)use it in PIC code, but their linkers get confused if
8109 # the symbol is explicitly referenced. Since portable code cannot
8110 # rely on this symbol name, it's probably fine to never include it in
8111 # preloaded symbol tables.
8112 # Exclude shared library initialization/finalization symbols.
8113 extract_expsyms_cmds=
8114
8115 case $host_os in
8116 cygwin* | mingw* | pw32* | cegcc*)
8117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8118 # When not using gcc, we currently assume that we are using
8119 # Microsoft Visual C++.
8120 if test "$GCC" != yes; then
8121 with_gnu_ld=no
8122 fi
8123 ;;
8124 interix*)
8125 # we just hope/assume this is gcc and not c89 (= MSVC++)
8126 with_gnu_ld=yes
8127 ;;
8128 openbsd*)
8129 with_gnu_ld=no
8130 ;;
8131 esac
8132
8133 ld_shlibs=yes
8134
8135 # On some targets, GNU ld is compatible enough with the native linker
8136 # that we're better off using the native interface for both.
8137 lt_use_gnu_ld_interface=no
8138 if test "$with_gnu_ld" = yes; then
8139 case $host_os in
8140 aix*)
8141 # The AIX port of GNU ld has always aspired to compatibility
8142 # with the native linker. However, as the warning in the GNU ld
8143 # block says, versions before 2.19.5* couldn't really create working
8144 # shared libraries, regardless of the interface used.
8145 case `$LD -v 2>&1` in
8146 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8147 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8148 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8149 *)
8150 lt_use_gnu_ld_interface=yes
8151 ;;
8152 esac
8153 ;;
8154 *)
8155 lt_use_gnu_ld_interface=yes
8156 ;;
8157 esac
8158 fi
8159
8160 if test "$lt_use_gnu_ld_interface" = yes; then
8161 # If archive_cmds runs LD, not CC, wlarc should be empty
8162 wlarc='${wl}'
8163
8164 # Set some defaults for GNU ld with shared library support. These
8165 # are reset later if shared libraries are not supported. Putting them
8166 # here allows them to be overridden if necessary.
8167 runpath_var=LD_RUN_PATH
8168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8169 export_dynamic_flag_spec='${wl}--export-dynamic'
8170 # ancient GNU ld didn't support --whole-archive et. al.
8171 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8172 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8173 else
8174 whole_archive_flag_spec=
8175 fi
8176 supports_anon_versioning=no
8177 case `$LD -v 2>&1` in
8178 *GNU\ gold*) supports_anon_versioning=yes ;;
8179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8182 *\ 2.11.*) ;; # other 2.11 versions
8183 *) supports_anon_versioning=yes ;;
8184 esac
8185
8186 # See if GNU ld supports shared libraries.
8187 case $host_os in
8188 aix[3-9]*)
8189 # On AIX/PPC, the GNU linker is very broken
8190 if test "$host_cpu" != ia64; then
8191 ld_shlibs=no
8192 cat <<_LT_EOF 1>&2
8193
8194*** Warning: the GNU linker, at least up to release 2.19, is reported
8195*** to be unable to reliably create shared libraries on AIX.
8196*** Therefore, libtool is disabling shared libraries support. If you
8197*** really care for shared libraries, you may want to install binutils
8198*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8199*** You will then need to restart the configuration process.
8200
8201_LT_EOF
8202 fi
8203 ;;
8204
8205 amigaos*)
8206 case $host_cpu in
8207 powerpc)
8208 # see comment about AmigaOS4 .so support
8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210 archive_expsym_cmds=''
8211 ;;
8212 m68k)
8213 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)'
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_minus_L=yes
8216 ;;
8217 esac
8218 ;;
8219
8220 beos*)
8221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8222 allow_undefined_flag=unsupported
8223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8224 # support --undefined. This deserves some investigation. FIXME
8225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 else
8227 ld_shlibs=no
8228 fi
8229 ;;
8230
8231 cygwin* | mingw* | pw32* | cegcc*)
8232 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8233 # as there is no search path for DLLs.
8234 hardcode_libdir_flag_spec='-L$libdir'
8235 export_dynamic_flag_spec='${wl}--export-all-symbols'
8236 allow_undefined_flag=unsupported
8237 always_export_symbols=no
8238 enable_shared_with_static_runtimes=yes
8239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8240
8241 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8243 # If the export-symbols file already is a .def file (1st line
8244 # is EXPORTS), use it as is; otherwise, prepend...
8245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8246 cp $export_symbols $output_objdir/$soname.def;
8247 else
8248 echo EXPORTS > $output_objdir/$soname.def;
8249 cat $export_symbols >> $output_objdir/$soname.def;
8250 fi~
8251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8252 else
8253 ld_shlibs=no
8254 fi
8255 ;;
8256
8257 haiku*)
8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 link_all_deplibs=yes
8260 ;;
8261
8262 interix[3-9]*)
8263 hardcode_direct=no
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8266 export_dynamic_flag_spec='${wl}-E'
8267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8268 # Instead, shared libraries are loaded at an image base (0x10000000 by
8269 # default) and relocated if they conflict, which is a slow very memory
8270 # consuming and fragmenting process. To avoid this, we pick a random,
8271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8274 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'
8275 ;;
8276
8277 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8278 tmp_diet=no
8279 if test "$host_os" = linux-dietlibc; then
8280 case $cc_basename in
8281 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8282 esac
8283 fi
8284 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8285 && test "$tmp_diet" = no
8286 then
8287 tmp_addflag=
8288 tmp_sharedflag='-shared'
8289 case $cc_basename,$host_cpu in
8290 pgcc*) # Portland Group C compiler
8291 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'
8292 tmp_addflag=' $pic_flag'
8293 ;;
8294 pgf77* | pgf90* | pgf95* | pgfortran*)
8295 # Portland Group f77 and f90 compilers
8296 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'
8297 tmp_addflag=' $pic_flag -Mnomain' ;;
8298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8299 tmp_addflag=' -i_dynamic' ;;
8300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8301 tmp_addflag=' -i_dynamic -nofor_main' ;;
8302 ifc* | ifort*) # Intel Fortran compiler
8303 tmp_addflag=' -nofor_main' ;;
8304 lf95*) # Lahey Fortran 8.1
8305 whole_archive_flag_spec=
8306 tmp_sharedflag='--shared' ;;
8307 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8308 tmp_sharedflag='-qmkshrobj'
8309 tmp_addflag= ;;
8310 nvcc*) # Cuda Compiler Driver 2.2
8311 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'
8312 compiler_needs_object=yes
8313 ;;
8314 esac
8315 case `$CC -V 2>&1 | sed 5q` in
8316 *Sun\ C*) # Sun C 5.9
8317 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'
8318 compiler_needs_object=yes
8319 tmp_sharedflag='-G' ;;
8320 *Sun\ F*) # Sun Fortran 8.3
8321 tmp_sharedflag='-G' ;;
8322 esac
8323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8324
8325 if test "x$supports_anon_versioning" = xyes; then
8326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 echo "local: *; };" >> $output_objdir/$libname.ver~
8329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8330 fi
8331
8332 case $cc_basename in
8333 xlf* | bgf* | bgxlf* | mpixlf*)
8334 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8335 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8336 hardcode_libdir_flag_spec=
8337 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8338 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8339 if test "x$supports_anon_versioning" = xyes; then
8340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8342 echo "local: *; };" >> $output_objdir/$libname.ver~
8343 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8344 fi
8345 ;;
8346 esac
8347 else
8348 ld_shlibs=no
8349 fi
8350 ;;
8351
8352 netbsd*)
8353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8355 wlarc=
8356 else
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8359 fi
8360 ;;
8361
8362 solaris*)
8363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8364 ld_shlibs=no
8365 cat <<_LT_EOF 1>&2
8366
8367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8368*** create shared libraries on Solaris systems. Therefore, libtool
8369*** is disabling shared libraries support. We urge you to upgrade GNU
8370*** binutils to release 2.9.1 or newer. Another option is to modify
8371*** your PATH or compiler configuration so that the native linker is
8372*** used, and then restart.
8373
8374_LT_EOF
8375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8378 else
8379 ld_shlibs=no
8380 fi
8381 ;;
8382
8383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8384 case `$LD -v 2>&1` in
8385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8386 ld_shlibs=no
8387 cat <<_LT_EOF 1>&2
8388
8389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8390*** reliably create shared libraries on SCO systems. Therefore, libtool
8391*** is disabling shared libraries support. We urge you to upgrade GNU
8392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8393*** your PATH or compiler configuration so that the native linker is
8394*** used, and then restart.
8395
8396_LT_EOF
8397 ;;
8398 *)
8399 # For security reasons, it is highly recommended that you always
8400 # use absolute paths for naming shared libraries, and exclude the
8401 # DT_RUNPATH tag from executables and libraries. But doing so
8402 # requires that you compile everything twice, which is a pain.
8403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8407 else
8408 ld_shlibs=no
8409 fi
8410 ;;
8411 esac
8412 ;;
8413
8414 sunos4*)
8415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8416 wlarc=
8417 hardcode_direct=yes
8418 hardcode_shlibpath_var=no
8419 ;;
8420
8421 *)
8422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 else
8426 ld_shlibs=no
8427 fi
8428 ;;
8429 esac
8430
8431 if test "$ld_shlibs" = no; then
8432 runpath_var=
8433 hardcode_libdir_flag_spec=
8434 export_dynamic_flag_spec=
8435 whole_archive_flag_spec=
8436 fi
8437 else
8438 # PORTME fill in a description of your system's linker (not GNU ld)
8439 case $host_os in
8440 aix3*)
8441 allow_undefined_flag=unsupported
8442 always_export_symbols=yes
8443 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'
8444 # Note: this linker hardcodes the directories in LIBPATH if there
8445 # are no directories specified by -L.
8446 hardcode_minus_L=yes
8447 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8448 # Neither direct hardcoding nor static linking is supported with a
8449 # broken collect2.
8450 hardcode_direct=unsupported
8451 fi
8452 ;;
8453
8454 aix[4-9]*)
8455 if test "$host_cpu" = ia64; then
8456 # On IA64, the linker does run time linking by default, so we don't
8457 # have to do anything special.
8458 aix_use_runtimelinking=no
8459 exp_sym_flag='-Bexport'
8460 no_entry_flag=""
8461 else
8462 # If we're using GNU nm, then we don't want the "-C" option.
8463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8464 # Also, AIX nm treats weak defined symbols like other global
8465 # defined symbols, whereas GNU nm marks them as "W".
8466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8467 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'
8468 else
8469 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8470 fi
8471 aix_use_runtimelinking=no
8472
8473 # Test if we are trying to use run time linking or normal
8474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8475 # need to do runtime linking.
8476 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8477 for ld_flag in $LDFLAGS; do
8478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8479 aix_use_runtimelinking=yes
8480 break
8481 fi
8482 done
8483 ;;
8484 esac
8485
8486 exp_sym_flag='-bexport'
8487 no_entry_flag='-bnoentry'
8488 fi
8489
8490 # When large executables or shared objects are built, AIX ld can
8491 # have problems creating the table of contents. If linking a library
8492 # or program results in "error TOC overflow" add -mminimal-toc to
8493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8495
8496 archive_cmds=''
8497 hardcode_direct=yes
8498 hardcode_direct_absolute=yes
8499 hardcode_libdir_separator=':'
8500 link_all_deplibs=yes
8501 file_list_spec='${wl}-f,'
8502
8503 if test "$GCC" = yes; then
8504 case $host_os in aix4.[012]|aix4.[012].*)
8505 # We only want to do this on AIX 4.2 and lower, the check
8506 # below for broken collect2 doesn't work under 4.3+
8507 collect2name=`${CC} -print-prog-name=collect2`
8508 if test -f "$collect2name" &&
8509 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8510 then
8511 # We have reworked collect2
8512 :
8513 else
8514 # We have old collect2
8515 hardcode_direct=unsupported
8516 # It fails to find uninstalled libraries when the uninstalled
8517 # path is not listed in the libpath. Setting hardcode_minus_L
8518 # to unsupported forces relinking
8519 hardcode_minus_L=yes
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_libdir_separator=
8522 fi
8523 ;;
8524 esac
8525 shared_flag='-shared'
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag="$shared_flag "'${wl}-G'
8528 fi
8529 else
8530 # not using gcc
8531 if test "$host_cpu" = ia64; then
8532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8533 # chokes on -Wl,-G. The following line is correct:
8534 shared_flag='-G'
8535 else
8536 if test "$aix_use_runtimelinking" = yes; then
8537 shared_flag='${wl}-G'
8538 else
8539 shared_flag='${wl}-bM:SRE'
8540 fi
8541 fi
8542 fi
8543
8544 export_dynamic_flag_spec='${wl}-bexpall'
8545 # It seems that -bexpall does not export symbols beginning with
8546 # underscore (_), so it is better to generate a list of symbols to export.
8547 always_export_symbols=yes
8548 if test "$aix_use_runtimelinking" = yes; then
8549 # Warning - without using the other runtime loading flags (-brtl),
8550 # -berok will link without error, but may produce a broken library.
8551 allow_undefined_flag='-berok'
8552 # Determine the default libpath from the value encoded in an
8553 # empty executable.
cb3103a1 8554 if test x$gcc_no_link = xyes; then
8555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8556fi
8557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8558/* end confdefs.h. */
8559
8560int
8561main ()
8562{
8563
8564 ;
8565 return 0;
8566}
8567_ACEOF
8568if ac_fn_c_try_link "$LINENO"; then :
8569
8570lt_aix_libpath_sed='
8571 /Import File Strings/,/^$/ {
8572 /^0/ {
8573 s/^0 *\(.*\)$/\1/
8574 p
8575 }
8576 }'
8577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578# Check for a 64-bit object if we didn't find anything.
8579if test -z "$aix_libpath"; then
8580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581fi
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8586
8587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8588 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"
8589 else
8590 if test "$host_cpu" = ia64; then
8591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8592 allow_undefined_flag="-z nodefs"
8593 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"
8594 else
8595 # Determine the default libpath from the value encoded in an
8596 # empty executable.
cb3103a1 8597 if test x$gcc_no_link = xyes; then
8598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8599fi
8600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8601/* end confdefs.h. */
8602
8603int
8604main ()
8605{
8606
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611if ac_fn_c_try_link "$LINENO"; then :
8612
8613lt_aix_libpath_sed='
8614 /Import File Strings/,/^$/ {
8615 /^0/ {
8616 s/^0 *\(.*\)$/\1/
8617 p
8618 }
8619 }'
8620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8621# Check for a 64-bit object if we didn't find anything.
8622if test -z "$aix_libpath"; then
8623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8624fi
8625fi
8626rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8629
8630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8631 # Warning - without using the other run time loading flags,
8632 # -berok will link without error, but may produce a broken library.
8633 no_undefined_flag=' ${wl}-bernotok'
8634 allow_undefined_flag=' ${wl}-berok'
8635 if test "$with_gnu_ld" = yes; then
8636 # We only use this code for GNU lds that support --whole-archive.
8637 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8638 else
8639 # Exported symbols can be pulled into shared objects from archives
8640 whole_archive_flag_spec='$convenience'
8641 fi
8642 archive_cmds_need_lc=yes
8643 # This is similar to how AIX traditionally builds its shared libraries.
8644 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'
8645 fi
8646 fi
8647 ;;
8648
8649 amigaos*)
8650 case $host_cpu in
8651 powerpc)
8652 # see comment about AmigaOS4 .so support
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds=''
8655 ;;
8656 m68k)
8657 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)'
8658 hardcode_libdir_flag_spec='-L$libdir'
8659 hardcode_minus_L=yes
8660 ;;
8661 esac
8662 ;;
8663
8664 bsdi[45]*)
8665 export_dynamic_flag_spec=-rdynamic
8666 ;;
8667
8668 cygwin* | mingw* | pw32* | cegcc*)
8669 # When not using gcc, we currently assume that we are using
8670 # Microsoft Visual C++.
8671 # hardcode_libdir_flag_spec is actually meaningless, as there is
8672 # no search path for DLLs.
8673 hardcode_libdir_flag_spec=' '
8674 allow_undefined_flag=unsupported
8675 # Tell ltmain to make .lib files, not .a files.
8676 libext=lib
8677 # Tell ltmain to make .dll files, not .so files.
8678 shrext_cmds=".dll"
8679 # FIXME: Setting linknames here is a bad hack.
8680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8681 # The linker will automatically build a .lib file if we build a DLL.
8682 old_archive_from_new_cmds='true'
8683 # FIXME: Should let the user specify the lib program.
8684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685 fix_srcfile_path='`cygpath -w "$srcfile"`'
8686 enable_shared_with_static_runtimes=yes
8687 ;;
8688
8689 darwin* | rhapsody*)
8690
8691
8692 archive_cmds_need_lc=no
8693 hardcode_direct=no
8694 hardcode_automatic=yes
8695 hardcode_shlibpath_var=unsupported
8696 if test "$lt_cv_ld_force_load" = "yes"; then
8697 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\"`'
8698 else
8699 whole_archive_flag_spec=''
8700 fi
8701 link_all_deplibs=yes
8702 allow_undefined_flag="$_lt_dar_allow_undefined"
8703 case $cc_basename in
8704 ifort*) _lt_dar_can_shared=yes ;;
8705 *) _lt_dar_can_shared=$GCC ;;
8706 esac
8707 if test "$_lt_dar_can_shared" = "yes"; then
8708 output_verbose_link_cmd=func_echo_all
8709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8711 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}"
8712 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}"
8713
8714 else
8715 ld_shlibs=no
8716 fi
8717
8718 ;;
8719
8720 dgux*)
8721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_shlibpath_var=no
8724 ;;
8725
87969c8c 8726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8727 # support. Future versions do this automatically, but an explicit c++rt0.o
8728 # does not break anything, and helps significantly (at the cost of a little
8729 # extra space).
8730 freebsd2.2*)
8731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8732 hardcode_libdir_flag_spec='-R$libdir'
8733 hardcode_direct=yes
8734 hardcode_shlibpath_var=no
8735 ;;
8736
8737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 8738 freebsd2.*)
87969c8c 8739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_direct=yes
8741 hardcode_minus_L=yes
8742 hardcode_shlibpath_var=no
8743 ;;
8744
8745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8746 freebsd* | dragonfly*)
8747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8748 hardcode_libdir_flag_spec='-R$libdir'
8749 hardcode_direct=yes
8750 hardcode_shlibpath_var=no
8751 ;;
8752
8753 hpux9*)
8754 if test "$GCC" = yes; then
8755 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'
8756 else
8757 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'
8758 fi
8759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8760 hardcode_libdir_separator=:
8761 hardcode_direct=yes
8762
8763 # hardcode_minus_L: Not really in the search PATH,
8764 # but as the default location of the library.
8765 hardcode_minus_L=yes
8766 export_dynamic_flag_spec='${wl}-E'
8767 ;;
8768
8769 hpux10*)
8770 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772 else
8773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8774 fi
8775 if test "$with_gnu_ld" = no; then
8776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8777 hardcode_libdir_flag_spec_ld='+b $libdir'
8778 hardcode_libdir_separator=:
8779 hardcode_direct=yes
8780 hardcode_direct_absolute=yes
8781 export_dynamic_flag_spec='${wl}-E'
8782 # hardcode_minus_L: Not really in the search PATH,
8783 # but as the default location of the library.
8784 hardcode_minus_L=yes
8785 fi
8786 ;;
8787
8788 hpux11*)
8789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8790 case $host_cpu in
8791 hppa*64*)
8792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 ;;
8794 ia64*)
8795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8796 ;;
8797 *)
8798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799 ;;
8800 esac
8801 else
8802 case $host_cpu in
8803 hppa*64*)
8804 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 ;;
8806 ia64*)
8807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8808 ;;
8809 *)
8810
8811 # Older versions of the 11.00 compiler do not understand -b yet
8812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8814$as_echo_n "checking if $CC understands -b... " >&6; }
8815if test "${lt_cv_prog_compiler__b+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817else
8818 lt_cv_prog_compiler__b=no
8819 save_LDFLAGS="$LDFLAGS"
8820 LDFLAGS="$LDFLAGS -b"
8821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8823 # The linker can only warn and ignore the option if not recognized
8824 # So say no if there are warnings
8825 if test -s conftest.err; then
8826 # Append any errors to the config.log.
8827 cat conftest.err 1>&5
8828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830 if diff conftest.exp conftest.er2 >/dev/null; then
8831 lt_cv_prog_compiler__b=yes
8832 fi
8833 else
8834 lt_cv_prog_compiler__b=yes
8835 fi
8836 fi
8837 $RM -r conftest*
8838 LDFLAGS="$save_LDFLAGS"
8839
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8842$as_echo "$lt_cv_prog_compiler__b" >&6; }
8843
8844if test x"$lt_cv_prog_compiler__b" = xyes; then
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846else
8847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8848fi
8849
8850 ;;
8851 esac
8852 fi
8853 if test "$with_gnu_ld" = no; then
8854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856
8857 case $host_cpu in
8858 hppa*64*|ia64*)
8859 hardcode_direct=no
8860 hardcode_shlibpath_var=no
8861 ;;
8862 *)
8863 hardcode_direct=yes
8864 hardcode_direct_absolute=yes
8865 export_dynamic_flag_spec='${wl}-E'
8866
8867 # hardcode_minus_L: Not really in the search PATH,
8868 # but as the default location of the library.
8869 hardcode_minus_L=yes
8870 ;;
8871 esac
8872 fi
8873 ;;
8874
8875 irix5* | irix6* | nonstopux*)
8876 if test "$GCC" = yes; then
8877 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'
8878 # Try to use the -exported_symbol ld option, if it does not
8879 # work, assume that -exports_file does not work either and
8880 # implicitly export all symbols.
8881 save_LDFLAGS="$LDFLAGS"
8882 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cb3103a1 8883 if test x$gcc_no_link = xyes; then
8884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8885fi
8886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 8887/* end confdefs.h. */
8888int foo(void) {}
8889_ACEOF
8890if ac_fn_c_try_link "$LINENO"; then :
8891 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'
8892
8893fi
8894rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LDFLAGS="$save_LDFLAGS"
8897 else
8898 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'
8899 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'
8900 fi
8901 archive_cmds_need_lc='no'
8902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903 hardcode_libdir_separator=:
8904 inherit_rpath=yes
8905 link_all_deplibs=yes
8906 ;;
8907
8908 netbsd*)
8909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8911 else
8912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8913 fi
8914 hardcode_libdir_flag_spec='-R$libdir'
8915 hardcode_direct=yes
8916 hardcode_shlibpath_var=no
8917 ;;
8918
8919 newsos6)
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_direct=yes
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 hardcode_shlibpath_var=no
8925 ;;
8926
8927 *nto* | *qnx*)
8928 ;;
8929
8930 openbsd*)
8931 if test -f /usr/libexec/ld.so; then
8932 hardcode_direct=yes
8933 hardcode_shlibpath_var=no
8934 hardcode_direct_absolute=yes
8935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939 export_dynamic_flag_spec='${wl}-E'
8940 else
8941 case $host_os in
8942 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_libdir_flag_spec='-R$libdir'
8945 ;;
8946 *)
8947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949 ;;
8950 esac
8951 fi
8952 else
8953 ld_shlibs=no
8954 fi
8955 ;;
8956
8957 os2*)
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 hardcode_minus_L=yes
8960 allow_undefined_flag=unsupported
8961 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'
8962 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8963 ;;
8964
8965 osf3*)
8966 if test "$GCC" = yes; then
8967 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8968 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'
8969 else
8970 allow_undefined_flag=' -expect_unresolved \*'
8971 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'
8972 fi
8973 archive_cmds_need_lc='no'
8974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975 hardcode_libdir_separator=:
8976 ;;
8977
8978 osf4* | osf5*) # as osf3* with the addition of -msym flag
8979 if test "$GCC" = yes; then
8980 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8981 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'
8982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983 else
8984 allow_undefined_flag=' -expect_unresolved \*'
8985 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'
8986 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~
8987 $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'
8988
8989 # Both c and cxx compiler support -rpath directly
8990 hardcode_libdir_flag_spec='-rpath $libdir'
8991 fi
8992 archive_cmds_need_lc='no'
8993 hardcode_libdir_separator=:
8994 ;;
8995
8996 solaris*)
8997 no_undefined_flag=' -z defs'
8998 if test "$GCC" = yes; then
8999 wlarc='${wl}'
9000 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9002 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9003 else
9004 case `$CC -V 2>&1` in
9005 *"Compilers 5.0"*)
9006 wlarc=''
9007 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9010 ;;
9011 *)
9012 wlarc='${wl}'
9013 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9015 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9016 ;;
9017 esac
9018 fi
9019 hardcode_libdir_flag_spec='-R$libdir'
9020 hardcode_shlibpath_var=no
9021 case $host_os in
9022 solaris2.[0-5] | solaris2.[0-5].*) ;;
9023 *)
9024 # The compiler driver will combine and reorder linker options,
9025 # but understands `-z linker_flag'. GCC discards it without `$wl',
9026 # but is careful enough not to reorder.
9027 # Supported since Solaris 2.6 (maybe 2.5.1?)
9028 if test "$GCC" = yes; then
9029 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9030 else
9031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9032 fi
9033 ;;
9034 esac
9035 link_all_deplibs=yes
9036 ;;
9037
9038 sunos4*)
9039 if test "x$host_vendor" = xsequent; then
9040 # Use $CC to link under sequent, because it throws in some extra .o
9041 # files that make .init and .fini sections work.
9042 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9043 else
9044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9045 fi
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 hardcode_direct=yes
9048 hardcode_minus_L=yes
9049 hardcode_shlibpath_var=no
9050 ;;
9051
9052 sysv4)
9053 case $host_vendor in
9054 sni)
9055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_direct=yes # is this really true???
9057 ;;
9058 siemens)
9059 ## LD is ld it makes a PLAMLIB
9060 ## CC just makes a GrossModule.
9061 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9062 reload_cmds='$CC -r -o $output$reload_objs'
9063 hardcode_direct=no
9064 ;;
9065 motorola)
9066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9068 ;;
9069 esac
9070 runpath_var='LD_RUN_PATH'
9071 hardcode_shlibpath_var=no
9072 ;;
9073
9074 sysv4.3*)
9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076 hardcode_shlibpath_var=no
9077 export_dynamic_flag_spec='-Bexport'
9078 ;;
9079
9080 sysv4*MP*)
9081 if test -d /usr/nec; then
9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_shlibpath_var=no
9084 runpath_var=LD_RUN_PATH
9085 hardcode_runpath_var=yes
9086 ld_shlibs=yes
9087 fi
9088 ;;
9089
9090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9091 no_undefined_flag='${wl}-z,text'
9092 archive_cmds_need_lc=no
9093 hardcode_shlibpath_var=no
9094 runpath_var='LD_RUN_PATH'
9095
9096 if test "$GCC" = yes; then
9097 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 else
9100 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 fi
9103 ;;
9104
9105 sysv5* | sco3.2v5* | sco5v6*)
9106 # Note: We can NOT use -z defs as we might desire, because we do not
9107 # link with -lc, and that would cause any symbols used from libc to
9108 # always be unresolved, which means just about no library would
9109 # ever link correctly. If we're not using GNU ld we use -z text
9110 # though, which does catch some bad symbols but isn't as heavy-handed
9111 # as -z defs.
9112 no_undefined_flag='${wl}-z,text'
9113 allow_undefined_flag='${wl}-z,nodefs'
9114 archive_cmds_need_lc=no
9115 hardcode_shlibpath_var=no
9116 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9117 hardcode_libdir_separator=':'
9118 link_all_deplibs=yes
9119 export_dynamic_flag_spec='${wl}-Bexport'
9120 runpath_var='LD_RUN_PATH'
9121
9122 if test "$GCC" = yes; then
9123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125 else
9126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128 fi
9129 ;;
9130
9131 uts4*)
9132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 *)
9138 ld_shlibs=no
9139 ;;
9140 esac
9141
9142 if test x$host_vendor = xsni; then
9143 case $host in
9144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9145 export_dynamic_flag_spec='${wl}-Blargedynsym'
9146 ;;
9147 esac
9148 fi
9149 fi
9150
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9152$as_echo "$ld_shlibs" >&6; }
9153test "$ld_shlibs" = no && can_build_shared=no
9154
9155with_gnu_ld=$with_gnu_ld
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171#
9172# Do we need to explicitly link libc?
9173#
9174case "x$archive_cmds_need_lc" in
9175x|xyes)
9176 # Assume -lc should be added
9177 archive_cmds_need_lc=yes
9178
9179 if test "$enable_shared" = yes && test "$GCC" = yes; then
9180 case $archive_cmds in
9181 *'~'*)
9182 # FIXME: we may have to deal with multi-command sequences.
9183 ;;
9184 '$CC '*)
9185 # Test whether the compiler implicitly links with -lc since on some
9186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9187 # to ld, don't add -lc before -lgcc.
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9189$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9190if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192else
9193 $RM conftest*
9194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9195
9196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9197 (eval $ac_compile) 2>&5
9198 ac_status=$?
9199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9200 test $ac_status = 0; } 2>conftest.err; then
9201 soname=conftest
9202 lib=conftest
9203 libobjs=conftest.$ac_objext
9204 deplibs=
9205 wl=$lt_prog_compiler_wl
9206 pic_flag=$lt_prog_compiler_pic
9207 compiler_flags=-v
9208 linker_flags=-v
9209 verstring=
9210 output_objdir=.
9211 libname=conftest
9212 lt_save_allow_undefined_flag=$allow_undefined_flag
9213 allow_undefined_flag=
9214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9215 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9216 ac_status=$?
9217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9218 test $ac_status = 0; }
9219 then
9220 lt_cv_archive_cmds_need_lc=no
9221 else
9222 lt_cv_archive_cmds_need_lc=yes
9223 fi
9224 allow_undefined_flag=$lt_save_allow_undefined_flag
9225 else
9226 cat conftest.err 1>&5
9227 fi
9228 $RM conftest*
9229
9230fi
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9232$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9233 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9234 ;;
9235 esac
9236 fi
9237 ;;
9238esac
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9397$as_echo_n "checking dynamic linker characteristics... " >&6; }
9398
9399if test "$GCC" = yes; then
9400 case $host_os in
9401 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9402 *) lt_awk_arg="/^libraries:/" ;;
9403 esac
9404 case $host_os in
9405 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9406 *) lt_sed_strip_eq="s,=/,/,g" ;;
9407 esac
9408 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9409 case $lt_search_path_spec in
9410 *\;*)
9411 # if the path contains ";" then we assume it to be the separator
9412 # otherwise default to the standard path separator (i.e. ":") - it is
9413 # assumed that no part of a normal pathname contains ";" but that should
9414 # okay in the real world where ";" in dirpaths is itself problematic.
9415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9416 ;;
9417 *)
9418 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9419 ;;
9420 esac
9421 # Ok, now we have the path, separated by spaces, we can step through it
9422 # and add multilib dir if necessary.
9423 lt_tmp_lt_search_path_spec=
9424 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9425 for lt_sys_path in $lt_search_path_spec; do
9426 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9428 else
9429 test -d "$lt_sys_path" && \
9430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9431 fi
9432 done
9433 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9434BEGIN {RS=" "; FS="/|\n";} {
9435 lt_foo="";
9436 lt_count=0;
9437 for (lt_i = NF; lt_i > 0; lt_i--) {
9438 if ($lt_i != "" && $lt_i != ".") {
9439 if ($lt_i == "..") {
9440 lt_count++;
9441 } else {
9442 if (lt_count == 0) {
9443 lt_foo="/" $lt_i lt_foo;
9444 } else {
9445 lt_count--;
9446 }
9447 }
9448 }
9449 }
9450 if (lt_foo != "") { lt_freq[lt_foo]++; }
9451 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9452}'`
9453 # AWK program above erroneously prepends '/' to C:/dos/paths
9454 # for these hosts.
9455 case $host_os in
9456 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9457 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9458 esac
9459 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9460else
9461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9462fi
9463library_names_spec=
9464libname_spec='lib$name'
9465soname_spec=
9466shrext_cmds=".so"
9467postinstall_cmds=
9468postuninstall_cmds=
9469finish_cmds=
9470finish_eval=
9471shlibpath_var=
9472shlibpath_overrides_runpath=unknown
9473version_type=none
9474dynamic_linker="$host_os ld.so"
9475sys_lib_dlsearch_path_spec="/lib /usr/lib"
9476need_lib_prefix=unknown
9477hardcode_into_libs=no
9478
9479# when you set need_version to no, make sure it does not cause -set_version
9480# flags to be left without arguments
9481need_version=unknown
9482
9483case $host_os in
9484aix3*)
9485 version_type=linux
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9487 shlibpath_var=LIBPATH
9488
9489 # AIX 3 has no versioning support, so we append a major version to the name.
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 ;;
9492
9493aix[4-9]*)
9494 version_type=linux
9495 need_lib_prefix=no
9496 need_version=no
9497 hardcode_into_libs=yes
9498 if test "$host_cpu" = ia64; then
9499 # AIX 5 supports IA64
9500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 else
9503 # With GCC up to 2.95.x, collect2 would create an import file
9504 # for dependence libraries. The import file would start with
9505 # the line `#! .'. This would cause the generated library to
9506 # depend on `.', always an invalid library. This was fixed in
9507 # development snapshots of GCC prior to 3.0.
9508 case $host_os in
9509 aix4 | aix4.[01] | aix4.[01].*)
9510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9511 echo ' yes '
9512 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9513 :
9514 else
9515 can_build_shared=no
9516 fi
9517 ;;
9518 esac
9519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9520 # soname into executable. Probably we can add versioning support to
9521 # collect2, so additional links can be useful in future.
9522 if test "$aix_use_runtimelinking" = yes; then
9523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9524 # instead of lib<name>.a to let people know that these are not
9525 # typical AIX shared libraries.
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 else
9528 # We preserve .a as extension for shared libraries through AIX4.2
9529 # and later when we are not doing run time linking.
9530 library_names_spec='${libname}${release}.a $libname.a'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 fi
9533 shlibpath_var=LIBPATH
9534 fi
9535 ;;
9536
9537amigaos*)
9538 case $host_cpu in
9539 powerpc)
9540 # Since July 2007 AmigaOS4 officially supports .so libraries.
9541 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 ;;
9544 m68k)
9545 library_names_spec='$libname.ixlibrary $libname.a'
9546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9547 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'
9548 ;;
9549 esac
9550 ;;
9551
9552beos*)
9553 library_names_spec='${libname}${shared_ext}'
9554 dynamic_linker="$host_os ld.so"
9555 shlibpath_var=LIBRARY_PATH
9556 ;;
9557
9558bsdi[45]*)
9559 version_type=linux
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9567 # the default ld.so.conf also contains /usr/contrib/lib and
9568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9569 # libtool to hard-code these into programs
9570 ;;
9571
9572cygwin* | mingw* | pw32* | cegcc*)
9573 version_type=windows
9574 shrext_cmds=".dll"
9575 need_version=no
9576 need_lib_prefix=no
9577
9578 case $GCC,$host_os in
9579 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9580 library_names_spec='$libname.dll.a'
9581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9582 postinstall_cmds='base_file=`basename \${file}`~
9583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9584 dldir=$destdir/`dirname \$dlpath`~
9585 test -d \$dldir || mkdir -p \$dldir~
9586 $install_prog $dir/$dlname \$dldir/$dlname~
9587 chmod a+x \$dldir/$dlname~
9588 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9589 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9590 fi'
9591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9592 dlpath=$dir/\$dldll~
9593 $RM \$dlpath'
9594 shlibpath_overrides_runpath=yes
9595
9596 case $host_os in
9597 cygwin*)
9598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600
9601 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9602 ;;
9603 mingw* | cegcc*)
9604 # MinGW DLLs use traditional 'lib' prefix
9605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9606 ;;
9607 pw32*)
9608 # pw32 DLLs use 'pw' prefix rather than 'lib'
9609 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9610 ;;
9611 esac
9612 ;;
9613
9614 *)
9615 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9616 ;;
9617 esac
9618 dynamic_linker='Win32 ld.exe'
9619 # FIXME: first we should search . and the directory the executable is in
9620 shlibpath_var=PATH
9621 ;;
9622
9623darwin* | rhapsody*)
9624 dynamic_linker="$host_os dyld"
9625 version_type=darwin
9626 need_lib_prefix=no
9627 need_version=no
9628 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9629 soname_spec='${libname}${release}${major}$shared_ext'
9630 shlibpath_overrides_runpath=yes
9631 shlibpath_var=DYLD_LIBRARY_PATH
9632 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9633
9634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9636 ;;
9637
9638dgux*)
9639 version_type=linux
9640 need_lib_prefix=no
9641 need_version=no
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 ;;
9646
87969c8c 9647freebsd* | dragonfly*)
9648 # DragonFly does not have aout. When/if they implement a new
9649 # versioning mechanism, adjust this.
9650 if test -x /usr/bin/objformat; then
9651 objformat=`/usr/bin/objformat`
9652 else
9653 case $host_os in
30369aff 9654 freebsd[23].*) objformat=aout ;;
87969c8c 9655 *) objformat=elf ;;
9656 esac
9657 fi
9658 version_type=freebsd-$objformat
9659 case $version_type in
9660 freebsd-elf*)
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9662 need_version=no
9663 need_lib_prefix=no
9664 ;;
9665 freebsd-*)
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9667 need_version=yes
9668 ;;
9669 esac
9670 shlibpath_var=LD_LIBRARY_PATH
9671 case $host_os in
30369aff 9672 freebsd2.*)
87969c8c 9673 shlibpath_overrides_runpath=yes
9674 ;;
9675 freebsd3.[01]* | freebsdelf3.[01]*)
9676 shlibpath_overrides_runpath=yes
9677 hardcode_into_libs=yes
9678 ;;
9679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9681 shlibpath_overrides_runpath=no
9682 hardcode_into_libs=yes
9683 ;;
9684 *) # from 4.6 on, and DragonFly
9685 shlibpath_overrides_runpath=yes
9686 hardcode_into_libs=yes
9687 ;;
9688 esac
9689 ;;
9690
9691gnu*)
9692 version_type=linux
9693 need_lib_prefix=no
9694 need_version=no
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 hardcode_into_libs=yes
9699 ;;
9700
9701haiku*)
9702 version_type=linux
9703 need_lib_prefix=no
9704 need_version=no
9705 dynamic_linker="$host_os runtime_loader"
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9711 hardcode_into_libs=yes
9712 ;;
9713
9714hpux9* | hpux10* | hpux11*)
9715 # Give a soname corresponding to the major version so that dld.sl refuses to
9716 # link against other versions.
9717 version_type=sunos
9718 need_lib_prefix=no
9719 need_version=no
9720 case $host_cpu in
9721 ia64*)
9722 shrext_cmds='.so'
9723 hardcode_into_libs=yes
9724 dynamic_linker="$host_os dld.so"
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 if test "X$HPUX_IA64_MODE" = X32; then
9730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9731 else
9732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9733 fi
9734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9735 ;;
9736 hppa*64*)
9737 shrext_cmds='.sl'
9738 hardcode_into_libs=yes
9739 dynamic_linker="$host_os dld.sl"
9740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9746 ;;
9747 *)
9748 shrext_cmds='.sl'
9749 dynamic_linker="$host_os dld.sl"
9750 shlibpath_var=SHLIB_PATH
9751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 ;;
9755 esac
9756 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9757 postinstall_cmds='chmod 555 $lib'
9758 # or fails outright, so override atomically:
9759 install_override_mode=555
9760 ;;
9761
9762interix[3-9]*)
9763 version_type=linux
9764 need_lib_prefix=no
9765 need_version=no
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 shlibpath_overrides_runpath=no
9771 hardcode_into_libs=yes
9772 ;;
9773
9774irix5* | irix6* | nonstopux*)
9775 case $host_os in
9776 nonstopux*) version_type=nonstopux ;;
9777 *)
9778 if test "$lt_cv_prog_gnu_ld" = yes; then
9779 version_type=linux
9780 else
9781 version_type=irix
9782 fi ;;
9783 esac
9784 need_lib_prefix=no
9785 need_version=no
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 case $host_os in
9789 irix5* | nonstopux*)
9790 libsuff= shlibsuff=
9791 ;;
9792 *)
9793 case $LD in # libtool.m4 will add one of these switches to LD
9794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9795 libsuff= shlibsuff= libmagic=32-bit;;
9796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9797 libsuff=32 shlibsuff=N32 libmagic=N32;;
9798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9800 *) libsuff= shlibsuff= libmagic=never-match;;
9801 esac
9802 ;;
9803 esac
9804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9805 shlibpath_overrides_runpath=no
9806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9808 hardcode_into_libs=yes
9809 ;;
9810
9811# No shared lib support for Linux oldld, aout, or coff.
9812linux*oldld* | linux*aout* | linux*coff*)
9813 dynamic_linker=no
9814 ;;
9815
9816# This must be Linux ELF.
9817linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826
9827 # Some binutils ld are patched to set DT_RUNPATH
9828 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830else
9831 lt_cv_shlibpath_overrides_runpath=no
9832 save_LDFLAGS=$LDFLAGS
9833 save_libdir=$libdir
9834 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9835 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cb3103a1 9836 if test x$gcc_no_link = xyes; then
9837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9838fi
9839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 9840/* end confdefs.h. */
9841
9842int
9843main ()
9844{
9845
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_link "$LINENO"; then :
9851 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9852 lt_cv_shlibpath_overrides_runpath=yes
9853fi
9854fi
9855rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LDFLAGS=$save_LDFLAGS
9858 libdir=$save_libdir
9859
9860fi
9861
9862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9863
9864 # This implies no fast_install, which is unacceptable.
9865 # Some rework will be needed to allow for fast_install
9866 # before this can be enabled.
9867 hardcode_into_libs=yes
9868
9869 # Append ld.so.conf contents to the search path
9870 if test -f /etc/ld.so.conf; then
9871 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' ' '`
9872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9873 fi
9874
9875 # We used to test for /lib/ld.so.1 and disable shared libraries on
9876 # powerpc, because MkLinux only supported shared libraries with the
9877 # GNU dynamic linker. Since this was broken with cross compilers,
9878 # most powerpc-linux boxes support dynamic linking these days and
9879 # people can always --disable-shared, the test was removed, and we
9880 # assume the GNU/Linux dynamic linker is in use.
9881 dynamic_linker='GNU/Linux ld.so'
9882 ;;
9883
9884netbsd*)
9885 version_type=sunos
9886 need_lib_prefix=no
9887 need_version=no
9888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9891 dynamic_linker='NetBSD (a.out) ld.so'
9892 else
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 dynamic_linker='NetBSD ld.elf_so'
9896 fi
9897 shlibpath_var=LD_LIBRARY_PATH
9898 shlibpath_overrides_runpath=yes
9899 hardcode_into_libs=yes
9900 ;;
9901
9902newsos6)
9903 version_type=linux
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=yes
9907 ;;
9908
9909*nto* | *qnx*)
9910 version_type=qnx
9911 need_lib_prefix=no
9912 need_version=no
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=no
9917 hardcode_into_libs=yes
9918 dynamic_linker='ldqnx.so'
9919 ;;
9920
9921openbsd*)
9922 version_type=sunos
9923 sys_lib_dlsearch_path_spec="/usr/lib"
9924 need_lib_prefix=no
9925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9926 case $host_os in
9927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9928 *) need_version=no ;;
9929 esac
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9934 case $host_os in
9935 openbsd2.[89] | openbsd2.[89].*)
9936 shlibpath_overrides_runpath=no
9937 ;;
9938 *)
9939 shlibpath_overrides_runpath=yes
9940 ;;
9941 esac
9942 else
9943 shlibpath_overrides_runpath=yes
9944 fi
9945 ;;
9946
9947os2*)
9948 libname_spec='$name'
9949 shrext_cmds=".dll"
9950 need_lib_prefix=no
9951 library_names_spec='$libname${shared_ext} $libname.a'
9952 dynamic_linker='OS/2 ld.exe'
9953 shlibpath_var=LIBPATH
9954 ;;
9955
9956osf3* | osf4* | osf5*)
9957 version_type=osf
9958 need_lib_prefix=no
9959 need_version=no
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9965 ;;
9966
9967rdos*)
9968 dynamic_linker=no
9969 ;;
9970
9971solaris*)
9972 version_type=linux
9973 need_lib_prefix=no
9974 need_version=no
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath=yes
9979 hardcode_into_libs=yes
9980 # ldd complains unless libraries are executable
9981 postinstall_cmds='chmod +x $lib'
9982 ;;
9983
9984sunos4*)
9985 version_type=sunos
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9988 shlibpath_var=LD_LIBRARY_PATH
9989 shlibpath_overrides_runpath=yes
9990 if test "$with_gnu_ld" = yes; then
9991 need_lib_prefix=no
9992 fi
9993 need_version=yes
9994 ;;
9995
9996sysv4 | sysv4.3*)
9997 version_type=linux
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 case $host_vendor in
10002 sni)
10003 shlibpath_overrides_runpath=no
10004 need_lib_prefix=no
10005 runpath_var=LD_RUN_PATH
10006 ;;
10007 siemens)
10008 need_lib_prefix=no
10009 ;;
10010 motorola)
10011 need_lib_prefix=no
10012 need_version=no
10013 shlibpath_overrides_runpath=no
10014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10015 ;;
10016 esac
10017 ;;
10018
10019sysv4*MP*)
10020 if test -d /usr/nec ;then
10021 version_type=linux
10022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10023 soname_spec='$libname${shared_ext}.$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 fi
10026 ;;
10027
10028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10029 version_type=freebsd-elf
10030 need_lib_prefix=no
10031 need_version=no
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath=yes
10036 hardcode_into_libs=yes
10037 if test "$with_gnu_ld" = yes; then
10038 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10039 else
10040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10041 case $host_os in
10042 sco3.2v5*)
10043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10044 ;;
10045 esac
10046 fi
10047 sys_lib_dlsearch_path_spec='/usr/lib'
10048 ;;
10049
10050tpf*)
10051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=no
10058 hardcode_into_libs=yes
10059 ;;
10060
10061uts4*)
10062 version_type=linux
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 ;;
10067
10068*)
10069 dynamic_linker=no
10070 ;;
10071esac
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10073$as_echo "$dynamic_linker" >&6; }
10074test "$dynamic_linker" = no && can_build_shared=no
10075
10076variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10077if test "$GCC" = yes; then
10078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10079fi
10080
10081if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10082 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10083fi
10084if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10085 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10086fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10180$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10181hardcode_action=
10182if test -n "$hardcode_libdir_flag_spec" ||
10183 test -n "$runpath_var" ||
10184 test "X$hardcode_automatic" = "Xyes" ; then
10185
10186 # We can hardcode non-existent directories.
10187 if test "$hardcode_direct" != no &&
10188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10189 # have to relink, otherwise we might link with an installed library
10190 # when we should be linking with a yet-to-be-installed one
10191 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10192 test "$hardcode_minus_L" != no; then
10193 # Linking always hardcodes the temporary library directory.
10194 hardcode_action=relink
10195 else
10196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10197 hardcode_action=immediate
10198 fi
10199else
10200 # We cannot hardcode anything, or else we can only hardcode existing
10201 # directories.
10202 hardcode_action=unsupported
10203fi
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10205$as_echo "$hardcode_action" >&6; }
10206
10207if test "$hardcode_action" = relink ||
10208 test "$inherit_rpath" = yes; then
10209 # Fast installation is not supported
10210 enable_fast_install=no
10211elif test "$shlibpath_overrides_runpath" = yes ||
10212 test "$enable_shared" = no; then
10213 # Fast installation is not necessary
10214 enable_fast_install=needless
10215fi
10216
10217
10218
10219
10220
10221
10222 if test "x$enable_dlopen" != xyes; then
10223 enable_dlopen=unknown
10224 enable_dlopen_self=unknown
10225 enable_dlopen_self_static=unknown
10226else
10227 lt_cv_dlopen=no
10228 lt_cv_dlopen_libs=
10229
10230 case $host_os in
10231 beos*)
10232 lt_cv_dlopen="load_add_on"
10233 lt_cv_dlopen_libs=
10234 lt_cv_dlopen_self=yes
10235 ;;
10236
10237 mingw* | pw32* | cegcc*)
10238 lt_cv_dlopen="LoadLibrary"
10239 lt_cv_dlopen_libs=
10240 ;;
10241
10242 cygwin*)
10243 lt_cv_dlopen="dlopen"
10244 lt_cv_dlopen_libs=
10245 ;;
10246
10247 darwin*)
10248 # if libdl is installed we need to link against it
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10250$as_echo_n "checking for dlopen in -ldl... " >&6; }
10251if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 ac_check_lib_save_LIBS=$LIBS
10255LIBS="-ldl $LIBS"
cb3103a1 10256if test x$gcc_no_link = xyes; then
10257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10258fi
87969c8c 10259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h. */
10261
10262/* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268char dlopen ();
10269int
10270main ()
10271{
10272return dlopen ();
10273 ;
10274 return 0;
10275}
10276_ACEOF
10277if ac_fn_c_try_link "$LINENO"; then :
10278 ac_cv_lib_dl_dlopen=yes
10279else
10280 ac_cv_lib_dl_dlopen=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284LIBS=$ac_check_lib_save_LIBS
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10287$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10288if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10290else
10291
10292 lt_cv_dlopen="dyld"
10293 lt_cv_dlopen_libs=
10294 lt_cv_dlopen_self=yes
10295
10296fi
10297
10298 ;;
10299
10300 *)
10301 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10302if test "x$ac_cv_func_shl_load" = x""yes; then :
10303 lt_cv_dlopen="shl_load"
10304else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10306$as_echo_n "checking for shl_load in -ldld... " >&6; }
10307if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309else
10310 ac_check_lib_save_LIBS=$LIBS
10311LIBS="-ldld $LIBS"
cb3103a1 10312if test x$gcc_no_link = xyes; then
10313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10314fi
87969c8c 10315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h. */
10317
10318/* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char shl_load ();
10325int
10326main ()
10327{
10328return shl_load ();
10329 ;
10330 return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_link "$LINENO"; then :
10334 ac_cv_lib_dld_shl_load=yes
10335else
10336 ac_cv_lib_dld_shl_load=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340LIBS=$ac_check_lib_save_LIBS
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10343$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10344if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10345 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10346else
10347 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10348if test "x$ac_cv_func_dlopen" = x""yes; then :
10349 lt_cv_dlopen="dlopen"
10350else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10352$as_echo_n "checking for dlopen in -ldl... " >&6; }
10353if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10354 $as_echo_n "(cached) " >&6
10355else
10356 ac_check_lib_save_LIBS=$LIBS
10357LIBS="-ldl $LIBS"
cb3103a1 10358if test x$gcc_no_link = xyes; then
10359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10360fi
87969c8c 10361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h. */
10363
10364/* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370char dlopen ();
10371int
10372main ()
10373{
10374return dlopen ();
10375 ;
10376 return 0;
10377}
10378_ACEOF
10379if ac_fn_c_try_link "$LINENO"; then :
10380 ac_cv_lib_dl_dlopen=yes
10381else
10382 ac_cv_lib_dl_dlopen=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386LIBS=$ac_check_lib_save_LIBS
10387fi
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10389$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10390if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10392else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10394$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10395if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397else
10398 ac_check_lib_save_LIBS=$LIBS
10399LIBS="-lsvld $LIBS"
cb3103a1 10400if test x$gcc_no_link = xyes; then
10401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10402fi
87969c8c 10403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404/* end confdefs.h. */
10405
10406/* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10409#ifdef __cplusplus
10410extern "C"
10411#endif
10412char dlopen ();
10413int
10414main ()
10415{
10416return dlopen ();
10417 ;
10418 return 0;
10419}
10420_ACEOF
10421if ac_fn_c_try_link "$LINENO"; then :
10422 ac_cv_lib_svld_dlopen=yes
10423else
10424 ac_cv_lib_svld_dlopen=no
10425fi
10426rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428LIBS=$ac_check_lib_save_LIBS
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10431$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10432if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10434else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10436$as_echo_n "checking for dld_link in -ldld... " >&6; }
10437if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439else
10440 ac_check_lib_save_LIBS=$LIBS
10441LIBS="-ldld $LIBS"
cb3103a1 10442if test x$gcc_no_link = xyes; then
10443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10444fi
87969c8c 10445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h. */
10447
10448/* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10451#ifdef __cplusplus
10452extern "C"
10453#endif
10454char dld_link ();
10455int
10456main ()
10457{
10458return dld_link ();
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464 ac_cv_lib_dld_dld_link=yes
10465else
10466 ac_cv_lib_dld_dld_link=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470LIBS=$ac_check_lib_save_LIBS
10471fi
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10473$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10474if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10475 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10476fi
10477
10478
10479fi
10480
10481
10482fi
10483
10484
10485fi
10486
10487
10488fi
10489
10490
10491fi
10492
10493 ;;
10494 esac
10495
10496 if test "x$lt_cv_dlopen" != xno; then
10497 enable_dlopen=yes
10498 else
10499 enable_dlopen=no
10500 fi
10501
10502 case $lt_cv_dlopen in
10503 dlopen)
10504 save_CPPFLAGS="$CPPFLAGS"
10505 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10506
10507 save_LDFLAGS="$LDFLAGS"
10508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10509
10510 save_LIBS="$LIBS"
10511 LIBS="$lt_cv_dlopen_libs $LIBS"
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10514$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10515if test "${lt_cv_dlopen_self+set}" = set; then :
10516 $as_echo_n "(cached) " >&6
10517else
10518 if test "$cross_compiling" = yes; then :
10519 lt_cv_dlopen_self=cross
10520else
10521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10522 lt_status=$lt_dlunknown
10523 cat > conftest.$ac_ext <<_LT_EOF
37bbb30d 10524#line 10524 "configure"
87969c8c 10525#include "confdefs.h"
10526
10527#if HAVE_DLFCN_H
10528#include <dlfcn.h>
10529#endif
10530
10531#include <stdio.h>
10532
10533#ifdef RTLD_GLOBAL
10534# define LT_DLGLOBAL RTLD_GLOBAL
10535#else
10536# ifdef DL_GLOBAL
10537# define LT_DLGLOBAL DL_GLOBAL
10538# else
10539# define LT_DLGLOBAL 0
10540# endif
10541#endif
10542
10543/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10544 find out it does not work in some platform. */
10545#ifndef LT_DLLAZY_OR_NOW
10546# ifdef RTLD_LAZY
10547# define LT_DLLAZY_OR_NOW RTLD_LAZY
10548# else
10549# ifdef DL_LAZY
10550# define LT_DLLAZY_OR_NOW DL_LAZY
10551# else
10552# ifdef RTLD_NOW
10553# define LT_DLLAZY_OR_NOW RTLD_NOW
10554# else
10555# ifdef DL_NOW
10556# define LT_DLLAZY_OR_NOW DL_NOW
10557# else
10558# define LT_DLLAZY_OR_NOW 0
10559# endif
10560# endif
10561# endif
10562# endif
10563#endif
10564
10565/* When -fvisbility=hidden is used, assume the code has been annotated
10566 correspondingly for the symbols needed. */
10567#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10568void fnord () __attribute__((visibility("default")));
10569#endif
10570
10571void fnord () { int i=42; }
10572int main ()
10573{
10574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10575 int status = $lt_dlunknown;
10576
10577 if (self)
10578 {
10579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10580 else
10581 {
10582 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10583 else puts (dlerror ());
10584 }
10585 /* dlclose (self); */
10586 }
10587 else
10588 puts (dlerror ());
10589
10590 return status;
10591}
10592_LT_EOF
10593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10594 (eval $ac_link) 2>&5
10595 ac_status=$?
10596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10598 (./conftest; exit; ) >&5 2>/dev/null
10599 lt_status=$?
10600 case x$lt_status in
10601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10603 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10604 esac
10605 else :
10606 # compilation failed
10607 lt_cv_dlopen_self=no
10608 fi
10609fi
10610rm -fr conftest*
10611
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10615$as_echo "$lt_cv_dlopen_self" >&6; }
10616
10617 if test "x$lt_cv_dlopen_self" = xyes; then
10618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10620$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10621if test "${lt_cv_dlopen_self_static+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 if test "$cross_compiling" = yes; then :
10625 lt_cv_dlopen_self_static=cross
10626else
10627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628 lt_status=$lt_dlunknown
10629 cat > conftest.$ac_ext <<_LT_EOF
37bbb30d 10630#line 10630 "configure"
87969c8c 10631#include "confdefs.h"
10632
10633#if HAVE_DLFCN_H
10634#include <dlfcn.h>
10635#endif
10636
10637#include <stdio.h>
10638
10639#ifdef RTLD_GLOBAL
10640# define LT_DLGLOBAL RTLD_GLOBAL
10641#else
10642# ifdef DL_GLOBAL
10643# define LT_DLGLOBAL DL_GLOBAL
10644# else
10645# define LT_DLGLOBAL 0
10646# endif
10647#endif
10648
10649/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650 find out it does not work in some platform. */
10651#ifndef LT_DLLAZY_OR_NOW
10652# ifdef RTLD_LAZY
10653# define LT_DLLAZY_OR_NOW RTLD_LAZY
10654# else
10655# ifdef DL_LAZY
10656# define LT_DLLAZY_OR_NOW DL_LAZY
10657# else
10658# ifdef RTLD_NOW
10659# define LT_DLLAZY_OR_NOW RTLD_NOW
10660# else
10661# ifdef DL_NOW
10662# define LT_DLLAZY_OR_NOW DL_NOW
10663# else
10664# define LT_DLLAZY_OR_NOW 0
10665# endif
10666# endif
10667# endif
10668# endif
10669#endif
10670
10671/* When -fvisbility=hidden is used, assume the code has been annotated
10672 correspondingly for the symbols needed. */
10673#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10674void fnord () __attribute__((visibility("default")));
10675#endif
10676
10677void fnord () { int i=42; }
10678int main ()
10679{
10680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10681 int status = $lt_dlunknown;
10682
10683 if (self)
10684 {
10685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10686 else
10687 {
10688 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689 else puts (dlerror ());
10690 }
10691 /* dlclose (self); */
10692 }
10693 else
10694 puts (dlerror ());
10695
10696 return status;
10697}
10698_LT_EOF
10699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10700 (eval $ac_link) 2>&5
10701 ac_status=$?
10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10704 (./conftest; exit; ) >&5 2>/dev/null
10705 lt_status=$?
10706 case x$lt_status in
10707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10709 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10710 esac
10711 else :
10712 # compilation failed
10713 lt_cv_dlopen_self_static=no
10714 fi
10715fi
10716rm -fr conftest*
10717
10718
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10721$as_echo "$lt_cv_dlopen_self_static" >&6; }
10722 fi
10723
10724 CPPFLAGS="$save_CPPFLAGS"
10725 LDFLAGS="$save_LDFLAGS"
10726 LIBS="$save_LIBS"
10727 ;;
10728 esac
10729
10730 case $lt_cv_dlopen_self in
10731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10732 *) enable_dlopen_self=unknown ;;
10733 esac
10734
10735 case $lt_cv_dlopen_self_static in
10736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10737 *) enable_dlopen_self_static=unknown ;;
10738 esac
10739fi
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757striplib=
10758old_striplib=
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10760$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10761if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765$as_echo "yes" >&6; }
10766else
10767# FIXME - insert some real tests, host_os isn't really good enough
10768 case $host_os in
10769 darwin*)
10770 if test -n "$STRIP" ; then
10771 striplib="$STRIP -x"
10772 old_striplib="$STRIP -S"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10774$as_echo "yes" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
10778 fi
10779 ;;
10780 *)
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
10783 ;;
10784 esac
10785fi
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798 # Report which library types will actually be built
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10800$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10802$as_echo "$can_build_shared" >&6; }
10803
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10805$as_echo_n "checking whether to build shared libraries... " >&6; }
10806 test "$can_build_shared" = "no" && enable_shared=no
10807
10808 # On AIX, shared libraries and static libraries use the same namespace, and
10809 # are all built from PIC.
10810 case $host_os in
10811 aix3*)
10812 test "$enable_shared" = yes && enable_static=no
10813 if test -n "$RANLIB"; then
10814 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10815 postinstall_cmds='$RANLIB $lib'
10816 fi
cb3103a1 10817 ;;
10818
10819 aix[4-9]*)
10820 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10821 test "$enable_shared" = yes && enable_static=no
10822 fi
10823 ;;
10824 esac
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10826$as_echo "$enable_shared" >&6; }
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10829$as_echo_n "checking whether to build static libraries... " >&6; }
10830 # Make sure either enable_shared or enable_static is yes.
10831 test "$enable_shared" = yes || enable_static=yes
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10833$as_echo "$enable_static" >&6; }
10834
10835
10836
10837
10838fi
10839ac_ext=c
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845CC="$lt_save_CC"
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859 ac_config_commands="$ac_config_commands libtool"
10860
10861
10862
10863
10864# Only expand once:
10865
10866
10867
10868
10869
8c35d268 10870case $host in
10871 *-cygwin* | *-mingw*)
10872 # 'host' will be top-level target in the case of a target lib,
10873 # we must compare to with_cross_host to decide if this is a native
10874 # or cross-compiler and select where to install dlls appropriately.
10875 if test -n "$with_cross_host" &&
10876 test x"$with_cross_host" != x"no"; then
10877 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10878 else
10879 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10880 fi
10881 ;;
10882 *)
10883 lt_host_flags=
10884 ;;
10885esac
10886
10887
10888
10889
10890
10891
cb3103a1 10892
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10894$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10895 # Check whether --enable-maintainer-mode was given.
10896if test "${enable_maintainer_mode+set}" = set; then :
10897 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10898else
10899 USE_MAINTAINER_MODE=no
10900fi
10901
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10903$as_echo "$USE_MAINTAINER_MODE" >&6; }
10904 if test $USE_MAINTAINER_MODE = yes; then
10905 MAINTAINER_MODE_TRUE=
10906 MAINTAINER_MODE_FALSE='#'
10907else
10908 MAINTAINER_MODE_TRUE='#'
10909 MAINTAINER_MODE_FALSE=
10910fi
10911
10912 MAINT=$MAINTAINER_MODE_TRUE
10913
10914
10915# Default to --enable-multilib
10916# Check whether --enable-multilib was given.
10917if test "${enable_multilib+set}" = set; then :
10918 enableval=$enable_multilib; case "$enableval" in
10919 yes) multilib=yes ;;
10920 no) multilib=no ;;
10921 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10922 esac
10923else
10924 multilib=yes
10925fi
10926
10927
10928# We may get other options which we leave undocumented:
10929# --with-target-subdir, --with-multisrctop, --with-multisubdir
10930# See config-ml.in if you want the gory details.
10931
10932if test "$srcdir" = "."; then
10933 if test "$with_target_subdir" != "."; then
10934 multi_basedir="$srcdir/$with_multisrctop../.."
10935 else
10936 multi_basedir="$srcdir/$with_multisrctop.."
10937 fi
10938else
10939 multi_basedir="$srcdir/.."
10940fi
10941
10942
10943# Even if the default multilib is not a cross compilation,
10944# it may be that some of the other multilibs are.
10945if test $cross_compiling = no && test $multilib = yes \
10946 && test "x${with_multisubdir}" != x ; then
10947 cross_compiling=maybe
10948fi
10949
10950ac_config_commands="$ac_config_commands default-1"
10951
10952
10953ac_ext=c
10954ac_cpp='$CPP $CPPFLAGS'
10955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957ac_compiler_gnu=$ac_cv_c_compiler_gnu
10958
10959# The same as in boehm-gc and libstdc++. Have to borrow it from there.
10960# We must force CC to /not/ be precious variables; otherwise
10961# the wrong, non-multilib-adjusted value will be used in multilibs.
10962# As a side effect, we have to subst CFLAGS ourselves.
10963
10964
10965
10966ac_ext=c
10967ac_cpp='$CPP $CPPFLAGS'
10968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971if test -n "$ac_tool_prefix"; then
10972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10973set dummy ${ac_tool_prefix}gcc; ac_word=$2
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
10976if test "${ac_cv_prog_CC+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978else
10979 if test -n "$CC"; then
10980 ac_cv_prog_CC="$CC" # Let the user override the test.
10981else
10982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994 done
10995IFS=$as_save_IFS
10996
10997fi
10998fi
10999CC=$ac_cv_prog_CC
11000if test -n "$CC"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11002$as_echo "$CC" >&6; }
11003else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
11006fi
11007
11008
11009fi
11010if test -z "$ac_cv_prog_CC"; then
11011 ac_ct_CC=$CC
11012 # Extract the first word of "gcc", so it can be a program name with args.
11013set dummy gcc; ac_word=$2
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015$as_echo_n "checking for $ac_word... " >&6; }
11016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018else
11019 if test -n "$ac_ct_CC"; then
11020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11021else
11022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029 ac_cv_prog_ac_ct_CC="gcc"
11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033done
11034 done
11035IFS=$as_save_IFS
11036
11037fi
11038fi
11039ac_ct_CC=$ac_cv_prog_ac_ct_CC
11040if test -n "$ac_ct_CC"; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11042$as_echo "$ac_ct_CC" >&6; }
11043else
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
11046fi
11047
11048 if test "x$ac_ct_CC" = x; then
11049 CC=""
11050 else
11051 case $cross_compiling:$ac_tool_warned in
11052yes:)
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11055ac_tool_warned=yes ;;
11056esac
11057 CC=$ac_ct_CC
11058 fi
11059else
11060 CC="$ac_cv_prog_CC"
11061fi
11062
11063if test -z "$CC"; then
11064 if test -n "$ac_tool_prefix"; then
11065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11066set dummy ${ac_tool_prefix}cc; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if test "${ac_cv_prog_CC+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$CC"; then
11073 ac_cv_prog_CC="$CC" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_CC="${ac_tool_prefix}cc"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092CC=$ac_cv_prog_CC
11093if test -n "$CC"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11095$as_echo "$CC" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102 fi
11103fi
11104if test -z "$CC"; then
11105 # Extract the first word of "cc", so it can be a program name with args.
11106set dummy cc; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
11109if test "${ac_cv_prog_CC+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$CC"; then
11113 ac_cv_prog_CC="$CC" # Let the user override the test.
11114else
11115 ac_prog_rejected=no
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11124 ac_prog_rejected=yes
11125 continue
11126 fi
11127 ac_cv_prog_CC="cc"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11130 fi
11131done
11132 done
11133IFS=$as_save_IFS
11134
11135if test $ac_prog_rejected = yes; then
11136 # We found a bogon in the path, so make sure we never use it.
11137 set dummy $ac_cv_prog_CC
11138 shift
11139 if test $# != 0; then
11140 # We chose a different compiler from the bogus one.
11141 # However, it has the same basename, so the bogon will be chosen
11142 # first if we set CC to just the basename; use the full file name.
11143 shift
11144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11145 fi
11146fi
11147fi
11148fi
11149CC=$ac_cv_prog_CC
11150if test -n "$CC"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11152$as_echo "$CC" >&6; }
11153else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
11156fi
11157
11158
11159fi
11160if test -z "$CC"; then
11161 if test -n "$ac_tool_prefix"; then
11162 for ac_prog in cl.exe
11163 do
11164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167$as_echo_n "checking for $ac_word... " >&6; }
11168if test "${ac_cv_prog_CC+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170else
11171 if test -n "$CC"; then
11172 ac_cv_prog_CC="$CC" # Let the user override the test.
11173else
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185done
11186 done
11187IFS=$as_save_IFS
11188
11189fi
11190fi
11191CC=$ac_cv_prog_CC
11192if test -n "$CC"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11194$as_echo "$CC" >&6; }
11195else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
11198fi
11199
11200
11201 test -n "$CC" && break
11202 done
11203fi
11204if test -z "$CC"; then
11205 ac_ct_CC=$CC
11206 for ac_prog in cl.exe
11207do
11208 # Extract the first word of "$ac_prog", so it can be a program name with args.
11209set dummy $ac_prog; ac_word=$2
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11211$as_echo_n "checking for $ac_word... " >&6; }
11212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11214else
11215 if test -n "$ac_ct_CC"; then
11216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11217else
11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219for as_dir in $PATH
11220do
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225 ac_cv_prog_ac_ct_CC="$ac_prog"
11226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11228 fi
11229done
11230 done
11231IFS=$as_save_IFS
11232
11233fi
11234fi
11235ac_ct_CC=$ac_cv_prog_ac_ct_CC
11236if test -n "$ac_ct_CC"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11238$as_echo "$ac_ct_CC" >&6; }
11239else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241$as_echo "no" >&6; }
11242fi
11243
11244
11245 test -n "$ac_ct_CC" && break
11246done
11247
11248 if test "x$ac_ct_CC" = x; then
11249 CC=""
11250 else
11251 case $cross_compiling:$ac_tool_warned in
11252yes:)
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11255ac_tool_warned=yes ;;
11256esac
11257 CC=$ac_ct_CC
11258 fi
11259fi
11260
11261fi
11262
11263
11264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11266as_fn_error "no acceptable C compiler found in \$PATH
11267See \`config.log' for more details." "$LINENO" 5; }
11268
11269# Provide some information about the compiler.
11270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11271set X $ac_compile
11272ac_compiler=$2
11273for ac_option in --version -v -V -qversion; do
11274 { { ac_try="$ac_compiler $ac_option >&5"
11275case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
11279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11280$as_echo "$ac_try_echo"; } >&5
11281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11282 ac_status=$?
11283 if test -s conftest.err; then
11284 sed '10a\
11285... rest of stderr output deleted ...
11286 10q' conftest.err >conftest.er1
11287 cat conftest.er1 >&5
11288 rm -f conftest.er1 conftest.err
11289 fi
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; }
11292done
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11295$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11296if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300/* end confdefs.h. */
11301
11302int
11303main ()
11304{
11305#ifndef __GNUC__
11306 choke me
11307#endif
11308
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_compile "$LINENO"; then :
11314 ac_compiler_gnu=yes
11315else
11316 ac_compiler_gnu=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319ac_cv_c_compiler_gnu=$ac_compiler_gnu
11320
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11323$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11324if test $ac_compiler_gnu = yes; then
11325 GCC=yes
11326else
11327 GCC=
11328fi
11329ac_test_CFLAGS=${CFLAGS+set}
11330ac_save_CFLAGS=$CFLAGS
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11332$as_echo_n "checking whether $CC accepts -g... " >&6; }
11333if test "${ac_cv_prog_cc_g+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11335else
11336 ac_save_c_werror_flag=$ac_c_werror_flag
11337 ac_c_werror_flag=yes
11338 ac_cv_prog_cc_g=no
11339 CFLAGS="-g"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h. */
11342
11343int
11344main ()
11345{
11346
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_compile "$LINENO"; then :
11352 ac_cv_prog_cc_g=yes
11353else
11354 CFLAGS=""
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356/* end confdefs.h. */
11357
11358int
11359main ()
11360{
11361
11362 ;
11363 return 0;
11364}
11365_ACEOF
11366if ac_fn_c_try_compile "$LINENO"; then :
11367
11368else
11369 ac_c_werror_flag=$ac_save_c_werror_flag
11370 CFLAGS="-g"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h. */
11373
11374int
11375main ()
11376{
11377
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382if ac_fn_c_try_compile "$LINENO"; then :
11383 ac_cv_prog_cc_g=yes
11384fi
11385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386fi
11387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388fi
11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 ac_c_werror_flag=$ac_save_c_werror_flag
11391fi
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11393$as_echo "$ac_cv_prog_cc_g" >&6; }
11394if test "$ac_test_CFLAGS" = set; then
11395 CFLAGS=$ac_save_CFLAGS
11396elif test $ac_cv_prog_cc_g = yes; then
11397 if test "$GCC" = yes; then
11398 CFLAGS="-g -O2"
11399 else
11400 CFLAGS="-g"
11401 fi
11402else
11403 if test "$GCC" = yes; then
11404 CFLAGS="-O2"
11405 else
11406 CFLAGS=
11407 fi
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11410$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11411if test "${ac_cv_prog_cc_c89+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413else
11414 ac_cv_prog_cc_c89=no
11415ac_save_CC=$CC
11416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h. */
11418#include <stdarg.h>
11419#include <stdio.h>
11420#include <sys/types.h>
11421#include <sys/stat.h>
11422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11423struct buf { int x; };
11424FILE * (*rcsopen) (struct buf *, struct stat *, int);
11425static char *e (p, i)
11426 char **p;
11427 int i;
11428{
11429 return p[i];
11430}
11431static char *f (char * (*g) (char **, int), char **p, ...)
11432{
11433 char *s;
11434 va_list v;
11435 va_start (v,p);
11436 s = g (p, va_arg (v,int));
11437 va_end (v);
11438 return s;
11439}
11440
11441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11442 function prototypes and stuff, but not '\xHH' hex character constants.
11443 These don't provoke an error unfortunately, instead are silently treated
11444 as 'x'. The following induces an error, until -std is added to get
11445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11446 array size at least. It's necessary to write '\x00'==0 to get something
11447 that's true only with -std. */
11448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11449
11450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11451 inside strings and character constants. */
11452#define FOO(x) 'x'
11453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11454
11455int test (int i, double x);
11456struct s1 {int (*f) (int a);};
11457struct s2 {int (*f) (double a);};
11458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11459int argc;
11460char **argv;
11461int
11462main ()
11463{
11464return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11465 ;
11466 return 0;
11467}
11468_ACEOF
11469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11471do
11472 CC="$ac_save_CC $ac_arg"
11473 if ac_fn_c_try_compile "$LINENO"; then :
11474 ac_cv_prog_cc_c89=$ac_arg
11475fi
11476rm -f core conftest.err conftest.$ac_objext
11477 test "x$ac_cv_prog_cc_c89" != "xno" && break
11478done
11479rm -f conftest.$ac_ext
11480CC=$ac_save_CC
11481
11482fi
11483# AC_CACHE_VAL
11484case "x$ac_cv_prog_cc_c89" in
11485 x)
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11487$as_echo "none needed" >&6; } ;;
11488 xno)
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11490$as_echo "unsupported" >&6; } ;;
11491 *)
11492 CC="$CC $ac_cv_prog_cc_c89"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11495esac
11496if test "x$ac_cv_prog_cc_c89" != xno; then :
11497
11498fi
11499
11500ac_ext=c
11501ac_cpp='$CPP $CPPFLAGS'
11502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505
11506depcc="$CC" am_compiler_list=
11507
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11509$as_echo_n "checking dependency style of $depcc... " >&6; }
11510if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11514 # We make a subdir and do the tests there. Otherwise we can end up
11515 # making bogus files that we don't know about and never remove. For
11516 # instance it was reported that on HP-UX the gcc test will end up
11517 # making a dummy file named `D' -- because `-MD' means `put the output
11518 # in D'.
11519 mkdir conftest.dir
11520 # Copy depcomp to subdir because otherwise we won't find it if we're
11521 # using a relative directory.
11522 cp "$am_depcomp" conftest.dir
11523 cd conftest.dir
11524 # We will build objects and dependencies in a subdirectory because
11525 # it helps to detect inapplicable dependency modes. For instance
11526 # both Tru64's cc and ICC support -MD to output dependencies as a
11527 # side effect of compilation, but ICC will put the dependencies in
11528 # the current directory while Tru64 will put them in the object
11529 # directory.
11530 mkdir sub
11531
11532 am_cv_CC_dependencies_compiler_type=none
11533 if test "$am_compiler_list" = ""; then
11534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11535 fi
11536 am__universal=false
11537 case " $depcc " in #(
11538 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11539 esac
11540
11541 for depmode in $am_compiler_list; do
11542 # Setup a source with many dependencies, because some compilers
11543 # like to wrap large dependency lists on column 80 (with \), and
11544 # we should not choose a depcomp mode which is confused by this.
11545 #
11546 # We need to recreate these files for each test, as the compiler may
11547 # overwrite some of them when testing with obscure command lines.
11548 # This happens at least with the AIX C compiler.
11549 : > sub/conftest.c
11550 for i in 1 2 3 4 5 6; do
11551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11552 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11553 # Solaris 8's {/usr,}/bin/sh.
11554 touch sub/conftst$i.h
11555 done
11556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11557
11558 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11559 # mode. It turns out that the SunPro C++ compiler does not properly
11560 # handle `-M -o', and we need to detect this. Also, some Intel
11561 # versions had trouble with output in subdirs
11562 am__obj=sub/conftest.${OBJEXT-o}
11563 am__minus_obj="-o $am__obj"
11564 case $depmode in
11565 gcc)
11566 # This depmode causes a compiler race in universal mode.
11567 test "$am__universal" = false || continue
11568 ;;
11569 nosideeffect)
11570 # after this tag, mechanisms are not by side-effect, so they'll
11571 # only be used when explicitly requested
11572 if test "x$enable_dependency_tracking" = xyes; then
11573 continue
11574 else
11575 break
11576 fi
11577 ;;
11578 msvisualcpp | msvcmsys)
11579 # This compiler won't grok `-c -o', but also, the minuso test has
11580 # not run yet. These depmodes are late enough in the game, and
11581 # so weak that their functioning should not be impacted.
11582 am__obj=conftest.${OBJEXT-o}
11583 am__minus_obj=
11584 ;;
11585 none) break ;;
11586 esac
11587 if depmode=$depmode \
11588 source=sub/conftest.c object=$am__obj \
11589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11591 >/dev/null 2>conftest.err &&
11592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11596 # icc doesn't choke on unknown options, it will just issue warnings
11597 # or remarks (even with -Werror). So we grep stderr for any message
11598 # that says an option was ignored or not supported.
11599 # When given -MP, icc 7.0 and 7.1 complain thusly:
11600 # icc: Command line warning: ignoring option '-M'; no argument required
11601 # The diagnosis changed in icc 8.0:
11602 # icc: Command line remark: option '-MP' not supported
11603 if (grep 'ignoring option' conftest.err ||
11604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11605 am_cv_CC_dependencies_compiler_type=$depmode
11606 break
11607 fi
11608 fi
11609 done
11610
11611 cd ..
11612 rm -rf conftest.dir
11613else
11614 am_cv_CC_dependencies_compiler_type=none
11615fi
11616
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11619$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11620CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11621
11622 if
11623 test "x$enable_dependency_tracking" != xno \
11624 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11625 am__fastdepCC_TRUE=
11626 am__fastdepCC_FALSE='#'
11627else
11628 am__fastdepCC_TRUE='#'
11629 am__fastdepCC_FALSE=
11630fi
11631
11632
11633
11634
11635
11636
11637if test "x$CC" != xcc; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11639$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11640else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11642$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11643fi
11644set dummy $CC; ac_cc=`$as_echo "$2" |
11645 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11646if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11647 $as_echo_n "(cached) " >&6
11648else
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h. */
11651
11652int
11653main ()
11654{
11655
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660# Make sure it works both with $CC and with simple cc.
11661# We do the test twice because some compilers refuse to overwrite an
11662# existing .o file with -o, though they will create one.
11663ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11664rm -f conftest2.*
11665if { { case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11670$as_echo "$ac_try_echo"; } >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; } &&
11675 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11680$as_echo "$ac_try_echo"; } >&5
11681 (eval "$ac_try") 2>&5
11682 ac_status=$?
11683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11684 test $ac_status = 0; };
11685then
11686 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11687 if test "x$CC" != xcc; then
11688 # Test first that cc exists at all.
11689 if { ac_try='cc -c conftest.$ac_ext >&5'
11690 { { case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693esac
11694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11695$as_echo "$ac_try_echo"; } >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699 test $ac_status = 0; }; }; then
11700 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11701 rm -f conftest2.*
11702 if { { case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11707$as_echo "$ac_try_echo"; } >&5
11708 (eval "$ac_try") 2>&5
11709 ac_status=$?
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; } &&
11712 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11717$as_echo "$ac_try_echo"; } >&5
11718 (eval "$ac_try") 2>&5
11719 ac_status=$?
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; };
11722 then
11723 # cc works too.
11724 :
11725 else
11726 # cc exists but doesn't like -o.
11727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11728 fi
11729 fi
11730 fi
11731else
11732 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11733fi
11734rm -f core conftest*
87969c8c 11735
cb3103a1 11736fi
11737if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739$as_echo "yes" >&6; }
11740else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
87969c8c 11743
cb3103a1 11744$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11745
11746fi
87969c8c 11747
cb3103a1 11748# FIXME: we rely on the cache variable name because
11749# there is no other way.
11750set dummy $CC
11751am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11752eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11753if test "$am_t" != yes; then
11754 # Losing compiler, so override with the script.
11755 # FIXME: It is wrong to rewrite CC.
11756 # But if we don't then we get into trouble of one sort or another.
11757 # A longer-term fix would be to have automake use am__CC in this case,
11758 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11759 CC="$am_aux_dir/compile $CC"
11760fi
87969c8c 11761
11762
11763
cb3103a1 11764if test "x$GCC" != "xyes"; then
11765 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
87969c8c 11766fi
11767ac_ext=c
11768ac_cpp='$CPP $CPPFLAGS'
11769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771ac_compiler_gnu=$ac_cv_c_compiler_gnu
cb3103a1 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11773$as_echo_n "checking how to run the C preprocessor... " >&6; }
11774# On Suns, sometimes $CPP names a directory.
11775if test -n "$CPP" && test -d "$CPP"; then
11776 CPP=
11777fi
11778if test -z "$CPP"; then
11779 if test "${ac_cv_prog_CPP+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781else
11782 # Double quotes because CPP needs to be expanded
11783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11784 do
11785 ac_preproc_ok=false
11786for ac_c_preproc_warn_flag in '' yes
11787do
11788 # Use a header file that comes with gcc, so configuring glibc
11789 # with a fresh cross-compiler works.
11790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11791 # <limits.h> exists even on freestanding compilers.
11792 # On the NeXT, cc -E runs the code through the compiler's parser,
11793 # not just through cpp. "Syntax error" is here to catch this case.
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795/* end confdefs.h. */
11796#ifdef __STDC__
11797# include <limits.h>
11798#else
11799# include <assert.h>
11800#endif
11801 Syntax error
11802_ACEOF
11803if ac_fn_c_try_cpp "$LINENO"; then :
87969c8c 11804
87969c8c 11805else
cb3103a1 11806 # Broken: fails on valid input.
11807continue
87969c8c 11808fi
cb3103a1 11809rm -f conftest.err conftest.$ac_ext
87969c8c 11810
cb3103a1 11811 # OK, works on sane cases. Now check whether nonexistent headers
11812 # can be detected and how.
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815#include <ac_nonexistent.h>
11816_ACEOF
11817if ac_fn_c_try_cpp "$LINENO"; then :
11818 # Broken: success on invalid input.
11819continue
87969c8c 11820else
cb3103a1 11821 # Passes both tests.
11822ac_preproc_ok=:
11823break
87969c8c 11824fi
cb3103a1 11825rm -f conftest.err conftest.$ac_ext
87969c8c 11826
cb3103a1 11827done
11828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11829rm -f conftest.err conftest.$ac_ext
11830if $ac_preproc_ok; then :
11831 break
11832fi
87969c8c 11833
cb3103a1 11834 done
11835 ac_cv_prog_CPP=$CPP
87969c8c 11836
cb3103a1 11837fi
11838 CPP=$ac_cv_prog_CPP
87969c8c 11839else
cb3103a1 11840 ac_cv_prog_CPP=$CPP
87969c8c 11841fi
cb3103a1 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11843$as_echo "$CPP" >&6; }
11844ac_preproc_ok=false
11845for ac_c_preproc_warn_flag in '' yes
11846do
11847 # Use a header file that comes with gcc, so configuring glibc
11848 # with a fresh cross-compiler works.
11849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 # <limits.h> exists even on freestanding compilers.
11851 # On the NeXT, cc -E runs the code through the compiler's parser,
11852 # not just through cpp. "Syntax error" is here to catch this case.
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h. */
11855#ifdef __STDC__
11856# include <limits.h>
11857#else
11858# include <assert.h>
11859#endif
11860 Syntax error
11861_ACEOF
11862if ac_fn_c_try_cpp "$LINENO"; then :
87969c8c 11863
cb3103a1 11864else
11865 # Broken: fails on valid input.
11866continue
11867fi
11868rm -f conftest.err conftest.$ac_ext
87969c8c 11869
cb3103a1 11870 # OK, works on sane cases. Now check whether nonexistent headers
11871 # can be detected and how.
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h. */
11874#include <ac_nonexistent.h>
11875_ACEOF
11876if ac_fn_c_try_cpp "$LINENO"; then :
11877 # Broken: success on invalid input.
11878continue
87969c8c 11879else
cb3103a1 11880 # Passes both tests.
11881ac_preproc_ok=:
11882break
87969c8c 11883fi
cb3103a1 11884rm -f conftest.err conftest.$ac_ext
87969c8c 11885
cb3103a1 11886done
11887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11888rm -f conftest.err conftest.$ac_ext
11889if $ac_preproc_ok; then :
87969c8c 11890
cb3103a1 11891else
11892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11894as_fn_error "C preprocessor \"$CPP\" fails sanity check
11895See \`config.log' for more details." "$LINENO" 5; }
87969c8c 11896fi
11897
cb3103a1 11898ac_ext=c
11899ac_cpp='$CPP $CPPFLAGS'
11900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11902ac_compiler_gnu=$ac_cv_c_compiler_gnu
87969c8c 11903
11904
11905# Calculate toolexeclibdir
11906# Also toolexecdir, though it's only used in toolexeclibdir
11907case ${version_specific_libs} in
11908 yes)
11909 # Need the gcc compiler version to know where to install libraries
11910 # and header files if --enable-version-specific-runtime-libs option
11911 # is selected.
11912 toolexecdir='$(libdir)/gcc/$(target_alias)'
11913 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11914 ;;
11915 no)
11916 if test -n "$with_cross_host" &&
11917 test x"$with_cross_host" != x"no"; then
11918 # Install a library built with a cross compiler in tooldir, not libdir.
11919 toolexecdir='$(exec_prefix)/$(target_alias)'
11920 toolexeclibdir='$(toolexecdir)/lib'
11921 else
11922 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11923 toolexeclibdir='$(libdir)'
11924 fi
11925 multi_os_directory=`$CC -print-multi-os-directory`
11926 case $multi_os_directory in
11927 .) ;; # Avoid trailing /.
11928 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11929 esac
11930 ;;
11931esac
11932
11933
11934
1aca2b0f 11935for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
bcaa791f 11936do :
0c0fb0a6 11937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11939eval as_val=\$$as_ac_Header
11940 if test "x$as_val" = x""yes; then :
bcaa791f 11941 cat >>confdefs.h <<_ACEOF
0c0fb0a6 11942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bcaa791f 11943_ACEOF
11944
11945fi
11946
11947done
11948
11949
41392972 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11951$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11952if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954else
11955
11956 save_CFLAGS="$CFLAGS"
11957 CFLAGS="$CFLAGS -Werror"
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h. */
11960
11961#include <math.h>
11962void foo(void) { signgam = 1; }
11963int
11964main ()
11965{
11966
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971if ac_fn_c_try_compile "$LINENO"; then :
11972 libgfor_cv_have_math_h_signgam=yes
11973else
11974 libgfor_cv_have_math_h_signgam=no
11975fi
11976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 CFLAGS="$save_CFLAGS"
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11980$as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11981 if test $libgfor_cv_have_math_h_signgam = yes; then
11982
11983$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
11984
11985 fi
11986
5edfcfbd 11987# If available, sqrtl and cbrtl speed up the calculation -
11988# but they are not required
11989if test x$gcc_no_link != xyes; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
87969c8c 11991$as_echo_n "checking for sqrtl in -lm... " >&6; }
11992if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994else
11995 ac_check_lib_save_LIBS=$LIBS
11996LIBS="-lm $LIBS"
cb3103a1 11997if test x$gcc_no_link = xyes; then
11998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11999fi
87969c8c 12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h. */
12002
12003/* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char sqrtl ();
12010int
12011main ()
12012{
12013return sqrtl ();
12014 ;
12015 return 0;
12016}
12017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_lib_m_sqrtl=yes
12020else
12021 ac_cv_lib_m_sqrtl=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025LIBS=$ac_check_lib_save_LIBS
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12028$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12029if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12030
12031$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12032
12033fi
12034
5edfcfbd 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
87969c8c 12036$as_echo_n "checking for cbrtl in -lm... " >&6; }
12037if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039else
12040 ac_check_lib_save_LIBS=$LIBS
12041LIBS="-lm $LIBS"
cb3103a1 12042if test x$gcc_no_link = xyes; then
12043 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12044fi
87969c8c 12045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
12047
12048/* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051#ifdef __cplusplus
12052extern "C"
12053#endif
12054char cbrtl ();
12055int
12056main ()
12057{
12058return cbrtl ();
12059 ;
12060 return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_m_cbrtl=yes
12065else
12066 ac_cv_lib_m_cbrtl=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070LIBS=$ac_check_lib_save_LIBS
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12073$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12074if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12075
12076$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12077
bcaa791f 12078fi
12079
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12081$as_echo_n "checking for feholdexcept in -lm... " >&6; }
12082if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084else
12085 ac_check_lib_save_LIBS=$LIBS
12086LIBS="-lm $LIBS"
12087if test x$gcc_no_link = xyes; then
12088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12089fi
12090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091/* end confdefs.h. */
12092
12093/* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096#ifdef __cplusplus
12097extern "C"
12098#endif
12099char feholdexcept ();
12100int
12101main ()
12102{
12103return feholdexcept ();
12104 ;
12105 return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109 ac_cv_lib_m_feholdexcept=yes
12110else
12111 ac_cv_lib_m_feholdexcept=no
12112fi
12113rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115LIBS=$ac_check_lib_save_LIBS
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12118$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12119if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12120
12121$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12122
12123fi
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12126$as_echo_n "checking for fesetround in -lm... " >&6; }
12127if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129else
12130 ac_check_lib_save_LIBS=$LIBS
12131LIBS="-lm $LIBS"
12132if test x$gcc_no_link = xyes; then
12133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12134fi
12135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h. */
12137
12138/* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12141#ifdef __cplusplus
12142extern "C"
12143#endif
12144char fesetround ();
12145int
12146main ()
12147{
12148return fesetround ();
12149 ;
12150 return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_m_fesetround=yes
12155else
12156 ac_cv_lib_m_fesetround=no
12157fi
12158rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160LIBS=$ac_check_lib_save_LIBS
12161fi
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12163$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12164if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12165
12166$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12167
12168fi
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12171$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12172if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12174else
12175 ac_check_lib_save_LIBS=$LIBS
12176LIBS="-lm $LIBS"
12177if test x$gcc_no_link = xyes; then
12178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12179fi
12180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181/* end confdefs.h. */
12182
12183/* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186#ifdef __cplusplus
12187extern "C"
12188#endif
12189char feupdateenv ();
12190int
12191main ()
12192{
12193return feupdateenv ();
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198if ac_fn_c_try_link "$LINENO"; then :
12199 ac_cv_lib_m_feupdateenv=yes
12200else
12201 ac_cv_lib_m_feupdateenv=no
12202fi
12203rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205LIBS=$ac_check_lib_save_LIBS
12206fi
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12208$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12209if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12210
12211$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12212
12213fi
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12216$as_echo_n "checking for fesetenv in -lm... " >&6; }
12217if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12219else
12220 ac_check_lib_save_LIBS=$LIBS
12221LIBS="-lm $LIBS"
12222if test x$gcc_no_link = xyes; then
12223 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12224fi
12225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h. */
12227
12228/* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12231#ifdef __cplusplus
12232extern "C"
12233#endif
12234char fesetenv ();
12235int
12236main ()
12237{
12238return fesetenv ();
12239 ;
12240 return 0;
12241}
12242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_lib_m_fesetenv=yes
12245else
12246 ac_cv_lib_m_fesetenv=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250LIBS=$ac_check_lib_save_LIBS
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12253$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12254if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12255
12256$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12257
12258fi
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12261$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12262if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264else
12265 ac_check_lib_save_LIBS=$LIBS
12266LIBS="-lm $LIBS"
12267if test x$gcc_no_link = xyes; then
12268 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12269fi
12270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271/* end confdefs.h. */
12272
12273/* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276#ifdef __cplusplus
12277extern "C"
12278#endif
12279char fetestexcept ();
12280int
12281main ()
12282{
12283return fetestexcept ();
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_lib_m_fetestexcept=yes
12290else
12291 ac_cv_lib_m_fetestexcept=no
12292fi
12293rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295LIBS=$ac_check_lib_save_LIBS
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12298$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12299if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12300
12301$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12302
87969c8c 12303fi
12304
abb2a4bd 12305 for ac_func in strtoull
12306do :
12307 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12308if test "x$ac_cv_func_strtoull" = x""yes; then :
12309 cat >>confdefs.h <<_ACEOF
12310#define HAVE_STRTOULL 1
12311_ACEOF
12312
12313fi
12314done
12315
5edfcfbd 12316else
12317 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12318
12319$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12320
12321 fi
12322 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12323
12324$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12325
bcaa791f 12326 fi
12327 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12328
12329$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12330
12331 fi
12332 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12333
12334$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12335
12336 fi
12337 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12338
12339$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12340
12341 fi
12342 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12343
12344$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12345
12346 fi
12347 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12348
12349$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12350
5edfcfbd 12351 fi
12352fi
87969c8c 12353
0c0fb0a6 12354# Check for hidden visibility (copied from libssp).
1e95c98e 12355saved_CFLAGS="$CFLAGS"
12356CFLAGS="$CFLAGS -Werror"
0c0fb0a6 12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12358$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361
12362void __attribute__((visibility ("hidden"))) bar (void) {}
12363int
12364main ()
12365{
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_compile "$LINENO"; then :
12372 quadmath_hidden=yes
12373else
12374 quadmath_hidden=no
12375fi
12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12378$as_echo "$quadmath_hidden" >&6; }
12379if test x$quadmath_hidden = xyes; then
12380
12381$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12382
12383fi
1e95c98e 12384CFLAGS="$saved_CFLAGS"
0c0fb0a6 12385
87969c8c 12386# Check for symbol versioning (copied from libssp).
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12388$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bbb514dc 12389# Check whether --enable-symvers was given.
12390if test "${enable_symvers+set}" = set; then :
12391 enableval=$enable_symvers; quadmath_use_symver=$enableval
cb3103a1 12392else
bbb514dc 12393 quadmath_use_symver=yes
12394fi
12395
06e4a265 12396if test "x$quadmath_use_symver" != xno; then
bbb514dc 12397 if test x$gcc_no_link = xyes; then
12398 # If we cannot link, we cannot build shared libraries, so do not use
12399 # symbol versioning.
12400 quadmath_use_symver=no
12401 else
12402 save_LDFLAGS="$LDFLAGS"
12403 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12404 cat > conftest.map <<EOF
87969c8c 12405FOO_1.0 {
12406 global: *foo*; bar; local: *;
12407};
12408EOF
bbb514dc 12409 if test x$gcc_no_link = xyes; then
cb3103a1 12410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12411fi
87969c8c 12412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h. */
12414int foo;
12415int
12416main ()
12417{
12418
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_link "$LINENO"; then :
12424 quadmath_use_symver=gnu
12425else
12426 quadmath_use_symver=no
12427fi
12428rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
bbb514dc 12430 if test x$quadmath_use_symver = xno; then
12431 case "$target_os" in
12432 solaris2*)
12433 LDFLAGS="$save_LDFLAGS"
12434 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12435 # Sun ld cannot handle wildcards and treats all entries as undefined.
12436 cat > conftest.map <<EOF
87969c8c 12437FOO_1.0 {
12438 global: foo; local: *;
12439};
12440EOF
bbb514dc 12441 if test x$gcc_no_link = xyes; then
cb3103a1 12442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12443fi
12444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 12445/* end confdefs.h. */
12446int foo;
12447int
12448main ()
12449{
12450
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_link "$LINENO"; then :
12456 quadmath_use_symver=sun
12457else
12458 quadmath_use_symver=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
bbb514dc 12462 ;;
12463 esac
12464 fi
12465 LDFLAGS="$save_LDFLAGS"
cb3103a1 12466 fi
87969c8c 12467fi
87969c8c 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12469$as_echo "$quadmath_use_symver" >&6; }
12470 if test "x$quadmath_use_symver" != xno; then
12471 LIBQUAD_USE_SYMVER_TRUE=
12472 LIBQUAD_USE_SYMVER_FALSE='#'
12473else
12474 LIBQUAD_USE_SYMVER_TRUE='#'
12475 LIBQUAD_USE_SYMVER_FALSE=
12476fi
12477
12478 if test "x$quadmath_use_symver" = xgnu; then
12479 LIBQUAD_USE_SYMVER_GNU_TRUE=
12480 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12481else
12482 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12483 LIBQUAD_USE_SYMVER_GNU_FALSE=
12484fi
12485
12486 if test "x$quadmath_use_symver" = xsun; then
12487 LIBQUAD_USE_SYMVER_SUN_TRUE=
12488 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12489else
12490 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12491 LIBQUAD_USE_SYMVER_SUN_FALSE=
12492fi
12493
12494
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12496$as_echo_n "checking whether __float128 is supported... " >&6; }
eac55a56 12497if test "${libquad_cv_have_float128+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499else
12500 if test x$gcc_no_link = xyes; then
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502/* end confdefs.h. */
12503
12504 typedef _Complex float __attribute__((mode(TC))) __complex128;
12505
12506 __float128 foo (__float128 x)
12507 {
12508
12509 __complex128 z1, z2;
12510
12511 z1 = x;
12512 z2 = x / 7.Q;
12513 z2 /= z1;
12514
12515 return (__float128) z2;
12516 }
12517
12518 __float128 bar (__float128 x)
12519 {
12520 return x * __builtin_huge_valq ();
12521 }
12522
12523int
12524main ()
12525{
12526
12527 foo (1.2Q);
12528 bar (1.2Q);
12529
12530 ;
12531 return 0;
12532}
12533_ACEOF
12534if ac_fn_c_try_compile "$LINENO"; then :
12535
12536 libquad_cv_have_float128=yes
12537
12538else
12539
12540 libquad_cv_have_float128=no
12541
12542fi
12543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544else
cb3103a1 12545 if test x$gcc_no_link = xyes; then
12546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12547fi
12548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 12549/* end confdefs.h. */
12550
12551 typedef _Complex float __attribute__((mode(TC))) __complex128;
12552
12553 __float128 foo (__float128 x)
12554 {
12555
12556 __complex128 z1, z2;
12557
12558 z1 = x;
12559 z2 = x / 7.Q;
12560 z2 /= z1;
12561
12562 return (__float128) z2;
12563 }
12564
12565 __float128 bar (__float128 x)
12566 {
12567 return x * __builtin_huge_valq ();
12568 }
12569
12570int
12571main ()
12572{
12573
12574 foo (1.2Q);
12575 bar (1.2Q);
12576
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581if ac_fn_c_try_link "$LINENO"; then :
12582
eac55a56 12583 libquad_cv_have_float128=yes
87969c8c 12584
12585else
12586
eac55a56 12587 libquad_cv_have_float128=no
87969c8c 12588
12589fi
12590rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
eac55a56 12592fi
12593fi
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12595$as_echo "$libquad_cv_have_float128" >&6; }
12596 if test "x$libquad_cv_have_float128" = xyes; then
87969c8c 12597 BUILD_LIBQUADMATH_TRUE=
12598 BUILD_LIBQUADMATH_FALSE='#'
12599else
12600 BUILD_LIBQUADMATH_TRUE='#'
12601 BUILD_LIBQUADMATH_FALSE=
12602fi
12603
12604
0c0fb0a6 12605# Check for printf hook support.
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12607$as_echo_n "checking whether printf hooks are supported... " >&6; }
12608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h. */
12610
12611#include <printf.h>
12612#include <stdarg.h>
12613#include <stdlib.h>
12614extern void flt128_va (void *, va_list *);
12615extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12616extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12617
12618int
12619main ()
12620{
12621
12622int pa_flt128 = register_printf_type (flt128_va);
12623int mod_Q = register_printf_modifier (L"Q");
12624int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
aa44ed84 12625struct printf_info info = { .user = -1 };
0c0fb0a6 12626
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_compile "$LINENO"; then :
12632 quadmath_printf_hooks=yes
12633else
12634 quadmath_printf_hooks=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12638$as_echo "$quadmath_printf_hooks" >&6; }
12639if test x$quadmath_printf_hooks = xyes; then
12640
12641$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12642
12643fi
12644
12645# Check for whether locale support for quadmath_snprintf or Q printf hooks
12646# should be provided.
1aca2b0f 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12648$as_echo_n "checking whether nl_langinfo should be used... " >&6; }
0c0fb0a6 12649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650/* end confdefs.h. */
12651#include <langinfo.h>
12652int
12653main ()
12654{
12655
12656const char *s;
12657s = nl_langinfo (DECIMAL_POINT);
12658s = nl_langinfo (MON_DECIMAL_POINT);
12659s = nl_langinfo (GROUPING);
12660s = nl_langinfo (MON_GROUPING);
12661s = nl_langinfo (THOUSANDS_SEP);
12662s = nl_langinfo (MON_THOUSANDS_SEP);
1aca2b0f 12663(void) s;
12664
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669if ac_fn_c_try_compile "$LINENO"; then :
12670 quadmath_use_nl_langinfo=yes
12671else
12672 quadmath_use_nl_langinfo=no
12673fi
12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12676$as_echo "$quadmath_use_nl_langinfo" >&6; }
12677if test x$quadmath_use_nl_langinfo = xyes; then
12678
12679$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12680
12681fi
12682
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12684$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686/* end confdefs.h. */
12687#include <langinfo.h>
12688int
12689main ()
12690{
12691
12692const char *s;
0c0fb0a6 12693s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12694s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12695s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12696s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
0c0fb0a6 12697(void) s;
12698
12699 ;
12700 return 0;
12701}
12702_ACEOF
12703if ac_fn_c_try_compile "$LINENO"; then :
1aca2b0f 12704 quadmath_use_nl_langinfo_wc=yes
0c0fb0a6 12705else
1aca2b0f 12706 quadmath_use_nl_langinfo_wc=no
0c0fb0a6 12707fi
12708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1aca2b0f 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12710$as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12711if test x$quadmath_use_nl_langinfo_wc = xyes; then
0c0fb0a6 12712
1aca2b0f 12713$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12714
12715fi
12716
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12718$as_echo_n "checking whether localeconv should be used... " >&6; }
12719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h. */
12721#include <locale.h>
12722int
12723main ()
12724{
12725
12726const struct lconv *l = localeconv ();
12727const char *s;
12728s = l->decimal_point;
12729s = l->mon_decimal_point;
12730s = l->grouping;
12731s = l->mon_grouping;
12732s = l->thousands_sep;
12733s = l->mon_thousands_sep;
12734(void) s;
12735
12736 ;
12737 return 0;
12738}
12739_ACEOF
12740if ac_fn_c_try_compile "$LINENO"; then :
12741 quadmath_use_localeconv=yes
12742else
12743 quadmath_use_localeconv=no
12744fi
12745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12747$as_echo "$quadmath_use_localeconv" >&6; }
12748if test x$quadmath_use_localeconv = xyes; then
12749
12750$as_echo "#define USE_LOCALECONV 1" >>confdefs.h
0c0fb0a6 12751
12752fi
12753
12754# Check for whether i18n number rewriting support for quadmath_snprintf
12755# or Q printf hooks should be provided.
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12757$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759/* end confdefs.h. */
12760#include <langinfo.h>
12761#include <limits.h>
12762#include <string.h>
12763#include <wchar.h>
12764#include <wctype.h>
12765int
12766main ()
12767{
12768
12769const char *s;
12770char decimal[MB_LEN_MAX];
12771wctrans_t map = wctrans ("to_outpunct");
12772wint_t wdecimal = towctrans (L'.', map);
12773mbstate_t state;
12774memset (&state, '\0', sizeof (state));
12775wcrtomb (decimal, wdecimal, &state);
12776s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12777s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
1aca2b0f 12778s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
0c0fb0a6 12779(void) s;
12780
12781 ;
12782 return 0;
12783}
12784_ACEOF
12785if ac_fn_c_try_compile "$LINENO"; then :
12786 quadmath_use_i18n_number_h=yes
12787else
12788 quadmath_use_i18n_number_h=no
12789fi
12790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12792$as_echo "$quadmath_use_i18n_number_h" >&6; }
12793if test x$quadmath_use_i18n_number_h = xyes; then
12794
12795$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12796
12797fi
12798
87969c8c 12799cat >confcache <<\_ACEOF
12800# This file is a shell script that caches the results of configure
12801# tests run on this system so they can be shared between configure
12802# scripts and configure runs, see configure's option --config-cache.
12803# It is not useful on other systems. If it contains results you don't
12804# want to keep, you may remove or edit it.
12805#
12806# config.status only pays attention to the cache file if you give it
12807# the --recheck option to rerun configure.
12808#
12809# `ac_cv_env_foo' variables (set or unset) will be overridden when
12810# loading this file, other *unset* `ac_cv_foo' will be assigned the
12811# following values.
12812
12813_ACEOF
12814
12815# The following way of writing the cache mishandles newlines in values,
12816# but we know of no workaround that is simple, portable, and efficient.
12817# So, we kill variables containing newlines.
12818# Ultrix sh set writes to stderr and can't be redirected directly,
12819# and sets the high bit in the cache file unless we assign to the vars.
12820(
12821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12822 eval ac_val=\$$ac_var
12823 case $ac_val in #(
12824 *${as_nl}*)
12825 case $ac_var in #(
12826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12827$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12828 esac
12829 case $ac_var in #(
12830 _ | IFS | as_nl) ;; #(
12831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12832 *) { eval $ac_var=; unset $ac_var;} ;;
12833 esac ;;
12834 esac
12835 done
12836
12837 (set) 2>&1 |
12838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12839 *${as_nl}ac_space=\ *)
12840 # `set' does not quote correctly, so add quotes: double-quote
12841 # substitution turns \\\\ into \\, and sed turns \\ into \.
12842 sed -n \
12843 "s/'/'\\\\''/g;
12844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12845 ;; #(
12846 *)
12847 # `set' quotes correctly as required by POSIX, so do not add quotes.
12848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12849 ;;
12850 esac |
12851 sort
12852) |
12853 sed '
12854 /^ac_cv_env_/b end
12855 t clear
12856 :clear
12857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12858 t end
12859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12860 :end' >>confcache
12861if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12862 if test -w "$cache_file"; then
12863 test "x$cache_file" != "x/dev/null" &&
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12865$as_echo "$as_me: updating cache $cache_file" >&6;}
12866 cat confcache >$cache_file
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12869$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12870 fi
12871fi
12872rm -f confcache
12873
12874if test ${multilib} = yes; then
12875 multilib_arg="--enable-multilib"
12876else
12877 multilib_arg=
12878fi
12879
d6580113 12880
12881# We would like our source tree to be readonly. However when releases or
12882# pre-releases are generated, the flex/bison generated files as well as the
12883# various formats of manuals need to be included along with the rest of the
12884# sources. Therefore we have --enable-generated-files-in-srcdir to do
12885# just that.
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12887$as_echo_n "checking generated-files-in-srcdir... " >&6; }
12888# Check whether --enable-generated-files-in-srcdir was given.
12889if test "${enable_generated_files_in_srcdir+set}" = set; then :
12890 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12891 yes) enable_generated_files_in_srcdir=yes ;;
12892 no) enable_generated_files_in_srcdir=no ;;
12893 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12894 esac
12895else
12896 enable_generated_files_in_srcdir=no
12897fi
12898
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12900$as_echo "$enable_generated_files_in_srcdir" >&6; }
12901 if test "$enable_generated_files_in_srcdir" = yes; then
12902 GENINSRC_TRUE=
12903 GENINSRC_FALSE='#'
12904else
12905 GENINSRC_TRUE='#'
12906 GENINSRC_FALSE=
12907fi
12908
12909
12910
87969c8c 12911ac_config_files="$ac_config_files Makefile"
12912
12913cat >confcache <<\_ACEOF
12914# This file is a shell script that caches the results of configure
12915# tests run on this system so they can be shared between configure
12916# scripts and configure runs, see configure's option --config-cache.
12917# It is not useful on other systems. If it contains results you don't
12918# want to keep, you may remove or edit it.
12919#
12920# config.status only pays attention to the cache file if you give it
12921# the --recheck option to rerun configure.
12922#
12923# `ac_cv_env_foo' variables (set or unset) will be overridden when
12924# loading this file, other *unset* `ac_cv_foo' will be assigned the
12925# following values.
12926
12927_ACEOF
12928
12929# The following way of writing the cache mishandles newlines in values,
12930# but we know of no workaround that is simple, portable, and efficient.
12931# So, we kill variables containing newlines.
12932# Ultrix sh set writes to stderr and can't be redirected directly,
12933# and sets the high bit in the cache file unless we assign to the vars.
12934(
12935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12936 eval ac_val=\$$ac_var
12937 case $ac_val in #(
12938 *${as_nl}*)
12939 case $ac_var in #(
12940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12942 esac
12943 case $ac_var in #(
12944 _ | IFS | as_nl) ;; #(
12945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12946 *) { eval $ac_var=; unset $ac_var;} ;;
12947 esac ;;
12948 esac
12949 done
12950
12951 (set) 2>&1 |
12952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12953 *${as_nl}ac_space=\ *)
12954 # `set' does not quote correctly, so add quotes: double-quote
12955 # substitution turns \\\\ into \\, and sed turns \\ into \.
12956 sed -n \
12957 "s/'/'\\\\''/g;
12958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12959 ;; #(
12960 *)
12961 # `set' quotes correctly as required by POSIX, so do not add quotes.
12962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12963 ;;
12964 esac |
12965 sort
12966) |
12967 sed '
12968 /^ac_cv_env_/b end
12969 t clear
12970 :clear
12971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12972 t end
12973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12974 :end' >>confcache
12975if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12976 if test -w "$cache_file"; then
12977 test "x$cache_file" != "x/dev/null" &&
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12979$as_echo "$as_me: updating cache $cache_file" >&6;}
12980 cat confcache >$cache_file
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12983$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12984 fi
12985fi
12986rm -f confcache
12987
12988test "x$prefix" = xNONE && prefix=$ac_default_prefix
12989# Let make expand exec_prefix.
12990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12991
12992DEFS=-DHAVE_CONFIG_H
12993
12994ac_libobjs=
12995ac_ltlibobjs=
12996for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12997 # 1. Remove the extension, and $U if already installed.
12998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13001 # will be set to the directory where LIBOBJS objects are built.
13002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13004done
13005LIBOBJS=$ac_libobjs
13006
13007LTLIBOBJS=$ac_ltlibobjs
13008
13009
13010 if test -n "$EXEEXT"; then
13011 am__EXEEXT_TRUE=
13012 am__EXEEXT_FALSE='#'
13013else
13014 am__EXEEXT_TRUE='#'
13015 am__EXEEXT_FALSE=
13016fi
13017
13018if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13019 as_fn_error "conditional \"AMDEP\" was never defined.
13020Usually this means the macro was only invoked conditionally." "$LINENO" 5
13021fi
13022if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13023 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13024Usually this means the macro was only invoked conditionally." "$LINENO" 5
13025fi
0c0fb0a6 13026if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13027 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13028Usually this means the macro was only invoked conditionally." "$LINENO" 5
13029fi
87969c8c 13030if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13031 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13032Usually this means the macro was only invoked conditionally." "$LINENO" 5
13033fi
cb3103a1 13034if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13035 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13036Usually this means the macro was only invoked conditionally." "$LINENO" 5
13037fi
87969c8c 13038if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13039 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13040Usually this means the macro was only invoked conditionally." "$LINENO" 5
13041fi
13042if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13043 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13044Usually this means the macro was only invoked conditionally." "$LINENO" 5
13045fi
13046if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13047 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13048Usually this means the macro was only invoked conditionally." "$LINENO" 5
13049fi
13050if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13051 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
d6580113 13052Usually this means the macro was only invoked conditionally." "$LINENO" 5
13053fi
13054if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13055 as_fn_error "conditional \"GENINSRC\" was never defined.
87969c8c 13056Usually this means the macro was only invoked conditionally." "$LINENO" 5
13057fi
13058
13059: ${CONFIG_STATUS=./config.status}
13060ac_write_fail=0
13061ac_clean_files_save=$ac_clean_files
13062ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13064$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13065as_write_fail=0
13066cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13067#! $SHELL
13068# Generated by $as_me.
13069# Run this file to recreate the current configuration.
13070# Compiler output produced by configure, useful for debugging
13071# configure, is in config.log if it exists.
13072
13073debug=false
13074ac_cs_recheck=false
13075ac_cs_silent=false
13076
13077SHELL=\${CONFIG_SHELL-$SHELL}
13078export SHELL
13079_ASEOF
13080cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13081## -------------------- ##
13082## M4sh Initialization. ##
13083## -------------------- ##
13084
13085# Be more Bourne compatible
13086DUALCASE=1; export DUALCASE # for MKS sh
13087if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13088 emulate sh
13089 NULLCMD=:
13090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13091 # is contrary to our usage. Disable this feature.
13092 alias -g '${1+"$@"}'='"$@"'
13093 setopt NO_GLOB_SUBST
13094else
13095 case `(set -o) 2>/dev/null` in #(
13096 *posix*) :
13097 set -o posix ;; #(
13098 *) :
13099 ;;
13100esac
13101fi
13102
13103
13104as_nl='
13105'
13106export as_nl
13107# Printing a long string crashes Solaris 7 /usr/bin/printf.
13108as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13109as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13111# Prefer a ksh shell builtin over an external printf program on Solaris,
13112# but without wasting forks for bash or zsh.
13113if test -z "$BASH_VERSION$ZSH_VERSION" \
13114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13115 as_echo='print -r --'
13116 as_echo_n='print -rn --'
13117elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13118 as_echo='printf %s\n'
13119 as_echo_n='printf %s'
13120else
13121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13123 as_echo_n='/usr/ucb/echo -n'
13124 else
13125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13126 as_echo_n_body='eval
13127 arg=$1;
13128 case $arg in #(
13129 *"$as_nl"*)
13130 expr "X$arg" : "X\\(.*\\)$as_nl";
13131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13132 esac;
13133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13134 '
13135 export as_echo_n_body
13136 as_echo_n='sh -c $as_echo_n_body as_echo'
13137 fi
13138 export as_echo_body
13139 as_echo='sh -c $as_echo_body as_echo'
13140fi
13141
13142# The user is always right.
13143if test "${PATH_SEPARATOR+set}" != set; then
13144 PATH_SEPARATOR=:
13145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13147 PATH_SEPARATOR=';'
13148 }
13149fi
13150
13151
13152# IFS
13153# We need space, tab and new line, in precisely that order. Quoting is
13154# there to prevent editors from complaining about space-tab.
13155# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13156# splitting by setting IFS to empty value.)
13157IFS=" "" $as_nl"
13158
13159# Find who we are. Look in the path if we contain no directory separator.
13160case $0 in #((
13161 *[\\/]* ) as_myself=$0 ;;
13162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13168 done
13169IFS=$as_save_IFS
13170
13171 ;;
13172esac
13173# We did not find ourselves, most probably we were run as `sh COMMAND'
13174# in which case we are not to be found in the path.
13175if test "x$as_myself" = x; then
13176 as_myself=$0
13177fi
13178if test ! -f "$as_myself"; then
13179 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13180 exit 1
13181fi
13182
13183# Unset variables that we do not need and which cause bugs (e.g. in
13184# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13185# suppresses any "Segmentation fault" message there. '((' could
13186# trigger a bug in pdksh 5.2.14.
13187for as_var in BASH_ENV ENV MAIL MAILPATH
13188do eval test x\${$as_var+set} = xset \
13189 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13190done
13191PS1='$ '
13192PS2='> '
13193PS4='+ '
13194
13195# NLS nuisances.
13196LC_ALL=C
13197export LC_ALL
13198LANGUAGE=C
13199export LANGUAGE
13200
13201# CDPATH.
13202(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13203
13204
13205# as_fn_error ERROR [LINENO LOG_FD]
13206# ---------------------------------
13207# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13208# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13209# script with status $?, using 1 if that was 0.
13210as_fn_error ()
13211{
13212 as_status=$?; test $as_status -eq 0 && as_status=1
13213 if test "$3"; then
13214 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13215 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13216 fi
13217 $as_echo "$as_me: error: $1" >&2
13218 as_fn_exit $as_status
13219} # as_fn_error
13220
13221
13222# as_fn_set_status STATUS
13223# -----------------------
13224# Set $? to STATUS, without forking.
13225as_fn_set_status ()
13226{
13227 return $1
13228} # as_fn_set_status
13229
13230# as_fn_exit STATUS
13231# -----------------
13232# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13233as_fn_exit ()
13234{
13235 set +e
13236 as_fn_set_status $1
13237 exit $1
13238} # as_fn_exit
13239
13240# as_fn_unset VAR
13241# ---------------
13242# Portably unset VAR.
13243as_fn_unset ()
13244{
13245 { eval $1=; unset $1;}
13246}
13247as_unset=as_fn_unset
13248# as_fn_append VAR VALUE
13249# ----------------------
13250# Append the text in VALUE to the end of the definition contained in VAR. Take
13251# advantage of any shell optimizations that allow amortized linear growth over
13252# repeated appends, instead of the typical quadratic growth present in naive
13253# implementations.
13254if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13255 eval 'as_fn_append ()
13256 {
13257 eval $1+=\$2
13258 }'
13259else
13260 as_fn_append ()
13261 {
13262 eval $1=\$$1\$2
13263 }
13264fi # as_fn_append
13265
13266# as_fn_arith ARG...
13267# ------------------
13268# Perform arithmetic evaluation on the ARGs, and store the result in the
13269# global $as_val. Take advantage of shells that can avoid forks. The arguments
13270# must be portable across $(()) and expr.
13271if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13272 eval 'as_fn_arith ()
13273 {
13274 as_val=$(( $* ))
13275 }'
13276else
13277 as_fn_arith ()
13278 {
13279 as_val=`expr "$@" || test $? -eq 1`
13280 }
13281fi # as_fn_arith
13282
13283
13284if expr a : '\(a\)' >/dev/null 2>&1 &&
13285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13286 as_expr=expr
13287else
13288 as_expr=false
13289fi
13290
13291if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13292 as_basename=basename
13293else
13294 as_basename=false
13295fi
13296
13297if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13298 as_dirname=dirname
13299else
13300 as_dirname=false
13301fi
13302
13303as_me=`$as_basename -- "$0" ||
13304$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13305 X"$0" : 'X\(//\)$' \| \
13306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13307$as_echo X/"$0" |
13308 sed '/^.*\/\([^/][^/]*\)\/*$/{
13309 s//\1/
13310 q
13311 }
13312 /^X\/\(\/\/\)$/{
13313 s//\1/
13314 q
13315 }
13316 /^X\/\(\/\).*/{
13317 s//\1/
13318 q
13319 }
13320 s/.*/./; q'`
13321
13322# Avoid depending upon Character Ranges.
13323as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13324as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13325as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13326as_cr_digits='0123456789'
13327as_cr_alnum=$as_cr_Letters$as_cr_digits
13328
13329ECHO_C= ECHO_N= ECHO_T=
13330case `echo -n x` in #(((((
13331-n*)
13332 case `echo 'xy\c'` in
13333 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13334 xy) ECHO_C='\c';;
13335 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13336 ECHO_T=' ';;
13337 esac;;
13338*)
13339 ECHO_N='-n';;
13340esac
13341
13342rm -f conf$$ conf$$.exe conf$$.file
13343if test -d conf$$.dir; then
13344 rm -f conf$$.dir/conf$$.file
13345else
13346 rm -f conf$$.dir
13347 mkdir conf$$.dir 2>/dev/null
13348fi
13349if (echo >conf$$.file) 2>/dev/null; then
13350 if ln -s conf$$.file conf$$ 2>/dev/null; then
13351 as_ln_s='ln -s'
13352 # ... but there are two gotchas:
13353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13355 # In both cases, we have to default to `cp -p'.
13356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13357 as_ln_s='cp -p'
13358 elif ln conf$$.file conf$$ 2>/dev/null; then
13359 as_ln_s=ln
13360 else
13361 as_ln_s='cp -p'
13362 fi
13363else
13364 as_ln_s='cp -p'
13365fi
13366rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13367rmdir conf$$.dir 2>/dev/null
13368
13369
13370# as_fn_mkdir_p
13371# -------------
13372# Create "$as_dir" as a directory, including parents if necessary.
13373as_fn_mkdir_p ()
13374{
13375
13376 case $as_dir in #(
13377 -*) as_dir=./$as_dir;;
13378 esac
13379 test -d "$as_dir" || eval $as_mkdir_p || {
13380 as_dirs=
13381 while :; do
13382 case $as_dir in #(
13383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13384 *) as_qdir=$as_dir;;
13385 esac
13386 as_dirs="'$as_qdir' $as_dirs"
13387 as_dir=`$as_dirname -- "$as_dir" ||
13388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13389 X"$as_dir" : 'X\(//\)[^/]' \| \
13390 X"$as_dir" : 'X\(//\)$' \| \
13391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13392$as_echo X"$as_dir" |
13393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13394 s//\1/
13395 q
13396 }
13397 /^X\(\/\/\)[^/].*/{
13398 s//\1/
13399 q
13400 }
13401 /^X\(\/\/\)$/{
13402 s//\1/
13403 q
13404 }
13405 /^X\(\/\).*/{
13406 s//\1/
13407 q
13408 }
13409 s/.*/./; q'`
13410 test -d "$as_dir" && break
13411 done
13412 test -z "$as_dirs" || eval "mkdir $as_dirs"
13413 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13414
13415
13416} # as_fn_mkdir_p
13417if mkdir -p . 2>/dev/null; then
13418 as_mkdir_p='mkdir -p "$as_dir"'
13419else
13420 test -d ./-p && rmdir ./-p
13421 as_mkdir_p=false
13422fi
13423
13424if test -x / >/dev/null 2>&1; then
13425 as_test_x='test -x'
13426else
13427 if ls -dL / >/dev/null 2>&1; then
13428 as_ls_L_option=L
13429 else
13430 as_ls_L_option=
13431 fi
13432 as_test_x='
13433 eval sh -c '\''
13434 if test -d "$1"; then
13435 test -d "$1/.";
13436 else
13437 case $1 in #(
13438 -*)set "./$1";;
13439 esac;
13440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13441 ???[sx]*):;;*)false;;esac;fi
13442 '\'' sh
13443 '
13444fi
13445as_executable_p=$as_test_x
13446
13447# Sed expression to map a string onto a valid CPP name.
13448as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13449
13450# Sed expression to map a string onto a valid variable name.
13451as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13452
13453
13454exec 6>&1
13455## ----------------------------------- ##
13456## Main body of $CONFIG_STATUS script. ##
13457## ----------------------------------- ##
13458_ASEOF
13459test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13460
13461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13462# Save the log message, to keep $0 and so on meaningful, and to
13463# report actual input values of CONFIG_FILES etc. instead of their
13464# values after options handling.
13465ac_log="
13466This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13467generated by GNU Autoconf 2.64. Invocation command line was
13468
13469 CONFIG_FILES = $CONFIG_FILES
13470 CONFIG_HEADERS = $CONFIG_HEADERS
13471 CONFIG_LINKS = $CONFIG_LINKS
13472 CONFIG_COMMANDS = $CONFIG_COMMANDS
13473 $ $0 $@
13474
13475on `(hostname || uname -n) 2>/dev/null | sed 1q`
13476"
13477
13478_ACEOF
13479
13480case $ac_config_files in *"
13481"*) set x $ac_config_files; shift; ac_config_files=$*;;
13482esac
13483
13484case $ac_config_headers in *"
13485"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13486esac
13487
13488
13489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13490# Files that config.status was made for.
13491config_files="$ac_config_files"
13492config_headers="$ac_config_headers"
13493config_commands="$ac_config_commands"
13494
13495_ACEOF
13496
13497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13498ac_cs_usage="\
13499\`$as_me' instantiates files and other configuration actions
13500from templates according to the current configuration. Unless the files
13501and actions are specified as TAGs, all are instantiated by default.
13502
13503Usage: $0 [OPTION]... [TAG]...
13504
13505 -h, --help print this help, then exit
13506 -V, --version print version number and configuration settings, then exit
13507 -q, --quiet, --silent
13508 do not print progress messages
13509 -d, --debug don't remove temporary files
13510 --recheck update $as_me by reconfiguring in the same conditions
13511 --file=FILE[:TEMPLATE]
13512 instantiate the configuration file FILE
13513 --header=FILE[:TEMPLATE]
13514 instantiate the configuration header FILE
13515
13516Configuration files:
13517$config_files
13518
13519Configuration headers:
13520$config_headers
13521
13522Configuration commands:
13523$config_commands
13524
13525Report bugs to the package provider."
13526
13527_ACEOF
13528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13529ac_cs_version="\\
13530GCC Quad-precision Math Library config.status 0.1
13531configured by $0, generated by GNU Autoconf 2.64,
13532 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13533
13534Copyright (C) 2009 Free Software Foundation, Inc.
13535This config.status script is free software; the Free Software Foundation
13536gives unlimited permission to copy, distribute and modify it."
13537
13538ac_pwd='$ac_pwd'
13539srcdir='$srcdir'
13540INSTALL='$INSTALL'
13541MKDIR_P='$MKDIR_P'
13542AWK='$AWK'
13543test -n "\$AWK" || AWK=awk
13544_ACEOF
13545
13546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547# The default lists apply if the user does not specify any file.
13548ac_need_defaults=:
13549while test $# != 0
13550do
13551 case $1 in
13552 --*=*)
13553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13554 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13555 ac_shift=:
13556 ;;
13557 *)
13558 ac_option=$1
13559 ac_optarg=$2
13560 ac_shift=shift
13561 ;;
13562 esac
13563
13564 case $ac_option in
13565 # Handling of the options.
13566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13567 ac_cs_recheck=: ;;
13568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13569 $as_echo "$ac_cs_version"; exit ;;
13570 --debug | --debu | --deb | --de | --d | -d )
13571 debug=: ;;
13572 --file | --fil | --fi | --f )
13573 $ac_shift
13574 case $ac_optarg in
13575 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13576 esac
13577 as_fn_append CONFIG_FILES " '$ac_optarg'"
13578 ac_need_defaults=false;;
13579 --header | --heade | --head | --hea )
13580 $ac_shift
13581 case $ac_optarg in
13582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13583 esac
13584 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13585 ac_need_defaults=false;;
13586 --he | --h)
13587 # Conflict between --help and --header
13588 as_fn_error "ambiguous option: \`$1'
13589Try \`$0 --help' for more information.";;
13590 --help | --hel | -h )
13591 $as_echo "$ac_cs_usage"; exit ;;
13592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13594 ac_cs_silent=: ;;
13595
13596 # This is an error.
13597 -*) as_fn_error "unrecognized option: \`$1'
13598Try \`$0 --help' for more information." ;;
13599
13600 *) as_fn_append ac_config_targets " $1"
13601 ac_need_defaults=false ;;
13602
13603 esac
13604 shift
13605done
13606
13607ac_configure_extra_args=
13608
13609if $ac_cs_silent; then
13610 exec 6>/dev/null
13611 ac_configure_extra_args="$ac_configure_extra_args --silent"
13612fi
13613
13614_ACEOF
13615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13616if \$ac_cs_recheck; then
13617 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13618 shift
13619 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13620 CONFIG_SHELL='$SHELL'
13621 export CONFIG_SHELL
13622 exec "\$@"
13623fi
13624
13625_ACEOF
13626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627exec 5>>config.log
13628{
13629 echo
13630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13631## Running $as_me. ##
13632_ASBOX
13633 $as_echo "$ac_log"
13634} >&5
13635
13636_ACEOF
13637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638#
13639# INIT-COMMANDS
13640#
13641AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13642
13643
13644# The HP-UX ksh and POSIX shell print the target directory to stdout
13645# if CDPATH is set.
13646(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648sed_quote_subst='$sed_quote_subst'
13649double_quote_subst='$double_quote_subst'
13650delay_variable_subst='$delay_variable_subst'
13651macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13652macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13653enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13654enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13655pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13656enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13657SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13658ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13659host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13660host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13661host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13662build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13663build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13664build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13665SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13666Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13667GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13668EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13669FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13670LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13671NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13672LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13673max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13674ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13675exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13676lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13677lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13678lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13679reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13680reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13681OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13682deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13683file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13684AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13685AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13686STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13687RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13688old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13689old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13690old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13691lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13692CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13693CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13694compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13695GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13696lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13697lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13698lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13699lt_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"`'
13700objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13701MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13702lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13703lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13704lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13705lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13706lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13707need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13708DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13709NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13710LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13711OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13712OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13713libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13714shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13715extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13716archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13717enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13718export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13719whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13720compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13721old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13722old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13723archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13724archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13725module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13726module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13727with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13728allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13729no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13730hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13731hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13732hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13733hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13734hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13735hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13736hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13737hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13738inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13739link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13740fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13741always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13742export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13743exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13744include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13745prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13746file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13747variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13748need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13749need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13750version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13751runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13752shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13753shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13754libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13755library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13756soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13757install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13758postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13759postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13760finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13761finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13762hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13763sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13764sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13765hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13766enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13767enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13768enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13769old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13770striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13771
13772LTCC='$LTCC'
13773LTCFLAGS='$LTCFLAGS'
13774compiler='$compiler_DEFAULT'
13775
13776# A function that is used when there is no print builtin or printf.
13777func_fallback_echo ()
13778{
13779 eval 'cat <<_LTECHO_EOF
13780\$1
13781_LTECHO_EOF'
13782}
13783
13784# Quote evaled strings.
13785for var in SHELL \
13786ECHO \
13787SED \
13788GREP \
13789EGREP \
13790FGREP \
13791LD \
13792NM \
13793LN_S \
13794lt_SP2NL \
13795lt_NL2SP \
13796reload_flag \
13797OBJDUMP \
13798deplibs_check_method \
13799file_magic_cmd \
13800AR \
13801AR_FLAGS \
13802STRIP \
13803RANLIB \
13804CC \
13805CFLAGS \
13806compiler \
13807lt_cv_sys_global_symbol_pipe \
13808lt_cv_sys_global_symbol_to_cdecl \
13809lt_cv_sys_global_symbol_to_c_name_address \
13810lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13811lt_prog_compiler_no_builtin_flag \
13812lt_prog_compiler_wl \
13813lt_prog_compiler_pic \
13814lt_prog_compiler_static \
13815lt_cv_prog_compiler_c_o \
13816need_locks \
13817DSYMUTIL \
13818NMEDIT \
13819LIPO \
13820OTOOL \
13821OTOOL64 \
13822shrext_cmds \
13823export_dynamic_flag_spec \
13824whole_archive_flag_spec \
13825compiler_needs_object \
13826with_gnu_ld \
13827allow_undefined_flag \
13828no_undefined_flag \
13829hardcode_libdir_flag_spec \
13830hardcode_libdir_flag_spec_ld \
13831hardcode_libdir_separator \
13832fix_srcfile_path \
13833exclude_expsyms \
13834include_expsyms \
13835file_list_spec \
13836variables_saved_for_relink \
13837libname_spec \
13838library_names_spec \
13839soname_spec \
13840install_override_mode \
13841finish_eval \
13842old_striplib \
13843striplib; do
13844 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13845 *[\\\\\\\`\\"\\\$]*)
13846 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13847 ;;
13848 *)
13849 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13850 ;;
13851 esac
13852done
13853
13854# Double-quote double-evaled strings.
13855for var in reload_cmds \
13856old_postinstall_cmds \
13857old_postuninstall_cmds \
13858old_archive_cmds \
13859extract_expsyms_cmds \
13860old_archive_from_new_cmds \
13861old_archive_from_expsyms_cmds \
13862archive_cmds \
13863archive_expsym_cmds \
13864module_cmds \
13865module_expsym_cmds \
13866export_symbols_cmds \
13867prelink_cmds \
13868postinstall_cmds \
13869postuninstall_cmds \
13870finish_cmds \
13871sys_lib_search_path_spec \
13872sys_lib_dlsearch_path_spec; do
13873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13874 *[\\\\\\\`\\"\\\$]*)
13875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13876 ;;
13877 *)
13878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13879 ;;
13880 esac
13881done
13882
13883ac_aux_dir='$ac_aux_dir'
13884xsi_shell='$xsi_shell'
13885lt_shell_append='$lt_shell_append'
13886
13887# See if we are running on zsh, and set the options which allow our
13888# commands through without removal of \ escapes INIT.
13889if test -n "\${ZSH_VERSION+set}" ; then
13890 setopt NO_GLOB_SUBST
13891fi
13892
13893
13894 PACKAGE='$PACKAGE'
13895 VERSION='$VERSION'
13896 TIMESTAMP='$TIMESTAMP'
13897 RM='$RM'
13898 ofile='$ofile'
13899
13900
13901
13902
13903srcdir="$srcdir"
13904host="$host"
13905target="$target"
13906with_multisubdir="$with_multisubdir"
13907with_multisrctop="$with_multisrctop"
13908with_target_subdir="$with_target_subdir"
13909ac_configure_args="${multilib_arg} ${ac_configure_args}"
13910multi_basedir="$multi_basedir"
13911CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13912CC="$CC"
13913CXX="$CXX"
13914GFORTRAN="$GFORTRAN"
13915GCJ="$GCJ"
13916
13917_ACEOF
13918
13919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13920
13921# Handling of arguments.
13922for ac_config_target in $ac_config_targets
13923do
13924 case $ac_config_target in
13925 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13928 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13930
13931 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13932 esac
13933done
13934
13935
13936# If the user did not use the arguments to specify the items to instantiate,
13937# then the envvar interface is used. Set only those that are not.
13938# We use the long form for the default assignment because of an extremely
13939# bizarre bug on SunOS 4.1.3.
13940if $ac_need_defaults; then
13941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13944fi
13945
13946# Have a temporary directory for convenience. Make it in the build tree
13947# simply because there is no reason against having it here, and in addition,
13948# creating and moving files from /tmp can sometimes cause problems.
13949# Hook for its removal unless debugging.
13950# Note that there is a small window in which the directory will not be cleaned:
13951# after its creation but before its name has been assigned to `$tmp'.
13952$debug ||
13953{
13954 tmp=
13955 trap 'exit_status=$?
13956 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13957' 0
13958 trap 'as_fn_exit 1' 1 2 13 15
13959}
13960# Create a (secure) tmp directory for tmp files.
13961
13962{
13963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13964 test -n "$tmp" && test -d "$tmp"
13965} ||
13966{
13967 tmp=./conf$$-$RANDOM
13968 (umask 077 && mkdir "$tmp")
13969} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13970
13971# Set up the scripts for CONFIG_FILES section.
13972# No need to generate them if there are no CONFIG_FILES.
13973# This happens for instance with `./config.status config.h'.
13974if test -n "$CONFIG_FILES"; then
13975
13976
13977ac_cr=`echo X | tr X '\015'`
13978# On cygwin, bash can eat \r inside `` if the user requested igncr.
13979# But we know of no other shell where ac_cr would be empty at this
13980# point, so we can use a bashism as a fallback.
13981if test "x$ac_cr" = x; then
13982 eval ac_cr=\$\'\\r\'
13983fi
13984ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13985if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13986 ac_cs_awk_cr='\r'
13987else
13988 ac_cs_awk_cr=$ac_cr
13989fi
13990
13991echo 'BEGIN {' >"$tmp/subs1.awk" &&
13992_ACEOF
13993
13994
13995{
13996 echo "cat >conf$$subs.awk <<_ACEOF" &&
13997 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13998 echo "_ACEOF"
13999} >conf$$subs.sh ||
14000 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14001ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14002ac_delim='%!_!# '
14003for ac_last_try in false false false false false :; do
14004 . ./conf$$subs.sh ||
14005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14006
14007 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14008 if test $ac_delim_n = $ac_delim_num; then
14009 break
14010 elif $ac_last_try; then
14011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14012 else
14013 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14014 fi
14015done
14016rm -f conf$$subs.sh
14017
14018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14019cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14020_ACEOF
14021sed -n '
14022h
14023s/^/S["/; s/!.*/"]=/
14024p
14025g
14026s/^[^!]*!//
14027:repl
14028t repl
14029s/'"$ac_delim"'$//
14030t delim
14031:nl
14032h
14033s/\(.\{148\}\).*/\1/
14034t more1
14035s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14036p
14037n
14038b repl
14039:more1
14040s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14041p
14042g
14043s/.\{148\}//
14044t nl
14045:delim
14046h
14047s/\(.\{148\}\).*/\1/
14048t more2
14049s/["\\]/\\&/g; s/^/"/; s/$/"/
14050p
14051b
14052:more2
14053s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14054p
14055g
14056s/.\{148\}//
14057t delim
14058' <conf$$subs.awk | sed '
14059/^[^""]/{
14060 N
14061 s/\n//
14062}
14063' >>$CONFIG_STATUS || ac_write_fail=1
14064rm -f conf$$subs.awk
14065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14066_ACAWK
14067cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14068 for (key in S) S_is_set[key] = 1
14069 FS = "\a"
14070
14071}
14072{
14073 line = $ 0
14074 nfields = split(line, field, "@")
14075 substed = 0
14076 len = length(field[1])
14077 for (i = 2; i < nfields; i++) {
14078 key = field[i]
14079 keylen = length(key)
14080 if (S_is_set[key]) {
14081 value = S[key]
14082 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14083 len += length(value) + length(field[++i])
14084 substed = 1
14085 } else
14086 len += 1 + keylen
14087 }
14088
14089 print line
14090}
14091
14092_ACAWK
14093_ACEOF
14094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14096 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14097else
14098 cat
14099fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14100 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14101_ACEOF
14102
14103# VPATH may cause trouble with some makes, so we remove $(srcdir),
14104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14105# trailing colons and then remove the whole line if VPATH becomes empty
14106# (actually we leave an empty line to preserve line numbers).
14107if test "x$srcdir" = x.; then
14108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14109s/:*\$(srcdir):*/:/
14110s/:*\${srcdir}:*/:/
14111s/:*@srcdir@:*/:/
14112s/^\([^=]*=[ ]*\):*/\1/
14113s/:*$//
14114s/^[^=]*=[ ]*$//
14115}'
14116fi
14117
14118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14119fi # test -n "$CONFIG_FILES"
14120
14121# Set up the scripts for CONFIG_HEADERS section.
14122# No need to generate them if there are no CONFIG_HEADERS.
14123# This happens for instance with `./config.status Makefile'.
14124if test -n "$CONFIG_HEADERS"; then
14125cat >"$tmp/defines.awk" <<\_ACAWK ||
14126BEGIN {
14127_ACEOF
14128
14129# Transform confdefs.h into an awk script `defines.awk', embedded as
14130# here-document in config.status, that substitutes the proper values into
14131# config.h.in to produce config.h.
14132
14133# Create a delimiter string that does not exist in confdefs.h, to ease
14134# handling of long lines.
14135ac_delim='%!_!# '
14136for ac_last_try in false false :; do
14137 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14138 if test -z "$ac_t"; then
14139 break
14140 elif $ac_last_try; then
14141 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14142 else
14143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14144 fi
14145done
14146
14147# For the awk script, D is an array of macro values keyed by name,
14148# likewise P contains macro parameters if any. Preserve backslash
14149# newline sequences.
14150
14151ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14152sed -n '
14153s/.\{148\}/&'"$ac_delim"'/g
14154t rset
14155:rset
14156s/^[ ]*#[ ]*define[ ][ ]*/ /
14157t def
14158d
14159:def
14160s/\\$//
14161t bsnl
14162s/["\\]/\\&/g
14163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14164D["\1"]=" \3"/p
14165s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14166d
14167:bsnl
14168s/["\\]/\\&/g
14169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14170D["\1"]=" \3\\\\\\n"\\/p
14171t cont
14172s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14173t cont
14174d
14175:cont
14176n
14177s/.\{148\}/&'"$ac_delim"'/g
14178t clear
14179:clear
14180s/\\$//
14181t bsnlc
14182s/["\\]/\\&/g; s/^/"/; s/$/"/p
14183d
14184:bsnlc
14185s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14186b cont
14187' <confdefs.h | sed '
14188s/'"$ac_delim"'/"\\\
14189"/g' >>$CONFIG_STATUS || ac_write_fail=1
14190
14191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14192 for (key in D) D_is_set[key] = 1
14193 FS = "\a"
14194}
14195/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14196 line = \$ 0
14197 split(line, arg, " ")
14198 if (arg[1] == "#") {
14199 defundef = arg[2]
14200 mac1 = arg[3]
14201 } else {
14202 defundef = substr(arg[1], 2)
14203 mac1 = arg[2]
14204 }
14205 split(mac1, mac2, "(") #)
14206 macro = mac2[1]
14207 prefix = substr(line, 1, index(line, defundef) - 1)
14208 if (D_is_set[macro]) {
14209 # Preserve the white space surrounding the "#".
14210 print prefix "define", macro P[macro] D[macro]
14211 next
14212 } else {
14213 # Replace #undef with comments. This is necessary, for example,
14214 # in the case of _POSIX_SOURCE, which is predefined and required
14215 # on some systems where configure will not decide to define it.
14216 if (defundef == "undef") {
14217 print "/*", prefix defundef, macro, "*/"
14218 next
14219 }
14220 }
14221}
14222{ print }
14223_ACAWK
14224_ACEOF
14225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14226 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14227fi # test -n "$CONFIG_HEADERS"
14228
14229
14230eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14231shift
14232for ac_tag
14233do
14234 case $ac_tag in
14235 :[FHLC]) ac_mode=$ac_tag; continue;;
14236 esac
14237 case $ac_mode$ac_tag in
14238 :[FHL]*:*);;
14239 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14240 :[FH]-) ac_tag=-:-;;
14241 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14242 esac
14243 ac_save_IFS=$IFS
14244 IFS=:
14245 set x $ac_tag
14246 IFS=$ac_save_IFS
14247 shift
14248 ac_file=$1
14249 shift
14250
14251 case $ac_mode in
14252 :L) ac_source=$1;;
14253 :[FH])
14254 ac_file_inputs=
14255 for ac_f
14256 do
14257 case $ac_f in
14258 -) ac_f="$tmp/stdin";;
14259 *) # Look for the file first in the build tree, then in the source tree
14260 # (if the path is not absolute). The absolute path cannot be DOS-style,
14261 # because $ac_f cannot contain `:'.
14262 test -f "$ac_f" ||
14263 case $ac_f in
14264 [\\/$]*) false;;
14265 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14266 esac ||
14267 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14268 esac
14269 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14270 as_fn_append ac_file_inputs " '$ac_f'"
14271 done
14272
14273 # Let's still pretend it is `configure' which instantiates (i.e., don't
14274 # use $as_me), people would be surprised to read:
14275 # /* config.h. Generated by config.status. */
14276 configure_input='Generated from '`
14277 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14278 `' by configure.'
14279 if test x"$ac_file" != x-; then
14280 configure_input="$ac_file. $configure_input"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14282$as_echo "$as_me: creating $ac_file" >&6;}
14283 fi
14284 # Neutralize special characters interpreted by sed in replacement strings.
14285 case $configure_input in #(
14286 *\&* | *\|* | *\\* )
14287 ac_sed_conf_input=`$as_echo "$configure_input" |
14288 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14289 *) ac_sed_conf_input=$configure_input;;
14290 esac
14291
14292 case $ac_tag in
14293 *:-:* | *:-) cat >"$tmp/stdin" \
14294 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14295 esac
14296 ;;
14297 esac
14298
14299 ac_dir=`$as_dirname -- "$ac_file" ||
14300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14301 X"$ac_file" : 'X\(//\)[^/]' \| \
14302 X"$ac_file" : 'X\(//\)$' \| \
14303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14304$as_echo X"$ac_file" |
14305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14306 s//\1/
14307 q
14308 }
14309 /^X\(\/\/\)[^/].*/{
14310 s//\1/
14311 q
14312 }
14313 /^X\(\/\/\)$/{
14314 s//\1/
14315 q
14316 }
14317 /^X\(\/\).*/{
14318 s//\1/
14319 q
14320 }
14321 s/.*/./; q'`
14322 as_dir="$ac_dir"; as_fn_mkdir_p
14323 ac_builddir=.
14324
14325case "$ac_dir" in
14326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14327*)
14328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14329 # A ".." for each directory in $ac_dir_suffix.
14330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14331 case $ac_top_builddir_sub in
14332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14334 esac ;;
14335esac
14336ac_abs_top_builddir=$ac_pwd
14337ac_abs_builddir=$ac_pwd$ac_dir_suffix
14338# for backward compatibility:
14339ac_top_builddir=$ac_top_build_prefix
14340
14341case $srcdir in
14342 .) # We are building in place.
14343 ac_srcdir=.
14344 ac_top_srcdir=$ac_top_builddir_sub
14345 ac_abs_top_srcdir=$ac_pwd ;;
14346 [\\/]* | ?:[\\/]* ) # Absolute name.
14347 ac_srcdir=$srcdir$ac_dir_suffix;
14348 ac_top_srcdir=$srcdir
14349 ac_abs_top_srcdir=$srcdir ;;
14350 *) # Relative name.
14351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14352 ac_top_srcdir=$ac_top_build_prefix$srcdir
14353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14354esac
14355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14356
14357
14358 case $ac_mode in
14359 :F)
14360 #
14361 # CONFIG_FILE
14362 #
14363
14364 case $INSTALL in
14365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14367 esac
14368 ac_MKDIR_P=$MKDIR_P
14369 case $MKDIR_P in
14370 [\\/$]* | ?:[\\/]* ) ;;
14371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14372 esac
14373_ACEOF
14374
14375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376# If the template does not know about datarootdir, expand it.
14377# FIXME: This hack should be removed a few years after 2.60.
14378ac_datarootdir_hack=; ac_datarootdir_seen=
14379ac_sed_dataroot='
14380/datarootdir/ {
14381 p
14382 q
14383}
14384/@datadir@/p
14385/@docdir@/p
14386/@infodir@/p
14387/@localedir@/p
14388/@mandir@/p'
14389case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14390*datarootdir*) ac_datarootdir_seen=yes;;
14391*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14393$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14394_ACEOF
14395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 ac_datarootdir_hack='
14397 s&@datadir@&$datadir&g
14398 s&@docdir@&$docdir&g
14399 s&@infodir@&$infodir&g
14400 s&@localedir@&$localedir&g
14401 s&@mandir@&$mandir&g
14402 s&\\\${datarootdir}&$datarootdir&g' ;;
14403esac
14404_ACEOF
14405
14406# Neutralize VPATH when `$srcdir' = `.'.
14407# Shell code in configure.ac might set extrasub.
14408# FIXME: do we really want to maintain this feature?
14409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410ac_sed_extra="$ac_vpsub
14411$extrasub
14412_ACEOF
14413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14414:t
14415/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14416s|@configure_input@|$ac_sed_conf_input|;t t
14417s&@top_builddir@&$ac_top_builddir_sub&;t t
14418s&@top_build_prefix@&$ac_top_build_prefix&;t t
14419s&@srcdir@&$ac_srcdir&;t t
14420s&@abs_srcdir@&$ac_abs_srcdir&;t t
14421s&@top_srcdir@&$ac_top_srcdir&;t t
14422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14423s&@builddir@&$ac_builddir&;t t
14424s&@abs_builddir@&$ac_abs_builddir&;t t
14425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14426s&@INSTALL@&$ac_INSTALL&;t t
14427s&@MKDIR_P@&$ac_MKDIR_P&;t t
14428$ac_datarootdir_hack
14429"
14430eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14431 || as_fn_error "could not create $ac_file" "$LINENO" 5
14432
14433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14434 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14437which seems to be undefined. Please make sure it is defined." >&5
14438$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14439which seems to be undefined. Please make sure it is defined." >&2;}
14440
14441 rm -f "$tmp/stdin"
14442 case $ac_file in
14443 -) cat "$tmp/out" && rm -f "$tmp/out";;
14444 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14445 esac \
14446 || as_fn_error "could not create $ac_file" "$LINENO" 5
14447 ;;
14448 :H)
14449 #
14450 # CONFIG_HEADER
14451 #
14452 if test x"$ac_file" != x-; then
14453 {
14454 $as_echo "/* $configure_input */" \
14455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14456 } >"$tmp/config.h" \
14457 || as_fn_error "could not create $ac_file" "$LINENO" 5
14458 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14460$as_echo "$as_me: $ac_file is unchanged" >&6;}
14461 else
14462 rm -f "$ac_file"
14463 mv "$tmp/config.h" "$ac_file" \
14464 || as_fn_error "could not create $ac_file" "$LINENO" 5
14465 fi
14466 else
14467 $as_echo "/* $configure_input */" \
14468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14469 || as_fn_error "could not create -" "$LINENO" 5
14470 fi
14471# Compute "$ac_file"'s index in $config_headers.
14472_am_arg="$ac_file"
14473_am_stamp_count=1
14474for _am_header in $config_headers :; do
14475 case $_am_header in
14476 $_am_arg | $_am_arg:* )
14477 break ;;
14478 * )
14479 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14480 esac
14481done
14482echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14483$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14484 X"$_am_arg" : 'X\(//\)[^/]' \| \
14485 X"$_am_arg" : 'X\(//\)$' \| \
14486 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14487$as_echo X"$_am_arg" |
14488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14489 s//\1/
14490 q
14491 }
14492 /^X\(\/\/\)[^/].*/{
14493 s//\1/
14494 q
14495 }
14496 /^X\(\/\/\)$/{
14497 s//\1/
14498 q
14499 }
14500 /^X\(\/\).*/{
14501 s//\1/
14502 q
14503 }
14504 s/.*/./; q'`/stamp-h$_am_stamp_count
14505 ;;
14506
14507 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14508$as_echo "$as_me: executing $ac_file commands" >&6;}
14509 ;;
14510 esac
14511
14512
14513 case $ac_file$ac_mode in
14514 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14515 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14516 # are listed without --file. Let's play safe and only enable the eval
14517 # if we detect the quoting.
14518 case $CONFIG_FILES in
14519 *\'*) eval set x "$CONFIG_FILES" ;;
14520 *) set x $CONFIG_FILES ;;
14521 esac
14522 shift
14523 for mf
14524 do
14525 # Strip MF so we end up with the name of the file.
14526 mf=`echo "$mf" | sed -e 's/:.*$//'`
14527 # Check whether this is an Automake generated Makefile or not.
14528 # We used to match only the files named `Makefile.in', but
14529 # some people rename them; so instead we look at the file content.
14530 # Grep'ing the first line is not enough: some people post-process
14531 # each Makefile.in and add a new line on top of each file to say so.
14532 # Grep'ing the whole file is not good either: AIX grep has a line
14533 # limit of 2048, but all sed's we know have understand at least 4000.
14534 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14535 dirpart=`$as_dirname -- "$mf" ||
14536$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14537 X"$mf" : 'X\(//\)[^/]' \| \
14538 X"$mf" : 'X\(//\)$' \| \
14539 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14540$as_echo X"$mf" |
14541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14542 s//\1/
14543 q
14544 }
14545 /^X\(\/\/\)[^/].*/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\/\)$/{
14550 s//\1/
14551 q
14552 }
14553 /^X\(\/\).*/{
14554 s//\1/
14555 q
14556 }
14557 s/.*/./; q'`
14558 else
14559 continue
14560 fi
14561 # Extract the definition of DEPDIR, am__include, and am__quote
14562 # from the Makefile without running `make'.
14563 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14564 test -z "$DEPDIR" && continue
14565 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14566 test -z "am__include" && continue
14567 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14568 # When using ansi2knr, U may be empty or an underscore; expand it
14569 U=`sed -n 's/^U = //p' < "$mf"`
14570 # Find all dependency output files, they are included files with
14571 # $(DEPDIR) in their names. We invoke sed twice because it is the
14572 # simplest approach to changing $(DEPDIR) to its actual value in the
14573 # expansion.
14574 for file in `sed -n "
14575 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14576 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14577 # Make sure the directory exists.
14578 test -f "$dirpart/$file" && continue
14579 fdir=`$as_dirname -- "$file" ||
14580$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$file" : 'X\(//\)[^/]' \| \
14582 X"$file" : 'X\(//\)$' \| \
14583 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14584$as_echo X"$file" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\/\)$/{
14594 s//\1/
14595 q
14596 }
14597 /^X\(\/\).*/{
14598 s//\1/
14599 q
14600 }
14601 s/.*/./; q'`
14602 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14603 # echo "creating $dirpart/$file"
14604 echo '# dummy' > "$dirpart/$file"
14605 done
14606 done
14607}
14608 ;;
14609 "libtool":C)
14610
14611 # See if we are running on zsh, and set the options which allow our
14612 # commands through without removal of \ escapes.
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14615 fi
14616
14617 cfgfile="${ofile}T"
14618 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14619 $RM "$cfgfile"
14620
14621 cat <<_LT_EOF >> "$cfgfile"
14622#! $SHELL
14623
14624# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14625# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14627# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14628#
14629# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14630# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14631# Written by Gordon Matzigkeit, 1996
14632#
14633# This file is part of GNU Libtool.
14634#
14635# GNU Libtool is free software; you can redistribute it and/or
14636# modify it under the terms of the GNU General Public License as
14637# published by the Free Software Foundation; either version 2 of
14638# the License, or (at your option) any later version.
14639#
14640# As a special exception to the GNU General Public License,
14641# if you distribute this file as part of a program or library that
14642# is built using GNU Libtool, you may include this file under the
14643# same distribution terms that you use for the rest of that program.
14644#
14645# GNU Libtool is distributed in the hope that it will be useful,
14646# but WITHOUT ANY WARRANTY; without even the implied warranty of
14647# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14648# GNU General Public License for more details.
14649#
14650# You should have received a copy of the GNU General Public License
14651# along with GNU Libtool; see the file COPYING. If not, a copy
14652# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14653# obtained by writing to the Free Software Foundation, Inc.,
14654# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14655
14656
14657# The names of the tagged configurations supported by this script.
14658available_tags=""
14659
14660# ### BEGIN LIBTOOL CONFIG
14661
14662# Which release of libtool.m4 was used?
14663macro_version=$macro_version
14664macro_revision=$macro_revision
14665
14666# Whether or not to build shared libraries.
14667build_libtool_libs=$enable_shared
14668
14669# Whether or not to build static libraries.
14670build_old_libs=$enable_static
14671
14672# What type of objects to build.
14673pic_mode=$pic_mode
14674
14675# Whether or not to optimize for fast installation.
14676fast_install=$enable_fast_install
14677
14678# Shell to use when invoking shell scripts.
14679SHELL=$lt_SHELL
14680
14681# An echo program that protects backslashes.
14682ECHO=$lt_ECHO
14683
14684# The host system.
14685host_alias=$host_alias
14686host=$host
14687host_os=$host_os
14688
14689# The build system.
14690build_alias=$build_alias
14691build=$build
14692build_os=$build_os
14693
14694# A sed program that does not truncate output.
14695SED=$lt_SED
14696
14697# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14698Xsed="\$SED -e 1s/^X//"
14699
14700# A grep program that handles long lines.
14701GREP=$lt_GREP
14702
14703# An ERE matcher.
14704EGREP=$lt_EGREP
14705
14706# A literal string matcher.
14707FGREP=$lt_FGREP
14708
14709# A BSD- or MS-compatible name lister.
14710NM=$lt_NM
14711
14712# Whether we need soft or hard links.
14713LN_S=$lt_LN_S
14714
14715# What is the maximum length of a command?
14716max_cmd_len=$max_cmd_len
14717
14718# Object file suffix (normally "o").
14719objext=$ac_objext
14720
14721# Executable file suffix (normally "").
14722exeext=$exeext
14723
14724# whether the shell understands "unset".
14725lt_unset=$lt_unset
14726
14727# turn spaces into newlines.
14728SP2NL=$lt_lt_SP2NL
14729
14730# turn newlines into spaces.
14731NL2SP=$lt_lt_NL2SP
14732
14733# An object symbol dumper.
14734OBJDUMP=$lt_OBJDUMP
14735
14736# Method to check whether dependent libraries are shared objects.
14737deplibs_check_method=$lt_deplibs_check_method
14738
14739# Command to use when deplibs_check_method == "file_magic".
14740file_magic_cmd=$lt_file_magic_cmd
14741
14742# The archiver.
14743AR=$lt_AR
14744AR_FLAGS=$lt_AR_FLAGS
14745
14746# A symbol stripping program.
14747STRIP=$lt_STRIP
14748
14749# Commands used to install an old-style archive.
14750RANLIB=$lt_RANLIB
14751old_postinstall_cmds=$lt_old_postinstall_cmds
14752old_postuninstall_cmds=$lt_old_postuninstall_cmds
14753
14754# Whether to use a lock for old archive extraction.
14755lock_old_archive_extraction=$lock_old_archive_extraction
14756
14757# A C compiler.
14758LTCC=$lt_CC
14759
14760# LTCC compiler flags.
14761LTCFLAGS=$lt_CFLAGS
14762
14763# Take the output of nm and produce a listing of raw symbols and C names.
14764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14765
14766# Transform the output of nm in a proper C declaration.
14767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14768
14769# Transform the output of nm in a C name address pair.
14770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14771
14772# Transform the output of nm in a C name address pair when lib prefix is needed.
14773global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14774
14775# The name of the directory that contains temporary libtool files.
14776objdir=$objdir
14777
14778# Used to examine libraries when file_magic_cmd begins with "file".
14779MAGIC_CMD=$MAGIC_CMD
14780
14781# Must we lock files when doing compilation?
14782need_locks=$lt_need_locks
14783
14784# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14785DSYMUTIL=$lt_DSYMUTIL
14786
14787# Tool to change global to local symbols on Mac OS X.
14788NMEDIT=$lt_NMEDIT
14789
14790# Tool to manipulate fat objects and archives on Mac OS X.
14791LIPO=$lt_LIPO
14792
14793# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14794OTOOL=$lt_OTOOL
14795
14796# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14797OTOOL64=$lt_OTOOL64
14798
14799# Old archive suffix (normally "a").
14800libext=$libext
14801
14802# Shared library suffix (normally ".so").
14803shrext_cmds=$lt_shrext_cmds
14804
14805# The commands to extract the exported symbol list from a shared archive.
14806extract_expsyms_cmds=$lt_extract_expsyms_cmds
14807
14808# Variables whose values should be saved in libtool wrapper scripts and
14809# restored at link time.
14810variables_saved_for_relink=$lt_variables_saved_for_relink
14811
14812# Do we need the "lib" prefix for modules?
14813need_lib_prefix=$need_lib_prefix
14814
14815# Do we need a version for libraries?
14816need_version=$need_version
14817
14818# Library versioning type.
14819version_type=$version_type
14820
14821# Shared library runtime path variable.
14822runpath_var=$runpath_var
14823
14824# Shared library path variable.
14825shlibpath_var=$shlibpath_var
14826
14827# Is shlibpath searched before the hard-coded library search path?
14828shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14829
14830# Format of library name prefix.
14831libname_spec=$lt_libname_spec
14832
14833# List of archive names. First name is the real one, the rest are links.
14834# The last name is the one that the linker finds with -lNAME
14835library_names_spec=$lt_library_names_spec
14836
14837# The coded name of the library, if different from the real name.
14838soname_spec=$lt_soname_spec
14839
14840# Permission mode override for installation of shared libraries.
14841install_override_mode=$lt_install_override_mode
14842
14843# Command to use after installation of a shared archive.
14844postinstall_cmds=$lt_postinstall_cmds
14845
14846# Command to use after uninstallation of a shared archive.
14847postuninstall_cmds=$lt_postuninstall_cmds
14848
14849# Commands used to finish a libtool library installation in a directory.
14850finish_cmds=$lt_finish_cmds
14851
14852# As "finish_cmds", except a single script fragment to be evaled but
14853# not shown.
14854finish_eval=$lt_finish_eval
14855
14856# Whether we should hardcode library paths into libraries.
14857hardcode_into_libs=$hardcode_into_libs
14858
14859# Compile-time system search path for libraries.
14860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14861
14862# Run-time system search path for libraries.
14863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14864
14865# Whether dlopen is supported.
14866dlopen_support=$enable_dlopen
14867
14868# Whether dlopen of programs is supported.
14869dlopen_self=$enable_dlopen_self
14870
14871# Whether dlopen of statically linked programs is supported.
14872dlopen_self_static=$enable_dlopen_self_static
14873
14874# Commands to strip libraries.
14875old_striplib=$lt_old_striplib
14876striplib=$lt_striplib
14877
14878
14879# The linker used to build libraries.
14880LD=$lt_LD
14881
14882# How to create reloadable object files.
14883reload_flag=$lt_reload_flag
14884reload_cmds=$lt_reload_cmds
14885
14886# Commands used to build an old-style archive.
14887old_archive_cmds=$lt_old_archive_cmds
14888
14889# A language specific compiler.
14890CC=$lt_compiler
14891
14892# Is the compiler the GNU compiler?
14893with_gcc=$GCC
14894
14895# Compiler flag to turn off builtin functions.
14896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14897
14898# How to pass a linker flag through the compiler.
14899wl=$lt_lt_prog_compiler_wl
14900
14901# Additional compiler flags for building library objects.
14902pic_flag=$lt_lt_prog_compiler_pic
14903
14904# Compiler flag to prevent dynamic linking.
14905link_static_flag=$lt_lt_prog_compiler_static
14906
14907# Does compiler simultaneously support -c and -o options?
14908compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14909
14910# Whether or not to add -lc for building shared libraries.
14911build_libtool_need_lc=$archive_cmds_need_lc
14912
14913# Whether or not to disallow shared libs when runtime libs are static.
14914allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14915
14916# Compiler flag to allow reflexive dlopens.
14917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14918
14919# Compiler flag to generate shared objects directly from archives.
14920whole_archive_flag_spec=$lt_whole_archive_flag_spec
14921
14922# Whether the compiler copes with passing no objects directly.
14923compiler_needs_object=$lt_compiler_needs_object
14924
14925# Create an old-style archive from a shared archive.
14926old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14927
14928# Create a temporary old-style archive to link instead of a shared archive.
14929old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14930
14931# Commands used to build a shared archive.
14932archive_cmds=$lt_archive_cmds
14933archive_expsym_cmds=$lt_archive_expsym_cmds
14934
14935# Commands used to build a loadable module if different from building
14936# a shared archive.
14937module_cmds=$lt_module_cmds
14938module_expsym_cmds=$lt_module_expsym_cmds
14939
14940# Whether we are building with GNU ld or not.
14941with_gnu_ld=$lt_with_gnu_ld
14942
14943# Flag that allows shared libraries with undefined symbols to be built.
14944allow_undefined_flag=$lt_allow_undefined_flag
14945
14946# Flag that enforces no undefined symbols.
14947no_undefined_flag=$lt_no_undefined_flag
14948
14949# Flag to hardcode \$libdir into a binary during linking.
14950# This must work even if \$libdir does not exist
14951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14952
14953# If ld is used when linking, flag to hardcode \$libdir into a binary
14954# during linking. This must work even if \$libdir does not exist.
14955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14956
14957# Whether we need a single "-rpath" flag with a separated argument.
14958hardcode_libdir_separator=$lt_hardcode_libdir_separator
14959
14960# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14961# DIR into the resulting binary.
14962hardcode_direct=$hardcode_direct
14963
14964# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14965# DIR into the resulting binary and the resulting library dependency is
14966# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14967# library is relocated.
14968hardcode_direct_absolute=$hardcode_direct_absolute
14969
14970# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14971# into the resulting binary.
14972hardcode_minus_L=$hardcode_minus_L
14973
14974# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14975# into the resulting binary.
14976hardcode_shlibpath_var=$hardcode_shlibpath_var
14977
14978# Set to "yes" if building a shared library automatically hardcodes DIR
14979# into the library and all subsequent libraries and executables linked
14980# against it.
14981hardcode_automatic=$hardcode_automatic
14982
14983# Set to yes if linker adds runtime paths of dependent libraries
14984# to runtime path list.
14985inherit_rpath=$inherit_rpath
14986
14987# Whether libtool must link a program against all its dependency libraries.
14988link_all_deplibs=$link_all_deplibs
14989
14990# Fix the shell variable \$srcfile for the compiler.
14991fix_srcfile_path=$lt_fix_srcfile_path
14992
14993# Set to "yes" if exported symbols are required.
14994always_export_symbols=$always_export_symbols
14995
14996# The commands to list exported symbols.
14997export_symbols_cmds=$lt_export_symbols_cmds
14998
14999# Symbols that should not be listed in the preloaded symbols.
15000exclude_expsyms=$lt_exclude_expsyms
15001
15002# Symbols that must always be exported.
15003include_expsyms=$lt_include_expsyms
15004
15005# Commands necessary for linking programs (against libraries) with templates.
15006prelink_cmds=$lt_prelink_cmds
15007
15008# Specify filename containing input files.
15009file_list_spec=$lt_file_list_spec
15010
15011# How to hardcode a shared library path into an executable.
15012hardcode_action=$hardcode_action
15013
15014# ### END LIBTOOL CONFIG
15015
15016_LT_EOF
15017
15018 case $host_os in
15019 aix3*)
15020 cat <<\_LT_EOF >> "$cfgfile"
15021# AIX sometimes has problems with the GCC collect2 program. For some
15022# reason, if we set the COLLECT_NAMES environment variable, the problems
15023# vanish in a puff of smoke.
15024if test "X${COLLECT_NAMES+set}" != Xset; then
15025 COLLECT_NAMES=
15026 export COLLECT_NAMES
15027fi
15028_LT_EOF
15029 ;;
15030 esac
15031
15032
15033ltmain="$ac_aux_dir/ltmain.sh"
15034
15035
15036 # We use sed instead of cat because bash on DJGPP gets confused if
15037 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15038 # text mode, it properly converts lines to CR/LF. This bash problem
15039 # is reportedly fixed, but why not run on old versions too?
15040 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15041 || (rm -f "$cfgfile"; exit 1)
15042
15043 case $xsi_shell in
15044 yes)
15045 cat << \_LT_EOF >> "$cfgfile"
15046
15047# func_dirname file append nondir_replacement
15048# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15049# otherwise set result to NONDIR_REPLACEMENT.
15050func_dirname ()
15051{
15052 case ${1} in
15053 */*) func_dirname_result="${1%/*}${2}" ;;
15054 * ) func_dirname_result="${3}" ;;
15055 esac
15056}
15057
15058# func_basename file
15059func_basename ()
15060{
15061 func_basename_result="${1##*/}"
15062}
15063
15064# func_dirname_and_basename file append nondir_replacement
15065# perform func_basename and func_dirname in a single function
15066# call:
15067# dirname: Compute the dirname of FILE. If nonempty,
15068# add APPEND to the result, otherwise set result
15069# to NONDIR_REPLACEMENT.
15070# value returned in "$func_dirname_result"
15071# basename: Compute filename of FILE.
15072# value retuned in "$func_basename_result"
15073# Implementation must be kept synchronized with func_dirname
15074# and func_basename. For efficiency, we do not delegate to
15075# those functions but instead duplicate the functionality here.
15076func_dirname_and_basename ()
15077{
15078 case ${1} in
15079 */*) func_dirname_result="${1%/*}${2}" ;;
15080 * ) func_dirname_result="${3}" ;;
15081 esac
15082 func_basename_result="${1##*/}"
15083}
15084
15085# func_stripname prefix suffix name
15086# strip PREFIX and SUFFIX off of NAME.
15087# PREFIX and SUFFIX must not contain globbing or regex special
15088# characters, hashes, percent signs, but SUFFIX may contain a leading
15089# dot (in which case that matches only a dot).
15090func_stripname ()
15091{
15092 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15093 # positional parameters, so assign one to ordinary parameter first.
15094 func_stripname_result=${3}
15095 func_stripname_result=${func_stripname_result#"${1}"}
15096 func_stripname_result=${func_stripname_result%"${2}"}
15097}
15098
15099# func_opt_split
15100func_opt_split ()
15101{
15102 func_opt_split_opt=${1%%=*}
15103 func_opt_split_arg=${1#*=}
15104}
15105
15106# func_lo2o object
15107func_lo2o ()
15108{
15109 case ${1} in
15110 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15111 *) func_lo2o_result=${1} ;;
15112 esac
15113}
15114
15115# func_xform libobj-or-source
15116func_xform ()
15117{
15118 func_xform_result=${1%.*}.lo
15119}
15120
15121# func_arith arithmetic-term...
15122func_arith ()
15123{
15124 func_arith_result=$(( $* ))
15125}
15126
15127# func_len string
15128# STRING may not start with a hyphen.
15129func_len ()
15130{
15131 func_len_result=${#1}
15132}
15133
15134_LT_EOF
15135 ;;
15136 *) # Bourne compatible functions.
15137 cat << \_LT_EOF >> "$cfgfile"
15138
15139# func_dirname file append nondir_replacement
15140# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15141# otherwise set result to NONDIR_REPLACEMENT.
15142func_dirname ()
15143{
15144 # Extract subdirectory from the argument.
15145 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15146 if test "X$func_dirname_result" = "X${1}"; then
15147 func_dirname_result="${3}"
15148 else
15149 func_dirname_result="$func_dirname_result${2}"
15150 fi
15151}
15152
15153# func_basename file
15154func_basename ()
15155{
15156 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15157}
15158
15159
15160# func_stripname prefix suffix name
15161# strip PREFIX and SUFFIX off of NAME.
15162# PREFIX and SUFFIX must not contain globbing or regex special
15163# characters, hashes, percent signs, but SUFFIX may contain a leading
15164# dot (in which case that matches only a dot).
15165# func_strip_suffix prefix name
15166func_stripname ()
15167{
15168 case ${2} in
15169 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15170 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15171 esac
15172}
15173
15174# sed scripts:
15175my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15176my_sed_long_arg='1s/^-[^=]*=//'
15177
15178# func_opt_split
15179func_opt_split ()
15180{
15181 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15182 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15183}
15184
15185# func_lo2o object
15186func_lo2o ()
15187{
15188 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15189}
15190
15191# func_xform libobj-or-source
15192func_xform ()
15193{
15194 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15195}
15196
15197# func_arith arithmetic-term...
15198func_arith ()
15199{
15200 func_arith_result=`expr "$@"`
15201}
15202
15203# func_len string
15204# STRING may not start with a hyphen.
15205func_len ()
15206{
15207 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15208}
15209
15210_LT_EOF
15211esac
15212
15213case $lt_shell_append in
15214 yes)
15215 cat << \_LT_EOF >> "$cfgfile"
15216
15217# func_append var value
15218# Append VALUE to the end of shell variable VAR.
15219func_append ()
15220{
15221 eval "$1+=\$2"
15222}
15223_LT_EOF
15224 ;;
15225 *)
15226 cat << \_LT_EOF >> "$cfgfile"
15227
15228# func_append var value
15229# Append VALUE to the end of shell variable VAR.
15230func_append ()
15231{
15232 eval "$1=\$$1\$2"
15233}
15234
15235_LT_EOF
15236 ;;
15237 esac
15238
15239
15240 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15241 || (rm -f "$cfgfile"; exit 1)
15242
15243 mv -f "$cfgfile" "$ofile" ||
15244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15245 chmod +x "$ofile"
15246
15247 ;;
15248 "default-1":C)
15249# Only add multilib support code if we just rebuilt the top-level
15250# Makefile.
15251case " $CONFIG_FILES " in
15252 *" Makefile "*)
15253 ac_file=Makefile . ${multi_basedir}/config-ml.in
15254 ;;
15255esac ;;
15256
15257 esac
15258done # for ac_tag
15259
15260
15261as_fn_exit 0
15262_ACEOF
15263ac_clean_files=$ac_clean_files_save
15264
15265test $ac_write_fail = 0 ||
15266 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15267
15268
15269# configure is writing to config.log, and then calls config.status.
15270# config.status does its own redirection, appending to config.log.
15271# Unfortunately, on DOS this fails, as config.log is still kept open
15272# by configure, so config.status won't be able to write to it; its
15273# output is simply discarded. So we exec the FD to /dev/null,
15274# effectively closing config.log, so it can be properly (re)opened and
15275# appended to by config.status. When coming back to configure, we
15276# need to make the FD available again.
15277if test "$no_create" != yes; then
15278 ac_cs_success=:
15279 ac_config_status_args=
15280 test "$silent" = yes &&
15281 ac_config_status_args="$ac_config_status_args --quiet"
15282 exec 5>/dev/null
15283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15284 exec 5>>config.log
15285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15286 # would make configure fail if this is the last instruction.
15287 $ac_cs_success || as_fn_exit $?
15288fi
15289if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15291$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15292fi
15293