Fix changelog entry.
[gcc.git] / libquadmath / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101 ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
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
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
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
215 fi; }
216 IFS=$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+"$@"}
228 fi
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
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_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.
275 as_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.
285 as_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.
335 if (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 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # 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.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # 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.
370 as_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
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_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.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_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
458 ECHO_C= ECHO_N= ECHO_T=
459 case `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';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (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
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
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 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_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.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 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.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 # Factoring default headers for most tests.
565 ac_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
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 get_gcc_base_ver
605 GENINSRC_FALSE
606 GENINSRC_TRUE
607 BUILD_LIBQUADMATH_FALSE
608 BUILD_LIBQUADMATH_TRUE
609 LIBQUAD_USE_SYMVER_SUN_FALSE
610 LIBQUAD_USE_SYMVER_SUN_TRUE
611 LIBQUAD_USE_SYMVER_GNU_FALSE
612 LIBQUAD_USE_SYMVER_GNU_TRUE
613 LIBQUAD_USE_SYMVER_FALSE
614 LIBQUAD_USE_SYMVER_TRUE
615 toolexeclibdir
616 toolexecdir
617 MAINT
618 MAINTAINER_MODE_FALSE
619 MAINTAINER_MODE_TRUE
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 RANLIB
629 AR
630 OBJDUMP
631 LN_S
632 NM
633 ac_ct_DUMPBIN
634 DUMPBIN
635 LD
636 FGREP
637 SED
638 LIBTOOL
639 REPORT_BUGS_TEXI
640 REPORT_BUGS_TO
641 BUILD_INFO_FALSE
642 BUILD_INFO_TRUE
643 EGREP
644 GREP
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 multi_basedir
687 target_noncanonical
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_multilib
742 enable_version_specific_runtime_libs
743 enable_dependency_tracking
744 with_bugurl
745 enable_shared
746 enable_static
747 with_pic
748 enable_fast_install
749 with_gnu_ld
750 enable_libtool_lock
751 enable_maintainer_mode
752 enable_symvers
753 enable_generated_files_in_srcdir
754 with_gcc_major_version_only
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CC
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
824 fi
825
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information."
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used." >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-multilib build many library versions (default)
1386 --enable-version-specific-runtime-libs
1387 specify that runtime libraries should be installed
1388 in a compiler-specific directory
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --enable-maintainer-mode enable make rules and dependencies not useful
1397 (and sometimes confusing) to the casual installer
1398 --disable-symvers disable symbol versioning for libquadmath
1399 --enable-generated-files-in-srcdir
1400 put copies of generated files in source dir intended
1401 for creating source tarballs for users without
1402 texinfo bison or flex
1403
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-bugurl=URL Direct users to URL to report a bug
1408 --with-pic try to use only PIC/non-PIC objects [default=use
1409 both]
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 --with-gcc-major-version-only
1412 use only GCC major number in filesystem paths
1413
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CPP C preprocessor
1423
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to the package provider.
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 GCC Quad-precision Math Library configure 0.1
1491 generated by GNU Autoconf 2.64
1492
1493 Copyright (C) 2009 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1498 fi
1499
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1503
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 return $ac_retval
1539
1540 } # ac_fn_c_try_compile
1541
1542 # ac_fn_c_try_cpp LINENO
1543 # ----------------------
1544 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_cpp ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_cpp conftest.$ac_ext"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } >/dev/null && {
1564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 }; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1576
1577 } # ac_fn_c_try_cpp
1578
1579 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1582 # the include files in INCLUDES and setting the cache variable VAR
1583 # accordingly.
1584 ac_fn_c_check_header_mongrel ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 $as_echo_n "checking for $2... " >&6; }
1590 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1591 $as_echo_n "(cached) " >&6
1592 fi
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 else
1597 # Is the header compilable?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1599 $as_echo_n "checking $2 usability... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 $4
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 ac_header_compiler=yes
1607 else
1608 ac_header_compiler=no
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1612 $as_echo "$ac_header_compiler" >&6; }
1613
1614 # Is the header present?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1616 $as_echo_n "checking $2 presence... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_cpp "$LINENO"; then :
1622 ac_header_preproc=yes
1623 else
1624 ac_header_preproc=no
1625 fi
1626 rm -f conftest.err conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1628 $as_echo "$ac_header_preproc" >&6; }
1629
1630 # So? What about this header?
1631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632 yes:no: )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1634 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 ;;
1638 no:yes:* )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1640 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1642 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1644 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1646 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 ;;
1650 esac
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 eval "$3=\$ac_header_compiler"
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 fi
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
1664 } # ac_fn_c_check_header_mongrel
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 return $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 $as_test_x conftest$ac_exeext
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777 # interfere with the next link command; also delete a directory that is
1778 # left behind by Apple's compiler. We do this before executing the actions.
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783 } # ac_fn_c_try_link
1784
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 if test x$gcc_no_link = xyes; then
1797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1798 fi
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1809
1810 #ifdef __STDC__
1811 # include <limits.h>
1812 #else
1813 # include <assert.h>
1814 #endif
1815
1816 #undef $2
1817
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1831
1832 int
1833 main ()
1834 {
1835 return $2 ();
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842 else
1843 eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853 } # ac_fn_c_check_func
1854 cat >config.log <<_ACEOF
1855 This file contains any messages produced by compilers while
1856 running configure, to aid debugging if configure makes a mistake.
1857
1858 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1859 generated by GNU Autoconf 2.64. Invocation command line was
1860
1861 $ $0 $@
1862
1863 _ACEOF
1864 exec 5>>config.log
1865 {
1866 cat <<_ASUNAME
1867 ## --------- ##
1868 ## Platform. ##
1869 ## --------- ##
1870
1871 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1872 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1873 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1874 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1875 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876
1877 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1878 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1879
1880 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1881 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1882 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1883 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1884 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1885 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1886 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1887
1888 _ASUNAME
1889
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 $as_echo "PATH: $as_dir"
1896 done
1897 IFS=$as_save_IFS
1898
1899 } >&5
1900
1901 cat >&5 <<_ACEOF
1902
1903
1904 ## ----------- ##
1905 ## Core tests. ##
1906 ## ----------- ##
1907
1908 _ACEOF
1909
1910
1911 # Keep a trace of the command line.
1912 # Strip out --no-create and --no-recursion so they do not pile up.
1913 # Strip out --silent because we don't want to record it for future runs.
1914 # Also quote any args containing shell meta-characters.
1915 # Make two passes to allow for proper duplicate-argument suppression.
1916 ac_configure_args=
1917 ac_configure_args0=
1918 ac_configure_args1=
1919 ac_must_keep_next=false
1920 for ac_pass in 1 2
1921 do
1922 for ac_arg
1923 do
1924 case $ac_arg in
1925 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1927 | -silent | --silent | --silen | --sile | --sil)
1928 continue ;;
1929 *\'*)
1930 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 esac
1932 case $ac_pass in
1933 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 2)
1935 as_fn_append ac_configure_args1 " '$ac_arg'"
1936 if test $ac_must_keep_next = true; then
1937 ac_must_keep_next=false # Got value, back to normal.
1938 else
1939 case $ac_arg in
1940 *=* | --config-cache | -C | -disable-* | --disable-* \
1941 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1942 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1943 | -with-* | --with-* | -without-* | --without-* | --x)
1944 case "$ac_configure_args0 " in
1945 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1946 esac
1947 ;;
1948 -* ) ac_must_keep_next=true ;;
1949 esac
1950 fi
1951 as_fn_append ac_configure_args " '$ac_arg'"
1952 ;;
1953 esac
1954 done
1955 done
1956 { ac_configure_args0=; unset ac_configure_args0;}
1957 { ac_configure_args1=; unset ac_configure_args1;}
1958
1959 # When interrupted or exit'd, cleanup temporary files, and complete
1960 # config.log. We remove comments because anyway the quotes in there
1961 # would cause problems or look ugly.
1962 # WARNING: Use '\'' to represent an apostrophe within the trap.
1963 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1964 trap 'exit_status=$?
1965 # Save into config.log some information that might help in debugging.
1966 {
1967 echo
1968
1969 cat <<\_ASBOX
1970 ## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##
1973 _ASBOX
1974 echo
1975 # The following way of writing the cache mishandles newlines in values,
1976 (
1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in #(
1980 *${as_nl}*)
1981 case $ac_var in #(
1982 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1984 esac
1985 case $ac_var in #(
1986 _ | IFS | as_nl) ;; #(
1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1988 *) { eval $ac_var=; unset $ac_var;} ;;
1989 esac ;;
1990 esac
1991 done
1992 (set) 2>&1 |
1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1994 *${as_nl}ac_space=\ *)
1995 sed -n \
1996 "s/'\''/'\''\\\\'\'''\''/g;
1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1998 ;; #(
1999 *)
2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001 ;;
2002 esac |
2003 sort
2004 )
2005 echo
2006
2007 cat <<\_ASBOX
2008 ## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##
2011 _ASBOX
2012 echo
2013 for ac_var in $ac_subst_vars
2014 do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 esac
2019 $as_echo "$ac_var='\''$ac_val'\''"
2020 done | sort
2021 echo
2022
2023 if test -n "$ac_subst_files"; then
2024 cat <<\_ASBOX
2025 ## ------------------- ##
2026 ## File substitutions. ##
2027 ## ------------------- ##
2028 _ASBOX
2029 echo
2030 for ac_var in $ac_subst_files
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039 fi
2040
2041 if test -s confdefs.h; then
2042 cat <<\_ASBOX
2043 ## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##
2046 _ASBOX
2047 echo
2048 cat confdefs.h
2049 echo
2050 fi
2051 test "$ac_signal" != 0 &&
2052 $as_echo "$as_me: caught signal $ac_signal"
2053 $as_echo "$as_me: exit $exit_status"
2054 } >&5
2055 rm -f core *.core core.conftest.* &&
2056 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2057 exit $exit_status
2058 ' 0
2059 for ac_signal in 1 2 13 15; do
2060 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2061 done
2062 ac_signal=0
2063
2064 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2065 rm -f -r conftest* confdefs.h
2066
2067 $as_echo "/* confdefs.h */" > confdefs.h
2068
2069 # Predefined preprocessor variables.
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_NAME "$PACKAGE_NAME"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2081 _ACEOF
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_STRING "$PACKAGE_STRING"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_URL "$PACKAGE_URL"
2093 _ACEOF
2094
2095
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 ac_site_file1=NONE
2099 ac_site_file2=NONE
2100 if test -n "$CONFIG_SITE"; then
2101 ac_site_file1=$CONFIG_SITE
2102 elif test "x$prefix" != xNONE; then
2103 ac_site_file1=$prefix/share/config.site
2104 ac_site_file2=$prefix/etc/config.site
2105 else
2106 ac_site_file1=$ac_default_prefix/share/config.site
2107 ac_site_file2=$ac_default_prefix/etc/config.site
2108 fi
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2110 do
2111 test "x$ac_site_file" = xNONE && continue
2112 if test -r "$ac_site_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2116 . "$ac_site_file"
2117 fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126 case $cache_file in
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2129 esac
2130 fi
2131 else
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2146 set,)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,set)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,);;
2155 *)
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2168 fi
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2173 fi;;
2174 esac
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2177 case $ac_new_val in
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2180 esac
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184 esac
2185 fi
2186 done
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193 fi
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205
2206
2207
2208 ac_config_headers="$ac_config_headers config.h"
2209
2210
2211 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2212 #
2213 # You will slowly go insane if you do not grok the following fact: when
2214 # building this library, the top-level /target/ becomes the library's /host/.
2215 #
2216 # configure then causes --target to default to --host, exactly like any
2217 # other package using autoconf. Therefore, 'target' and 'host' will
2218 # always be the same. This makes sense both for native and cross compilers
2219 # just think about it for a little while. :-)
2220 #
2221 # Also, if this library is being configured as part of a cross compiler, the
2222 # top-level configure script will pass the "real" host as $with_cross_host.
2223 #
2224 # Do not delete or change the following two lines. For why, see
2225 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 for ac_t in install-sh install.sh shtool; do
2229 if test -f "$ac_dir/$ac_t"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/$ac_t -c"
2232 break 2
2233 fi
2234 done
2235 done
2236 if test -z "$ac_aux_dir"; then
2237 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2238 fi
2239
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247
2248
2249 # Make sure we can run config.sub.
2250 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2251 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2252
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2254 $as_echo_n "checking build system type... " >&6; }
2255 if test "${ac_cv_build+set}" = set; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 ac_build_alias=$build_alias
2259 test "x$ac_build_alias" = x &&
2260 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x &&
2262 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2263 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2264 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2265
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2268 $as_echo "$ac_cv_build" >&6; }
2269 case $ac_cv_build in
2270 *-*-*) ;;
2271 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2285
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2288 $as_echo_n "checking host system type... " >&6; }
2289 if test "${ac_cv_host+set}" = set; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2297 fi
2298
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2301 $as_echo "$ac_cv_host" >&6; }
2302 case $ac_cv_host in
2303 *-*-*) ;;
2304 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2305 esac
2306 host=$ac_cv_host
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_host
2309 shift
2310 host_cpu=$1
2311 host_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 host_os=$*
2316 IFS=$ac_save_IFS
2317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2318
2319
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2321 $as_echo_n "checking target system type... " >&6; }
2322 if test "${ac_cv_target+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test "x$target_alias" = x; then
2326 ac_cv_target=$ac_cv_host
2327 else
2328 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2329 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2330 fi
2331
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2334 $as_echo "$ac_cv_target" >&6; }
2335 case $ac_cv_target in
2336 *-*-*) ;;
2337 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2338 esac
2339 target=$ac_cv_target
2340 ac_save_IFS=$IFS; IFS='-'
2341 set x $ac_cv_target
2342 shift
2343 target_cpu=$1
2344 target_vendor=$2
2345 shift; shift
2346 # Remember, the first character of IFS is used to create $*,
2347 # except with old shells:
2348 target_os=$*
2349 IFS=$ac_save_IFS
2350 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2351
2352
2353 # The aliases save the names the user supplied, while $host etc.
2354 # will get canonicalized.
2355 test -n "$target_alias" &&
2356 test "$program_prefix$program_suffix$program_transform_name" = \
2357 NONENONEs,x,x, &&
2358 program_prefix=${target_alias}-
2359
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
2363 esac
2364
2365 case ${host_alias} in
2366 "") host_noncanonical=${build_noncanonical} ;;
2367 *) host_noncanonical=${host_alias} ;;
2368 esac
2369
2370 case ${target_alias} in
2371 "") target_noncanonical=${host_noncanonical} ;;
2372 *) target_noncanonical=${target_alias} ;;
2373 esac
2374
2375
2376
2377
2378 # Default to --enable-multilib
2379 # Check whether --enable-multilib was given.
2380 if test "${enable_multilib+set}" = set; then :
2381 enableval=$enable_multilib; case "$enableval" in
2382 yes) multilib=yes ;;
2383 no) multilib=no ;;
2384 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2385 esac
2386 else
2387 multilib=yes
2388 fi
2389
2390
2391 # We may get other options which we leave undocumented:
2392 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2393 # See config-ml.in if you want the gory details.
2394
2395 if test "$srcdir" = "."; then
2396 if test "$with_target_subdir" != "."; then
2397 multi_basedir="$srcdir/$with_multisrctop../.."
2398 else
2399 multi_basedir="$srcdir/$with_multisrctop.."
2400 fi
2401 else
2402 multi_basedir="$srcdir/.."
2403 fi
2404
2405
2406 # Even if the default multilib is not a cross compilation,
2407 # it may be that some of the other multilibs are.
2408 if test $cross_compiling = no && test $multilib = yes \
2409 && test "x${with_multisubdir}" != x ; then
2410 cross_compiling=maybe
2411 fi
2412
2413 ac_config_commands="$ac_config_commands default-1"
2414
2415
2416 target_alias=${target_alias-$host_alias}
2417
2418
2419 am__api_version='1.11'
2420
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if test "${ac_cv_path_install+set}" = set; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451 /usr/ucb/* ) ;;
2452 *)
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2455 # by default.
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2462 :
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2466 :
2467 else
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2471 mkdir conftest.dir
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2476 then
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
2479 fi
2480 fi
2481 fi
2482 done
2483 done
2484 ;;
2485 esac
2486
2487 done
2488 IFS=$as_save_IFS
2489
2490 rm -rf conftest.one conftest.two conftest.dir
2491
2492 fi
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2495 else
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2501 fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2505
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2516 # Just in case
2517 sleep 1
2518 echo timestamp > conftest.file
2519 # Reject unsafe characters in $srcdir or the absolute working directory
2520 # name. Accept space and tab only in the latter.
2521 am_lf='
2522 '
2523 case `pwd` in
2524 *[\\\"\#\$\&\'\`$am_lf]*)
2525 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2526 esac
2527 case $srcdir in
2528 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2529 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2530 esac
2531
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments. Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2536 # directory).
2537 if (
2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2540 # -L didn't work.
2541 set X `ls -t "$srcdir/configure" conftest.file`
2542 fi
2543 rm -f conftest.file
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2546
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2553 fi
2554
2555 test "$2" = conftest.file
2556 )
2557 then
2558 # Ok.
2559 :
2560 else
2561 as_fn_error "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2563 fi
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2575
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2578
2579 if test x"${MISSING+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2583 *)
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585 esac
2586 fi
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589 am_missing_run="$MISSING --run "
2590 else
2591 am_missing_run=
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2594 fi
2595
2596 if test x"${install_sh}" != xset; then
2597 case $am_aux_dir in
2598 *\ * | *\ *)
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2600 *)
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2602 esac
2603 fi
2604
2605 # Installed binaries are usually stripped using `strip' when the user
2606 # run `make install-strip'. However `strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the `STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if test "${ac_cv_prog_STRIP+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$ac_cv_prog_STRIP"; then
2650 ac_ct_STRIP=$STRIP
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687 if test "x$ac_ct_STRIP" = x; then
2688 STRIP=":"
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696 STRIP=$ac_ct_STRIP
2697 fi
2698 else
2699 STRIP="$ac_cv_prog_STRIP"
2700 fi
2701
2702 fi
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if test "${ac_cv_path_mkdir+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724 break 3;;
2725 esac
2726 done
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732
2733 if test "${ac_cv_path_mkdir+set}" = set; then
2734 MKDIR_P="$ac_cv_path_mkdir -p"
2735 else
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for MKDIR_P within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 test -d ./--version && rmdir ./--version
2741 MKDIR_P="$ac_install_sh -d"
2742 fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2746
2747 mkdir_p="$MKDIR_P"
2748 case $mkdir_p in
2749 [\\/$]* | ?:[\\/]*) ;;
2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2751 esac
2752
2753 for ac_prog in gawk mawk nawk awk
2754 do
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_AWK+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 AWK=$ac_cv_prog_AWK
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792 test -n "$AWK" && break
2793 done
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797 set x ${MAKE-make}
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat >conftest.make <<\_ACEOF
2803 SHELL = /bin/sh
2804 all:
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2806 _ACEOF
2807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809 *@@@%%%=?*=@@@%%%*)
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2811 *)
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2813 esac
2814 rm -f conftest.make
2815 fi
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819 SET_MAKE=
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2824 fi
2825
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2829 am__leading_dot=.
2830 else
2831 am__leading_dot=_
2832 fi
2833 rmdir .tst 2>/dev/null
2834
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837 # is not polluted with repeated "-I."
2838 am__isrc=' -I$(srcdir)'
2839 # test to see if srcdir already configured
2840 if test -f $srcdir/config.status; then
2841 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2842 fi
2843 fi
2844
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847 if (cygpath --version) >/dev/null 2>/dev/null; then
2848 CYGPATH_W='cygpath -w'
2849 else
2850 CYGPATH_W=echo
2851 fi
2852 fi
2853
2854
2855 # Define the identity of the package.
2856 PACKAGE='libquadmath'
2857 VERSION='0.1'
2858
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2862 _ACEOF
2863
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2867 _ACEOF
2868
2869 # Some tools Automake needs.
2870
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2872
2873
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2875
2876
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2878
2879
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2881
2882
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2884
2885 # We need awk for the "check" target. The system "awk" is bad on
2886 # some platforms.
2887 # Always define AMTAR for backward compatibility. Yes, it's still used
2888 # in the wild :-( We should find a proper way to deprecate it ...
2889 AMTAR='$${TAR-tar}'
2890
2891 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2892
2893
2894
2895
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2899 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2900 # Check whether --enable-version-specific-runtime-libs was given.
2901 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2902 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2903 yes) version_specific_libs=yes ;;
2904 no) version_specific_libs=no ;;
2905 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2906 esac
2907 else
2908 version_specific_libs=no
2909 fi
2910
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2912 $as_echo "$version_specific_libs" >&6; }
2913
2914
2915
2916 DEPDIR="${am__leading_dot}deps"
2917
2918 ac_config_commands="$ac_config_commands depfiles"
2919
2920
2921 am_make=${MAKE-make}
2922 cat > confinc << 'END'
2923 am__doit:
2924 @echo this is the am__doit target
2925 .PHONY: am__doit
2926 END
2927 # If we don't find an include directive, just comment out the code.
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2930 am__include="#"
2931 am__quote=
2932 _am_result=none
2933 # First try GNU make style include.
2934 echo "include confinc" > confmf
2935 # Ignore all kinds of additional output from `make'.
2936 case `$am_make -s -f confmf 2> /dev/null` in #(
2937 *the\ am__doit\ target*)
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2941 ;;
2942 esac
2943 # Now try BSD make style include.
2944 if test "$am__include" = "#"; then
2945 echo '.include "confinc"' > confmf
2946 case `$am_make -s -f confmf 2> /dev/null` in #(
2947 *the\ am__doit\ target*)
2948 am__include=.include
2949 am__quote="\""
2950 _am_result=BSD
2951 ;;
2952 esac
2953 fi
2954
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2957 $as_echo "$_am_result" >&6; }
2958 rm -f confinc confmf
2959
2960 # Check whether --enable-dependency-tracking was given.
2961 if test "${enable_dependency_tracking+set}" = set; then :
2962 enableval=$enable_dependency_tracking;
2963 fi
2964
2965 if test "x$enable_dependency_tracking" != xno; then
2966 am_depcomp="$ac_aux_dir/depcomp"
2967 AMDEPBACKSLASH='\'
2968 am__nodep='_no'
2969 fi
2970 if test "x$enable_dependency_tracking" != xno; then
2971 AMDEP_TRUE=
2972 AMDEP_FALSE='#'
2973 else
2974 AMDEP_TRUE='#'
2975 AMDEP_FALSE=
2976 fi
2977
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "gcc", so it can be a program name with args.
3026 set dummy gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_ac_ct_CC="gcc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3071 fi
3072 else
3073 CC="$ac_cv_prog_CC"
3074 fi
3075
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="${ac_tool_prefix}cc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 fi
3117 if test -z "$CC"; then
3118 # Extract the first word of "cc", so it can be a program name with args.
3119 set dummy cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 ac_prog_rejected=no
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3137 ac_prog_rejected=yes
3138 continue
3139 fi
3140 ac_cv_prog_CC="cc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 if test $ac_prog_rejected = yes; then
3149 # We found a bogon in the path, so make sure we never use it.
3150 set dummy $ac_cv_prog_CC
3151 shift
3152 if test $# != 0; then
3153 # We chose a different compiler from the bogus one.
3154 # However, it has the same basename, so the bogon will be chosen
3155 # first if we set CC to just the basename; use the full file name.
3156 shift
3157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158 fi
3159 fi
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 fi
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 for ac_prog in cl.exe
3176 do
3177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178 set dummy $ac_tool_prefix$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; }
3181 if test "${ac_cv_prog_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
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_CC="$ac_tool_prefix$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214 test -n "$CC" && break
3215 done
3216 fi
3217 if test -z "$CC"; then
3218 ac_ct_CC=$CC
3219 for ac_prog in cl.exe
3220 do
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_ac_ct_CC="$ac_prog"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 test -n "$ac_ct_CC" && break
3259 done
3260
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3271 fi
3272 fi
3273
3274 fi
3275
3276
3277 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error "no acceptable C compiler found in \$PATH
3280 See \`config.log' for more details." "$LINENO" 5; }
3281
3282 # Provide some information about the compiler.
3283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284 set X $ac_compile
3285 ac_compiler=$2
3286 for ac_option in --version -v -V -qversion; do
3287 { { ac_try="$ac_compiler $ac_option >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295 ac_status=$?
3296 if test -s conftest.err; then
3297 sed '10a\
3298 ... rest of stderr output deleted ...
3299 10q' conftest.err >conftest.er1
3300 cat conftest.er1 >&5
3301 rm -f conftest.er1 conftest.err
3302 fi
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }
3305 done
3306
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 # FIXME: Cleanup?
3319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3320 (eval $ac_link) 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 gcc_no_link=no
3325 else
3326 gcc_no_link=yes
3327 fi
3328 if test x$gcc_no_link = xyes; then
3329 # Setting cross_compile will disable run tests; it will
3330 # also disable AC_CHECK_FILE but that's generally
3331 # correct if we can't link.
3332 cross_compiling=yes
3333 EXEEXT=
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3350 # of exeext.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3360 do
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365 done
3366 rm -f $ac_rmfiles
3367
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3383 # Autoconf.
3384 for ac_file in $ac_files ''
3385 do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3389 ;;
3390 [ab].out )
3391 # We found the default executable, but exeext='' is most
3392 # certainly right.
3393 break;;
3394 *.* )
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396 then :; else
3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398 fi
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3403 # actually working.
3404 break;;
3405 * )
3406 break;;
3407 esac
3408 done
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411 else
3412 ac_file=''
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3415 $as_echo "$ac_file" >&6; }
3416 if test -z "$ac_file"; then :
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { as_fn_set_status 77
3423 as_fn_error "C compiler cannot create executables
3424 See \`config.log' for more details." "$LINENO" 5; }; }
3425 fi
3426 ac_exeext=$ac_cv_exeext
3427
3428 # Check that the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431 $as_echo_n "checking whether the C compiler works... " >&6; }
3432 # If not cross compiling, check that we can run a simple program.
3433 if test "$cross_compiling" != yes; then
3434 if { ac_try='./$ac_file'
3435 { { case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_try") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; }; then
3445 cross_compiling=no
3446 else
3447 if test "$cross_compiling" = maybe; then
3448 cross_compiling=yes
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "cannot run C compiled programs.
3453 If you meant to cross compile, use \`--host'.
3454 See \`config.log' for more details." "$LINENO" 5; }
3455 fi
3456 fi
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460
3461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3462 ac_clean_files=$ac_clean_files_save
3463 # Check that the compiler produces executables we can run. If not, either
3464 # the compiler is broken, or we cross compile.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3466 $as_echo_n "checking whether we are cross compiling... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468 $as_echo "$cross_compiling" >&6; }
3469
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3471 $as_echo_n "checking for suffix of executables... " >&6; }
3472 if { { ac_try="$ac_link"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3484 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3485 # work properly (i.e., refer to `conftest.exe'), while it won't with
3486 # `rm'.
3487 for ac_file in conftest.exe conftest conftest.*; do
3488 test -f "$ac_file" || continue
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 break;;
3493 * ) break;;
3494 esac
3495 done
3496 else
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "cannot compute suffix of executables: cannot compile and link
3500 See \`config.log' for more details." "$LINENO" 5; }
3501 fi
3502 rm -f conftest$ac_cv_exeext
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3504 $as_echo "$ac_cv_exeext" >&6; }
3505
3506 rm -f conftest.$ac_ext
3507 EXEEXT=$ac_cv_exeext
3508 ac_exeext=$EXEEXT
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3511 $as_echo_n "checking for suffix of object files... " >&6; }
3512 if test "${ac_cv_objext+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.o conftest.obj
3527 if { { ac_try="$ac_compile"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_compile") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 for ac_file in conftest.o conftest.obj conftest.*; do
3539 test -f "$ac_file" || continue;
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3543 break;;
3544 esac
3545 done
3546 else
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error "cannot compute suffix of object files: cannot compile
3553 See \`config.log' for more details." "$LINENO" 5; }
3554 fi
3555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3558 $as_echo "$ac_cv_objext" >&6; }
3559 OBJEXT=$ac_cv_objext
3560 ac_objext=$OBJEXT
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3562 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568
3569 int
3570 main ()
3571 {
3572 #ifndef __GNUC__
3573 choke me
3574 #endif
3575
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_compiler_gnu=yes
3582 else
3583 ac_compiler_gnu=no
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3592 GCC=yes
3593 else
3594 GCC=
3595 fi
3596 ac_test_CFLAGS=${CFLAGS+set}
3597 ac_save_CFLAGS=$CFLAGS
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if test "${ac_cv_prog_cc_g+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_save_c_werror_flag=$ac_c_werror_flag
3604 ac_c_werror_flag=yes
3605 ac_cv_prog_cc_g=no
3606 CFLAGS="-g"
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_g=yes
3620 else
3621 CFLAGS=""
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634
3635 else
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_cv_prog_cc_g=yes
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 $as_echo "$ac_cv_prog_cc_g" >&6; }
3661 if test "$ac_test_CFLAGS" = set; then
3662 CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3665 CFLAGS="-g -O2"
3666 else
3667 CFLAGS="-g"
3668 fi
3669 else
3670 if test "$GCC" = yes; then
3671 CFLAGS="-O2"
3672 else
3673 CFLAGS=
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 ac_cv_prog_cc_c89=no
3682 ac_save_CC=$CC
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdarg.h>
3686 #include <stdio.h>
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3695 {
3696 return p[i];
3697 }
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3699 {
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3706 }
3707
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3728 int
3729 main ()
3730 {
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 do
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3748
3749 fi
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3752 x)
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3758 *)
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3764
3765 fi
3766
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773 depcc="$CC" am_compiler_list=
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3785 # in D'.
3786 rm -rf conftest.dir
3787 mkdir conftest.dir
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3791 cd conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3797 # directory.
3798 mkdir sub
3799
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803 fi
3804 am__universal=false
3805 case " $depcc " in #(
3806 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807 esac
3808
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3813 #
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3817 : > sub/conftest.c
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3823 done
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827 # mode. It turns out that the SunPro C++ compiler does not properly
3828 # handle `-M -o', and we need to detect this. Also, some Intel
3829 # versions had trouble with output in subdirs
3830 am__obj=sub/conftest.${OBJEXT-o}
3831 am__minus_obj="-o $am__obj"
3832 case $depmode in
3833 gcc)
3834 # This depmode causes a compiler race in universal mode.
3835 test "$am__universal" = false || continue
3836 ;;
3837 nosideeffect)
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3841 continue
3842 else
3843 break
3844 fi
3845 ;;
3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847 # This compiler won't grok `-c -o', but also, the minuso test has
3848 # not run yet. These depmodes are late enough in the game, and
3849 # so weak that their functioning should not be impacted.
3850 am__obj=conftest.${OBJEXT-o}
3851 am__minus_obj=
3852 ;;
3853 none) break ;;
3854 esac
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=$am__obj \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3874 break
3875 fi
3876 fi
3877 done
3878
3879 cd ..
3880 rm -rf conftest.dir
3881 else
3882 am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890 if
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3909 # On Suns, sometimes $CPP names a directory.
3910 if test -n "$CPP" && test -d "$CPP"; then
3911 CPP=
3912 fi
3913 if test -z "$CPP"; then
3914 if test "${ac_cv_prog_CPP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 # Double quotes because CPP needs to be expanded
3918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 do
3920 ac_preproc_ok=false
3921 for ac_c_preproc_warn_flag in '' yes
3922 do
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #ifdef __STDC__
3932 # include <limits.h>
3933 #else
3934 # include <assert.h>
3935 #endif
3936 Syntax error
3937 _ACEOF
3938 if ac_fn_c_try_cpp "$LINENO"; then :
3939
3940 else
3941 # Broken: fails on valid input.
3942 continue
3943 fi
3944 rm -f conftest.err conftest.$ac_ext
3945
3946 # OK, works on sane cases. Now check whether nonexistent headers
3947 # can be detected and how.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <ac_nonexistent.h>
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3953 # Broken: success on invalid input.
3954 continue
3955 else
3956 # Passes both tests.
3957 ac_preproc_ok=:
3958 break
3959 fi
3960 rm -f conftest.err conftest.$ac_ext
3961
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then :
3966 break
3967 fi
3968
3969 done
3970 ac_cv_prog_CPP=$CPP
3971
3972 fi
3973 CPP=$ac_cv_prog_CPP
3974 else
3975 ac_cv_prog_CPP=$CPP
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3978 $as_echo "$CPP" >&6; }
3979 ac_preproc_ok=false
3980 for ac_c_preproc_warn_flag in '' yes
3981 do
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
3986 # On the NeXT, cc -E runs the code through the compiler's parser,
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995 Syntax error
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3998
3999 else
4000 # Broken: fails on valid input.
4001 continue
4002 fi
4003 rm -f conftest.err conftest.$ac_ext
4004
4005 # OK, works on sane cases. Now check whether nonexistent headers
4006 # can be detected and how.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012 # Broken: success on invalid input.
4013 continue
4014 else
4015 # Passes both tests.
4016 ac_preproc_ok=:
4017 break
4018 fi
4019 rm -f conftest.err conftest.$ac_ext
4020
4021 done
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.err conftest.$ac_ext
4024 if $ac_preproc_ok; then :
4025
4026 else
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details." "$LINENO" 5; }
4031 fi
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4041 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042 if test "${ac_cv_path_GREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -z "$GREP"; then
4046 ac_path_GREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4057 # Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059 case `"$ac_path_GREP" --version 2>&1` in
4060 *GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4062 *)
4063 ac_count=0
4064 $as_echo_n 0123456789 >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083 esac
4084
4085 $ac_path_GREP_found && break 3
4086 done
4087 done
4088 done
4089 IFS=$as_save_IFS
4090 if test -z "$ac_cv_path_GREP"; then
4091 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4092 fi
4093 else
4094 ac_cv_path_GREP=$GREP
4095 fi
4096
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4099 $as_echo "$ac_cv_path_GREP" >&6; }
4100 GREP="$ac_cv_path_GREP"
4101
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4104 $as_echo_n "checking for egrep... " >&6; }
4105 if test "${ac_cv_path_EGREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4109 then ac_cv_path_EGREP="$GREP -E"
4110 else
4111 if test -z "$EGREP"; then
4112 ac_path_EGREP_found=false
4113 # Loop through the user's path and test for each of PROGNAME-LIST
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4123 # Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP
4125 case `"$ac_path_EGREP" --version 2>&1` in
4126 *GNU*)
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4128 *)
4129 ac_count=0
4130 $as_echo_n 0123456789 >"conftest.in"
4131 while :
4132 do
4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
4134 mv "conftest.tmp" "conftest.in"
4135 cp "conftest.in" "conftest.nl"
4136 $as_echo 'EGREP' >> "conftest.nl"
4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139 as_fn_arith $ac_count + 1 && ac_count=$as_val
4140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4141 # Best one so far, save it but keep looking for a better one
4142 ac_cv_path_EGREP="$ac_path_EGREP"
4143 ac_path_EGREP_max=$ac_count
4144 fi
4145 # 10*(2^10) chars as input seems more than enough
4146 test $ac_count -gt 10 && break
4147 done
4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 esac
4150
4151 $ac_path_EGREP_found && break 3
4152 done
4153 done
4154 done
4155 IFS=$as_save_IFS
4156 if test -z "$ac_cv_path_EGREP"; then
4157 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4158 fi
4159 else
4160 ac_cv_path_EGREP=$EGREP
4161 fi
4162
4163 fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4166 $as_echo "$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171 $as_echo_n "checking for ANSI C header files... " >&6; }
4172 if test "${ac_cv_header_stdc+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <stdlib.h>
4178 #include <stdarg.h>
4179 #include <string.h>
4180 #include <float.h>
4181
4182 int
4183 main ()
4184 {
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_header_stdc=yes
4192 else
4193 ac_cv_header_stdc=no
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197 if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <string.h>
4202
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then :
4206
4207 else
4208 ac_cv_header_stdc=no
4209 fi
4210 rm -f conftest*
4211
4212 fi
4213
4214 if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 #include <stdlib.h>
4219
4220 _ACEOF
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then :
4223
4224 else
4225 ac_cv_header_stdc=no
4226 fi
4227 rm -f conftest*
4228
4229 fi
4230
4231 if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4234 :
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <ctype.h>
4239 #include <stdlib.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4250
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252 int
4253 main ()
4254 {
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_run "$LINENO"; then :
4264
4265 else
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270 fi
4271
4272 fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275 $as_echo "$ac_cv_header_stdc" >&6; }
4276 if test $ac_cv_header_stdc = yes; then
4277
4278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4279
4280 fi
4281
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4285 do :
4286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4288 "
4289 eval as_val=\$$as_ac_Header
4290 if test "x$as_val" = x""yes; then :
4291 cat >>confdefs.h <<_ACEOF
4292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296
4297 done
4298
4299
4300
4301 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4302 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4303 MINIX=yes
4304 else
4305 MINIX=
4306 fi
4307
4308
4309 if test "$MINIX" = yes; then
4310
4311 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4312
4313
4314 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4315
4316
4317 $as_echo "#define _MINIX 1" >>confdefs.h
4318
4319 fi
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4323 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4324 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329
4330 # define __EXTENSIONS__ 1
4331 $ac_includes_default
4332 int
4333 main ()
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_cv_safe_to_define___extensions__=yes
4342 else
4343 ac_cv_safe_to_define___extensions__=no
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4348 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4349 test $ac_cv_safe_to_define___extensions__ = yes &&
4350 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4351
4352 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4353
4354 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4355
4356 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4357
4358 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4359
4360
4361
4362 # See if makeinfo has been installed and is modern enough
4363 # that we can use it.
4364
4365 # Extract the first word of "makeinfo", so it can be a program name with args.
4366 set dummy makeinfo; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test -n "$MAKEINFO"; then
4373 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_MAKEINFO="makeinfo"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390 fi
4391 fi
4392 MAKEINFO=$ac_cv_prog_MAKEINFO
4393 if test -n "$MAKEINFO"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4395 $as_echo "$MAKEINFO" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401
4402 if test -n "$MAKEINFO"; then
4403 # Found it, now check the version.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4405 $as_echo_n "checking for modern makeinfo... " >&6; }
4406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4410 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4411
4412 case $ac_prog_version in
4413 '') gcc_cv_prog_makeinfo_modern=no;;
4414 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4415 *) gcc_cv_prog_makeinfo_modern=no;;
4416 esac
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4420 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4421 else
4422 gcc_cv_prog_makeinfo_modern=no
4423 fi
4424 if test $gcc_cv_prog_makeinfo_modern = no; then
4425 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4426 fi
4427
4428 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4429 BUILD_INFO_TRUE=
4430 BUILD_INFO_FALSE='#'
4431 else
4432 BUILD_INFO_TRUE='#'
4433 BUILD_INFO_FALSE=
4434 fi
4435
4436
4437
4438
4439 # Check whether --with-bugurl was given.
4440 if test "${with_bugurl+set}" = set; then :
4441 withval=$with_bugurl; case "$withval" in
4442 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4443 no) BUGURL=
4444 ;;
4445 *) BUGURL="$withval"
4446 ;;
4447 esac
4448 else
4449 BUGURL="https://gcc.gnu.org/bugs/"
4450
4451 fi
4452
4453 case ${BUGURL} in
4454 "")
4455 REPORT_BUGS_TO=
4456 REPORT_BUGS_TEXI=
4457 ;;
4458 *)
4459 REPORT_BUGS_TO="<$BUGURL>"
4460 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4461 ;;
4462 esac;
4463
4464
4465
4466
4467 # Configure libtool
4468 case `pwd` in
4469 *\ * | *\ *)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4471 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4472 esac
4473
4474
4475
4476 macro_version='2.2.7a'
4477 macro_revision='1.3134'
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491 ltmain="$ac_aux_dir/ltmain.sh"
4492
4493 # Backslashify metacharacters that are still active within
4494 # double-quoted strings.
4495 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4496
4497 # Same as above, but do not quote variable references.
4498 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4499
4500 # Sed substitution to delay expansion of an escaped shell variable in a
4501 # double_quote_subst'ed string.
4502 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4503
4504 # Sed substitution to delay expansion of an escaped single quote.
4505 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4506
4507 # Sed substitution to avoid accidental globbing in evaled expressions
4508 no_glob_subst='s/\*/\\\*/g'
4509
4510 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4511 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4515 $as_echo_n "checking how to print strings... " >&6; }
4516 # Test print first, because it will be a builtin if present.
4517 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4518 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4519 ECHO='print -r --'
4520 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4521 ECHO='printf %s\n'
4522 else
4523 # Use this function as a fallback that always works.
4524 func_fallback_echo ()
4525 {
4526 eval 'cat <<_LTECHO_EOF
4527 $1
4528 _LTECHO_EOF'
4529 }
4530 ECHO='func_fallback_echo'
4531 fi
4532
4533 # func_echo_all arg...
4534 # Invoke $ECHO with all args, space-separated.
4535 func_echo_all ()
4536 {
4537 $ECHO ""
4538 }
4539
4540 case "$ECHO" in
4541 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4542 $as_echo "printf" >&6; } ;;
4543 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4544 $as_echo "print -r" >&6; } ;;
4545 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4546 $as_echo "cat" >&6; } ;;
4547 esac
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4563 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4564 if test "${ac_cv_path_SED+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4568 for ac_i in 1 2 3 4 5 6 7; do
4569 ac_script="$ac_script$as_nl$ac_script"
4570 done
4571 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4572 { ac_script=; unset ac_script;}
4573 if test -z "$SED"; then
4574 ac_path_SED_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in sed gsed; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4585 # Check for GNU ac_path_SED and select it if it is found.
4586 # Check for GNU $ac_path_SED
4587 case `"$ac_path_SED" --version 2>&1` in
4588 *GNU*)
4589 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4590 *)
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
4594 do
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo '' >> "conftest.nl"
4599 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_SED_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_SED="$ac_path_SED"
4605 ac_path_SED_max=$ac_count
4606 fi
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613 $ac_path_SED_found && break 3
4614 done
4615 done
4616 done
4617 IFS=$as_save_IFS
4618 if test -z "$ac_cv_path_SED"; then
4619 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4620 fi
4621 else
4622 ac_cv_path_SED=$SED
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4627 $as_echo "$ac_cv_path_SED" >&6; }
4628 SED="$ac_cv_path_SED"
4629 rm -f conftest.sed
4630
4631 test -z "$SED" && SED=sed
4632 Xsed="$SED -e 1s/^X//"
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645 $as_echo_n "checking for fgrep... " >&6; }
4646 if test "${ac_cv_path_FGREP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650 then ac_cv_path_FGREP="$GREP -F"
4651 else
4652 if test -z "$FGREP"; then
4653 ac_path_FGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in fgrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4664 # Check for GNU ac_path_FGREP and select it if it is found.
4665 # Check for GNU $ac_path_FGREP
4666 case `"$ac_path_FGREP" --version 2>&1` in
4667 *GNU*)
4668 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4669 *)
4670 ac_count=0
4671 $as_echo_n 0123456789 >"conftest.in"
4672 while :
4673 do
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'FGREP' >> "conftest.nl"
4678 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_FGREP="$ac_path_FGREP"
4684 ac_path_FGREP_max=$ac_count
4685 fi
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4688 done
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690 esac
4691
4692 $ac_path_FGREP_found && break 3
4693 done
4694 done
4695 done
4696 IFS=$as_save_IFS
4697 if test -z "$ac_cv_path_FGREP"; then
4698 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4699 fi
4700 else
4701 ac_cv_path_FGREP=$FGREP
4702 fi
4703
4704 fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707 $as_echo "$ac_cv_path_FGREP" >&6; }
4708 FGREP="$ac_cv_path_FGREP"
4709
4710
4711 test -z "$GREP" && GREP=grep
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734 else
4735 with_gnu_ld=no
4736 fi
4737
4738 ac_prog=ld
4739 if test "$GCC" = yes; then
4740 # Check if gcc -print-prog-name=ld gives a path.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4743 case $host in
4744 *-*-mingw*)
4745 # gcc leaves a trailing carriage return which upsets mingw
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4747 *)
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749 esac
4750 case $ac_prog in
4751 # Accept absolute paths.
4752 [\\/]* | ?:[\\/]*)
4753 re_direlt='/[^/][^/]*/\.\./'
4754 # Canonicalize the pathname of ld
4755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758 done
4759 test -z "$LD" && LD="$ac_prog"
4760 ;;
4761 "")
4762 # If it fails, then pretend we aren't using GCC.
4763 ac_prog=ld
4764 ;;
4765 *)
4766 # If it is relative, then search for the first ld in PATH.
4767 with_gnu_ld=unknown
4768 ;;
4769 esac
4770 elif test "$with_gnu_ld" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4776 fi
4777 if test "${lt_cv_path_LD+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -z "$LD"; then
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4783 IFS="$lt_save_ifs"
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786 lt_cv_path_LD="$ac_dir/$ac_prog"
4787 # Check to see if the program is GNU ld. I'd rather use --version,
4788 # but apparently some variants of GNU ld only accept -v.
4789 # Break only if it was the GNU/non-GNU ld that we prefer.
4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 test "$with_gnu_ld" != no && break
4793 ;;
4794 *)
4795 test "$with_gnu_ld" != yes && break
4796 ;;
4797 esac
4798 fi
4799 done
4800 IFS="$lt_save_ifs"
4801 else
4802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4803 fi
4804 fi
4805
4806 LD="$lt_cv_path_LD"
4807 if test -n "$LD"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823 lt_cv_prog_gnu_ld=yes
4824 ;;
4825 *)
4826 lt_cv_prog_gnu_ld=no
4827 ;;
4828 esac
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if test "${lt_cv_path_NM+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4849 lt_cv_path_NM="$NM"
4850 else
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4854 fi
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4869 break
4870 ;;
4871 *)
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873 */dev/null*)
4874 lt_cv_path_NM="$tmp_nm -p"
4875 break
4876 ;;
4877 *)
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4880 ;;
4881 esac
4882 ;;
4883 esac
4884 fi
4885 done
4886 IFS="$lt_save_ifs"
4887 done
4888 : ${lt_cv_path_NM=no}
4889 fi
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894 NM="$lt_cv_path_NM"
4895 else
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4899 else
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4902 do
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 test -n "$DUMPBIN" && break
4941 done
4942 fi
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4946 do
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984 test -n "$ac_ct_DUMPBIN" && break
4985 done
4986
4987 if test "x$ac_ct_DUMPBIN" = x; then
4988 DUMPBIN=":"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 DUMPBIN=$ac_ct_DUMPBIN
4997 fi
4998 fi
4999
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001 *COFF*)
5002 DUMPBIN="$DUMPBIN -symbols"
5003 ;;
5004 *)
5005 DUMPBIN=:
5006 ;;
5007 esac
5008 fi
5009
5010 if test "$DUMPBIN" != ":"; then
5011 NM="$DUMPBIN"
5012 fi
5013 fi
5014 test -z "$NM" && NM=nm
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if test "${lt_cv_nm_interface+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5038 fi
5039 rm -f conftest*
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5053 fi
5054
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 i=0
5062 teststring="ABCD"
5063
5064 case $build_os in
5065 msdosdjgpp*)
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5071 ;;
5072
5073 gnu*)
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5078 ;;
5079
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5089 ;;
5090
5091 mint*)
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5094 ;;
5095
5096 amigaos*)
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5100 ;;
5101
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108 else
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5110 fi
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114 ;;
5115
5116 interix*)
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5119 ;;
5120
5121 osf*)
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5127 #
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131 esac
5132 fi
5133 ;;
5134 sco3.2v5*)
5135 lt_cv_sys_max_cmd_len=102400
5136 ;;
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5141 else
5142 lt_cv_sys_max_cmd_len=32768
5143 fi
5144 ;;
5145 *)
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len"; then
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150 else
5151 # Make teststring a little bigger before we do anything with it.
5152 # a 1K string should be a reasonable start.
5153 for i in 1 2 3 4 5 6 7 8 ; do
5154 teststring=$teststring$teststring
5155 done
5156 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157 # If test is not a shell built-in, we'll probably end up computing a
5158 # maximum length that is only half of the actual maximum length, but
5159 # we can't tell.
5160 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162 test $i != 17 # 1/2 MB should be enough
5163 do
5164 i=`expr $i + 1`
5165 teststring=$teststring$teststring
5166 done
5167 # Only check the string length outside the loop.
5168 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169 teststring=
5170 # Add a significant safety factor because C++ compilers can tack on
5171 # massive amounts of additional arguments before passing them to the
5172 # linker. It appears as though 1/2 is a usable value.
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5174 fi
5175 ;;
5176 esac
5177
5178 fi
5179
5180 if test -n $lt_cv_sys_max_cmd_len ; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185 $as_echo "none" >&6; }
5186 fi
5187 max_cmd_len=$lt_cv_sys_max_cmd_len
5188
5189
5190
5191
5192
5193
5194 : ${CP="cp -f"}
5195 : ${MV="mv -f"}
5196 : ${RM="rm -f"}
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200 # Try some XSI features
5201 xsi_shell=no
5202 ( _lt_dummy="a/b/c"
5203 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204 = c,a/b,, \
5205 && eval 'test $(( 1 + 1 )) -eq 2 \
5206 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207 && xsi_shell=yes
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209 $as_echo "$xsi_shell" >&6; }
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214 lt_shell_append=no
5215 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216 >/dev/null 2>&1 \
5217 && lt_shell_append=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219 $as_echo "$lt_shell_append" >&6; }
5220
5221
5222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 lt_unset=unset
5224 else
5225 lt_unset=false
5226 fi
5227
5228
5229
5230
5231
5232 # test EBCDIC or ASCII
5233 case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236 lt_SP2NL='tr \040 \012'
5237 lt_NL2SP='tr \015\012 \040\040'
5238 ;;
5239 *) # EBCDIC based system
5240 lt_SP2NL='tr \100 \n'
5241 lt_NL2SP='tr \r\n \100\100'
5242 ;;
5243 esac
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5255 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_ld_reload_flag='-r'
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5262 reload_flag=$lt_cv_ld_reload_flag
5263 case $reload_flag in
5264 "" | " "*) ;;
5265 *) reload_flag=" $reload_flag" ;;
5266 esac
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 case $host_os in
5269 darwin*)
5270 if test "$GCC" = yes; then
5271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272 else
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 fi
5275 ;;
5276 esac
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 fi
5313 fi
5314 OBJDUMP=$ac_cv_prog_OBJDUMP
5315 if test -n "$OBJDUMP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317 $as_echo "$OBJDUMP" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 fi
5325 if test -z "$ac_cv_prog_OBJDUMP"; then
5326 ac_ct_OBJDUMP=$OBJDUMP
5327 # Extract the first word of "objdump", so it can be a program name with args.
5328 set dummy objdump; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_OBJDUMP"; then
5335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357 $as_echo "$ac_ct_OBJDUMP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363 if test "x$ac_ct_OBJDUMP" = x; then
5364 OBJDUMP="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 OBJDUMP=$ac_ct_OBJDUMP
5373 fi
5374 else
5375 OBJDUMP="$ac_cv_prog_OBJDUMP"
5376 fi
5377
5378 test -z "$OBJDUMP" && OBJDUMP=objdump
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 lt_cv_file_magic_cmd='$MAGIC_CMD'
5394 lt_cv_file_magic_test_file=
5395 lt_cv_deplibs_check_method='unknown'
5396 # Need to set the preceding variable on all platforms that support
5397 # interlibrary dependencies.
5398 # 'none' -- dependencies not supported.
5399 # `unknown' -- same as none, but documents that we really don't know.
5400 # 'pass_all' -- all dependencies passed with no checks.
5401 # 'test_compile' -- check by making test program.
5402 # 'file_magic [[regex]]' -- check by looking for files in library path
5403 # which responds to the $file_magic_cmd with a given extended regex.
5404 # If you have `file' or equivalent on your system and you're not sure
5405 # whether `pass_all' will *always* work, you probably want this one.
5406
5407 case $host_os in
5408 aix[4-9]*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 beos*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 bsdi[45]*)
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418 lt_cv_file_magic_cmd='/usr/bin/file -L'
5419 lt_cv_file_magic_test_file=/shlib/libc.so
5420 ;;
5421
5422 cygwin*)
5423 # func_win32_libid is a shell function defined in ltmain.sh
5424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425 lt_cv_file_magic_cmd='func_win32_libid'
5426 ;;
5427
5428 mingw* | pw32*)
5429 # Base MSYS/MinGW do not provide the 'file' command needed by
5430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431 # unless we find 'file', for example because we are cross-compiling.
5432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435 lt_cv_file_magic_cmd='func_win32_libid'
5436 else
5437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5439 fi
5440 ;;
5441
5442 cegcc*)
5443 # use the weaker test based on 'objdump'. See mingw*.
5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 ;;
5447
5448 darwin* | rhapsody*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452 freebsd* | dragonfly*)
5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454 case $host_cpu in
5455 i*86 )
5456 # Not sure whether the presence of OpenBSD here was a mistake.
5457 # Let's accept both of them until this is cleared up.
5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5461 ;;
5462 esac
5463 else
5464 lt_cv_deplibs_check_method=pass_all
5465 fi
5466 ;;
5467
5468 gnu*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472 haiku*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476 hpux10.20* | hpux11*)
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 case $host_cpu in
5479 ia64*)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5482 ;;
5483 hppa*64*)
5484 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]'
5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5486 ;;
5487 *)
5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5490 ;;
5491 esac
5492 ;;
5493
5494 interix[3-9]*)
5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5497 ;;
5498
5499 irix5* | irix6* | nonstopux*)
5500 case $LD in
5501 *-32|*"-32 ") libmagic=32-bit;;
5502 *-n32|*"-n32 ") libmagic=N32;;
5503 *-64|*"-64 ") libmagic=64-bit;;
5504 *) libmagic=never-match;;
5505 esac
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509 # This must be Linux ELF.
5510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511 lt_cv_deplibs_check_method=pass_all
5512 ;;
5513
5514 netbsd*)
5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517 else
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5519 fi
5520 ;;
5521
5522 newos6*)
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526 ;;
5527
5528 *nto* | *qnx*)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531
5532 openbsd*)
5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535 else
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5537 fi
5538 ;;
5539
5540 osf3* | osf4* | osf5*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544 rdos*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 solaris*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
5556 sysv4 | sysv4.3*)
5557 case $host_vendor in
5558 motorola)
5559 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]'
5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5561 ;;
5562 ncr)
5563 lt_cv_deplibs_check_method=pass_all
5564 ;;
5565 sequent)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5568 ;;
5569 sni)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572 lt_cv_file_magic_test_file=/lib/libc.so
5573 ;;
5574 siemens)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577 pc)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580 esac
5581 ;;
5582
5583 tpf*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586 esac
5587
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}ar; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_AR+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$AR"; then
5615 ac_cv_prog_AR="$AR" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_AR="${ac_tool_prefix}ar"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 AR=$ac_cv_prog_AR
5635 if test -n "$AR"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637 $as_echo "$AR" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 fi
5645 if test -z "$ac_cv_prog_AR"; then
5646 ac_ct_AR=$AR
5647 # Extract the first word of "ar", so it can be a program name with args.
5648 set dummy ar; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_AR"; then
5655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_AR="ar"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675 if test -n "$ac_ct_AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677 $as_echo "$ac_ct_AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683 if test "x$ac_ct_AR" = x; then
5684 AR="false"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 AR=$ac_ct_AR
5693 fi
5694 else
5695 AR="$ac_cv_prog_AR"
5696 fi
5697
5698 test -z "$AR" && AR=ar
5699 test -z "$AR_FLAGS" && AR_FLAGS=cru
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if test "${ac_cv_prog_STRIP+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 fi
5747
5748
5749 fi
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5798 fi
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5801 fi
5802
5803 test -z "$STRIP" && STRIP=:
5804
5805
5806
5807
5808
5809
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5897 fi
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5900 fi
5901
5902 test -z "$RANLIB" && RANLIB=:
5903
5904
5905
5906
5907
5908
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5913
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5918 ;;
5919 *)
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5921 ;;
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5924 fi
5925
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5929 *)
5930 lock_old_archive_extraction=no ;;
5931 esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5973
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5976
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5979
5980
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5990
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5993
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6001 ;;
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6004 ;;
6005 hpux*)
6006 if test "$host_cpu" = ia64; then
6007 symcode='[ABCDEGRST]'
6008 fi
6009 ;;
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6012 ;;
6013 osf*)
6014 symcode='[BCDEGQRST]'
6015 ;;
6016 solaris*)
6017 symcode='[BDRT]'
6018 ;;
6019 sco3.2v5*)
6020 symcode='[DT]'
6021 ;;
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6024 ;;
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6027 ;;
6028 sysv4)
6029 symcode='[DFNSTU]'
6030 ;;
6031 esac
6032
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6038
6039 # Transform an extracted symbol line into a proper C declaration.
6040 # Some systems (esp. on ia64) link data and code symbols differently,
6041 # so use this general approach.
6042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6043
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6046 lt_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'"
6047
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6053 ;;
6054 esac
6055
6056 # Try without a prefix underscore, then with it.
6057 for ac_symprfx in "" "_"; do
6058
6059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060 symxfrm="\\1 $ac_symprfx\\2 \\2"
6061
6062 # Write the raw and C identifiers.
6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064 # Fake it for dumpbin and say T for any non-static function
6065 # and D for any global variable.
6066 # Also find C++ and __fastcall symbols from MSVC++,
6067 # which start with @ or ?.
6068 lt_cv_sys_global_symbol_pipe="$AWK '"\
6069 " {last_section=section; section=\$ 3};"\
6070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071 " \$ 0!~/External *\|/{next};"\
6072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073 " {if(hide[section]) next};"\
6074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078 " ' prfx=^$ac_symprfx"
6079 else
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6081 fi
6082
6083 # Check to see that the pipe works correctly.
6084 pipe_works=no
6085
6086 rm -f conftest*
6087 cat > conftest.$ac_ext <<_LT_EOF
6088 #ifdef __cplusplus
6089 extern "C" {
6090 #endif
6091 char nm_test_var;
6092 void nm_test_func(void);
6093 void nm_test_func(void){}
6094 #ifdef __cplusplus
6095 }
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 _LT_EOF
6099
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6117 fi
6118
6119 # Make sure that we snagged all the symbols we need.
6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<_LT_EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6126
6127 _LT_EOF
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6130
6131 cat <<_LT_EOF >> conftest.$ac_ext
6132
6133 /* The mapping between symbol names and symbols. */
6134 const struct {
6135 const char *name;
6136 void *address;
6137 }
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6139 {
6140 { "@PROGRAM@", (void *) 0 },
6141 _LT_EOF
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6144 {0, (void *) 0}
6145 };
6146
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6151 }
6152 #endif
6153
6154 #ifdef __cplusplus
6155 }
6156 #endif
6157 _LT_EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6170 fi
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6175 fi
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6178 fi
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181 fi
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 fi
6186 rm -rf conftest* conftst*
6187
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6193 fi
6194 done
6195
6196 fi
6197
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6200 fi
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6207 fi
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 # Check whether --enable-libtool-lock was given.
6231 if test "${enable_libtool_lock+set}" = set; then :
6232 enableval=$enable_libtool_lock;
6233 fi
6234
6235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6236
6237 # Some flags need to be propagated to the compiler or linker for good
6238 # libtool support.
6239 case $host in
6240 ia64-*-hpux*)
6241 # Find out which ABI we are using.
6242 echo 'int i;' > conftest.$ac_ext
6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }; then
6248 case `/usr/bin/file conftest.$ac_objext` in
6249 *ELF-32*)
6250 HPUX_IA64_MODE="32"
6251 ;;
6252 *ELF-64*)
6253 HPUX_IA64_MODE="64"
6254 ;;
6255 esac
6256 fi
6257 rm -rf conftest*
6258 ;;
6259 *-*-irix6*)
6260 # Find out which ABI we are using.
6261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263 (eval $ac_compile) 2>&5
6264 ac_status=$?
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; }; then
6267 if test "$lt_cv_prog_gnu_ld" = yes; then
6268 case `/usr/bin/file conftest.$ac_objext` in
6269 *32-bit*)
6270 LD="${LD-ld} -melf32bsmip"
6271 ;;
6272 *N32*)
6273 LD="${LD-ld} -melf32bmipn32"
6274 ;;
6275 *64-bit*)
6276 LD="${LD-ld} -melf64bmip"
6277 ;;
6278 esac
6279 else
6280 case `/usr/bin/file conftest.$ac_objext` in
6281 *32-bit*)
6282 LD="${LD-ld} -32"
6283 ;;
6284 *N32*)
6285 LD="${LD-ld} -n32"
6286 ;;
6287 *64-bit*)
6288 LD="${LD-ld} -64"
6289 ;;
6290 esac
6291 fi
6292 fi
6293 rm -rf conftest*
6294 ;;
6295
6296 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6297 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6298 # Find out which ABI we are using.
6299 echo 'int i;' > conftest.$ac_ext
6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6301 (eval $ac_compile) 2>&5
6302 ac_status=$?
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }; then
6305 case `/usr/bin/file conftest.o` in
6306 *32-bit*)
6307 case $host in
6308 x86_64-*kfreebsd*-gnu)
6309 LD="${LD-ld} -m elf_i386_fbsd"
6310 ;;
6311 x86_64-*linux*)
6312 case `/usr/bin/file conftest.o` in
6313 *x86-64*)
6314 LD="${LD-ld} -m elf32_x86_64"
6315 ;;
6316 *)
6317 LD="${LD-ld} -m elf_i386"
6318 ;;
6319 esac
6320 ;;
6321 powerpc64le-*linux*)
6322 LD="${LD-ld} -m elf32lppclinux"
6323 ;;
6324 powerpc64-*linux*)
6325 LD="${LD-ld} -m elf32ppclinux"
6326 ;;
6327 s390x-*linux*)
6328 LD="${LD-ld} -m elf_s390"
6329 ;;
6330 sparc64-*linux*)
6331 LD="${LD-ld} -m elf32_sparc"
6332 ;;
6333 esac
6334 ;;
6335 *64-bit*)
6336 case $host in
6337 x86_64-*kfreebsd*-gnu)
6338 LD="${LD-ld} -m elf_x86_64_fbsd"
6339 ;;
6340 x86_64-*linux*)
6341 LD="${LD-ld} -m elf_x86_64"
6342 ;;
6343 powerpcle-*linux*)
6344 LD="${LD-ld} -m elf64lppc"
6345 ;;
6346 powerpc-*linux*)
6347 LD="${LD-ld} -m elf64ppc"
6348 ;;
6349 s390*-*linux*|s390*-*tpf*)
6350 LD="${LD-ld} -m elf64_s390"
6351 ;;
6352 sparc*-*linux*)
6353 LD="${LD-ld} -m elf64_sparc"
6354 ;;
6355 esac
6356 ;;
6357 esac
6358 fi
6359 rm -rf conftest*
6360 ;;
6361
6362 *-*-sco3.2v5*)
6363 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6364 SAVE_CFLAGS="$CFLAGS"
6365 CFLAGS="$CFLAGS -belf"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6367 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6368 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377 if test x$gcc_no_link = xyes; then
6378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6379 fi
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382
6383 int
6384 main ()
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 lt_cv_cc_needs_belf=yes
6393 else
6394 lt_cv_cc_needs_belf=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6406 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6407 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6408 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6409 CFLAGS="$SAVE_CFLAGS"
6410 fi
6411 ;;
6412 sparc*-*solaris*)
6413 # Find out which ABI we are using.
6414 echo 'int i;' > conftest.$ac_ext
6415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; }; then
6420 case `/usr/bin/file conftest.o` in
6421 *64-bit*)
6422 case $lt_cv_prog_gnu_ld in
6423 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6424 *)
6425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6426 LD="${LD-ld} -64"
6427 fi
6428 ;;
6429 esac
6430 ;;
6431 esac
6432 fi
6433 rm -rf conftest*
6434 ;;
6435 esac
6436
6437 need_locks="$enable_libtool_lock"
6438
6439
6440 case $host_os in
6441 rhapsody* | darwin*)
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$DSYMUTIL"; then
6451 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6471 if test -n "$DSYMUTIL"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6473 $as_echo "$DSYMUTIL" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_DSYMUTIL"; then
6482 ac_ct_DSYMUTIL=$DSYMUTIL
6483 # Extract the first word of "dsymutil", so it can be a program name with args.
6484 set dummy dsymutil; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_DSYMUTIL"; then
6491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6511 if test -n "$ac_ct_DSYMUTIL"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6513 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_DSYMUTIL" = x; then
6520 DSYMUTIL=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 DSYMUTIL=$ac_ct_DSYMUTIL
6529 fi
6530 else
6531 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532 fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$NMEDIT"; then
6543 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 NMEDIT=$ac_cv_prog_NMEDIT
6563 if test -n "$NMEDIT"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6565 $as_echo "$NMEDIT" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_NMEDIT"; then
6574 ac_ct_NMEDIT=$NMEDIT
6575 # Extract the first word of "nmedit", so it can be a program name with args.
6576 set dummy nmedit; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_NMEDIT"; then
6583 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6603 if test -n "$ac_ct_NMEDIT"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6605 $as_echo "$ac_ct_NMEDIT" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_NMEDIT" = x; then
6612 NMEDIT=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 NMEDIT=$ac_ct_NMEDIT
6621 fi
6622 else
6623 NMEDIT="$ac_cv_prog_NMEDIT"
6624 fi
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_LIPO+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$LIPO"; then
6635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 LIPO=$ac_cv_prog_LIPO
6655 if test -n "$LIPO"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6657 $as_echo "$LIPO" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_LIPO"; then
6666 ac_ct_LIPO=$LIPO
6667 # Extract the first word of "lipo", so it can be a program name with args.
6668 set dummy lipo; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_LIPO"; then
6675 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_LIPO="lipo"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6695 if test -n "$ac_ct_LIPO"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6697 $as_echo "$ac_ct_LIPO" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_LIPO" = x; then
6704 LIPO=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 LIPO=$ac_ct_LIPO
6713 fi
6714 else
6715 LIPO="$ac_cv_prog_LIPO"
6716 fi
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}otool; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$OTOOL"; then
6727 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 OTOOL=$ac_cv_prog_OTOOL
6747 if test -n "$OTOOL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6749 $as_echo "$OTOOL" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_OTOOL"; then
6758 ac_ct_OTOOL=$OTOOL
6759 # Extract the first word of "otool", so it can be a program name with args.
6760 set dummy otool; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_OTOOL"; then
6767 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_OTOOL="otool"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6787 if test -n "$ac_ct_OTOOL"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6789 $as_echo "$ac_ct_OTOOL" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794
6795 if test "x$ac_ct_OTOOL" = x; then
6796 OTOOL=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 OTOOL=$ac_ct_OTOOL
6805 fi
6806 else
6807 OTOOL="$ac_cv_prog_OTOOL"
6808 fi
6809
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$OTOOL64"; then
6819 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 OTOOL64=$ac_cv_prog_OTOOL64
6839 if test -n "$OTOOL64"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6841 $as_echo "$OTOOL64" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_OTOOL64"; then
6850 ac_ct_OTOOL64=$OTOOL64
6851 # Extract the first word of "otool64", so it can be a program name with args.
6852 set dummy otool64; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_OTOOL64"; then
6859 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_ac_ct_OTOOL64="otool64"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6879 if test -n "$ac_ct_OTOOL64"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6881 $as_echo "$ac_ct_OTOOL64" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_OTOOL64" = x; then
6888 OTOOL64=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 OTOOL64=$ac_ct_OTOOL64
6897 fi
6898 else
6899 OTOOL64="$ac_cv_prog_OTOOL64"
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6929 $as_echo_n "checking for -single_module linker flag... " >&6; }
6930 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 lt_cv_apple_cc_single_mod=no
6934 if test -z "${LT_MULTI_MODULE}"; then
6935 # By default we will add the -single_module flag. You can override
6936 # by either setting the environment variable LT_MULTI_MODULE
6937 # non-empty at configure time, or by adding -multi_module to the
6938 # link flags.
6939 rm -rf libconftest.dylib*
6940 echo "int foo(void){return 1;}" > conftest.c
6941 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c" >&5
6943 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6945 _lt_result=$?
6946 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6947 lt_cv_apple_cc_single_mod=yes
6948 else
6949 cat conftest.err >&5
6950 fi
6951 rm -rf libconftest.dylib*
6952 rm -f conftest.*
6953 fi
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6956 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6958 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6959 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 lt_cv_ld_exported_symbols_list=no
6963 save_LDFLAGS=$LDFLAGS
6964 echo "_main" > conftest.sym
6965 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6966 if test x$gcc_no_link = xyes; then
6967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6968 fi
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971
6972 int
6973 main ()
6974 {
6975
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981 lt_cv_ld_exported_symbols_list=yes
6982 else
6983 lt_cv_ld_exported_symbols_list=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LDFLAGS="$save_LDFLAGS"
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6991 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993 $as_echo_n "checking for -force_load linker flag... " >&6; }
6994 if test "${lt_cv_ld_force_load+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 lt_cv_ld_force_load=no
6998 cat > conftest.c << _LT_EOF
6999 int forced_loaded() { return 2;}
7000 _LT_EOF
7001 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003 echo "$AR cru libconftest.a conftest.o" >&5
7004 $AR cru libconftest.a conftest.o 2>&5
7005 cat > conftest.c << _LT_EOF
7006 int main() { return 0;}
7007 _LT_EOF
7008 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7009 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7010 _lt_result=$?
7011 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7012 lt_cv_ld_force_load=yes
7013 else
7014 cat conftest.err >&5
7015 fi
7016 rm -f conftest.err libconftest.a conftest conftest.c
7017 rm -rf conftest.dSYM
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7021 $as_echo "$lt_cv_ld_force_load" >&6; }
7022 case $host_os in
7023 rhapsody* | darwin1.[012])
7024 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7025 darwin1.*)
7026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7027 darwin*) # darwin 5.x on
7028 # if running on 10.5 or later, the deployment target defaults
7029 # to the OS version, if on x86, and 10.4, the deployment
7030 # target defaults to 10.4. Don't you love it?
7031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7032 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 10.[012][,.]*)
7035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7036 10.*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 esac
7039 ;;
7040 esac
7041 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7042 _lt_dar_single_mod='$single_module'
7043 fi
7044 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7045 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7046 else
7047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7048 fi
7049 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7050 _lt_dsymutil='~$DSYMUTIL $lib || :'
7051 else
7052 _lt_dsymutil=
7053 fi
7054 ;;
7055 esac
7056
7057 for ac_header in dlfcn.h
7058 do :
7059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7060 "
7061 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DLFCN_H 1
7064 _ACEOF
7065
7066 fi
7067
7068 done
7069
7070
7071
7072
7073
7074 # Set options
7075
7076
7077
7078 enable_dlopen=no
7079
7080
7081 enable_win32_dll=no
7082
7083
7084 # Check whether --enable-shared was given.
7085 if test "${enable_shared+set}" = set; then :
7086 enableval=$enable_shared; p=${PACKAGE-default}
7087 case $enableval in
7088 yes) enable_shared=yes ;;
7089 no) enable_shared=no ;;
7090 *)
7091 enable_shared=no
7092 # Look at the argument we got. We use all the common list separators.
7093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7094 for pkg in $enableval; do
7095 IFS="$lt_save_ifs"
7096 if test "X$pkg" = "X$p"; then
7097 enable_shared=yes
7098 fi
7099 done
7100 IFS="$lt_save_ifs"
7101 ;;
7102 esac
7103 else
7104 enable_shared=yes
7105 fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 # Check whether --enable-static was given.
7116 if test "${enable_static+set}" = set; then :
7117 enableval=$enable_static; p=${PACKAGE-default}
7118 case $enableval in
7119 yes) enable_static=yes ;;
7120 no) enable_static=no ;;
7121 *)
7122 enable_static=no
7123 # Look at the argument we got. We use all the common list separators.
7124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7125 for pkg in $enableval; do
7126 IFS="$lt_save_ifs"
7127 if test "X$pkg" = "X$p"; then
7128 enable_static=yes
7129 fi
7130 done
7131 IFS="$lt_save_ifs"
7132 ;;
7133 esac
7134 else
7135 enable_static=yes
7136 fi
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147 # Check whether --with-pic was given.
7148 if test "${with_pic+set}" = set; then :
7149 withval=$with_pic; pic_mode="$withval"
7150 else
7151 pic_mode=default
7152 fi
7153
7154
7155 test -z "$pic_mode" && pic_mode=default
7156
7157
7158
7159
7160
7161
7162
7163 # Check whether --enable-fast-install was given.
7164 if test "${enable_fast_install+set}" = set; then :
7165 enableval=$enable_fast_install; p=${PACKAGE-default}
7166 case $enableval in
7167 yes) enable_fast_install=yes ;;
7168 no) enable_fast_install=no ;;
7169 *)
7170 enable_fast_install=no
7171 # Look at the argument we got. We use all the common list separators.
7172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7173 for pkg in $enableval; do
7174 IFS="$lt_save_ifs"
7175 if test "X$pkg" = "X$p"; then
7176 enable_fast_install=yes
7177 fi
7178 done
7179 IFS="$lt_save_ifs"
7180 ;;
7181 esac
7182 else
7183 enable_fast_install=yes
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 # This can be used to rebuild libtool when needed
7197 LIBTOOL_DEPS="$ltmain"
7198
7199 # Always use our own libtool.
7200 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 test -z "$LN_S" && LN_S="ln -s"
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242 if test -n "${ZSH_VERSION+set}" ; then
7243 setopt NO_GLOB_SUBST
7244 fi
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7247 $as_echo_n "checking for objdir... " >&6; }
7248 if test "${lt_cv_objdir+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 rm -f .libs 2>/dev/null
7252 mkdir .libs 2>/dev/null
7253 if test -d .libs; then
7254 lt_cv_objdir=.libs
7255 else
7256 # MS-DOS does not allow filenames that begin with a dot.
7257 lt_cv_objdir=_libs
7258 fi
7259 rmdir .libs 2>/dev/null
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7262 $as_echo "$lt_cv_objdir" >&6; }
7263 objdir=$lt_cv_objdir
7264
7265
7266
7267
7268
7269 cat >>confdefs.h <<_ACEOF
7270 #define LT_OBJDIR "$lt_cv_objdir/"
7271 _ACEOF
7272
7273
7274
7275
7276 case $host_os in
7277 aix3*)
7278 # AIX sometimes has problems with the GCC collect2 program. For some
7279 # reason, if we set the COLLECT_NAMES environment variable, the problems
7280 # vanish in a puff of smoke.
7281 if test "X${COLLECT_NAMES+set}" != Xset; then
7282 COLLECT_NAMES=
7283 export COLLECT_NAMES
7284 fi
7285 ;;
7286 esac
7287
7288 # Global variables:
7289 ofile=libtool
7290 can_build_shared=yes
7291
7292 # All known linkers require a `.a' archive for static linking (except MSVC,
7293 # which needs '.lib').
7294 libext=a
7295
7296 with_gnu_ld="$lt_cv_prog_gnu_ld"
7297
7298 old_CC="$CC"
7299 old_CFLAGS="$CFLAGS"
7300
7301 # Set sane defaults for various variables
7302 test -z "$CC" && CC=cc
7303 test -z "$LTCC" && LTCC=$CC
7304 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7305 test -z "$LD" && LD=ld
7306 test -z "$ac_objext" && ac_objext=o
7307
7308 for cc_temp in $compiler""; do
7309 case $cc_temp in
7310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7312 \-*) ;;
7313 *) break;;
7314 esac
7315 done
7316 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7317
7318
7319 # Only perform the check for file, if the check method requires it
7320 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7321 case $deplibs_check_method in
7322 file_magic*)
7323 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7325 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 case $MAGIC_CMD in
7330 [\\/*] | ?:[\\/]*)
7331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 lt_save_MAGIC_CMD="$MAGIC_CMD"
7335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7337 for ac_dir in $ac_dummy; do
7338 IFS="$lt_save_ifs"
7339 test -z "$ac_dir" && ac_dir=.
7340 if test -f $ac_dir/${ac_tool_prefix}file; then
7341 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7342 if test -n "$file_magic_test_file"; then
7343 case $deplibs_check_method in
7344 "file_magic "*)
7345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7348 $EGREP "$file_magic_regex" > /dev/null; then
7349 :
7350 else
7351 cat <<_LT_EOF 1>&2
7352
7353 *** Warning: the command libtool uses to detect shared libraries,
7354 *** $file_magic_cmd, produces output that libtool cannot recognize.
7355 *** The result is that libtool may fail to recognize shared libraries
7356 *** as such. This will affect the creation of libtool libraries that
7357 *** depend on shared libraries, but programs linked with such libtool
7358 *** libraries will work regardless of this problem. Nevertheless, you
7359 *** may want to report the problem to your system manager and/or to
7360 *** bug-libtool@gnu.org
7361
7362 _LT_EOF
7363 fi ;;
7364 esac
7365 fi
7366 break
7367 fi
7368 done
7369 IFS="$lt_save_ifs"
7370 MAGIC_CMD="$lt_save_MAGIC_CMD"
7371 ;;
7372 esac
7373 fi
7374
7375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7376 if test -n "$MAGIC_CMD"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7378 $as_echo "$MAGIC_CMD" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385
7386
7387
7388 if test -z "$lt_cv_path_MAGIC_CMD"; then
7389 if test -n "$ac_tool_prefix"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7391 $as_echo_n "checking for file... " >&6; }
7392 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 case $MAGIC_CMD in
7396 [\\/*] | ?:[\\/]*)
7397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 lt_save_MAGIC_CMD="$MAGIC_CMD"
7401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7403 for ac_dir in $ac_dummy; do
7404 IFS="$lt_save_ifs"
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f $ac_dir/file; then
7407 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7408 if test -n "$file_magic_test_file"; then
7409 case $deplibs_check_method in
7410 "file_magic "*)
7411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7414 $EGREP "$file_magic_regex" > /dev/null; then
7415 :
7416 else
7417 cat <<_LT_EOF 1>&2
7418
7419 *** Warning: the command libtool uses to detect shared libraries,
7420 *** $file_magic_cmd, produces output that libtool cannot recognize.
7421 *** The result is that libtool may fail to recognize shared libraries
7422 *** as such. This will affect the creation of libtool libraries that
7423 *** depend on shared libraries, but programs linked with such libtool
7424 *** libraries will work regardless of this problem. Nevertheless, you
7425 *** may want to report the problem to your system manager and/or to
7426 *** bug-libtool@gnu.org
7427
7428 _LT_EOF
7429 fi ;;
7430 esac
7431 fi
7432 break
7433 fi
7434 done
7435 IFS="$lt_save_ifs"
7436 MAGIC_CMD="$lt_save_MAGIC_CMD"
7437 ;;
7438 esac
7439 fi
7440
7441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442 if test -n "$MAGIC_CMD"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7444 $as_echo "$MAGIC_CMD" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450
7451 else
7452 MAGIC_CMD=:
7453 fi
7454 fi
7455
7456 fi
7457 ;;
7458 esac
7459
7460 # Use C for the default configuration in the libtool script
7461
7462 lt_save_CC="$CC"
7463 ac_ext=c
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
7470 # Source file extension for C test sources.
7471 ac_ext=c
7472
7473 # Object file extension for compiled C test sources.
7474 objext=o
7475 objext=$objext
7476
7477 # Code to be used in simple compile tests
7478 lt_simple_compile_test_code="int some_variable = 0;"
7479
7480 # Code to be used in simple link tests
7481 lt_simple_link_test_code='int main(){return(0);}'
7482
7483
7484
7485
7486
7487
7488
7489 # If no C compiler was specified, use CC.
7490 LTCC=${LTCC-"$CC"}
7491
7492 # If no C compiler flags were specified, use CFLAGS.
7493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7494
7495 # Allow CC to be a program name with arguments.
7496 compiler=$CC
7497
7498 # Save the default compiler, since it gets overwritten when the other
7499 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7500 compiler_DEFAULT=$CC
7501
7502 # save warnings/boilerplate of simple test code
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7506 _lt_compiler_boilerplate=`cat conftest.err`
7507 $RM conftest*
7508
7509 ac_outfile=conftest.$ac_objext
7510 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7512 _lt_linker_boilerplate=`cat conftest.err`
7513 $RM -r conftest*
7514
7515
7516 ## CAVEAT EMPTOR:
7517 ## There is no encapsulation within the following macros, do not change
7518 ## the running order or otherwise move them around unless you know exactly
7519 ## what you are doing...
7520 if test -n "$compiler"; then
7521
7522 lt_prog_compiler_no_builtin_flag=
7523
7524 if test "$GCC" = yes; then
7525 case $cc_basename in
7526 nvcc*)
7527 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7528 *)
7529 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7530 esac
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7533 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_prog_compiler_rtti_exceptions=no
7538 ac_outfile=conftest.$ac_objext
7539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7540 lt_compiler_flag="-fno-rtti -fno-exceptions"
7541 # Insert the option either (1) after the last *FLAGS variable, or
7542 # (2) before a word containing "conftest.", or (3) at the end.
7543 # Note that $ac_compile itself does not contain backslashes and begins
7544 # with a dollar sign (not a hyphen), so the echo should work correctly.
7545 # The option is referenced via a variable to avoid confusing sed.
7546 lt_compile=`echo "$ac_compile" | $SED \
7547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549 -e 's:$: $lt_compiler_flag:'`
7550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7551 (eval "$lt_compile" 2>conftest.err)
7552 ac_status=$?
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 if (exit $ac_status) && test -s "$ac_outfile"; then
7556 # The compiler can only warn and ignore the option if not recognized
7557 # So say no if there are warnings other than the usual output.
7558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7561 lt_cv_prog_compiler_rtti_exceptions=yes
7562 fi
7563 fi
7564 $RM conftest*
7565
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7568 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7569
7570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7572 else
7573 :
7574 fi
7575
7576 fi
7577
7578
7579
7580
7581
7582
7583 lt_prog_compiler_wl=
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_static=
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7588 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7589
7590 if test "$GCC" = yes; then
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_static='-static'
7593
7594 case $host_os in
7595 aix*)
7596 # All AIX code is PIC.
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 now supports IA64 processor
7599 lt_prog_compiler_static='-Bstatic'
7600 fi
7601 lt_prog_compiler_pic='-fPIC'
7602 ;;
7603
7604 amigaos*)
7605 case $host_cpu in
7606 powerpc)
7607 # see comment about AmigaOS4 .so support
7608 lt_prog_compiler_pic='-fPIC'
7609 ;;
7610 m68k)
7611 # FIXME: we need at least 68020 code to build shared libraries, but
7612 # adding the `-m68020' flag to GCC prevents building anything better,
7613 # like `-m68040'.
7614 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615 ;;
7616 esac
7617 ;;
7618
7619 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7620 # PIC is the default for these OSes.
7621 ;;
7622
7623 mingw* | cygwin* | pw32* | os2* | cegcc*)
7624 # This hack is so that the source file can tell whether it is being
7625 # built for inclusion in a dll (and should export symbols for example).
7626 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7627 # (--disable-auto-import) libraries
7628 lt_prog_compiler_pic='-DDLL_EXPORT'
7629 ;;
7630
7631 darwin* | rhapsody*)
7632 # PIC is the default on this platform
7633 # Common symbols not allowed in MH_DYLIB files
7634 lt_prog_compiler_pic='-fno-common'
7635 ;;
7636
7637 haiku*)
7638 # PIC is the default for Haiku.
7639 # The "-static" flag exists, but is broken.
7640 lt_prog_compiler_static=
7641 ;;
7642
7643 hpux*)
7644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7646 # sets the default TLS model and affects inlining.
7647 case $host_cpu in
7648 hppa*64*)
7649 # +Z the default
7650 ;;
7651 *)
7652 lt_prog_compiler_pic='-fPIC'
7653 ;;
7654 esac
7655 ;;
7656
7657 interix[3-9]*)
7658 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7659 # Instead, we relocate shared libraries at runtime.
7660 ;;
7661
7662 msdosdjgpp*)
7663 # Just because we use GCC doesn't mean we suddenly get shared libraries
7664 # on systems that don't support them.
7665 lt_prog_compiler_can_build_shared=no
7666 enable_shared=no
7667 ;;
7668
7669 *nto* | *qnx*)
7670 # QNX uses GNU C++, but need to define -shared option too, otherwise
7671 # it will coredump.
7672 lt_prog_compiler_pic='-fPIC -shared'
7673 ;;
7674
7675 sysv4*MP*)
7676 if test -d /usr/nec; then
7677 lt_prog_compiler_pic=-Kconform_pic
7678 fi
7679 ;;
7680
7681 *)
7682 lt_prog_compiler_pic='-fPIC'
7683 ;;
7684 esac
7685
7686 case $cc_basename in
7687 nvcc*) # Cuda Compiler Driver 2.2
7688 lt_prog_compiler_wl='-Xlinker '
7689 lt_prog_compiler_pic='-Xcompiler -fPIC'
7690 ;;
7691 esac
7692 else
7693 # PORTME Check for flag to pass linker flags through the system compiler.
7694 case $host_os in
7695 aix*)
7696 lt_prog_compiler_wl='-Wl,'
7697 if test "$host_cpu" = ia64; then
7698 # AIX 5 now supports IA64 processor
7699 lt_prog_compiler_static='-Bstatic'
7700 else
7701 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7702 fi
7703 ;;
7704
7705 mingw* | cygwin* | pw32* | os2* | cegcc*)
7706 # This hack is so that the source file can tell whether it is being
7707 # built for inclusion in a dll (and should export symbols for example).
7708 lt_prog_compiler_pic='-DDLL_EXPORT'
7709 ;;
7710
7711 hpux9* | hpux10* | hpux11*)
7712 lt_prog_compiler_wl='-Wl,'
7713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714 # not for PA HP-UX.
7715 case $host_cpu in
7716 hppa*64*|ia64*)
7717 # +Z the default
7718 ;;
7719 *)
7720 lt_prog_compiler_pic='+Z'
7721 ;;
7722 esac
7723 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7724 lt_prog_compiler_static='${wl}-a ${wl}archive'
7725 ;;
7726
7727 irix5* | irix6* | nonstopux*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # PIC (with -KPIC) is the default.
7730 lt_prog_compiler_static='-non_shared'
7731 ;;
7732
7733 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7734 case $cc_basename in
7735 # old Intel for x86_64 which still supported -KPIC.
7736 ecc*)
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-static'
7740 ;;
7741 # icc used to be incompatible with GCC.
7742 # ICC 10 doesn't accept -KPIC any more.
7743 icc* | ifort*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-fPIC'
7746 lt_prog_compiler_static='-static'
7747 ;;
7748 # Lahey Fortran 8.1.
7749 lf95*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='--shared'
7752 lt_prog_compiler_static='--static'
7753 ;;
7754 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7755 # Portland Group compilers (*not* the Pentium gcc compiler,
7756 # which looks to be a dead project)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-fpic'
7759 lt_prog_compiler_static='-Bstatic'
7760 ;;
7761 ccc*)
7762 lt_prog_compiler_wl='-Wl,'
7763 # All Alpha code is PIC.
7764 lt_prog_compiler_static='-non_shared'
7765 ;;
7766 xl* | bgxl* | bgf* | mpixl*)
7767 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-qpic'
7770 lt_prog_compiler_static='-qstaticlink'
7771 ;;
7772 *)
7773 case `$CC -V 2>&1 | sed 5q` in
7774 *Sun\ F* | *Sun*Fortran*)
7775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_wl=''
7779 ;;
7780 *Sun\ C*)
7781 # Sun C 5.9
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-Bstatic'
7784 lt_prog_compiler_wl='-Wl,'
7785 ;;
7786 esac
7787 ;;
7788 esac
7789 ;;
7790
7791 newsos6)
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7794 ;;
7795
7796 *nto* | *qnx*)
7797 # QNX uses GNU C++, but need to define -shared option too, otherwise
7798 # it will coredump.
7799 lt_prog_compiler_pic='-fPIC -shared'
7800 ;;
7801
7802 osf3* | osf4* | osf5*)
7803 lt_prog_compiler_wl='-Wl,'
7804 # All OSF/1 code is PIC.
7805 lt_prog_compiler_static='-non_shared'
7806 ;;
7807
7808 rdos*)
7809 lt_prog_compiler_static='-non_shared'
7810 ;;
7811
7812 solaris*)
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7815 case $cc_basename in
7816 f77* | f90* | f95*)
7817 lt_prog_compiler_wl='-Qoption ld ';;
7818 *)
7819 lt_prog_compiler_wl='-Wl,';;
7820 esac
7821 ;;
7822
7823 sunos4*)
7824 lt_prog_compiler_wl='-Qoption ld '
7825 lt_prog_compiler_pic='-PIC'
7826 lt_prog_compiler_static='-Bstatic'
7827 ;;
7828
7829 sysv4 | sysv4.2uw2* | sysv4.3*)
7830 lt_prog_compiler_wl='-Wl,'
7831 lt_prog_compiler_pic='-KPIC'
7832 lt_prog_compiler_static='-Bstatic'
7833 ;;
7834
7835 sysv4*MP*)
7836 if test -d /usr/nec ;then
7837 lt_prog_compiler_pic='-Kconform_pic'
7838 lt_prog_compiler_static='-Bstatic'
7839 fi
7840 ;;
7841
7842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-Bstatic'
7846 ;;
7847
7848 unicos*)
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_can_build_shared=no
7851 ;;
7852
7853 uts4*)
7854 lt_prog_compiler_pic='-pic'
7855 lt_prog_compiler_static='-Bstatic'
7856 ;;
7857
7858 *)
7859 lt_prog_compiler_can_build_shared=no
7860 ;;
7861 esac
7862 fi
7863
7864 case $host_os in
7865 # For platforms which do not support PIC, -DPIC is meaningless:
7866 *djgpp*)
7867 lt_prog_compiler_pic=
7868 ;;
7869 *)
7870 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7871 ;;
7872 esac
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7874 $as_echo "$lt_prog_compiler_pic" >&6; }
7875
7876
7877
7878
7879
7880
7881 #
7882 # Check to make sure the PIC flag actually works.
7883 #
7884 if test -n "$lt_prog_compiler_pic"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7886 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7887 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 lt_cv_prog_compiler_pic_works=no
7891 ac_outfile=conftest.$ac_objext
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 # The option is referenced via a variable to avoid confusing sed.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
7903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>conftest.err)
7905 ac_status=$?
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 if (exit $ac_status) && test -s "$ac_outfile"; then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings other than the usual output.
7911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_pic_works=yes
7915 fi
7916 fi
7917 $RM conftest*
7918
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7921 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7922
7923 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7924 case $lt_prog_compiler_pic in
7925 "" | " "*) ;;
7926 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7927 esac
7928 else
7929 lt_prog_compiler_pic=
7930 lt_prog_compiler_can_build_shared=no
7931 fi
7932
7933 fi
7934
7935
7936
7937
7938
7939
7940 #
7941 # Check to make sure the static flag actually works.
7942 #
7943 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7945 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7946 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 lt_cv_prog_compiler_static_works=no
7950 save_LDFLAGS="$LDFLAGS"
7951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7954 # The linker can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 if test -s conftest.err; then
7957 # Append any errors to the config.log.
7958 cat conftest.err 1>&5
7959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961 if diff conftest.exp conftest.er2 >/dev/null; then
7962 lt_cv_prog_compiler_static_works=yes
7963 fi
7964 else
7965 lt_cv_prog_compiler_static_works=yes
7966 fi
7967 fi
7968 $RM -r conftest*
7969 LDFLAGS="$save_LDFLAGS"
7970
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7973 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7974
7975 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7976 :
7977 else
7978 lt_prog_compiler_static=
7979 fi
7980
7981
7982
7983
7984
7985
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7988 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 lt_cv_prog_compiler_c_o=no
7993 $RM -r conftest 2>/dev/null
7994 mkdir conftest
7995 cd conftest
7996 mkdir out
7997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998
7999 lt_compiler_flag="-o out/conftest2.$ac_objext"
8000 # Insert the option either (1) after the last *FLAGS variable, or
8001 # (2) before a word containing "conftest.", or (3) at the end.
8002 # Note that $ac_compile itself does not contain backslashes and begins
8003 # with a dollar sign (not a hyphen), so the echo should work correctly.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
8008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8009 (eval "$lt_compile" 2>out/conftest.err)
8010 ac_status=$?
8011 cat out/conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014 then
8015 # The compiler can only warn and ignore the option if not recognized
8016 # So say no if there are warnings
8017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020 lt_cv_prog_compiler_c_o=yes
8021 fi
8022 fi
8023 chmod u+w . 2>&5
8024 $RM conftest*
8025 # SGI C++ compiler will create directory out/ii_files/ for
8026 # template instantiation
8027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8028 $RM out/* && rmdir out
8029 cd ..
8030 $RM -r conftest
8031 $RM conftest*
8032
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8035 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8036
8037
8038
8039
8040
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8044 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 lt_cv_prog_compiler_c_o=no
8048 $RM -r conftest 2>/dev/null
8049 mkdir conftest
8050 cd conftest
8051 mkdir out
8052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053
8054 lt_compiler_flag="-o out/conftest2.$ac_objext"
8055 # Insert the option either (1) after the last *FLAGS variable, or
8056 # (2) before a word containing "conftest.", or (3) at the end.
8057 # Note that $ac_compile itself does not contain backslashes and begins
8058 # with a dollar sign (not a hyphen), so the echo should work correctly.
8059 lt_compile=`echo "$ac_compile" | $SED \
8060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8062 -e 's:$: $lt_compiler_flag:'`
8063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8064 (eval "$lt_compile" 2>out/conftest.err)
8065 ac_status=$?
8066 cat out/conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8069 then
8070 # The compiler can only warn and ignore the option if not recognized
8071 # So say no if there are warnings
8072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8075 lt_cv_prog_compiler_c_o=yes
8076 fi
8077 fi
8078 chmod u+w . 2>&5
8079 $RM conftest*
8080 # SGI C++ compiler will create directory out/ii_files/ for
8081 # template instantiation
8082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8083 $RM out/* && rmdir out
8084 cd ..
8085 $RM -r conftest
8086 $RM conftest*
8087
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8090 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8091
8092
8093
8094
8095 hard_links="nottested"
8096 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8097 # do not overwrite the value of need_locks provided by the user
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8099 $as_echo_n "checking if we can lock with hard links... " >&6; }
8100 hard_links=yes
8101 $RM conftest*
8102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8103 touch conftest.a
8104 ln conftest.a conftest.b 2>&5 || hard_links=no
8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8107 $as_echo "$hard_links" >&6; }
8108 if test "$hard_links" = no; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8110 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8111 need_locks=warn
8112 fi
8113 else
8114 need_locks=no
8115 fi
8116
8117
8118
8119
8120
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8123 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8124
8125 runpath_var=
8126 allow_undefined_flag=
8127 always_export_symbols=no
8128 archive_cmds=
8129 archive_expsym_cmds=
8130 compiler_needs_object=no
8131 enable_shared_with_static_runtimes=no
8132 export_dynamic_flag_spec=
8133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8134 hardcode_automatic=no
8135 hardcode_direct=no
8136 hardcode_direct_absolute=no
8137 hardcode_libdir_flag_spec=
8138 hardcode_libdir_flag_spec_ld=
8139 hardcode_libdir_separator=
8140 hardcode_minus_L=no
8141 hardcode_shlibpath_var=unsupported
8142 inherit_rpath=no
8143 link_all_deplibs=unknown
8144 module_cmds=
8145 module_expsym_cmds=
8146 old_archive_from_new_cmds=
8147 old_archive_from_expsyms_cmds=
8148 thread_safe_flag_spec=
8149 whole_archive_flag_spec=
8150 # include_expsyms should be a list of space-separated symbols to be *always*
8151 # included in the symbol list
8152 include_expsyms=
8153 # exclude_expsyms can be an extended regexp of symbols to exclude
8154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8156 # as well as any symbol that contains `d'.
8157 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8159 # platforms (ab)use it in PIC code, but their linkers get confused if
8160 # the symbol is explicitly referenced. Since portable code cannot
8161 # rely on this symbol name, it's probably fine to never include it in
8162 # preloaded symbol tables.
8163 # Exclude shared library initialization/finalization symbols.
8164 extract_expsyms_cmds=
8165
8166 case $host_os in
8167 cygwin* | mingw* | pw32* | cegcc*)
8168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8169 # When not using gcc, we currently assume that we are using
8170 # Microsoft Visual C++.
8171 if test "$GCC" != yes; then
8172 with_gnu_ld=no
8173 fi
8174 ;;
8175 interix*)
8176 # we just hope/assume this is gcc and not c89 (= MSVC++)
8177 with_gnu_ld=yes
8178 ;;
8179 openbsd*)
8180 with_gnu_ld=no
8181 ;;
8182 esac
8183
8184 ld_shlibs=yes
8185
8186 # On some targets, GNU ld is compatible enough with the native linker
8187 # that we're better off using the native interface for both.
8188 lt_use_gnu_ld_interface=no
8189 if test "$with_gnu_ld" = yes; then
8190 case $host_os in
8191 aix*)
8192 # The AIX port of GNU ld has always aspired to compatibility
8193 # with the native linker. However, as the warning in the GNU ld
8194 # block says, versions before 2.19.5* couldn't really create working
8195 # shared libraries, regardless of the interface used.
8196 case `$LD -v 2>&1` in
8197 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8198 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8199 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8200 *)
8201 lt_use_gnu_ld_interface=yes
8202 ;;
8203 esac
8204 ;;
8205 *)
8206 lt_use_gnu_ld_interface=yes
8207 ;;
8208 esac
8209 fi
8210
8211 if test "$lt_use_gnu_ld_interface" = yes; then
8212 # If archive_cmds runs LD, not CC, wlarc should be empty
8213 wlarc='${wl}'
8214
8215 # Set some defaults for GNU ld with shared library support. These
8216 # are reset later if shared libraries are not supported. Putting them
8217 # here allows them to be overridden if necessary.
8218 runpath_var=LD_RUN_PATH
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 export_dynamic_flag_spec='${wl}--export-dynamic'
8221 # ancient GNU ld didn't support --whole-archive et. al.
8222 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8223 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8224 else
8225 whole_archive_flag_spec=
8226 fi
8227 supports_anon_versioning=no
8228 case `$LD -v 2>&1` in
8229 *GNU\ gold*) supports_anon_versioning=yes ;;
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8236
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<_LT_EOF 1>&2
8244
8245 *** Warning: the GNU linker, at least up to release 2.19, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support. If you
8248 *** really care for shared libraries, you may want to install binutils
8249 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8250 *** You will then need to restart the configuration process.
8251
8252 _LT_EOF
8253 fi
8254 ;;
8255
8256 amigaos*)
8257 case $host_cpu in
8258 powerpc)
8259 # see comment about AmigaOS4 .so support
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 archive_expsym_cmds=''
8262 ;;
8263 m68k)
8264 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)'
8265 hardcode_libdir_flag_spec='-L$libdir'
8266 hardcode_minus_L=yes
8267 ;;
8268 esac
8269 ;;
8270
8271 beos*)
8272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8273 allow_undefined_flag=unsupported
8274 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8275 # support --undefined. This deserves some investigation. FIXME
8276 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 else
8278 ld_shlibs=no
8279 fi
8280 ;;
8281
8282 cygwin* | mingw* | pw32* | cegcc*)
8283 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8284 # as there is no search path for DLLs.
8285 hardcode_libdir_flag_spec='-L$libdir'
8286 export_dynamic_flag_spec='${wl}--export-all-symbols'
8287 allow_undefined_flag=unsupported
8288 always_export_symbols=no
8289 enable_shared_with_static_runtimes=yes
8290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8291
8292 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 # If the export-symbols file already is a .def file (1st line
8295 # is EXPORTS), use it as is; otherwise, prepend...
8296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297 cp $export_symbols $output_objdir/$soname.def;
8298 else
8299 echo EXPORTS > $output_objdir/$soname.def;
8300 cat $export_symbols >> $output_objdir/$soname.def;
8301 fi~
8302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8303 else
8304 ld_shlibs=no
8305 fi
8306 ;;
8307
8308 haiku*)
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 link_all_deplibs=yes
8311 ;;
8312
8313 interix[3-9]*)
8314 hardcode_direct=no
8315 hardcode_shlibpath_var=no
8316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317 export_dynamic_flag_spec='${wl}-E'
8318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8319 # Instead, shared libraries are loaded at an image base (0x10000000 by
8320 # default) and relocated if they conflict, which is a slow very memory
8321 # consuming and fragmenting process. To avoid this, we pick a random,
8322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8325 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'
8326 ;;
8327
8328 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8329 tmp_diet=no
8330 if test "$host_os" = linux-dietlibc; then
8331 case $cc_basename in
8332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8333 esac
8334 fi
8335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8336 && test "$tmp_diet" = no
8337 then
8338 tmp_addflag=' $pic_flag'
8339 tmp_sharedflag='-shared'
8340 case $cc_basename,$host_cpu in
8341 pgcc*) # Portland Group C compiler
8342 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'
8343 tmp_addflag=' $pic_flag'
8344 ;;
8345 pgf77* | pgf90* | pgf95* | pgfortran*)
8346 # Portland Group f77 and f90 compilers
8347 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'
8348 tmp_addflag=' $pic_flag -Mnomain' ;;
8349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8350 tmp_addflag=' -i_dynamic' ;;
8351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8352 tmp_addflag=' -i_dynamic -nofor_main' ;;
8353 ifc* | ifort*) # Intel Fortran compiler
8354 tmp_addflag=' -nofor_main' ;;
8355 lf95*) # Lahey Fortran 8.1
8356 whole_archive_flag_spec=
8357 tmp_sharedflag='--shared' ;;
8358 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8359 tmp_sharedflag='-qmkshrobj'
8360 tmp_addflag= ;;
8361 nvcc*) # Cuda Compiler Driver 2.2
8362 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'
8363 compiler_needs_object=yes
8364 ;;
8365 esac
8366 case `$CC -V 2>&1 | sed 5q` in
8367 *Sun\ C*) # Sun C 5.9
8368 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'
8369 compiler_needs_object=yes
8370 tmp_sharedflag='-G' ;;
8371 *Sun\ F*) # Sun Fortran 8.3
8372 tmp_sharedflag='-G' ;;
8373 esac
8374 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375
8376 if test "x$supports_anon_versioning" = xyes; then
8377 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8379 echo "local: *; };" >> $output_objdir/$libname.ver~
8380 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8381 fi
8382
8383 case $cc_basename in
8384 xlf* | bgf* | bgxlf* | mpixlf*)
8385 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8386 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8387 hardcode_libdir_flag_spec=
8388 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8389 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8390 if test "x$supports_anon_versioning" = xyes; then
8391 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8393 echo "local: *; };" >> $output_objdir/$libname.ver~
8394 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8395 fi
8396 ;;
8397 esac
8398 else
8399 ld_shlibs=no
8400 fi
8401 ;;
8402
8403 netbsd*)
8404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8406 wlarc=
8407 else
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 fi
8411 ;;
8412
8413 solaris*)
8414 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8415 ld_shlibs=no
8416 cat <<_LT_EOF 1>&2
8417
8418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8419 *** create shared libraries on Solaris systems. Therefore, libtool
8420 *** is disabling shared libraries support. We urge you to upgrade GNU
8421 *** binutils to release 2.9.1 or newer. Another option is to modify
8422 *** your PATH or compiler configuration so that the native linker is
8423 *** used, and then restart.
8424
8425 _LT_EOF
8426 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 else
8430 ld_shlibs=no
8431 fi
8432 ;;
8433
8434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8435 case `$LD -v 2>&1` in
8436 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8437 ld_shlibs=no
8438 cat <<_LT_EOF 1>&2
8439
8440 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8441 *** reliably create shared libraries on SCO systems. Therefore, libtool
8442 *** is disabling shared libraries support. We urge you to upgrade GNU
8443 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8444 *** your PATH or compiler configuration so that the native linker is
8445 *** used, and then restart.
8446
8447 _LT_EOF
8448 ;;
8449 *)
8450 # For security reasons, it is highly recommended that you always
8451 # use absolute paths for naming shared libraries, and exclude the
8452 # DT_RUNPATH tag from executables and libraries. But doing so
8453 # requires that you compile everything twice, which is a pain.
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8458 else
8459 ld_shlibs=no
8460 fi
8461 ;;
8462 esac
8463 ;;
8464
8465 sunos4*)
8466 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467 wlarc=
8468 hardcode_direct=yes
8469 hardcode_shlibpath_var=no
8470 ;;
8471
8472 *)
8473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8478 fi
8479 ;;
8480 esac
8481
8482 if test "$ld_shlibs" = no; then
8483 runpath_var=
8484 hardcode_libdir_flag_spec=
8485 export_dynamic_flag_spec=
8486 whole_archive_flag_spec=
8487 fi
8488 else
8489 # PORTME fill in a description of your system's linker (not GNU ld)
8490 case $host_os in
8491 aix3*)
8492 allow_undefined_flag=unsupported
8493 always_export_symbols=yes
8494 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'
8495 # Note: this linker hardcodes the directories in LIBPATH if there
8496 # are no directories specified by -L.
8497 hardcode_minus_L=yes
8498 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8499 # Neither direct hardcoding nor static linking is supported with a
8500 # broken collect2.
8501 hardcode_direct=unsupported
8502 fi
8503 ;;
8504
8505 aix[4-9]*)
8506 if test "$host_cpu" = ia64; then
8507 # On IA64, the linker does run time linking by default, so we don't
8508 # have to do anything special.
8509 aix_use_runtimelinking=no
8510 exp_sym_flag='-Bexport'
8511 no_entry_flag=""
8512 else
8513 # If we're using GNU nm, then we don't want the "-C" option.
8514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8515 # Also, AIX nm treats weak defined symbols like other global
8516 # defined symbols, whereas GNU nm marks them as "W".
8517 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8518 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'
8519 else
8520 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8521 fi
8522 aix_use_runtimelinking=no
8523
8524 # Test if we are trying to use run time linking or normal
8525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8526 # need to do runtime linking.
8527 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8528 for ld_flag in $LDFLAGS; do
8529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8530 aix_use_runtimelinking=yes
8531 break
8532 fi
8533 done
8534 ;;
8535 esac
8536
8537 exp_sym_flag='-bexport'
8538 no_entry_flag='-bnoentry'
8539 fi
8540
8541 # When large executables or shared objects are built, AIX ld can
8542 # have problems creating the table of contents. If linking a library
8543 # or program results in "error TOC overflow" add -mminimal-toc to
8544 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8545 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8546
8547 archive_cmds=''
8548 hardcode_direct=yes
8549 hardcode_direct_absolute=yes
8550 hardcode_libdir_separator=':'
8551 link_all_deplibs=yes
8552 file_list_spec='${wl}-f,'
8553
8554 if test "$GCC" = yes; then
8555 case $host_os in aix4.[012]|aix4.[012].*)
8556 # We only want to do this on AIX 4.2 and lower, the check
8557 # below for broken collect2 doesn't work under 4.3+
8558 collect2name=`${CC} -print-prog-name=collect2`
8559 if test -f "$collect2name" &&
8560 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8561 then
8562 # We have reworked collect2
8563 :
8564 else
8565 # We have old collect2
8566 hardcode_direct=unsupported
8567 # It fails to find uninstalled libraries when the uninstalled
8568 # path is not listed in the libpath. Setting hardcode_minus_L
8569 # to unsupported forces relinking
8570 hardcode_minus_L=yes
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_libdir_separator=
8573 fi
8574 ;;
8575 esac
8576 shared_flag='-shared'
8577 if test "$aix_use_runtimelinking" = yes; then
8578 shared_flag="$shared_flag "'${wl}-G'
8579 fi
8580 else
8581 # not using gcc
8582 if test "$host_cpu" = ia64; then
8583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8584 # chokes on -Wl,-G. The following line is correct:
8585 shared_flag='-G'
8586 else
8587 if test "$aix_use_runtimelinking" = yes; then
8588 shared_flag='${wl}-G'
8589 else
8590 shared_flag='${wl}-bM:SRE'
8591 fi
8592 fi
8593 fi
8594
8595 export_dynamic_flag_spec='${wl}-bexpall'
8596 # It seems that -bexpall does not export symbols beginning with
8597 # underscore (_), so it is better to generate a list of symbols to export.
8598 always_export_symbols=yes
8599 if test "$aix_use_runtimelinking" = yes; then
8600 # Warning - without using the other runtime loading flags (-brtl),
8601 # -berok will link without error, but may produce a broken library.
8602 allow_undefined_flag='-berok'
8603 # Determine the default libpath from the value encoded in an
8604 # empty executable.
8605 if test x$gcc_no_link = xyes; then
8606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8607 fi
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610
8611 int
8612 main ()
8613 {
8614
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8620
8621 lt_aix_libpath_sed='
8622 /Import File Strings/,/^$/ {
8623 /^0/ {
8624 s/^0 *\(.*\)$/\1/
8625 p
8626 }
8627 }'
8628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629 # Check for a 64-bit object if we didn't find anything.
8630 if test -z "$aix_libpath"; then
8631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8632 fi
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8637
8638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8639 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"
8640 else
8641 if test "$host_cpu" = ia64; then
8642 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8643 allow_undefined_flag="-z nodefs"
8644 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"
8645 else
8646 # Determine the default libpath from the value encoded in an
8647 # empty executable.
8648 if test x$gcc_no_link = xyes; then
8649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8650 fi
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653
8654 int
8655 main ()
8656 {
8657
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663
8664 lt_aix_libpath_sed='
8665 /Import File Strings/,/^$/ {
8666 /^0/ {
8667 s/^0 *\(.*\)$/\1/
8668 p
8669 }
8670 }'
8671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8672 # Check for a 64-bit object if we didn't find anything.
8673 if test -z "$aix_libpath"; then
8674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8675 fi
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8680
8681 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8682 # Warning - without using the other run time loading flags,
8683 # -berok will link without error, but may produce a broken library.
8684 no_undefined_flag=' ${wl}-bernotok'
8685 allow_undefined_flag=' ${wl}-berok'
8686 if test "$with_gnu_ld" = yes; then
8687 # We only use this code for GNU lds that support --whole-archive.
8688 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8689 else
8690 # Exported symbols can be pulled into shared objects from archives
8691 whole_archive_flag_spec='$convenience'
8692 fi
8693 archive_cmds_need_lc=yes
8694 # This is similar to how AIX traditionally builds its shared libraries.
8695 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'
8696 fi
8697 fi
8698 ;;
8699
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # see comment about AmigaOS4 .so support
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds=''
8706 ;;
8707 m68k)
8708 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)'
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_minus_L=yes
8711 ;;
8712 esac
8713 ;;
8714
8715 bsdi[45]*)
8716 export_dynamic_flag_spec=-rdynamic
8717 ;;
8718
8719 cygwin* | mingw* | pw32* | cegcc*)
8720 # When not using gcc, we currently assume that we are using
8721 # Microsoft Visual C++.
8722 # hardcode_libdir_flag_spec is actually meaningless, as there is
8723 # no search path for DLLs.
8724 hardcode_libdir_flag_spec=' '
8725 allow_undefined_flag=unsupported
8726 # Tell ltmain to make .lib files, not .a files.
8727 libext=lib
8728 # Tell ltmain to make .dll files, not .so files.
8729 shrext_cmds=".dll"
8730 # FIXME: Setting linknames here is a bad hack.
8731 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8732 # The linker will automatically build a .lib file if we build a DLL.
8733 old_archive_from_new_cmds='true'
8734 # FIXME: Should let the user specify the lib program.
8735 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8736 fix_srcfile_path='`cygpath -w "$srcfile"`'
8737 enable_shared_with_static_runtimes=yes
8738 ;;
8739
8740 darwin* | rhapsody*)
8741
8742
8743 archive_cmds_need_lc=no
8744 hardcode_direct=no
8745 hardcode_automatic=yes
8746 hardcode_shlibpath_var=unsupported
8747 if test "$lt_cv_ld_force_load" = "yes"; then
8748 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\"`'
8749 else
8750 whole_archive_flag_spec=''
8751 fi
8752 link_all_deplibs=yes
8753 allow_undefined_flag="$_lt_dar_allow_undefined"
8754 case $cc_basename in
8755 ifort*) _lt_dar_can_shared=yes ;;
8756 *) _lt_dar_can_shared=$GCC ;;
8757 esac
8758 if test "$_lt_dar_can_shared" = "yes"; then
8759 output_verbose_link_cmd=func_echo_all
8760 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8761 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8762 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}"
8763 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}"
8764
8765 else
8766 ld_shlibs=no
8767 fi
8768
8769 ;;
8770
8771 dgux*)
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_shlibpath_var=no
8775 ;;
8776
8777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8778 # support. Future versions do this automatically, but an explicit c++rt0.o
8779 # does not break anything, and helps significantly (at the cost of a little
8780 # extra space).
8781 freebsd2.2*)
8782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8789 freebsd2.*)
8790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_direct=yes
8792 hardcode_minus_L=yes
8793 hardcode_shlibpath_var=no
8794 ;;
8795
8796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8797 freebsd* | dragonfly*)
8798 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8799 hardcode_libdir_flag_spec='-R$libdir'
8800 hardcode_direct=yes
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 hpux9*)
8805 if test "$GCC" = yes; then
8806 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'
8807 else
8808 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'
8809 fi
8810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8811 hardcode_libdir_separator=:
8812 hardcode_direct=yes
8813
8814 # hardcode_minus_L: Not really in the search PATH,
8815 # but as the default location of the library.
8816 hardcode_minus_L=yes
8817 export_dynamic_flag_spec='${wl}-E'
8818 ;;
8819
8820 hpux10*)
8821 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8823 else
8824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8825 fi
8826 if test "$with_gnu_ld" = no; then
8827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8828 hardcode_libdir_flag_spec_ld='+b $libdir'
8829 hardcode_libdir_separator=:
8830 hardcode_direct=yes
8831 hardcode_direct_absolute=yes
8832 export_dynamic_flag_spec='${wl}-E'
8833 # hardcode_minus_L: Not really in the search PATH,
8834 # but as the default location of the library.
8835 hardcode_minus_L=yes
8836 fi
8837 ;;
8838
8839 hpux11*)
8840 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8841 case $host_cpu in
8842 hppa*64*)
8843 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 ;;
8845 ia64*)
8846 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847 ;;
8848 *)
8849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8850 ;;
8851 esac
8852 else
8853 case $host_cpu in
8854 hppa*64*)
8855 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 ;;
8857 ia64*)
8858 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8859 ;;
8860 *)
8861
8862 # Older versions of the 11.00 compiler do not understand -b yet
8863 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8865 $as_echo_n "checking if $CC understands -b... " >&6; }
8866 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 lt_cv_prog_compiler__b=no
8870 save_LDFLAGS="$LDFLAGS"
8871 LDFLAGS="$LDFLAGS -b"
8872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8874 # The linker can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 if test -s conftest.err; then
8877 # Append any errors to the config.log.
8878 cat conftest.err 1>&5
8879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8881 if diff conftest.exp conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler__b=yes
8883 fi
8884 else
8885 lt_cv_prog_compiler__b=yes
8886 fi
8887 fi
8888 $RM -r conftest*
8889 LDFLAGS="$save_LDFLAGS"
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8893 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8894
8895 if test x"$lt_cv_prog_compiler__b" = xyes; then
8896 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8897 else
8898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8899 fi
8900
8901 ;;
8902 esac
8903 fi
8904 if test "$with_gnu_ld" = no; then
8905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8906 hardcode_libdir_separator=:
8907
8908 case $host_cpu in
8909 hppa*64*|ia64*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8912 ;;
8913 *)
8914 hardcode_direct=yes
8915 hardcode_direct_absolute=yes
8916 export_dynamic_flag_spec='${wl}-E'
8917
8918 # hardcode_minus_L: Not really in the search PATH,
8919 # but as the default location of the library.
8920 hardcode_minus_L=yes
8921 ;;
8922 esac
8923 fi
8924 ;;
8925
8926 irix5* | irix6* | nonstopux*)
8927 if test "$GCC" = yes; then
8928 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'
8929 # Try to use the -exported_symbol ld option, if it does not
8930 # work, assume that -exports_file does not work either and
8931 # implicitly export all symbols.
8932 save_LDFLAGS="$LDFLAGS"
8933 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8934 if test x$gcc_no_link = xyes; then
8935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8936 fi
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 int foo(void) {}
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 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'
8943
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LDFLAGS="$save_LDFLAGS"
8948 else
8949 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'
8950 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'
8951 fi
8952 archive_cmds_need_lc='no'
8953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954 hardcode_libdir_separator=:
8955 inherit_rpath=yes
8956 link_all_deplibs=yes
8957 ;;
8958
8959 netbsd*)
8960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8962 else
8963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8964 fi
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_direct=yes
8967 hardcode_shlibpath_var=no
8968 ;;
8969
8970 newsos6)
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=yes
8973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974 hardcode_libdir_separator=:
8975 hardcode_shlibpath_var=no
8976 ;;
8977
8978 *nto* | *qnx*)
8979 ;;
8980
8981 openbsd*)
8982 if test -f /usr/libexec/ld.so; then
8983 hardcode_direct=yes
8984 hardcode_shlibpath_var=no
8985 hardcode_direct_absolute=yes
8986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8990 export_dynamic_flag_spec='${wl}-E'
8991 else
8992 case $host_os in
8993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_libdir_flag_spec='-R$libdir'
8996 ;;
8997 *)
8998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9000 ;;
9001 esac
9002 fi
9003 else
9004 ld_shlibs=no
9005 fi
9006 ;;
9007
9008 os2*)
9009 hardcode_libdir_flag_spec='-L$libdir'
9010 hardcode_minus_L=yes
9011 allow_undefined_flag=unsupported
9012 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'
9013 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9014 ;;
9015
9016 osf3*)
9017 if test "$GCC" = yes; then
9018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9019 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'
9020 else
9021 allow_undefined_flag=' -expect_unresolved \*'
9022 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'
9023 fi
9024 archive_cmds_need_lc='no'
9025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9026 hardcode_libdir_separator=:
9027 ;;
9028
9029 osf4* | osf5*) # as osf3* with the addition of -msym flag
9030 if test "$GCC" = yes; then
9031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9032 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'
9033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034 else
9035 allow_undefined_flag=' -expect_unresolved \*'
9036 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'
9037 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~
9038 $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'
9039
9040 # Both c and cxx compiler support -rpath directly
9041 hardcode_libdir_flag_spec='-rpath $libdir'
9042 fi
9043 archive_cmds_need_lc='no'
9044 hardcode_libdir_separator=:
9045 ;;
9046
9047 solaris*)
9048 no_undefined_flag=' -z defs'
9049 if test "$GCC" = yes; then
9050 wlarc='${wl}'
9051 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9053 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9054 else
9055 case `$CC -V 2>&1` in
9056 *"Compilers 5.0"*)
9057 wlarc=''
9058 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9061 ;;
9062 *)
9063 wlarc='${wl}'
9064 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9066 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9067 ;;
9068 esac
9069 fi
9070 hardcode_libdir_flag_spec='-R$libdir'
9071 hardcode_shlibpath_var=no
9072 case $host_os in
9073 solaris2.[0-5] | solaris2.[0-5].*) ;;
9074 *)
9075 # The compiler driver will combine and reorder linker options,
9076 # but understands `-z linker_flag'. GCC discards it without `$wl',
9077 # but is careful enough not to reorder.
9078 # Supported since Solaris 2.6 (maybe 2.5.1?)
9079 if test "$GCC" = yes; then
9080 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9081 else
9082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9083 fi
9084 ;;
9085 esac
9086 link_all_deplibs=yes
9087 ;;
9088
9089 sunos4*)
9090 if test "x$host_vendor" = xsequent; then
9091 # Use $CC to link under sequent, because it throws in some extra .o
9092 # files that make .init and .fini sections work.
9093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9094 else
9095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9096 fi
9097 hardcode_libdir_flag_spec='-L$libdir'
9098 hardcode_direct=yes
9099 hardcode_minus_L=yes
9100 hardcode_shlibpath_var=no
9101 ;;
9102
9103 sysv4)
9104 case $host_vendor in
9105 sni)
9106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107 hardcode_direct=yes # is this really true???
9108 ;;
9109 siemens)
9110 ## LD is ld it makes a PLAMLIB
9111 ## CC just makes a GrossModule.
9112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9113 reload_cmds='$CC -r -o $output$reload_objs'
9114 hardcode_direct=no
9115 ;;
9116 motorola)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9119 ;;
9120 esac
9121 runpath_var='LD_RUN_PATH'
9122 hardcode_shlibpath_var=no
9123 ;;
9124
9125 sysv4.3*)
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9128 export_dynamic_flag_spec='-Bexport'
9129 ;;
9130
9131 sysv4*MP*)
9132 if test -d /usr/nec; then
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9135 runpath_var=LD_RUN_PATH
9136 hardcode_runpath_var=yes
9137 ld_shlibs=yes
9138 fi
9139 ;;
9140
9141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9142 no_undefined_flag='${wl}-z,text'
9143 archive_cmds_need_lc=no
9144 hardcode_shlibpath_var=no
9145 runpath_var='LD_RUN_PATH'
9146
9147 if test "$GCC" = yes; then
9148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 else
9151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 fi
9154 ;;
9155
9156 sysv5* | sco3.2v5* | sco5v6*)
9157 # Note: We can NOT use -z defs as we might desire, because we do not
9158 # link with -lc, and that would cause any symbols used from libc to
9159 # always be unresolved, which means just about no library would
9160 # ever link correctly. If we're not using GNU ld we use -z text
9161 # though, which does catch some bad symbols but isn't as heavy-handed
9162 # as -z defs.
9163 no_undefined_flag='${wl}-z,text'
9164 allow_undefined_flag='${wl}-z,nodefs'
9165 archive_cmds_need_lc=no
9166 hardcode_shlibpath_var=no
9167 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9168 hardcode_libdir_separator=':'
9169 link_all_deplibs=yes
9170 export_dynamic_flag_spec='${wl}-Bexport'
9171 runpath_var='LD_RUN_PATH'
9172
9173 if test "$GCC" = yes; then
9174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 else
9177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 fi
9180 ;;
9181
9182 uts4*)
9183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_shlibpath_var=no
9186 ;;
9187
9188 *)
9189 ld_shlibs=no
9190 ;;
9191 esac
9192
9193 if test x$host_vendor = xsni; then
9194 case $host in
9195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9196 export_dynamic_flag_spec='${wl}-Blargedynsym'
9197 ;;
9198 esac
9199 fi
9200 fi
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9203 $as_echo "$ld_shlibs" >&6; }
9204 test "$ld_shlibs" = no && can_build_shared=no
9205
9206 with_gnu_ld=$with_gnu_ld
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222 #
9223 # Do we need to explicitly link libc?
9224 #
9225 case "x$archive_cmds_need_lc" in
9226 x|xyes)
9227 # Assume -lc should be added
9228 archive_cmds_need_lc=yes
9229
9230 if test "$enable_shared" = yes && test "$GCC" = yes; then
9231 case $archive_cmds in
9232 *'~'*)
9233 # FIXME: we may have to deal with multi-command sequences.
9234 ;;
9235 '$CC '*)
9236 # Test whether the compiler implicitly links with -lc since on some
9237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9238 # to ld, don't add -lc before -lgcc.
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9240 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9241 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 $RM conftest*
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246
9247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9248 (eval $ac_compile) 2>&5
9249 ac_status=$?
9250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9251 test $ac_status = 0; } 2>conftest.err; then
9252 soname=conftest
9253 lib=conftest
9254 libobjs=conftest.$ac_objext
9255 deplibs=
9256 wl=$lt_prog_compiler_wl
9257 pic_flag=$lt_prog_compiler_pic
9258 compiler_flags=-v
9259 linker_flags=-v
9260 verstring=
9261 output_objdir=.
9262 libname=conftest
9263 lt_save_allow_undefined_flag=$allow_undefined_flag
9264 allow_undefined_flag=
9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9267 ac_status=$?
9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269 test $ac_status = 0; }
9270 then
9271 lt_cv_archive_cmds_need_lc=no
9272 else
9273 lt_cv_archive_cmds_need_lc=yes
9274 fi
9275 allow_undefined_flag=$lt_save_allow_undefined_flag
9276 else
9277 cat conftest.err 1>&5
9278 fi
9279 $RM conftest*
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9283 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9284 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9285 ;;
9286 esac
9287 fi
9288 ;;
9289 esac
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
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9449
9450 if test "$GCC" = yes; then
9451 case $host_os in
9452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9453 *) lt_awk_arg="/^libraries:/" ;;
9454 esac
9455 case $host_os in
9456 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9457 *) lt_sed_strip_eq="s,=/,/,g" ;;
9458 esac
9459 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9460 case $lt_search_path_spec in
9461 *\;*)
9462 # if the path contains ";" then we assume it to be the separator
9463 # otherwise default to the standard path separator (i.e. ":") - it is
9464 # assumed that no part of a normal pathname contains ";" but that should
9465 # okay in the real world where ";" in dirpaths is itself problematic.
9466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9467 ;;
9468 *)
9469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9470 ;;
9471 esac
9472 # Ok, now we have the path, separated by spaces, we can step through it
9473 # and add multilib dir if necessary.
9474 lt_tmp_lt_search_path_spec=
9475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9476 for lt_sys_path in $lt_search_path_spec; do
9477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9479 else
9480 test -d "$lt_sys_path" && \
9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9482 fi
9483 done
9484 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9485 BEGIN {RS=" "; FS="/|\n";} {
9486 lt_foo="";
9487 lt_count=0;
9488 for (lt_i = NF; lt_i > 0; lt_i--) {
9489 if ($lt_i != "" && $lt_i != ".") {
9490 if ($lt_i == "..") {
9491 lt_count++;
9492 } else {
9493 if (lt_count == 0) {
9494 lt_foo="/" $lt_i lt_foo;
9495 } else {
9496 lt_count--;
9497 }
9498 }
9499 }
9500 }
9501 if (lt_foo != "") { lt_freq[lt_foo]++; }
9502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9503 }'`
9504 # AWK program above erroneously prepends '/' to C:/dos/paths
9505 # for these hosts.
9506 case $host_os in
9507 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9508 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9509 esac
9510 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9511 else
9512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9513 fi
9514 library_names_spec=
9515 libname_spec='lib$name'
9516 soname_spec=
9517 shrext_cmds=".so"
9518 postinstall_cmds=
9519 postuninstall_cmds=
9520 finish_cmds=
9521 finish_eval=
9522 shlibpath_var=
9523 shlibpath_overrides_runpath=unknown
9524 version_type=none
9525 dynamic_linker="$host_os ld.so"
9526 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9527 need_lib_prefix=unknown
9528 hardcode_into_libs=no
9529
9530 # when you set need_version to no, make sure it does not cause -set_version
9531 # flags to be left without arguments
9532 need_version=unknown
9533
9534 case $host_os in
9535 aix3*)
9536 version_type=linux
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9538 shlibpath_var=LIBPATH
9539
9540 # AIX 3 has no versioning support, so we append a major version to the name.
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 ;;
9543
9544 aix[4-9]*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 hardcode_into_libs=yes
9549 if test "$host_cpu" = ia64; then
9550 # AIX 5 supports IA64
9551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 else
9554 # With GCC up to 2.95.x, collect2 would create an import file
9555 # for dependence libraries. The import file would start with
9556 # the line `#! .'. This would cause the generated library to
9557 # depend on `.', always an invalid library. This was fixed in
9558 # development snapshots of GCC prior to 3.0.
9559 case $host_os in
9560 aix4 | aix4.[01] | aix4.[01].*)
9561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9562 echo ' yes '
9563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9564 :
9565 else
9566 can_build_shared=no
9567 fi
9568 ;;
9569 esac
9570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9571 # soname into executable. Probably we can add versioning support to
9572 # collect2, so additional links can be useful in future.
9573 if test "$aix_use_runtimelinking" = yes; then
9574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9575 # instead of lib<name>.a to let people know that these are not
9576 # typical AIX shared libraries.
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 else
9579 # We preserve .a as extension for shared libraries through AIX4.2
9580 # and later when we are not doing run time linking.
9581 library_names_spec='${libname}${release}.a $libname.a'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 fi
9584 shlibpath_var=LIBPATH
9585 fi
9586 ;;
9587
9588 amigaos*)
9589 case $host_cpu in
9590 powerpc)
9591 # Since July 2007 AmigaOS4 officially supports .so libraries.
9592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 ;;
9595 m68k)
9596 library_names_spec='$libname.ixlibrary $libname.a'
9597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9598 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'
9599 ;;
9600 esac
9601 ;;
9602
9603 beos*)
9604 library_names_spec='${libname}${shared_ext}'
9605 dynamic_linker="$host_os ld.so"
9606 shlibpath_var=LIBRARY_PATH
9607 ;;
9608
9609 bsdi[45]*)
9610 version_type=linux
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9618 # the default ld.so.conf also contains /usr/contrib/lib and
9619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9620 # libtool to hard-code these into programs
9621 ;;
9622
9623 cygwin* | mingw* | pw32* | cegcc*)
9624 version_type=windows
9625 shrext_cmds=".dll"
9626 need_version=no
9627 need_lib_prefix=no
9628
9629 case $GCC,$host_os in
9630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9631 library_names_spec='$libname.dll.a'
9632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9633 postinstall_cmds='base_file=`basename \${file}`~
9634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9635 dldir=$destdir/`dirname \$dlpath`~
9636 test -d \$dldir || mkdir -p \$dldir~
9637 $install_prog $dir/$dlname \$dldir/$dlname~
9638 chmod a+x \$dldir/$dlname~
9639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9641 fi'
9642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643 dlpath=$dir/\$dldll~
9644 $RM \$dlpath'
9645 shlibpath_overrides_runpath=yes
9646
9647 case $host_os in
9648 cygwin*)
9649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651
9652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9653 ;;
9654 mingw* | cegcc*)
9655 # MinGW DLLs use traditional 'lib' prefix
9656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9657 ;;
9658 pw32*)
9659 # pw32 DLLs use 'pw' prefix rather than 'lib'
9660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661 ;;
9662 esac
9663 ;;
9664
9665 *)
9666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9667 ;;
9668 esac
9669 dynamic_linker='Win32 ld.exe'
9670 # FIXME: first we should search . and the directory the executable is in
9671 shlibpath_var=PATH
9672 ;;
9673
9674 darwin* | rhapsody*)
9675 dynamic_linker="$host_os dyld"
9676 version_type=darwin
9677 need_lib_prefix=no
9678 need_version=no
9679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9680 soname_spec='${libname}${release}${major}$shared_ext'
9681 shlibpath_overrides_runpath=yes
9682 shlibpath_var=DYLD_LIBRARY_PATH
9683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9684
9685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9687 ;;
9688
9689 dgux*)
9690 version_type=linux
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 ;;
9697
9698 freebsd* | dragonfly*)
9699 # DragonFly does not have aout. When/if they implement a new
9700 # versioning mechanism, adjust this.
9701 if test -x /usr/bin/objformat; then
9702 objformat=`/usr/bin/objformat`
9703 else
9704 case $host_os in
9705 freebsd[23].*) objformat=aout ;;
9706 *) objformat=elf ;;
9707 esac
9708 fi
9709 version_type=freebsd-$objformat
9710 case $version_type in
9711 freebsd-elf*)
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9713 need_version=no
9714 need_lib_prefix=no
9715 ;;
9716 freebsd-*)
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9718 need_version=yes
9719 ;;
9720 esac
9721 shlibpath_var=LD_LIBRARY_PATH
9722 case $host_os in
9723 freebsd2.*)
9724 shlibpath_overrides_runpath=yes
9725 ;;
9726 freebsd3.[01]* | freebsdelf3.[01]*)
9727 shlibpath_overrides_runpath=yes
9728 hardcode_into_libs=yes
9729 ;;
9730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9732 shlibpath_overrides_runpath=no
9733 hardcode_into_libs=yes
9734 ;;
9735 *) # from 4.6 on, and DragonFly
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 ;;
9739 esac
9740 ;;
9741
9742 gnu*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 hardcode_into_libs=yes
9750 ;;
9751
9752 haiku*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 dynamic_linker="$host_os runtime_loader"
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 shlibpath_var=LIBRARY_PATH
9760 shlibpath_overrides_runpath=yes
9761 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9762 hardcode_into_libs=yes
9763 ;;
9764
9765 hpux9* | hpux10* | hpux11*)
9766 # Give a soname corresponding to the major version so that dld.sl refuses to
9767 # link against other versions.
9768 version_type=sunos
9769 need_lib_prefix=no
9770 need_version=no
9771 case $host_cpu in
9772 ia64*)
9773 shrext_cmds='.so'
9774 hardcode_into_libs=yes
9775 dynamic_linker="$host_os dld.so"
9776 shlibpath_var=LD_LIBRARY_PATH
9777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 if test "X$HPUX_IA64_MODE" = X32; then
9781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9782 else
9783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9784 fi
9785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9786 ;;
9787 hppa*64*)
9788 shrext_cmds='.sl'
9789 hardcode_into_libs=yes
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9797 ;;
9798 *)
9799 shrext_cmds='.sl'
9800 dynamic_linker="$host_os dld.sl"
9801 shlibpath_var=SHLIB_PATH
9802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 ;;
9806 esac
9807 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9808 postinstall_cmds='chmod 555 $lib'
9809 # or fails outright, so override atomically:
9810 install_override_mode=555
9811 ;;
9812
9813 interix[3-9]*)
9814 version_type=linux
9815 need_lib_prefix=no
9816 need_version=no
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=no
9822 hardcode_into_libs=yes
9823 ;;
9824
9825 irix5* | irix6* | nonstopux*)
9826 case $host_os in
9827 nonstopux*) version_type=nonstopux ;;
9828 *)
9829 if test "$lt_cv_prog_gnu_ld" = yes; then
9830 version_type=linux
9831 else
9832 version_type=irix
9833 fi ;;
9834 esac
9835 need_lib_prefix=no
9836 need_version=no
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9839 case $host_os in
9840 irix5* | nonstopux*)
9841 libsuff= shlibsuff=
9842 ;;
9843 *)
9844 case $LD in # libtool.m4 will add one of these switches to LD
9845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9846 libsuff= shlibsuff= libmagic=32-bit;;
9847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9848 libsuff=32 shlibsuff=N32 libmagic=N32;;
9849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9851 *) libsuff= shlibsuff= libmagic=never-match;;
9852 esac
9853 ;;
9854 esac
9855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9856 shlibpath_overrides_runpath=no
9857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9859 hardcode_into_libs=yes
9860 ;;
9861
9862 # No shared lib support for Linux oldld, aout, or coff.
9863 linux*oldld* | linux*aout* | linux*coff*)
9864 dynamic_linker=no
9865 ;;
9866
9867 # This must be Linux ELF.
9868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9869 version_type=linux
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath=no
9877
9878 # Some binutils ld are patched to set DT_RUNPATH
9879 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 lt_cv_shlibpath_overrides_runpath=no
9883 save_LDFLAGS=$LDFLAGS
9884 save_libdir=$libdir
9885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9887 if test x$gcc_no_link = xyes; then
9888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9889 fi
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892
9893 int
9894 main ()
9895 {
9896
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9903 lt_cv_shlibpath_overrides_runpath=yes
9904 fi
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LDFLAGS=$save_LDFLAGS
9909 libdir=$save_libdir
9910
9911 fi
9912
9913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9914
9915 # This implies no fast_install, which is unacceptable.
9916 # Some rework will be needed to allow for fast_install
9917 # before this can be enabled.
9918 hardcode_into_libs=yes
9919
9920 # Append ld.so.conf contents to the search path
9921 if test -f /etc/ld.so.conf; then
9922 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' ' '`
9923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9924 fi
9925
9926 # We used to test for /lib/ld.so.1 and disable shared libraries on
9927 # powerpc, because MkLinux only supported shared libraries with the
9928 # GNU dynamic linker. Since this was broken with cross compilers,
9929 # most powerpc-linux boxes support dynamic linking these days and
9930 # people can always --disable-shared, the test was removed, and we
9931 # assume the GNU/Linux dynamic linker is in use.
9932 dynamic_linker='GNU/Linux ld.so'
9933 ;;
9934
9935 netbsd*)
9936 version_type=sunos
9937 need_lib_prefix=no
9938 need_version=no
9939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 dynamic_linker='NetBSD (a.out) ld.so'
9943 else
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 dynamic_linker='NetBSD ld.elf_so'
9947 fi
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=yes
9950 hardcode_into_libs=yes
9951 ;;
9952
9953 newsos6)
9954 version_type=linux
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9958 ;;
9959
9960 *nto* | *qnx*)
9961 version_type=qnx
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=no
9968 hardcode_into_libs=yes
9969 dynamic_linker='ldqnx.so'
9970 ;;
9971
9972 openbsd*)
9973 version_type=sunos
9974 sys_lib_dlsearch_path_spec="/usr/lib"
9975 need_lib_prefix=no
9976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9977 case $host_os in
9978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9979 *) need_version=no ;;
9980 esac
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985 case $host_os in
9986 openbsd2.[89] | openbsd2.[89].*)
9987 shlibpath_overrides_runpath=no
9988 ;;
9989 *)
9990 shlibpath_overrides_runpath=yes
9991 ;;
9992 esac
9993 else
9994 shlibpath_overrides_runpath=yes
9995 fi
9996 ;;
9997
9998 os2*)
9999 libname_spec='$name'
10000 shrext_cmds=".dll"
10001 need_lib_prefix=no
10002 library_names_spec='$libname${shared_ext} $libname.a'
10003 dynamic_linker='OS/2 ld.exe'
10004 shlibpath_var=LIBPATH
10005 ;;
10006
10007 osf3* | osf4* | osf5*)
10008 version_type=osf
10009 need_lib_prefix=no
10010 need_version=no
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10016 ;;
10017
10018 rdos*)
10019 dynamic_linker=no
10020 ;;
10021
10022 solaris*)
10023 version_type=linux
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10031 # ldd complains unless libraries are executable
10032 postinstall_cmds='chmod +x $lib'
10033 ;;
10034
10035 sunos4*)
10036 version_type=sunos
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 if test "$with_gnu_ld" = yes; then
10042 need_lib_prefix=no
10043 fi
10044 need_version=yes
10045 ;;
10046
10047 sysv4 | sysv4.3*)
10048 version_type=linux
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 case $host_vendor in
10053 sni)
10054 shlibpath_overrides_runpath=no
10055 need_lib_prefix=no
10056 runpath_var=LD_RUN_PATH
10057 ;;
10058 siemens)
10059 need_lib_prefix=no
10060 ;;
10061 motorola)
10062 need_lib_prefix=no
10063 need_version=no
10064 shlibpath_overrides_runpath=no
10065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10066 ;;
10067 esac
10068 ;;
10069
10070 sysv4*MP*)
10071 if test -d /usr/nec ;then
10072 version_type=linux
10073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10074 soname_spec='$libname${shared_ext}.$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 fi
10077 ;;
10078
10079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10080 version_type=freebsd-elf
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10087 hardcode_into_libs=yes
10088 if test "$with_gnu_ld" = yes; then
10089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10090 else
10091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10092 case $host_os in
10093 sco3.2v5*)
10094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10095 ;;
10096 esac
10097 fi
10098 sys_lib_dlsearch_path_spec='/usr/lib'
10099 ;;
10100
10101 tpf*)
10102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=no
10109 hardcode_into_libs=yes
10110 ;;
10111
10112 uts4*)
10113 version_type=linux
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 ;;
10118
10119 *)
10120 dynamic_linker=no
10121 ;;
10122 esac
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10124 $as_echo "$dynamic_linker" >&6; }
10125 test "$dynamic_linker" = no && can_build_shared=no
10126
10127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10128 if test "$GCC" = yes; then
10129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10130 fi
10131
10132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10134 fi
10135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10137 fi
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
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10232 hardcode_action=
10233 if test -n "$hardcode_libdir_flag_spec" ||
10234 test -n "$runpath_var" ||
10235 test "X$hardcode_automatic" = "Xyes" ; then
10236
10237 # We can hardcode non-existent directories.
10238 if test "$hardcode_direct" != no &&
10239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10240 # have to relink, otherwise we might link with an installed library
10241 # when we should be linking with a yet-to-be-installed one
10242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10243 test "$hardcode_minus_L" != no; then
10244 # Linking always hardcodes the temporary library directory.
10245 hardcode_action=relink
10246 else
10247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10248 hardcode_action=immediate
10249 fi
10250 else
10251 # We cannot hardcode anything, or else we can only hardcode existing
10252 # directories.
10253 hardcode_action=unsupported
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10256 $as_echo "$hardcode_action" >&6; }
10257
10258 if test "$hardcode_action" = relink ||
10259 test "$inherit_rpath" = yes; then
10260 # Fast installation is not supported
10261 enable_fast_install=no
10262 elif test "$shlibpath_overrides_runpath" = yes ||
10263 test "$enable_shared" = no; then
10264 # Fast installation is not necessary
10265 enable_fast_install=needless
10266 fi
10267
10268
10269
10270
10271
10272
10273 if test "x$enable_dlopen" != xyes; then
10274 enable_dlopen=unknown
10275 enable_dlopen_self=unknown
10276 enable_dlopen_self_static=unknown
10277 else
10278 lt_cv_dlopen=no
10279 lt_cv_dlopen_libs=
10280
10281 case $host_os in
10282 beos*)
10283 lt_cv_dlopen="load_add_on"
10284 lt_cv_dlopen_libs=
10285 lt_cv_dlopen_self=yes
10286 ;;
10287
10288 mingw* | pw32* | cegcc*)
10289 lt_cv_dlopen="LoadLibrary"
10290 lt_cv_dlopen_libs=
10291 ;;
10292
10293 cygwin*)
10294 lt_cv_dlopen="dlopen"
10295 lt_cv_dlopen_libs=
10296 ;;
10297
10298 darwin*)
10299 # if libdl is installed we need to link against it
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 ac_check_lib_save_LIBS=$LIBS
10306 LIBS="-ldl $LIBS"
10307 if test x$gcc_no_link = xyes; then
10308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10309 fi
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char dlopen ();
10320 int
10321 main ()
10322 {
10323 return dlopen ();
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329 ac_cv_lib_dl_dlopen=yes
10330 else
10331 ac_cv_lib_dl_dlopen=no
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10339 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10341 else
10342
10343 lt_cv_dlopen="dyld"
10344 lt_cv_dlopen_libs=
10345 lt_cv_dlopen_self=yes
10346
10347 fi
10348
10349 ;;
10350
10351 *)
10352 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10353 if test "x$ac_cv_func_shl_load" = x""yes; then :
10354 lt_cv_dlopen="shl_load"
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10357 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 ac_check_lib_save_LIBS=$LIBS
10362 LIBS="-ldld $LIBS"
10363 if test x$gcc_no_link = xyes; then
10364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10365 fi
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char shl_load ();
10376 int
10377 main ()
10378 {
10379 return shl_load ();
10380 ;
10381 return 0;
10382 }
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 ac_cv_lib_dld_shl_load=yes
10386 else
10387 ac_cv_lib_dld_shl_load=no
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10394 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10395 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10396 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10397 else
10398 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10399 if test "x$ac_cv_func_dlopen" = x""yes; then :
10400 lt_cv_dlopen="dlopen"
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10403 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-ldl $LIBS"
10409 if test x$gcc_no_link = xyes; then
10410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10411 fi
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char dlopen ();
10422 int
10423 main ()
10424 {
10425 return dlopen ();
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 ac_cv_lib_dl_dlopen=yes
10432 else
10433 ac_cv_lib_dl_dlopen=no
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10438 fi
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10440 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10441 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10445 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10446 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lsvld $LIBS"
10451 if test x$gcc_no_link = xyes; then
10452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10453 fi
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char dlopen ();
10464 int
10465 main ()
10466 {
10467 return dlopen ();
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473 ac_cv_lib_svld_dlopen=yes
10474 else
10475 ac_cv_lib_svld_dlopen=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10483 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10488 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 ac_check_lib_save_LIBS=$LIBS
10492 LIBS="-ldld $LIBS"
10493 if test x$gcc_no_link = xyes; then
10494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10495 fi
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char dld_link ();
10506 int
10507 main ()
10508 {
10509 return dld_link ();
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_dld_dld_link=yes
10516 else
10517 ac_cv_lib_dld_dld_link=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10524 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10525 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10527 fi
10528
10529
10530 fi
10531
10532
10533 fi
10534
10535
10536 fi
10537
10538
10539 fi
10540
10541
10542 fi
10543
10544 ;;
10545 esac
10546
10547 if test "x$lt_cv_dlopen" != xno; then
10548 enable_dlopen=yes
10549 else
10550 enable_dlopen=no
10551 fi
10552
10553 case $lt_cv_dlopen in
10554 dlopen)
10555 save_CPPFLAGS="$CPPFLAGS"
10556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10557
10558 save_LDFLAGS="$LDFLAGS"
10559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10560
10561 save_LIBS="$LIBS"
10562 LIBS="$lt_cv_dlopen_libs $LIBS"
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10565 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10566 if test "${lt_cv_dlopen_self+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test "$cross_compiling" = yes; then :
10570 lt_cv_dlopen_self=cross
10571 else
10572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10573 lt_status=$lt_dlunknown
10574 cat > conftest.$ac_ext <<_LT_EOF
10575 #line 10575 "configure"
10576 #include "confdefs.h"
10577
10578 #if HAVE_DLFCN_H
10579 #include <dlfcn.h>
10580 #endif
10581
10582 #include <stdio.h>
10583
10584 #ifdef RTLD_GLOBAL
10585 # define LT_DLGLOBAL RTLD_GLOBAL
10586 #else
10587 # ifdef DL_GLOBAL
10588 # define LT_DLGLOBAL DL_GLOBAL
10589 # else
10590 # define LT_DLGLOBAL 0
10591 # endif
10592 #endif
10593
10594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10595 find out it does not work in some platform. */
10596 #ifndef LT_DLLAZY_OR_NOW
10597 # ifdef RTLD_LAZY
10598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10599 # else
10600 # ifdef DL_LAZY
10601 # define LT_DLLAZY_OR_NOW DL_LAZY
10602 # else
10603 # ifdef RTLD_NOW
10604 # define LT_DLLAZY_OR_NOW RTLD_NOW
10605 # else
10606 # ifdef DL_NOW
10607 # define LT_DLLAZY_OR_NOW DL_NOW
10608 # else
10609 # define LT_DLLAZY_OR_NOW 0
10610 # endif
10611 # endif
10612 # endif
10613 # endif
10614 #endif
10615
10616 /* When -fvisbility=hidden is used, assume the code has been annotated
10617 correspondingly for the symbols needed. */
10618 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10619 void fnord () __attribute__((visibility("default")));
10620 #endif
10621
10622 void fnord () { int i=42; }
10623 int main ()
10624 {
10625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10626 int status = $lt_dlunknown;
10627
10628 if (self)
10629 {
10630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10631 else
10632 {
10633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10634 else puts (dlerror ());
10635 }
10636 /* dlclose (self); */
10637 }
10638 else
10639 puts (dlerror ());
10640
10641 return status;
10642 }
10643 _LT_EOF
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10645 (eval $ac_link) 2>&5
10646 ac_status=$?
10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10649 (./conftest; exit; ) >&5 2>/dev/null
10650 lt_status=$?
10651 case x$lt_status in
10652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10655 esac
10656 else :
10657 # compilation failed
10658 lt_cv_dlopen_self=no
10659 fi
10660 fi
10661 rm -fr conftest*
10662
10663
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10666 $as_echo "$lt_cv_dlopen_self" >&6; }
10667
10668 if test "x$lt_cv_dlopen_self" = xyes; then
10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10672 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 if test "$cross_compiling" = yes; then :
10676 lt_cv_dlopen_self_static=cross
10677 else
10678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679 lt_status=$lt_dlunknown
10680 cat > conftest.$ac_ext <<_LT_EOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10683
10684 #if HAVE_DLFCN_H
10685 #include <dlfcn.h>
10686 #endif
10687
10688 #include <stdio.h>
10689
10690 #ifdef RTLD_GLOBAL
10691 # define LT_DLGLOBAL RTLD_GLOBAL
10692 #else
10693 # ifdef DL_GLOBAL
10694 # define LT_DLGLOBAL DL_GLOBAL
10695 # else
10696 # define LT_DLGLOBAL 0
10697 # endif
10698 #endif
10699
10700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701 find out it does not work in some platform. */
10702 #ifndef LT_DLLAZY_OR_NOW
10703 # ifdef RTLD_LAZY
10704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10705 # else
10706 # ifdef DL_LAZY
10707 # define LT_DLLAZY_OR_NOW DL_LAZY
10708 # else
10709 # ifdef RTLD_NOW
10710 # define LT_DLLAZY_OR_NOW RTLD_NOW
10711 # else
10712 # ifdef DL_NOW
10713 # define LT_DLLAZY_OR_NOW DL_NOW
10714 # else
10715 # define LT_DLLAZY_OR_NOW 0
10716 # endif
10717 # endif
10718 # endif
10719 # endif
10720 #endif
10721
10722 /* When -fvisbility=hidden is used, assume the code has been annotated
10723 correspondingly for the symbols needed. */
10724 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10725 void fnord () __attribute__((visibility("default")));
10726 #endif
10727
10728 void fnord () { int i=42; }
10729 int main ()
10730 {
10731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10732 int status = $lt_dlunknown;
10733
10734 if (self)
10735 {
10736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10737 else
10738 {
10739 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10740 else puts (dlerror ());
10741 }
10742 /* dlclose (self); */
10743 }
10744 else
10745 puts (dlerror ());
10746
10747 return status;
10748 }
10749 _LT_EOF
10750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10751 (eval $ac_link) 2>&5
10752 ac_status=$?
10753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10755 (./conftest; exit; ) >&5 2>/dev/null
10756 lt_status=$?
10757 case x$lt_status in
10758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10760 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10761 esac
10762 else :
10763 # compilation failed
10764 lt_cv_dlopen_self_static=no
10765 fi
10766 fi
10767 rm -fr conftest*
10768
10769
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10772 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10773 fi
10774
10775 CPPFLAGS="$save_CPPFLAGS"
10776 LDFLAGS="$save_LDFLAGS"
10777 LIBS="$save_LIBS"
10778 ;;
10779 esac
10780
10781 case $lt_cv_dlopen_self in
10782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10783 *) enable_dlopen_self=unknown ;;
10784 esac
10785
10786 case $lt_cv_dlopen_self_static in
10787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10788 *) enable_dlopen_self_static=unknown ;;
10789 esac
10790 fi
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808 striplib=
10809 old_striplib=
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10811 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10812 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816 $as_echo "yes" >&6; }
10817 else
10818 # FIXME - insert some real tests, host_os isn't really good enough
10819 case $host_os in
10820 darwin*)
10821 if test -n "$STRIP" ; then
10822 striplib="$STRIP -x"
10823 old_striplib="$STRIP -S"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 fi
10830 ;;
10831 *)
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 ;;
10835 esac
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849 # Report which library types will actually be built
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10851 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10853 $as_echo "$can_build_shared" >&6; }
10854
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10856 $as_echo_n "checking whether to build shared libraries... " >&6; }
10857 test "$can_build_shared" = "no" && enable_shared=no
10858
10859 # On AIX, shared libraries and static libraries use the same namespace, and
10860 # are all built from PIC.
10861 case $host_os in
10862 aix3*)
10863 test "$enable_shared" = yes && enable_static=no
10864 if test -n "$RANLIB"; then
10865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10866 postinstall_cmds='$RANLIB $lib'
10867 fi
10868 ;;
10869
10870 aix[4-9]*)
10871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10872 test "$enable_shared" = yes && enable_static=no
10873 fi
10874 ;;
10875 esac
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10877 $as_echo "$enable_shared" >&6; }
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10880 $as_echo_n "checking whether to build static libraries... " >&6; }
10881 # Make sure either enable_shared or enable_static is yes.
10882 test "$enable_shared" = yes || enable_static=yes
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10884 $as_echo "$enable_static" >&6; }
10885
10886
10887
10888
10889 fi
10890 ac_ext=c
10891 ac_cpp='$CPP $CPPFLAGS'
10892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10895
10896 CC="$lt_save_CC"
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910 ac_config_commands="$ac_config_commands libtool"
10911
10912
10913
10914
10915 # Only expand once:
10916
10917
10918
10919
10920
10921 case $host in
10922 *-cygwin* | *-mingw*)
10923 # 'host' will be top-level target in the case of a target lib,
10924 # we must compare to with_cross_host to decide if this is a native
10925 # or cross-compiler and select where to install dlls appropriately.
10926 if test -n "$with_cross_host" &&
10927 test x"$with_cross_host" != x"no"; then
10928 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10929 else
10930 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10931 fi
10932 ;;
10933 *)
10934 lt_host_flags=
10935 ;;
10936 esac
10937
10938
10939
10940
10941
10942
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10945 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10946 # Check whether --enable-maintainer-mode was given.
10947 if test "${enable_maintainer_mode+set}" = set; then :
10948 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10949 else
10950 USE_MAINTAINER_MODE=no
10951 fi
10952
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10954 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10955 if test $USE_MAINTAINER_MODE = yes; then
10956 MAINTAINER_MODE_TRUE=
10957 MAINTAINER_MODE_FALSE='#'
10958 else
10959 MAINTAINER_MODE_TRUE='#'
10960 MAINTAINER_MODE_FALSE=
10961 fi
10962
10963 MAINT=$MAINTAINER_MODE_TRUE
10964
10965
10966
10967 ac_ext=c
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972
10973 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10974 # We must force CC to /not/ be precious variables; otherwise
10975 # the wrong, non-multilib-adjusted value will be used in multilibs.
10976 # As a side effect, we have to subst CFLAGS ourselves.
10977
10978
10979
10980 ac_ext=c
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985 if test -n "$ac_tool_prefix"; then
10986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10987 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if test "${ac_cv_prog_CC+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 if test -n "$CC"; then
10994 ac_cv_prog_CC="$CC" # Let the user override the test.
10995 else
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 break 2
11006 fi
11007 done
11008 done
11009 IFS=$as_save_IFS
11010
11011 fi
11012 fi
11013 CC=$ac_cv_prog_CC
11014 if test -n "$CC"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11016 $as_echo "$CC" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11020 fi
11021
11022
11023 fi
11024 if test -z "$ac_cv_prog_CC"; then
11025 ac_ct_CC=$CC
11026 # Extract the first word of "gcc", so it can be a program name with args.
11027 set dummy gcc; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test -n "$ac_ct_CC"; then
11034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11038 do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_prog_ac_ct_CC="gcc"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047 done
11048 done
11049 IFS=$as_save_IFS
11050
11051 fi
11052 fi
11053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11054 if test -n "$ac_ct_CC"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11056 $as_echo "$ac_ct_CC" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11060 fi
11061
11062 if test "x$ac_ct_CC" = x; then
11063 CC=""
11064 else
11065 case $cross_compiling:$ac_tool_warned in
11066 yes:)
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069 ac_tool_warned=yes ;;
11070 esac
11071 CC=$ac_ct_CC
11072 fi
11073 else
11074 CC="$ac_cv_prog_CC"
11075 fi
11076
11077 if test -z "$CC"; then
11078 if test -n "$ac_tool_prefix"; then
11079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11080 set dummy ${ac_tool_prefix}cc; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if test "${ac_cv_prog_CC+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 if test -n "$CC"; then
11087 ac_cv_prog_CC="$CC" # Let the user override the test.
11088 else
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090 for as_dir in $PATH
11091 do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11096 ac_cv_prog_CC="${ac_tool_prefix}cc"
11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100 done
11101 done
11102 IFS=$as_save_IFS
11103
11104 fi
11105 fi
11106 CC=$ac_cv_prog_CC
11107 if test -n "$CC"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11109 $as_echo "$CC" >&6; }
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11113 fi
11114
11115
11116 fi
11117 fi
11118 if test -z "$CC"; then
11119 # Extract the first word of "cc", so it can be a program name with args.
11120 set dummy cc; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if test "${ac_cv_prog_CC+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test -n "$CC"; then
11127 ac_cv_prog_CC="$CC" # Let the user override the test.
11128 else
11129 ac_prog_rejected=no
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11132 do
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11138 ac_prog_rejected=yes
11139 continue
11140 fi
11141 ac_cv_prog_CC="cc"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11144 fi
11145 done
11146 done
11147 IFS=$as_save_IFS
11148
11149 if test $ac_prog_rejected = yes; then
11150 # We found a bogon in the path, so make sure we never use it.
11151 set dummy $ac_cv_prog_CC
11152 shift
11153 if test $# != 0; then
11154 # We chose a different compiler from the bogus one.
11155 # However, it has the same basename, so the bogon will be chosen
11156 # first if we set CC to just the basename; use the full file name.
11157 shift
11158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11159 fi
11160 fi
11161 fi
11162 fi
11163 CC=$ac_cv_prog_CC
11164 if test -n "$CC"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11166 $as_echo "$CC" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172
11173 fi
11174 if test -z "$CC"; then
11175 if test -n "$ac_tool_prefix"; then
11176 for ac_prog in cl.exe
11177 do
11178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if test "${ac_cv_prog_CC+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test -n "$CC"; then
11186 ac_cv_prog_CC="$CC" # Let the user override the test.
11187 else
11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11190 do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11198 fi
11199 done
11200 done
11201 IFS=$as_save_IFS
11202
11203 fi
11204 fi
11205 CC=$ac_cv_prog_CC
11206 if test -n "$CC"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11208 $as_echo "$CC" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11212 fi
11213
11214
11215 test -n "$CC" && break
11216 done
11217 fi
11218 if test -z "$CC"; then
11219 ac_ct_CC=$CC
11220 for ac_prog in cl.exe
11221 do
11222 # Extract the first word of "$ac_prog", so it can be a program name with args.
11223 set dummy $ac_prog; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$ac_ct_CC"; then
11230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_ac_ct_CC="$ac_prog"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243 done
11244 done
11245 IFS=$as_save_IFS
11246
11247 fi
11248 fi
11249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11250 if test -n "$ac_ct_CC"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11252 $as_echo "$ac_ct_CC" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259 test -n "$ac_ct_CC" && break
11260 done
11261
11262 if test "x$ac_ct_CC" = x; then
11263 CC=""
11264 else
11265 case $cross_compiling:$ac_tool_warned in
11266 yes:)
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11269 ac_tool_warned=yes ;;
11270 esac
11271 CC=$ac_ct_CC
11272 fi
11273 fi
11274
11275 fi
11276
11277
11278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11280 as_fn_error "no acceptable C compiler found in \$PATH
11281 See \`config.log' for more details." "$LINENO" 5; }
11282
11283 # Provide some information about the compiler.
11284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11285 set X $ac_compile
11286 ac_compiler=$2
11287 for ac_option in --version -v -V -qversion; do
11288 { { ac_try="$ac_compiler $ac_option >&5"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292 esac
11293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11294 $as_echo "$ac_try_echo"; } >&5
11295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11296 ac_status=$?
11297 if test -s conftest.err; then
11298 sed '10a\
11299 ... rest of stderr output deleted ...
11300 10q' conftest.err >conftest.er1
11301 cat conftest.er1 >&5
11302 rm -f conftest.er1 conftest.err
11303 fi
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; }
11306 done
11307
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11310 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315
11316 int
11317 main ()
11318 {
11319 #ifndef __GNUC__
11320 choke me
11321 #endif
11322
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_compile "$LINENO"; then :
11328 ac_compiler_gnu=yes
11329 else
11330 ac_compiler_gnu=no
11331 fi
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11334
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11338 if test $ac_compiler_gnu = yes; then
11339 GCC=yes
11340 else
11341 GCC=
11342 fi
11343 ac_test_CFLAGS=${CFLAGS+set}
11344 ac_save_CFLAGS=$CFLAGS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11347 if test "${ac_cv_prog_cc_g+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 ac_save_c_werror_flag=$ac_c_werror_flag
11351 ac_c_werror_flag=yes
11352 ac_cv_prog_cc_g=no
11353 CFLAGS="-g"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 int
11358 main ()
11359 {
11360
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_compile "$LINENO"; then :
11366 ac_cv_prog_cc_g=yes
11367 else
11368 CFLAGS=""
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11371
11372 int
11373 main ()
11374 {
11375
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_compile "$LINENO"; then :
11381
11382 else
11383 ac_c_werror_flag=$ac_save_c_werror_flag
11384 CFLAGS="-g"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 int
11389 main ()
11390 {
11391
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397 ac_cv_prog_cc_g=yes
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 ac_c_werror_flag=$ac_save_c_werror_flag
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11407 $as_echo "$ac_cv_prog_cc_g" >&6; }
11408 if test "$ac_test_CFLAGS" = set; then
11409 CFLAGS=$ac_save_CFLAGS
11410 elif test $ac_cv_prog_cc_g = yes; then
11411 if test "$GCC" = yes; then
11412 CFLAGS="-g -O2"
11413 else
11414 CFLAGS="-g"
11415 fi
11416 else
11417 if test "$GCC" = yes; then
11418 CFLAGS="-O2"
11419 else
11420 CFLAGS=
11421 fi
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11425 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 ac_cv_prog_cc_c89=no
11429 ac_save_CC=$CC
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include <stdarg.h>
11433 #include <stdio.h>
11434 #include <sys/types.h>
11435 #include <sys/stat.h>
11436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11437 struct buf { int x; };
11438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11439 static char *e (p, i)
11440 char **p;
11441 int i;
11442 {
11443 return p[i];
11444 }
11445 static char *f (char * (*g) (char **, int), char **p, ...)
11446 {
11447 char *s;
11448 va_list v;
11449 va_start (v,p);
11450 s = g (p, va_arg (v,int));
11451 va_end (v);
11452 return s;
11453 }
11454
11455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11456 function prototypes and stuff, but not '\xHH' hex character constants.
11457 These don't provoke an error unfortunately, instead are silently treated
11458 as 'x'. The following induces an error, until -std is added to get
11459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11460 array size at least. It's necessary to write '\x00'==0 to get something
11461 that's true only with -std. */
11462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11463
11464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11465 inside strings and character constants. */
11466 #define FOO(x) 'x'
11467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11468
11469 int test (int i, double x);
11470 struct s1 {int (*f) (int a);};
11471 struct s2 {int (*f) (double a);};
11472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11473 int argc;
11474 char **argv;
11475 int
11476 main ()
11477 {
11478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11485 do
11486 CC="$ac_save_CC $ac_arg"
11487 if ac_fn_c_try_compile "$LINENO"; then :
11488 ac_cv_prog_cc_c89=$ac_arg
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext
11491 test "x$ac_cv_prog_cc_c89" != "xno" && break
11492 done
11493 rm -f conftest.$ac_ext
11494 CC=$ac_save_CC
11495
11496 fi
11497 # AC_CACHE_VAL
11498 case "x$ac_cv_prog_cc_c89" in
11499 x)
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11501 $as_echo "none needed" >&6; } ;;
11502 xno)
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11504 $as_echo "unsupported" >&6; } ;;
11505 *)
11506 CC="$CC $ac_cv_prog_cc_c89"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11509 esac
11510 if test "x$ac_cv_prog_cc_c89" != xno; then :
11511
11512 fi
11513
11514 ac_ext=c
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519
11520 depcc="$CC" am_compiler_list=
11521
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11523 $as_echo_n "checking dependency style of $depcc... " >&6; }
11524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11528 # We make a subdir and do the tests there. Otherwise we can end up
11529 # making bogus files that we don't know about and never remove. For
11530 # instance it was reported that on HP-UX the gcc test will end up
11531 # making a dummy file named `D' -- because `-MD' means `put the output
11532 # in D'.
11533 rm -rf conftest.dir
11534 mkdir conftest.dir
11535 # Copy depcomp to subdir because otherwise we won't find it if we're
11536 # using a relative directory.
11537 cp "$am_depcomp" conftest.dir
11538 cd conftest.dir
11539 # We will build objects and dependencies in a subdirectory because
11540 # it helps to detect inapplicable dependency modes. For instance
11541 # both Tru64's cc and ICC support -MD to output dependencies as a
11542 # side effect of compilation, but ICC will put the dependencies in
11543 # the current directory while Tru64 will put them in the object
11544 # directory.
11545 mkdir sub
11546
11547 am_cv_CC_dependencies_compiler_type=none
11548 if test "$am_compiler_list" = ""; then
11549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11550 fi
11551 am__universal=false
11552 case " $depcc " in #(
11553 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11554 esac
11555
11556 for depmode in $am_compiler_list; do
11557 # Setup a source with many dependencies, because some compilers
11558 # like to wrap large dependency lists on column 80 (with \), and
11559 # we should not choose a depcomp mode which is confused by this.
11560 #
11561 # We need to recreate these files for each test, as the compiler may
11562 # overwrite some of them when testing with obscure command lines.
11563 # This happens at least with the AIX C compiler.
11564 : > sub/conftest.c
11565 for i in 1 2 3 4 5 6; do
11566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11568 # Solaris 8's {/usr,}/bin/sh.
11569 touch sub/conftst$i.h
11570 done
11571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11572
11573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11574 # mode. It turns out that the SunPro C++ compiler does not properly
11575 # handle `-M -o', and we need to detect this. Also, some Intel
11576 # versions had trouble with output in subdirs
11577 am__obj=sub/conftest.${OBJEXT-o}
11578 am__minus_obj="-o $am__obj"
11579 case $depmode in
11580 gcc)
11581 # This depmode causes a compiler race in universal mode.
11582 test "$am__universal" = false || continue
11583 ;;
11584 nosideeffect)
11585 # after this tag, mechanisms are not by side-effect, so they'll
11586 # only be used when explicitly requested
11587 if test "x$enable_dependency_tracking" = xyes; then
11588 continue
11589 else
11590 break
11591 fi
11592 ;;
11593 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11594 # This compiler won't grok `-c -o', but also, the minuso test has
11595 # not run yet. These depmodes are late enough in the game, and
11596 # so weak that their functioning should not be impacted.
11597 am__obj=conftest.${OBJEXT-o}
11598 am__minus_obj=
11599 ;;
11600 none) break ;;
11601 esac
11602 if depmode=$depmode \
11603 source=sub/conftest.c object=$am__obj \
11604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11606 >/dev/null 2>conftest.err &&
11607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11611 # icc doesn't choke on unknown options, it will just issue warnings
11612 # or remarks (even with -Werror). So we grep stderr for any message
11613 # that says an option was ignored or not supported.
11614 # When given -MP, icc 7.0 and 7.1 complain thusly:
11615 # icc: Command line warning: ignoring option '-M'; no argument required
11616 # The diagnosis changed in icc 8.0:
11617 # icc: Command line remark: option '-MP' not supported
11618 if (grep 'ignoring option' conftest.err ||
11619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11620 am_cv_CC_dependencies_compiler_type=$depmode
11621 break
11622 fi
11623 fi
11624 done
11625
11626 cd ..
11627 rm -rf conftest.dir
11628 else
11629 am_cv_CC_dependencies_compiler_type=none
11630 fi
11631
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11634 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11635 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11636
11637 if
11638 test "x$enable_dependency_tracking" != xno \
11639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11640 am__fastdepCC_TRUE=
11641 am__fastdepCC_FALSE='#'
11642 else
11643 am__fastdepCC_TRUE='#'
11644 am__fastdepCC_FALSE=
11645 fi
11646
11647
11648
11649
11650
11651
11652 if test "x$CC" != xcc; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11658 fi
11659 set dummy $CC; ac_cc=`$as_echo "$2" |
11660 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11661 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666
11667 int
11668 main ()
11669 {
11670
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 # Make sure it works both with $CC and with simple cc.
11676 # We do the test twice because some compilers refuse to overwrite an
11677 # existing .o file with -o, though they will create one.
11678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11679 rm -f conftest2.*
11680 if { { case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11685 $as_echo "$ac_try_echo"; } >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689 test $ac_status = 0; } &&
11690 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval 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; };
11700 then
11701 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11702 if test "x$CC" != xcc; then
11703 # Test first that cc exists at all.
11704 if { ac_try='cc -c conftest.$ac_ext >&5'
11705 { { case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11710 $as_echo "$ac_try_echo"; } >&5
11711 (eval "$ac_try") 2>&5
11712 ac_status=$?
11713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714 test $ac_status = 0; }; }; then
11715 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11716 rm -f conftest2.*
11717 if { { case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11722 $as_echo "$ac_try_echo"; } >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } &&
11727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730 esac
11731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11732 $as_echo "$ac_try_echo"; } >&5
11733 (eval "$ac_try") 2>&5
11734 ac_status=$?
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; };
11737 then
11738 # cc works too.
11739 :
11740 else
11741 # cc exists but doesn't like -o.
11742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11743 fi
11744 fi
11745 fi
11746 else
11747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11748 fi
11749 rm -f core conftest*
11750
11751 fi
11752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758
11759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11760
11761 fi
11762
11763 # FIXME: we rely on the cache variable name because
11764 # there is no other way.
11765 set dummy $CC
11766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11768 if test "$am_t" != yes; then
11769 # Losing compiler, so override with the script.
11770 # FIXME: It is wrong to rewrite CC.
11771 # But if we don't then we get into trouble of one sort or another.
11772 # A longer-term fix would be to have automake use am__CC in this case,
11773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11774 CC="$am_aux_dir/compile $CC"
11775 fi
11776
11777
11778
11779 if test "x$GCC" != "xyes"; then
11780 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11781 fi
11782 ac_ext=c
11783 ac_cpp='$CPP $CPPFLAGS'
11784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11788 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11789 # On Suns, sometimes $CPP names a directory.
11790 if test -n "$CPP" && test -d "$CPP"; then
11791 CPP=
11792 fi
11793 if test -z "$CPP"; then
11794 if test "${ac_cv_prog_CPP+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 # Double quotes because CPP needs to be expanded
11798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11799 do
11800 ac_preproc_ok=false
11801 for ac_c_preproc_warn_flag in '' yes
11802 do
11803 # Use a header file that comes with gcc, so configuring glibc
11804 # with a fresh cross-compiler works.
11805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 # <limits.h> exists even on freestanding compilers.
11807 # On the NeXT, cc -E runs the code through the compiler's parser,
11808 # not just through cpp. "Syntax error" is here to catch this case.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816 Syntax error
11817 _ACEOF
11818 if ac_fn_c_try_cpp "$LINENO"; then :
11819
11820 else
11821 # Broken: fails on valid input.
11822 continue
11823 fi
11824 rm -f conftest.err conftest.$ac_ext
11825
11826 # OK, works on sane cases. Now check whether nonexistent headers
11827 # can be detected and how.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <ac_nonexistent.h>
11831 _ACEOF
11832 if ac_fn_c_try_cpp "$LINENO"; then :
11833 # Broken: success on invalid input.
11834 continue
11835 else
11836 # Passes both tests.
11837 ac_preproc_ok=:
11838 break
11839 fi
11840 rm -f conftest.err conftest.$ac_ext
11841
11842 done
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then :
11846 break
11847 fi
11848
11849 done
11850 ac_cv_prog_CPP=$CPP
11851
11852 fi
11853 CPP=$ac_cv_prog_CPP
11854 else
11855 ac_cv_prog_CPP=$CPP
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11858 $as_echo "$CPP" >&6; }
11859 ac_preproc_ok=false
11860 for ac_c_preproc_warn_flag in '' yes
11861 do
11862 # Use a header file that comes with gcc, so configuring glibc
11863 # with a fresh cross-compiler works.
11864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 # <limits.h> exists even on freestanding compilers.
11866 # On the NeXT, cc -E runs the code through the compiler's parser,
11867 # not just through cpp. "Syntax error" is here to catch this case.
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #ifdef __STDC__
11871 # include <limits.h>
11872 #else
11873 # include <assert.h>
11874 #endif
11875 Syntax error
11876 _ACEOF
11877 if ac_fn_c_try_cpp "$LINENO"; then :
11878
11879 else
11880 # Broken: fails on valid input.
11881 continue
11882 fi
11883 rm -f conftest.err conftest.$ac_ext
11884
11885 # OK, works on sane cases. Now check whether nonexistent headers
11886 # can be detected and how.
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889 #include <ac_nonexistent.h>
11890 _ACEOF
11891 if ac_fn_c_try_cpp "$LINENO"; then :
11892 # Broken: success on invalid input.
11893 continue
11894 else
11895 # Passes both tests.
11896 ac_preproc_ok=:
11897 break
11898 fi
11899 rm -f conftest.err conftest.$ac_ext
11900
11901 done
11902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11903 rm -f conftest.err conftest.$ac_ext
11904 if $ac_preproc_ok; then :
11905
11906 else
11907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11909 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11910 See \`config.log' for more details." "$LINENO" 5; }
11911 fi
11912
11913 ac_ext=c
11914 ac_cpp='$CPP $CPPFLAGS'
11915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11918
11919
11920 # Calculate toolexeclibdir
11921 # Also toolexecdir, though it's only used in toolexeclibdir
11922 case ${version_specific_libs} in
11923 yes)
11924 # Need the gcc compiler version to know where to install libraries
11925 # and header files if --enable-version-specific-runtime-libs option
11926 # is selected.
11927 toolexecdir='$(libdir)/gcc/$(target_alias)'
11928 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11929 ;;
11930 no)
11931 if test -n "$with_cross_host" &&
11932 test x"$with_cross_host" != x"no"; then
11933 # Install a library built with a cross compiler in tooldir, not libdir.
11934 toolexecdir='$(exec_prefix)/$(target_alias)'
11935 toolexeclibdir='$(toolexecdir)/lib'
11936 else
11937 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11938 toolexeclibdir='$(libdir)'
11939 fi
11940 multi_os_directory=`$CC -print-multi-os-directory`
11941 case $multi_os_directory in
11942 .) ;; # Avoid trailing /.
11943 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11944 esac
11945 ;;
11946 esac
11947
11948
11949
11950 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11951 do :
11952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11954 eval as_val=\$$as_ac_Header
11955 if test "x$as_val" = x""yes; then :
11956 cat >>confdefs.h <<_ACEOF
11957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958 _ACEOF
11959
11960 fi
11961
11962 done
11963
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11966 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11967 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970
11971 save_CFLAGS="$CFLAGS"
11972 CFLAGS="$CFLAGS -Werror"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11975
11976 #include <math.h>
11977 void foo(void) { signgam = 1; }
11978 int
11979 main ()
11980 {
11981
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987 libgfor_cv_have_math_h_signgam=yes
11988 else
11989 libgfor_cv_have_math_h_signgam=no
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 CFLAGS="$save_CFLAGS"
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11995 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11996 if test $libgfor_cv_have_math_h_signgam = yes; then
11997
11998 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
11999
12000 fi
12001
12002 # If available, sqrtl and cbrtl speed up the calculation -
12003 # but they are not required
12004 if test x$gcc_no_link != xyes; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12006 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12007 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lm $LIBS"
12012 if test x$gcc_no_link = xyes; then
12013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12014 fi
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 char sqrtl ();
12025 int
12026 main ()
12027 {
12028 return sqrtl ();
12029 ;
12030 return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034 ac_cv_lib_m_sqrtl=yes
12035 else
12036 ac_cv_lib_m_sqrtl=no
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12043 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12044 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12045
12046 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12047
12048 fi
12049
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12051 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12052 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lm $LIBS"
12057 if test x$gcc_no_link = xyes; then
12058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12059 fi
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char cbrtl ();
12070 int
12071 main ()
12072 {
12073 return cbrtl ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_m_cbrtl=yes
12080 else
12081 ac_cv_lib_m_cbrtl=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12088 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12089 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12090
12091 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12092
12093 fi
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12096 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12097 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-lm $LIBS"
12102 if test x$gcc_no_link = xyes; then
12103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12104 fi
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char feholdexcept ();
12115 int
12116 main ()
12117 {
12118 return feholdexcept ();
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 if ac_fn_c_try_link "$LINENO"; then :
12124 ac_cv_lib_m_feholdexcept=yes
12125 else
12126 ac_cv_lib_m_feholdexcept=no
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12133 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12134 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12135
12136 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12137
12138 fi
12139
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12141 $as_echo_n "checking for fesetround in -lm... " >&6; }
12142 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lm $LIBS"
12147 if test x$gcc_no_link = xyes; then
12148 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12149 fi
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char fesetround ();
12160 int
12161 main ()
12162 {
12163 return fesetround ();
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_lib_m_fesetround=yes
12170 else
12171 ac_cv_lib_m_fesetround=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12178 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12179 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12180
12181 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12182
12183 fi
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12186 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12187 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lm $LIBS"
12192 if test x$gcc_no_link = xyes; then
12193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12194 fi
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char feupdateenv ();
12205 int
12206 main ()
12207 {
12208 return feupdateenv ();
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_lib_m_feupdateenv=yes
12215 else
12216 ac_cv_lib_m_feupdateenv=no
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12223 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12224 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12225
12226 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12227
12228 fi
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12231 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12232 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lm $LIBS"
12237 if test x$gcc_no_link = xyes; then
12238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12239 fi
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char fesetenv ();
12250 int
12251 main ()
12252 {
12253 return fesetenv ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 ac_cv_lib_m_fesetenv=yes
12260 else
12261 ac_cv_lib_m_fesetenv=no
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12268 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12269 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12270
12271 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12272
12273 fi
12274
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12276 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12277 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 ac_check_lib_save_LIBS=$LIBS
12281 LIBS="-lm $LIBS"
12282 if test x$gcc_no_link = xyes; then
12283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12284 fi
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char fetestexcept ();
12295 int
12296 main ()
12297 {
12298 return fetestexcept ();
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_m_fetestexcept=yes
12305 else
12306 ac_cv_lib_m_fetestexcept=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12313 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12314 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12315
12316 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12317
12318 fi
12319
12320 for ac_func in strtoull
12321 do :
12322 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12323 if test "x$ac_cv_func_strtoull" = x""yes; then :
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_STRTOULL 1
12326 _ACEOF
12327
12328 fi
12329 done
12330
12331 else
12332 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12333
12334 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12335
12336 fi
12337 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12338
12339 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12340
12341 fi
12342 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12343
12344 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12345
12346 fi
12347 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12348
12349 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12350
12351 fi
12352 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12353
12354 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12355
12356 fi
12357 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12358
12359 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12360
12361 fi
12362 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12363
12364 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12365
12366 fi
12367 fi
12368
12369 # Check for hidden visibility (copied from libssp).
12370 saved_CFLAGS="$CFLAGS"
12371 CFLAGS="$CFLAGS -Werror"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12373 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376
12377 void __attribute__((visibility ("hidden"))) bar (void) {}
12378 int
12379 main ()
12380 {
12381
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_compile "$LINENO"; then :
12387 quadmath_hidden=yes
12388 else
12389 quadmath_hidden=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12393 $as_echo "$quadmath_hidden" >&6; }
12394 if test x$quadmath_hidden = xyes; then
12395
12396 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12397
12398 fi
12399 CFLAGS="$saved_CFLAGS"
12400
12401 # Check for symbol versioning (copied from libssp).
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12403 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12404 # Check whether --enable-symvers was given.
12405 if test "${enable_symvers+set}" = set; then :
12406 enableval=$enable_symvers; quadmath_use_symver=$enableval
12407 else
12408 quadmath_use_symver=yes
12409 fi
12410
12411 if test "x$quadmath_use_symver" != xno; then
12412 if test x$gcc_no_link = xyes; then
12413 # If we cannot link, we cannot build shared libraries, so do not use
12414 # symbol versioning.
12415 quadmath_use_symver=no
12416 else
12417 save_LDFLAGS="$LDFLAGS"
12418 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12419 cat > conftest.map <<EOF
12420 FOO_1.0 {
12421 global: *foo*; bar; local: *;
12422 };
12423 EOF
12424 if test x$gcc_no_link = xyes; then
12425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12426 fi
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 int foo;
12430 int
12431 main ()
12432 {
12433
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 quadmath_use_symver=gnu
12440 else
12441 quadmath_use_symver=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 if test x$quadmath_use_symver = xno; then
12446 case "$target_os" in
12447 solaris2*)
12448 LDFLAGS="$save_LDFLAGS"
12449 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12450 # Sun ld cannot handle wildcards and treats all entries as undefined.
12451 cat > conftest.map <<EOF
12452 FOO_1.0 {
12453 global: foo; local: *;
12454 };
12455 EOF
12456 if test x$gcc_no_link = xyes; then
12457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12458 fi
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 int foo;
12462 int
12463 main ()
12464 {
12465
12466 ;
12467 return 0;
12468 }
12469 _ACEOF
12470 if ac_fn_c_try_link "$LINENO"; then :
12471 quadmath_use_symver=sun
12472 else
12473 quadmath_use_symver=no
12474 fi
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 ;;
12478 esac
12479 fi
12480 LDFLAGS="$save_LDFLAGS"
12481 fi
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12484 $as_echo "$quadmath_use_symver" >&6; }
12485 if test "x$quadmath_use_symver" != xno; then
12486 LIBQUAD_USE_SYMVER_TRUE=
12487 LIBQUAD_USE_SYMVER_FALSE='#'
12488 else
12489 LIBQUAD_USE_SYMVER_TRUE='#'
12490 LIBQUAD_USE_SYMVER_FALSE=
12491 fi
12492
12493 if test "x$quadmath_use_symver" = xgnu; then
12494 LIBQUAD_USE_SYMVER_GNU_TRUE=
12495 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12496 else
12497 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12498 LIBQUAD_USE_SYMVER_GNU_FALSE=
12499 fi
12500
12501 if test "x$quadmath_use_symver" = xsun; then
12502 LIBQUAD_USE_SYMVER_SUN_TRUE=
12503 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12504 else
12505 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12506 LIBQUAD_USE_SYMVER_SUN_FALSE=
12507 fi
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12511 $as_echo_n "checking whether __float128 is supported... " >&6; }
12512 if test "${libquad_cv_have_float128+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 if test x$gcc_no_link = xyes; then
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12520 typedef _Complex float __attribute__((mode(TC))) __complex128;
12521 #else
12522 typedef _Complex float __attribute__((mode(KC))) __complex128;
12523 #endif
12524
12525 __float128 foo (__float128 x)
12526 {
12527
12528 __complex128 z1, z2;
12529
12530 z1 = x;
12531 z2 = x / 7.Q;
12532 z2 /= z1;
12533
12534 return (__float128) z2;
12535 }
12536
12537 __float128 bar (__float128 x)
12538 {
12539 return x * __builtin_huge_valq ();
12540 }
12541
12542 int
12543 main ()
12544 {
12545
12546 foo (1.2Q);
12547 bar (1.2Q);
12548
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554
12555 libquad_cv_have_float128=yes
12556
12557 else
12558
12559 libquad_cv_have_float128=no
12560
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 else
12564 if test x$gcc_no_link = xyes; then
12565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12566 fi
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12571 typedef _Complex float __attribute__((mode(TC))) __complex128;
12572 #else
12573 typedef _Complex float __attribute__((mode(KC))) __complex128;
12574 #endif
12575
12576 __float128 foo (__float128 x)
12577 {
12578
12579 __complex128 z1, z2;
12580
12581 z1 = x;
12582 z2 = x / 7.Q;
12583 z2 /= z1;
12584
12585 return (__float128) z2;
12586 }
12587
12588 __float128 bar (__float128 x)
12589 {
12590 return x * __builtin_huge_valq ();
12591 }
12592
12593 int
12594 main ()
12595 {
12596
12597 foo (1.2Q);
12598 bar (1.2Q);
12599
12600 ;
12601 return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605
12606 libquad_cv_have_float128=yes
12607
12608 else
12609
12610 libquad_cv_have_float128=no
12611
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 fi
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12618 $as_echo "$libquad_cv_have_float128" >&6; }
12619 if test "x$libquad_cv_have_float128" = xyes; then
12620 BUILD_LIBQUADMATH_TRUE=
12621 BUILD_LIBQUADMATH_FALSE='#'
12622 else
12623 BUILD_LIBQUADMATH_TRUE='#'
12624 BUILD_LIBQUADMATH_FALSE=
12625 fi
12626
12627
12628 # Check for printf hook support.
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12630 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633
12634 #include <printf.h>
12635 #include <stdarg.h>
12636 #include <stdlib.h>
12637 extern void flt128_va (void *, va_list *);
12638 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12639 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12640
12641 int
12642 main ()
12643 {
12644
12645 int pa_flt128 = register_printf_type (flt128_va);
12646 int mod_Q = register_printf_modifier (L"Q");
12647 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12648 struct printf_info info = { .user = -1 };
12649
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_compile "$LINENO"; then :
12655 quadmath_printf_hooks=yes
12656 else
12657 quadmath_printf_hooks=no
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12661 $as_echo "$quadmath_printf_hooks" >&6; }
12662 if test x$quadmath_printf_hooks = xyes; then
12663
12664 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12665
12666 fi
12667
12668 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12669 # should be provided.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12671 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 #include <langinfo.h>
12675 int
12676 main ()
12677 {
12678
12679 const char *s;
12680 s = nl_langinfo (DECIMAL_POINT);
12681 s = nl_langinfo (MON_DECIMAL_POINT);
12682 s = nl_langinfo (GROUPING);
12683 s = nl_langinfo (MON_GROUPING);
12684 s = nl_langinfo (THOUSANDS_SEP);
12685 s = nl_langinfo (MON_THOUSANDS_SEP);
12686 (void) s;
12687
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_compile "$LINENO"; then :
12693 quadmath_use_nl_langinfo=yes
12694 else
12695 quadmath_use_nl_langinfo=no
12696 fi
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12699 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12700 if test x$quadmath_use_nl_langinfo = xyes; then
12701
12702 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12703
12704 fi
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12707 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #include <langinfo.h>
12711 int
12712 main ()
12713 {
12714
12715 const char *s;
12716 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12717 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12718 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12719 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12720 (void) s;
12721
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727 quadmath_use_nl_langinfo_wc=yes
12728 else
12729 quadmath_use_nl_langinfo_wc=no
12730 fi
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12733 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12734 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12735
12736 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12737
12738 fi
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12741 $as_echo_n "checking whether localeconv should be used... " >&6; }
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 #include <locale.h>
12745 int
12746 main ()
12747 {
12748
12749 const struct lconv *l = localeconv ();
12750 const char *s;
12751 s = l->decimal_point;
12752 s = l->mon_decimal_point;
12753 s = l->grouping;
12754 s = l->mon_grouping;
12755 s = l->thousands_sep;
12756 s = l->mon_thousands_sep;
12757 (void) s;
12758
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 quadmath_use_localeconv=yes
12765 else
12766 quadmath_use_localeconv=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12770 $as_echo "$quadmath_use_localeconv" >&6; }
12771 if test x$quadmath_use_localeconv = xyes; then
12772
12773 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12774
12775 fi
12776
12777 # Check for whether i18n number rewriting support for quadmath_snprintf
12778 # or Q printf hooks should be provided.
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12780 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 #include <langinfo.h>
12784 #include <limits.h>
12785 #include <string.h>
12786 #include <wchar.h>
12787 #include <wctype.h>
12788 int
12789 main ()
12790 {
12791
12792 const char *s;
12793 char decimal[MB_LEN_MAX];
12794 wctrans_t map = wctrans ("to_outpunct");
12795 wint_t wdecimal = towctrans (L'.', map);
12796 mbstate_t state;
12797 memset (&state, '\0', sizeof (state));
12798 wcrtomb (decimal, wdecimal, &state);
12799 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12800 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12801 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12802 (void) s;
12803
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 if ac_fn_c_try_compile "$LINENO"; then :
12809 quadmath_use_i18n_number_h=yes
12810 else
12811 quadmath_use_i18n_number_h=no
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12815 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12816 if test x$quadmath_use_i18n_number_h = xyes; then
12817
12818 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12819
12820 fi
12821
12822 cat >confcache <<\_ACEOF
12823 # This file is a shell script that caches the results of configure
12824 # tests run on this system so they can be shared between configure
12825 # scripts and configure runs, see configure's option --config-cache.
12826 # It is not useful on other systems. If it contains results you don't
12827 # want to keep, you may remove or edit it.
12828 #
12829 # config.status only pays attention to the cache file if you give it
12830 # the --recheck option to rerun configure.
12831 #
12832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12834 # following values.
12835
12836 _ACEOF
12837
12838 # The following way of writing the cache mishandles newlines in values,
12839 # but we know of no workaround that is simple, portable, and efficient.
12840 # So, we kill variables containing newlines.
12841 # Ultrix sh set writes to stderr and can't be redirected directly,
12842 # and sets the high bit in the cache file unless we assign to the vars.
12843 (
12844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12845 eval ac_val=\$$ac_var
12846 case $ac_val in #(
12847 *${as_nl}*)
12848 case $ac_var in #(
12849 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12851 esac
12852 case $ac_var in #(
12853 _ | IFS | as_nl) ;; #(
12854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12855 *) { eval $ac_var=; unset $ac_var;} ;;
12856 esac ;;
12857 esac
12858 done
12859
12860 (set) 2>&1 |
12861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12862 *${as_nl}ac_space=\ *)
12863 # `set' does not quote correctly, so add quotes: double-quote
12864 # substitution turns \\\\ into \\, and sed turns \\ into \.
12865 sed -n \
12866 "s/'/'\\\\''/g;
12867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12868 ;; #(
12869 *)
12870 # `set' quotes correctly as required by POSIX, so do not add quotes.
12871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12872 ;;
12873 esac |
12874 sort
12875 ) |
12876 sed '
12877 /^ac_cv_env_/b end
12878 t clear
12879 :clear
12880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12881 t end
12882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12883 :end' >>confcache
12884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12885 if test -w "$cache_file"; then
12886 test "x$cache_file" != "x/dev/null" &&
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12888 $as_echo "$as_me: updating cache $cache_file" >&6;}
12889 cat confcache >$cache_file
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12892 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12893 fi
12894 fi
12895 rm -f confcache
12896
12897 if test ${multilib} = yes; then
12898 multilib_arg="--enable-multilib"
12899 else
12900 multilib_arg=
12901 fi
12902
12903
12904 # We would like our source tree to be readonly. However when releases or
12905 # pre-releases are generated, the flex/bison generated files as well as the
12906 # various formats of manuals need to be included along with the rest of the
12907 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12908 # just that.
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12910 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12911 # Check whether --enable-generated-files-in-srcdir was given.
12912 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12913 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12914 yes) enable_generated_files_in_srcdir=yes ;;
12915 no) enable_generated_files_in_srcdir=no ;;
12916 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12917 esac
12918 else
12919 enable_generated_files_in_srcdir=no
12920 fi
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12923 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12924 if test "$enable_generated_files_in_srcdir" = yes; then
12925 GENINSRC_TRUE=
12926 GENINSRC_FALSE='#'
12927 else
12928 GENINSRC_TRUE='#'
12929 GENINSRC_FALSE=
12930 fi
12931
12932
12933 # Determine what GCC version number to use in filesystem paths.
12934
12935 get_gcc_base_ver="cat"
12936
12937 # Check whether --with-gcc-major-version-only was given.
12938 if test "${with_gcc_major_version_only+set}" = set; then :
12939 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12940 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
12941 fi
12942
12943 fi
12944
12945
12946
12947
12948 ac_config_files="$ac_config_files Makefile"
12949
12950 cat >confcache <<\_ACEOF
12951 # This file is a shell script that caches the results of configure
12952 # tests run on this system so they can be shared between configure
12953 # scripts and configure runs, see configure's option --config-cache.
12954 # It is not useful on other systems. If it contains results you don't
12955 # want to keep, you may remove or edit it.
12956 #
12957 # config.status only pays attention to the cache file if you give it
12958 # the --recheck option to rerun configure.
12959 #
12960 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12961 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12962 # following values.
12963
12964 _ACEOF
12965
12966 # The following way of writing the cache mishandles newlines in values,
12967 # but we know of no workaround that is simple, portable, and efficient.
12968 # So, we kill variables containing newlines.
12969 # Ultrix sh set writes to stderr and can't be redirected directly,
12970 # and sets the high bit in the cache file unless we assign to the vars.
12971 (
12972 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12973 eval ac_val=\$$ac_var
12974 case $ac_val in #(
12975 *${as_nl}*)
12976 case $ac_var in #(
12977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12979 esac
12980 case $ac_var in #(
12981 _ | IFS | as_nl) ;; #(
12982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12983 *) { eval $ac_var=; unset $ac_var;} ;;
12984 esac ;;
12985 esac
12986 done
12987
12988 (set) 2>&1 |
12989 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12990 *${as_nl}ac_space=\ *)
12991 # `set' does not quote correctly, so add quotes: double-quote
12992 # substitution turns \\\\ into \\, and sed turns \\ into \.
12993 sed -n \
12994 "s/'/'\\\\''/g;
12995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12996 ;; #(
12997 *)
12998 # `set' quotes correctly as required by POSIX, so do not add quotes.
12999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13000 ;;
13001 esac |
13002 sort
13003 ) |
13004 sed '
13005 /^ac_cv_env_/b end
13006 t clear
13007 :clear
13008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13009 t end
13010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13011 :end' >>confcache
13012 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13013 if test -w "$cache_file"; then
13014 test "x$cache_file" != "x/dev/null" &&
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13016 $as_echo "$as_me: updating cache $cache_file" >&6;}
13017 cat confcache >$cache_file
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13020 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13021 fi
13022 fi
13023 rm -f confcache
13024
13025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13026 # Let make expand exec_prefix.
13027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13028
13029 DEFS=-DHAVE_CONFIG_H
13030
13031 ac_libobjs=
13032 ac_ltlibobjs=
13033 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13034 # 1. Remove the extension, and $U if already installed.
13035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13036 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13038 # will be set to the directory where LIBOBJS objects are built.
13039 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13040 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13041 done
13042 LIBOBJS=$ac_libobjs
13043
13044 LTLIBOBJS=$ac_ltlibobjs
13045
13046
13047 if test -n "$EXEEXT"; then
13048 am__EXEEXT_TRUE=
13049 am__EXEEXT_FALSE='#'
13050 else
13051 am__EXEEXT_TRUE='#'
13052 am__EXEEXT_FALSE=
13053 fi
13054
13055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13056 as_fn_error "conditional \"AMDEP\" was never defined.
13057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13058 fi
13059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13060 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13062 fi
13063 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13064 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13066 fi
13067 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13068 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13070 fi
13071 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13072 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13074 fi
13075 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13076 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13078 fi
13079 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13080 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13082 fi
13083 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13084 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13086 fi
13087 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13088 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13090 fi
13091 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13092 as_fn_error "conditional \"GENINSRC\" was never defined.
13093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13094 fi
13095
13096 : ${CONFIG_STATUS=./config.status}
13097 ac_write_fail=0
13098 ac_clean_files_save=$ac_clean_files
13099 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13101 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13102 as_write_fail=0
13103 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13104 #! $SHELL
13105 # Generated by $as_me.
13106 # Run this file to recreate the current configuration.
13107 # Compiler output produced by configure, useful for debugging
13108 # configure, is in config.log if it exists.
13109
13110 debug=false
13111 ac_cs_recheck=false
13112 ac_cs_silent=false
13113
13114 SHELL=\${CONFIG_SHELL-$SHELL}
13115 export SHELL
13116 _ASEOF
13117 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13118 ## -------------------- ##
13119 ## M4sh Initialization. ##
13120 ## -------------------- ##
13121
13122 # Be more Bourne compatible
13123 DUALCASE=1; export DUALCASE # for MKS sh
13124 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13125 emulate sh
13126 NULLCMD=:
13127 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13128 # is contrary to our usage. Disable this feature.
13129 alias -g '${1+"$@"}'='"$@"'
13130 setopt NO_GLOB_SUBST
13131 else
13132 case `(set -o) 2>/dev/null` in #(
13133 *posix*) :
13134 set -o posix ;; #(
13135 *) :
13136 ;;
13137 esac
13138 fi
13139
13140
13141 as_nl='
13142 '
13143 export as_nl
13144 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13145 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13146 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13147 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13148 # Prefer a ksh shell builtin over an external printf program on Solaris,
13149 # but without wasting forks for bash or zsh.
13150 if test -z "$BASH_VERSION$ZSH_VERSION" \
13151 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13152 as_echo='print -r --'
13153 as_echo_n='print -rn --'
13154 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13155 as_echo='printf %s\n'
13156 as_echo_n='printf %s'
13157 else
13158 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13159 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13160 as_echo_n='/usr/ucb/echo -n'
13161 else
13162 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13163 as_echo_n_body='eval
13164 arg=$1;
13165 case $arg in #(
13166 *"$as_nl"*)
13167 expr "X$arg" : "X\\(.*\\)$as_nl";
13168 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13169 esac;
13170 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13171 '
13172 export as_echo_n_body
13173 as_echo_n='sh -c $as_echo_n_body as_echo'
13174 fi
13175 export as_echo_body
13176 as_echo='sh -c $as_echo_body as_echo'
13177 fi
13178
13179 # The user is always right.
13180 if test "${PATH_SEPARATOR+set}" != set; then
13181 PATH_SEPARATOR=:
13182 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13183 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13184 PATH_SEPARATOR=';'
13185 }
13186 fi
13187
13188
13189 # IFS
13190 # We need space, tab and new line, in precisely that order. Quoting is
13191 # there to prevent editors from complaining about space-tab.
13192 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13193 # splitting by setting IFS to empty value.)
13194 IFS=" "" $as_nl"
13195
13196 # Find who we are. Look in the path if we contain no directory separator.
13197 case $0 in #((
13198 *[\\/]* ) as_myself=$0 ;;
13199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13205 done
13206 IFS=$as_save_IFS
13207
13208 ;;
13209 esac
13210 # We did not find ourselves, most probably we were run as `sh COMMAND'
13211 # in which case we are not to be found in the path.
13212 if test "x$as_myself" = x; then
13213 as_myself=$0
13214 fi
13215 if test ! -f "$as_myself"; then
13216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13217 exit 1
13218 fi
13219
13220 # Unset variables that we do not need and which cause bugs (e.g. in
13221 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13222 # suppresses any "Segmentation fault" message there. '((' could
13223 # trigger a bug in pdksh 5.2.14.
13224 for as_var in BASH_ENV ENV MAIL MAILPATH
13225 do eval test x\${$as_var+set} = xset \
13226 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13227 done
13228 PS1='$ '
13229 PS2='> '
13230 PS4='+ '
13231
13232 # NLS nuisances.
13233 LC_ALL=C
13234 export LC_ALL
13235 LANGUAGE=C
13236 export LANGUAGE
13237
13238 # CDPATH.
13239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13240
13241
13242 # as_fn_error ERROR [LINENO LOG_FD]
13243 # ---------------------------------
13244 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13245 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13246 # script with status $?, using 1 if that was 0.
13247 as_fn_error ()
13248 {
13249 as_status=$?; test $as_status -eq 0 && as_status=1
13250 if test "$3"; then
13251 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13252 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13253 fi
13254 $as_echo "$as_me: error: $1" >&2
13255 as_fn_exit $as_status
13256 } # as_fn_error
13257
13258
13259 # as_fn_set_status STATUS
13260 # -----------------------
13261 # Set $? to STATUS, without forking.
13262 as_fn_set_status ()
13263 {
13264 return $1
13265 } # as_fn_set_status
13266
13267 # as_fn_exit STATUS
13268 # -----------------
13269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13270 as_fn_exit ()
13271 {
13272 set +e
13273 as_fn_set_status $1
13274 exit $1
13275 } # as_fn_exit
13276
13277 # as_fn_unset VAR
13278 # ---------------
13279 # Portably unset VAR.
13280 as_fn_unset ()
13281 {
13282 { eval $1=; unset $1;}
13283 }
13284 as_unset=as_fn_unset
13285 # as_fn_append VAR VALUE
13286 # ----------------------
13287 # Append the text in VALUE to the end of the definition contained in VAR. Take
13288 # advantage of any shell optimizations that allow amortized linear growth over
13289 # repeated appends, instead of the typical quadratic growth present in naive
13290 # implementations.
13291 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13292 eval 'as_fn_append ()
13293 {
13294 eval $1+=\$2
13295 }'
13296 else
13297 as_fn_append ()
13298 {
13299 eval $1=\$$1\$2
13300 }
13301 fi # as_fn_append
13302
13303 # as_fn_arith ARG...
13304 # ------------------
13305 # Perform arithmetic evaluation on the ARGs, and store the result in the
13306 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13307 # must be portable across $(()) and expr.
13308 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13309 eval 'as_fn_arith ()
13310 {
13311 as_val=$(( $* ))
13312 }'
13313 else
13314 as_fn_arith ()
13315 {
13316 as_val=`expr "$@" || test $? -eq 1`
13317 }
13318 fi # as_fn_arith
13319
13320
13321 if expr a : '\(a\)' >/dev/null 2>&1 &&
13322 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13323 as_expr=expr
13324 else
13325 as_expr=false
13326 fi
13327
13328 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13329 as_basename=basename
13330 else
13331 as_basename=false
13332 fi
13333
13334 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13335 as_dirname=dirname
13336 else
13337 as_dirname=false
13338 fi
13339
13340 as_me=`$as_basename -- "$0" ||
13341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13342 X"$0" : 'X\(//\)$' \| \
13343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13344 $as_echo X/"$0" |
13345 sed '/^.*\/\([^/][^/]*\)\/*$/{
13346 s//\1/
13347 q
13348 }
13349 /^X\/\(\/\/\)$/{
13350 s//\1/
13351 q
13352 }
13353 /^X\/\(\/\).*/{
13354 s//\1/
13355 q
13356 }
13357 s/.*/./; q'`
13358
13359 # Avoid depending upon Character Ranges.
13360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13363 as_cr_digits='0123456789'
13364 as_cr_alnum=$as_cr_Letters$as_cr_digits
13365
13366 ECHO_C= ECHO_N= ECHO_T=
13367 case `echo -n x` in #(((((
13368 -n*)
13369 case `echo 'xy\c'` in
13370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13371 xy) ECHO_C='\c';;
13372 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13373 ECHO_T=' ';;
13374 esac;;
13375 *)
13376 ECHO_N='-n';;
13377 esac
13378
13379 rm -f conf$$ conf$$.exe conf$$.file
13380 if test -d conf$$.dir; then
13381 rm -f conf$$.dir/conf$$.file
13382 else
13383 rm -f conf$$.dir
13384 mkdir conf$$.dir 2>/dev/null
13385 fi
13386 if (echo >conf$$.file) 2>/dev/null; then
13387 if ln -s conf$$.file conf$$ 2>/dev/null; then
13388 as_ln_s='ln -s'
13389 # ... but there are two gotchas:
13390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13392 # In both cases, we have to default to `cp -p'.
13393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13394 as_ln_s='cp -p'
13395 elif ln conf$$.file conf$$ 2>/dev/null; then
13396 as_ln_s=ln
13397 else
13398 as_ln_s='cp -p'
13399 fi
13400 else
13401 as_ln_s='cp -p'
13402 fi
13403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13404 rmdir conf$$.dir 2>/dev/null
13405
13406
13407 # as_fn_mkdir_p
13408 # -------------
13409 # Create "$as_dir" as a directory, including parents if necessary.
13410 as_fn_mkdir_p ()
13411 {
13412
13413 case $as_dir in #(
13414 -*) as_dir=./$as_dir;;
13415 esac
13416 test -d "$as_dir" || eval $as_mkdir_p || {
13417 as_dirs=
13418 while :; do
13419 case $as_dir in #(
13420 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13421 *) as_qdir=$as_dir;;
13422 esac
13423 as_dirs="'$as_qdir' $as_dirs"
13424 as_dir=`$as_dirname -- "$as_dir" ||
13425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426 X"$as_dir" : 'X\(//\)[^/]' \| \
13427 X"$as_dir" : 'X\(//\)$' \| \
13428 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13429 $as_echo X"$as_dir" |
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\/\)[^/].*/{
13435 s//\1/
13436 q
13437 }
13438 /^X\(\/\/\)$/{
13439 s//\1/
13440 q
13441 }
13442 /^X\(\/\).*/{
13443 s//\1/
13444 q
13445 }
13446 s/.*/./; q'`
13447 test -d "$as_dir" && break
13448 done
13449 test -z "$as_dirs" || eval "mkdir $as_dirs"
13450 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13451
13452
13453 } # as_fn_mkdir_p
13454 if mkdir -p . 2>/dev/null; then
13455 as_mkdir_p='mkdir -p "$as_dir"'
13456 else
13457 test -d ./-p && rmdir ./-p
13458 as_mkdir_p=false
13459 fi
13460
13461 if test -x / >/dev/null 2>&1; then
13462 as_test_x='test -x'
13463 else
13464 if ls -dL / >/dev/null 2>&1; then
13465 as_ls_L_option=L
13466 else
13467 as_ls_L_option=
13468 fi
13469 as_test_x='
13470 eval sh -c '\''
13471 if test -d "$1"; then
13472 test -d "$1/.";
13473 else
13474 case $1 in #(
13475 -*)set "./$1";;
13476 esac;
13477 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13478 ???[sx]*):;;*)false;;esac;fi
13479 '\'' sh
13480 '
13481 fi
13482 as_executable_p=$as_test_x
13483
13484 # Sed expression to map a string onto a valid CPP name.
13485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13486
13487 # Sed expression to map a string onto a valid variable name.
13488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13489
13490
13491 exec 6>&1
13492 ## ----------------------------------- ##
13493 ## Main body of $CONFIG_STATUS script. ##
13494 ## ----------------------------------- ##
13495 _ASEOF
13496 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13497
13498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13499 # Save the log message, to keep $0 and so on meaningful, and to
13500 # report actual input values of CONFIG_FILES etc. instead of their
13501 # values after options handling.
13502 ac_log="
13503 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13504 generated by GNU Autoconf 2.64. Invocation command line was
13505
13506 CONFIG_FILES = $CONFIG_FILES
13507 CONFIG_HEADERS = $CONFIG_HEADERS
13508 CONFIG_LINKS = $CONFIG_LINKS
13509 CONFIG_COMMANDS = $CONFIG_COMMANDS
13510 $ $0 $@
13511
13512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13513 "
13514
13515 _ACEOF
13516
13517 case $ac_config_files in *"
13518 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13519 esac
13520
13521 case $ac_config_headers in *"
13522 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13523 esac
13524
13525
13526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13527 # Files that config.status was made for.
13528 config_files="$ac_config_files"
13529 config_headers="$ac_config_headers"
13530 config_commands="$ac_config_commands"
13531
13532 _ACEOF
13533
13534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535 ac_cs_usage="\
13536 \`$as_me' instantiates files and other configuration actions
13537 from templates according to the current configuration. Unless the files
13538 and actions are specified as TAGs, all are instantiated by default.
13539
13540 Usage: $0 [OPTION]... [TAG]...
13541
13542 -h, --help print this help, then exit
13543 -V, --version print version number and configuration settings, then exit
13544 -q, --quiet, --silent
13545 do not print progress messages
13546 -d, --debug don't remove temporary files
13547 --recheck update $as_me by reconfiguring in the same conditions
13548 --file=FILE[:TEMPLATE]
13549 instantiate the configuration file FILE
13550 --header=FILE[:TEMPLATE]
13551 instantiate the configuration header FILE
13552
13553 Configuration files:
13554 $config_files
13555
13556 Configuration headers:
13557 $config_headers
13558
13559 Configuration commands:
13560 $config_commands
13561
13562 Report bugs to the package provider."
13563
13564 _ACEOF
13565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13566 ac_cs_version="\\
13567 GCC Quad-precision Math Library config.status 0.1
13568 configured by $0, generated by GNU Autoconf 2.64,
13569 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13570
13571 Copyright (C) 2009 Free Software Foundation, Inc.
13572 This config.status script is free software; the Free Software Foundation
13573 gives unlimited permission to copy, distribute and modify it."
13574
13575 ac_pwd='$ac_pwd'
13576 srcdir='$srcdir'
13577 INSTALL='$INSTALL'
13578 MKDIR_P='$MKDIR_P'
13579 AWK='$AWK'
13580 test -n "\$AWK" || AWK=awk
13581 _ACEOF
13582
13583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13584 # The default lists apply if the user does not specify any file.
13585 ac_need_defaults=:
13586 while test $# != 0
13587 do
13588 case $1 in
13589 --*=*)
13590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13592 ac_shift=:
13593 ;;
13594 *)
13595 ac_option=$1
13596 ac_optarg=$2
13597 ac_shift=shift
13598 ;;
13599 esac
13600
13601 case $ac_option in
13602 # Handling of the options.
13603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13604 ac_cs_recheck=: ;;
13605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13606 $as_echo "$ac_cs_version"; exit ;;
13607 --debug | --debu | --deb | --de | --d | -d )
13608 debug=: ;;
13609 --file | --fil | --fi | --f )
13610 $ac_shift
13611 case $ac_optarg in
13612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13613 esac
13614 as_fn_append CONFIG_FILES " '$ac_optarg'"
13615 ac_need_defaults=false;;
13616 --header | --heade | --head | --hea )
13617 $ac_shift
13618 case $ac_optarg in
13619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13620 esac
13621 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13622 ac_need_defaults=false;;
13623 --he | --h)
13624 # Conflict between --help and --header
13625 as_fn_error "ambiguous option: \`$1'
13626 Try \`$0 --help' for more information.";;
13627 --help | --hel | -h )
13628 $as_echo "$ac_cs_usage"; exit ;;
13629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13631 ac_cs_silent=: ;;
13632
13633 # This is an error.
13634 -*) as_fn_error "unrecognized option: \`$1'
13635 Try \`$0 --help' for more information." ;;
13636
13637 *) as_fn_append ac_config_targets " $1"
13638 ac_need_defaults=false ;;
13639
13640 esac
13641 shift
13642 done
13643
13644 ac_configure_extra_args=
13645
13646 if $ac_cs_silent; then
13647 exec 6>/dev/null
13648 ac_configure_extra_args="$ac_configure_extra_args --silent"
13649 fi
13650
13651 _ACEOF
13652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13653 if \$ac_cs_recheck; then
13654 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13655 shift
13656 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13657 CONFIG_SHELL='$SHELL'
13658 export CONFIG_SHELL
13659 exec "\$@"
13660 fi
13661
13662 _ACEOF
13663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13664 exec 5>>config.log
13665 {
13666 echo
13667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13668 ## Running $as_me. ##
13669 _ASBOX
13670 $as_echo "$ac_log"
13671 } >&5
13672
13673 _ACEOF
13674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13675 #
13676 # INIT-COMMANDS
13677 #
13678
13679 srcdir="$srcdir"
13680 host="$host"
13681 target="$target"
13682 with_multisubdir="$with_multisubdir"
13683 with_multisrctop="$with_multisrctop"
13684 with_target_subdir="$with_target_subdir"
13685 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13686 multi_basedir="$multi_basedir"
13687 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13688 CC="$CC"
13689 CXX="$CXX"
13690 GFORTRAN="$GFORTRAN"
13691 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13692
13693
13694 # The HP-UX ksh and POSIX shell print the target directory to stdout
13695 # if CDPATH is set.
13696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13697
13698 sed_quote_subst='$sed_quote_subst'
13699 double_quote_subst='$double_quote_subst'
13700 delay_variable_subst='$delay_variable_subst'
13701 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13702 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13703 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13704 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13705 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13706 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13707 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13708 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13709 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13710 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13711 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13712 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13713 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13714 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13715 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13716 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13717 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13718 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13719 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13720 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13721 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13722 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13723 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13724 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13725 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13726 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13727 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13728 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13731 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13732 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13733 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13734 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13735 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13736 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13737 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13738 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13739 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13740 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13741 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13742 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13743 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13744 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13745 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13746 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13747 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13748 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13749 lt_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"`'
13750 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13751 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13752 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13753 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13754 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13755 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13756 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13757 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13758 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13759 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13760 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13761 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13762 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13763 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13764 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13765 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13766 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13767 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13768 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13769 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13770 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13771 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13772 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13773 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13774 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13775 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13776 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13777 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13778 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13779 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13780 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13781 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13782 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13783 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13784 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13785 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13786 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13787 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13788 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13789 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13790 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13791 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13792 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13793 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13794 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13795 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13796 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13797 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13798 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13799 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13800 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13801 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13802 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13803 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13804 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13805 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13806 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13807 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13808 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13809 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13810 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13811 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13812 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13813 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13814 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13815 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13816 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13817 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13818 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13819 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13820 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13821
13822 LTCC='$LTCC'
13823 LTCFLAGS='$LTCFLAGS'
13824 compiler='$compiler_DEFAULT'
13825
13826 # A function that is used when there is no print builtin or printf.
13827 func_fallback_echo ()
13828 {
13829 eval 'cat <<_LTECHO_EOF
13830 \$1
13831 _LTECHO_EOF'
13832 }
13833
13834 # Quote evaled strings.
13835 for var in SHELL \
13836 ECHO \
13837 SED \
13838 GREP \
13839 EGREP \
13840 FGREP \
13841 LD \
13842 NM \
13843 LN_S \
13844 lt_SP2NL \
13845 lt_NL2SP \
13846 reload_flag \
13847 OBJDUMP \
13848 deplibs_check_method \
13849 file_magic_cmd \
13850 AR \
13851 AR_FLAGS \
13852 STRIP \
13853 RANLIB \
13854 CC \
13855 CFLAGS \
13856 compiler \
13857 lt_cv_sys_global_symbol_pipe \
13858 lt_cv_sys_global_symbol_to_cdecl \
13859 lt_cv_sys_global_symbol_to_c_name_address \
13860 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13861 lt_prog_compiler_no_builtin_flag \
13862 lt_prog_compiler_wl \
13863 lt_prog_compiler_pic \
13864 lt_prog_compiler_static \
13865 lt_cv_prog_compiler_c_o \
13866 need_locks \
13867 DSYMUTIL \
13868 NMEDIT \
13869 LIPO \
13870 OTOOL \
13871 OTOOL64 \
13872 shrext_cmds \
13873 export_dynamic_flag_spec \
13874 whole_archive_flag_spec \
13875 compiler_needs_object \
13876 with_gnu_ld \
13877 allow_undefined_flag \
13878 no_undefined_flag \
13879 hardcode_libdir_flag_spec \
13880 hardcode_libdir_flag_spec_ld \
13881 hardcode_libdir_separator \
13882 fix_srcfile_path \
13883 exclude_expsyms \
13884 include_expsyms \
13885 file_list_spec \
13886 variables_saved_for_relink \
13887 libname_spec \
13888 library_names_spec \
13889 soname_spec \
13890 install_override_mode \
13891 finish_eval \
13892 old_striplib \
13893 striplib; do
13894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13895 *[\\\\\\\`\\"\\\$]*)
13896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13897 ;;
13898 *)
13899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13900 ;;
13901 esac
13902 done
13903
13904 # Double-quote double-evaled strings.
13905 for var in reload_cmds \
13906 old_postinstall_cmds \
13907 old_postuninstall_cmds \
13908 old_archive_cmds \
13909 extract_expsyms_cmds \
13910 old_archive_from_new_cmds \
13911 old_archive_from_expsyms_cmds \
13912 archive_cmds \
13913 archive_expsym_cmds \
13914 module_cmds \
13915 module_expsym_cmds \
13916 export_symbols_cmds \
13917 prelink_cmds \
13918 postinstall_cmds \
13919 postuninstall_cmds \
13920 finish_cmds \
13921 sys_lib_search_path_spec \
13922 sys_lib_dlsearch_path_spec; do
13923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13924 *[\\\\\\\`\\"\\\$]*)
13925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13926 ;;
13927 *)
13928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13929 ;;
13930 esac
13931 done
13932
13933 ac_aux_dir='$ac_aux_dir'
13934 xsi_shell='$xsi_shell'
13935 lt_shell_append='$lt_shell_append'
13936
13937 # See if we are running on zsh, and set the options which allow our
13938 # commands through without removal of \ escapes INIT.
13939 if test -n "\${ZSH_VERSION+set}" ; then
13940 setopt NO_GLOB_SUBST
13941 fi
13942
13943
13944 PACKAGE='$PACKAGE'
13945 VERSION='$VERSION'
13946 TIMESTAMP='$TIMESTAMP'
13947 RM='$RM'
13948 ofile='$ofile'
13949
13950
13951
13952
13953 _ACEOF
13954
13955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13956
13957 # Handling of arguments.
13958 for ac_config_target in $ac_config_targets
13959 do
13960 case $ac_config_target in
13961 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13962 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13963 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13964 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13965 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13966
13967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13968 esac
13969 done
13970
13971
13972 # If the user did not use the arguments to specify the items to instantiate,
13973 # then the envvar interface is used. Set only those that are not.
13974 # We use the long form for the default assignment because of an extremely
13975 # bizarre bug on SunOS 4.1.3.
13976 if $ac_need_defaults; then
13977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13980 fi
13981
13982 # Have a temporary directory for convenience. Make it in the build tree
13983 # simply because there is no reason against having it here, and in addition,
13984 # creating and moving files from /tmp can sometimes cause problems.
13985 # Hook for its removal unless debugging.
13986 # Note that there is a small window in which the directory will not be cleaned:
13987 # after its creation but before its name has been assigned to `$tmp'.
13988 $debug ||
13989 {
13990 tmp=
13991 trap 'exit_status=$?
13992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13993 ' 0
13994 trap 'as_fn_exit 1' 1 2 13 15
13995 }
13996 # Create a (secure) tmp directory for tmp files.
13997
13998 {
13999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14000 test -n "$tmp" && test -d "$tmp"
14001 } ||
14002 {
14003 tmp=./conf$$-$RANDOM
14004 (umask 077 && mkdir "$tmp")
14005 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14006
14007 # Set up the scripts for CONFIG_FILES section.
14008 # No need to generate them if there are no CONFIG_FILES.
14009 # This happens for instance with `./config.status config.h'.
14010 if test -n "$CONFIG_FILES"; then
14011
14012
14013 ac_cr=`echo X | tr X '\015'`
14014 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14015 # But we know of no other shell where ac_cr would be empty at this
14016 # point, so we can use a bashism as a fallback.
14017 if test "x$ac_cr" = x; then
14018 eval ac_cr=\$\'\\r\'
14019 fi
14020 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14021 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14022 ac_cs_awk_cr='\r'
14023 else
14024 ac_cs_awk_cr=$ac_cr
14025 fi
14026
14027 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14028 _ACEOF
14029
14030
14031 {
14032 echo "cat >conf$$subs.awk <<_ACEOF" &&
14033 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14034 echo "_ACEOF"
14035 } >conf$$subs.sh ||
14036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14037 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14038 ac_delim='%!_!# '
14039 for ac_last_try in false false false false false :; do
14040 . ./conf$$subs.sh ||
14041 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14042
14043 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14044 if test $ac_delim_n = $ac_delim_num; then
14045 break
14046 elif $ac_last_try; then
14047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14048 else
14049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14050 fi
14051 done
14052 rm -f conf$$subs.sh
14053
14054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14055 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14056 _ACEOF
14057 sed -n '
14058 h
14059 s/^/S["/; s/!.*/"]=/
14060 p
14061 g
14062 s/^[^!]*!//
14063 :repl
14064 t repl
14065 s/'"$ac_delim"'$//
14066 t delim
14067 :nl
14068 h
14069 s/\(.\{148\}\).*/\1/
14070 t more1
14071 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14072 p
14073 n
14074 b repl
14075 :more1
14076 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14077 p
14078 g
14079 s/.\{148\}//
14080 t nl
14081 :delim
14082 h
14083 s/\(.\{148\}\).*/\1/
14084 t more2
14085 s/["\\]/\\&/g; s/^/"/; s/$/"/
14086 p
14087 b
14088 :more2
14089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14090 p
14091 g
14092 s/.\{148\}//
14093 t delim
14094 ' <conf$$subs.awk | sed '
14095 /^[^""]/{
14096 N
14097 s/\n//
14098 }
14099 ' >>$CONFIG_STATUS || ac_write_fail=1
14100 rm -f conf$$subs.awk
14101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102 _ACAWK
14103 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14104 for (key in S) S_is_set[key] = 1
14105 FS = "\a"
14106
14107 }
14108 {
14109 line = $ 0
14110 nfields = split(line, field, "@")
14111 substed = 0
14112 len = length(field[1])
14113 for (i = 2; i < nfields; i++) {
14114 key = field[i]
14115 keylen = length(key)
14116 if (S_is_set[key]) {
14117 value = S[key]
14118 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14119 len += length(value) + length(field[++i])
14120 substed = 1
14121 } else
14122 len += 1 + keylen
14123 }
14124
14125 print line
14126 }
14127
14128 _ACAWK
14129 _ACEOF
14130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14132 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14133 else
14134 cat
14135 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14136 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14137 _ACEOF
14138
14139 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14140 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14141 # trailing colons and then remove the whole line if VPATH becomes empty
14142 # (actually we leave an empty line to preserve line numbers).
14143 if test "x$srcdir" = x.; then
14144 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14145 s/:*\$(srcdir):*/:/
14146 s/:*\${srcdir}:*/:/
14147 s/:*@srcdir@:*/:/
14148 s/^\([^=]*=[ ]*\):*/\1/
14149 s/:*$//
14150 s/^[^=]*=[ ]*$//
14151 }'
14152 fi
14153
14154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155 fi # test -n "$CONFIG_FILES"
14156
14157 # Set up the scripts for CONFIG_HEADERS section.
14158 # No need to generate them if there are no CONFIG_HEADERS.
14159 # This happens for instance with `./config.status Makefile'.
14160 if test -n "$CONFIG_HEADERS"; then
14161 cat >"$tmp/defines.awk" <<\_ACAWK ||
14162 BEGIN {
14163 _ACEOF
14164
14165 # Transform confdefs.h into an awk script `defines.awk', embedded as
14166 # here-document in config.status, that substitutes the proper values into
14167 # config.h.in to produce config.h.
14168
14169 # Create a delimiter string that does not exist in confdefs.h, to ease
14170 # handling of long lines.
14171 ac_delim='%!_!# '
14172 for ac_last_try in false false :; do
14173 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14174 if test -z "$ac_t"; then
14175 break
14176 elif $ac_last_try; then
14177 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14178 else
14179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14180 fi
14181 done
14182
14183 # For the awk script, D is an array of macro values keyed by name,
14184 # likewise P contains macro parameters if any. Preserve backslash
14185 # newline sequences.
14186
14187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14188 sed -n '
14189 s/.\{148\}/&'"$ac_delim"'/g
14190 t rset
14191 :rset
14192 s/^[ ]*#[ ]*define[ ][ ]*/ /
14193 t def
14194 d
14195 :def
14196 s/\\$//
14197 t bsnl
14198 s/["\\]/\\&/g
14199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14200 D["\1"]=" \3"/p
14201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14202 d
14203 :bsnl
14204 s/["\\]/\\&/g
14205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14206 D["\1"]=" \3\\\\\\n"\\/p
14207 t cont
14208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14209 t cont
14210 d
14211 :cont
14212 n
14213 s/.\{148\}/&'"$ac_delim"'/g
14214 t clear
14215 :clear
14216 s/\\$//
14217 t bsnlc
14218 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14219 d
14220 :bsnlc
14221 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14222 b cont
14223 ' <confdefs.h | sed '
14224 s/'"$ac_delim"'/"\\\
14225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14226
14227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14228 for (key in D) D_is_set[key] = 1
14229 FS = "\a"
14230 }
14231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14232 line = \$ 0
14233 split(line, arg, " ")
14234 if (arg[1] == "#") {
14235 defundef = arg[2]
14236 mac1 = arg[3]
14237 } else {
14238 defundef = substr(arg[1], 2)
14239 mac1 = arg[2]
14240 }
14241 split(mac1, mac2, "(") #)
14242 macro = mac2[1]
14243 prefix = substr(line, 1, index(line, defundef) - 1)
14244 if (D_is_set[macro]) {
14245 # Preserve the white space surrounding the "#".
14246 print prefix "define", macro P[macro] D[macro]
14247 next
14248 } else {
14249 # Replace #undef with comments. This is necessary, for example,
14250 # in the case of _POSIX_SOURCE, which is predefined and required
14251 # on some systems where configure will not decide to define it.
14252 if (defundef == "undef") {
14253 print "/*", prefix defundef, macro, "*/"
14254 next
14255 }
14256 }
14257 }
14258 { print }
14259 _ACAWK
14260 _ACEOF
14261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14262 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14263 fi # test -n "$CONFIG_HEADERS"
14264
14265
14266 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14267 shift
14268 for ac_tag
14269 do
14270 case $ac_tag in
14271 :[FHLC]) ac_mode=$ac_tag; continue;;
14272 esac
14273 case $ac_mode$ac_tag in
14274 :[FHL]*:*);;
14275 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14276 :[FH]-) ac_tag=-:-;;
14277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14278 esac
14279 ac_save_IFS=$IFS
14280 IFS=:
14281 set x $ac_tag
14282 IFS=$ac_save_IFS
14283 shift
14284 ac_file=$1
14285 shift
14286
14287 case $ac_mode in
14288 :L) ac_source=$1;;
14289 :[FH])
14290 ac_file_inputs=
14291 for ac_f
14292 do
14293 case $ac_f in
14294 -) ac_f="$tmp/stdin";;
14295 *) # Look for the file first in the build tree, then in the source tree
14296 # (if the path is not absolute). The absolute path cannot be DOS-style,
14297 # because $ac_f cannot contain `:'.
14298 test -f "$ac_f" ||
14299 case $ac_f in
14300 [\\/$]*) false;;
14301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14302 esac ||
14303 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14304 esac
14305 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14306 as_fn_append ac_file_inputs " '$ac_f'"
14307 done
14308
14309 # Let's still pretend it is `configure' which instantiates (i.e., don't
14310 # use $as_me), people would be surprised to read:
14311 # /* config.h. Generated by config.status. */
14312 configure_input='Generated from '`
14313 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14314 `' by configure.'
14315 if test x"$ac_file" != x-; then
14316 configure_input="$ac_file. $configure_input"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14318 $as_echo "$as_me: creating $ac_file" >&6;}
14319 fi
14320 # Neutralize special characters interpreted by sed in replacement strings.
14321 case $configure_input in #(
14322 *\&* | *\|* | *\\* )
14323 ac_sed_conf_input=`$as_echo "$configure_input" |
14324 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14325 *) ac_sed_conf_input=$configure_input;;
14326 esac
14327
14328 case $ac_tag in
14329 *:-:* | *:-) cat >"$tmp/stdin" \
14330 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14331 esac
14332 ;;
14333 esac
14334
14335 ac_dir=`$as_dirname -- "$ac_file" ||
14336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14337 X"$ac_file" : 'X\(//\)[^/]' \| \
14338 X"$ac_file" : 'X\(//\)$' \| \
14339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14340 $as_echo X"$ac_file" |
14341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14342 s//\1/
14343 q
14344 }
14345 /^X\(\/\/\)[^/].*/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\/\)$/{
14350 s//\1/
14351 q
14352 }
14353 /^X\(\/\).*/{
14354 s//\1/
14355 q
14356 }
14357 s/.*/./; q'`
14358 as_dir="$ac_dir"; as_fn_mkdir_p
14359 ac_builddir=.
14360
14361 case "$ac_dir" in
14362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14363 *)
14364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14365 # A ".." for each directory in $ac_dir_suffix.
14366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14367 case $ac_top_builddir_sub in
14368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14370 esac ;;
14371 esac
14372 ac_abs_top_builddir=$ac_pwd
14373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14374 # for backward compatibility:
14375 ac_top_builddir=$ac_top_build_prefix
14376
14377 case $srcdir in
14378 .) # We are building in place.
14379 ac_srcdir=.
14380 ac_top_srcdir=$ac_top_builddir_sub
14381 ac_abs_top_srcdir=$ac_pwd ;;
14382 [\\/]* | ?:[\\/]* ) # Absolute name.
14383 ac_srcdir=$srcdir$ac_dir_suffix;
14384 ac_top_srcdir=$srcdir
14385 ac_abs_top_srcdir=$srcdir ;;
14386 *) # Relative name.
14387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14388 ac_top_srcdir=$ac_top_build_prefix$srcdir
14389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14390 esac
14391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14392
14393
14394 case $ac_mode in
14395 :F)
14396 #
14397 # CONFIG_FILE
14398 #
14399
14400 case $INSTALL in
14401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14403 esac
14404 ac_MKDIR_P=$MKDIR_P
14405 case $MKDIR_P in
14406 [\\/$]* | ?:[\\/]* ) ;;
14407 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14408 esac
14409 _ACEOF
14410
14411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14412 # If the template does not know about datarootdir, expand it.
14413 # FIXME: This hack should be removed a few years after 2.60.
14414 ac_datarootdir_hack=; ac_datarootdir_seen=
14415 ac_sed_dataroot='
14416 /datarootdir/ {
14417 p
14418 q
14419 }
14420 /@datadir@/p
14421 /@docdir@/p
14422 /@infodir@/p
14423 /@localedir@/p
14424 /@mandir@/p'
14425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14426 *datarootdir*) ac_datarootdir_seen=yes;;
14427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14429 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14430 _ACEOF
14431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432 ac_datarootdir_hack='
14433 s&@datadir@&$datadir&g
14434 s&@docdir@&$docdir&g
14435 s&@infodir@&$infodir&g
14436 s&@localedir@&$localedir&g
14437 s&@mandir@&$mandir&g
14438 s&\\\${datarootdir}&$datarootdir&g' ;;
14439 esac
14440 _ACEOF
14441
14442 # Neutralize VPATH when `$srcdir' = `.'.
14443 # Shell code in configure.ac might set extrasub.
14444 # FIXME: do we really want to maintain this feature?
14445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446 ac_sed_extra="$ac_vpsub
14447 $extrasub
14448 _ACEOF
14449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14450 :t
14451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14452 s|@configure_input@|$ac_sed_conf_input|;t t
14453 s&@top_builddir@&$ac_top_builddir_sub&;t t
14454 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14455 s&@srcdir@&$ac_srcdir&;t t
14456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14457 s&@top_srcdir@&$ac_top_srcdir&;t t
14458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14459 s&@builddir@&$ac_builddir&;t t
14460 s&@abs_builddir@&$ac_abs_builddir&;t t
14461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14462 s&@INSTALL@&$ac_INSTALL&;t t
14463 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14464 $ac_datarootdir_hack
14465 "
14466 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14467 || as_fn_error "could not create $ac_file" "$LINENO" 5
14468
14469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14470 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14473 which seems to be undefined. Please make sure it is defined." >&5
14474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14475 which seems to be undefined. Please make sure it is defined." >&2;}
14476
14477 rm -f "$tmp/stdin"
14478 case $ac_file in
14479 -) cat "$tmp/out" && rm -f "$tmp/out";;
14480 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14481 esac \
14482 || as_fn_error "could not create $ac_file" "$LINENO" 5
14483 ;;
14484 :H)
14485 #
14486 # CONFIG_HEADER
14487 #
14488 if test x"$ac_file" != x-; then
14489 {
14490 $as_echo "/* $configure_input */" \
14491 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14492 } >"$tmp/config.h" \
14493 || as_fn_error "could not create $ac_file" "$LINENO" 5
14494 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14496 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14497 else
14498 rm -f "$ac_file"
14499 mv "$tmp/config.h" "$ac_file" \
14500 || as_fn_error "could not create $ac_file" "$LINENO" 5
14501 fi
14502 else
14503 $as_echo "/* $configure_input */" \
14504 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14505 || as_fn_error "could not create -" "$LINENO" 5
14506 fi
14507 # Compute "$ac_file"'s index in $config_headers.
14508 _am_arg="$ac_file"
14509 _am_stamp_count=1
14510 for _am_header in $config_headers :; do
14511 case $_am_header in
14512 $_am_arg | $_am_arg:* )
14513 break ;;
14514 * )
14515 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14516 esac
14517 done
14518 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14519 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14520 X"$_am_arg" : 'X\(//\)[^/]' \| \
14521 X"$_am_arg" : 'X\(//\)$' \| \
14522 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14523 $as_echo X"$_am_arg" |
14524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14525 s//\1/
14526 q
14527 }
14528 /^X\(\/\/\)[^/].*/{
14529 s//\1/
14530 q
14531 }
14532 /^X\(\/\/\)$/{
14533 s//\1/
14534 q
14535 }
14536 /^X\(\/\).*/{
14537 s//\1/
14538 q
14539 }
14540 s/.*/./; q'`/stamp-h$_am_stamp_count
14541 ;;
14542
14543 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14544 $as_echo "$as_me: executing $ac_file commands" >&6;}
14545 ;;
14546 esac
14547
14548
14549 case $ac_file$ac_mode in
14550 "default-1":C)
14551 # Only add multilib support code if we just rebuilt the top-level
14552 # Makefile.
14553 case " $CONFIG_FILES " in
14554 *" Makefile "*)
14555 ac_file=Makefile . ${multi_basedir}/config-ml.in
14556 ;;
14557 esac ;;
14558 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14559 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14560 # are listed without --file. Let's play safe and only enable the eval
14561 # if we detect the quoting.
14562 case $CONFIG_FILES in
14563 *\'*) eval set x "$CONFIG_FILES" ;;
14564 *) set x $CONFIG_FILES ;;
14565 esac
14566 shift
14567 for mf
14568 do
14569 # Strip MF so we end up with the name of the file.
14570 mf=`echo "$mf" | sed -e 's/:.*$//'`
14571 # Check whether this is an Automake generated Makefile or not.
14572 # We used to match only the files named `Makefile.in', but
14573 # some people rename them; so instead we look at the file content.
14574 # Grep'ing the first line is not enough: some people post-process
14575 # each Makefile.in and add a new line on top of each file to say so.
14576 # Grep'ing the whole file is not good either: AIX grep has a line
14577 # limit of 2048, but all sed's we know have understand at least 4000.
14578 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14579 dirpart=`$as_dirname -- "$mf" ||
14580 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$mf" : 'X\(//\)[^/]' \| \
14582 X"$mf" : 'X\(//\)$' \| \
14583 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14584 $as_echo X"$mf" |
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 else
14603 continue
14604 fi
14605 # Extract the definition of DEPDIR, am__include, and am__quote
14606 # from the Makefile without running `make'.
14607 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14608 test -z "$DEPDIR" && continue
14609 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14610 test -z "am__include" && continue
14611 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14612 # When using ansi2knr, U may be empty or an underscore; expand it
14613 U=`sed -n 's/^U = //p' < "$mf"`
14614 # Find all dependency output files, they are included files with
14615 # $(DEPDIR) in their names. We invoke sed twice because it is the
14616 # simplest approach to changing $(DEPDIR) to its actual value in the
14617 # expansion.
14618 for file in `sed -n "
14619 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14620 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14621 # Make sure the directory exists.
14622 test -f "$dirpart/$file" && continue
14623 fdir=`$as_dirname -- "$file" ||
14624 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14625 X"$file" : 'X\(//\)[^/]' \| \
14626 X"$file" : 'X\(//\)$' \| \
14627 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14628 $as_echo X"$file" |
14629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14630 s//\1/
14631 q
14632 }
14633 /^X\(\/\/\)[^/].*/{
14634 s//\1/
14635 q
14636 }
14637 /^X\(\/\/\)$/{
14638 s//\1/
14639 q
14640 }
14641 /^X\(\/\).*/{
14642 s//\1/
14643 q
14644 }
14645 s/.*/./; q'`
14646 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14647 # echo "creating $dirpart/$file"
14648 echo '# dummy' > "$dirpart/$file"
14649 done
14650 done
14651 }
14652 ;;
14653 "libtool":C)
14654
14655 # See if we are running on zsh, and set the options which allow our
14656 # commands through without removal of \ escapes.
14657 if test -n "${ZSH_VERSION+set}" ; then
14658 setopt NO_GLOB_SUBST
14659 fi
14660
14661 cfgfile="${ofile}T"
14662 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14663 $RM "$cfgfile"
14664
14665 cat <<_LT_EOF >> "$cfgfile"
14666 #! $SHELL
14667
14668 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14669 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14671 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14672 #
14673 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14674 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14675 # Written by Gordon Matzigkeit, 1996
14676 #
14677 # This file is part of GNU Libtool.
14678 #
14679 # GNU Libtool is free software; you can redistribute it and/or
14680 # modify it under the terms of the GNU General Public License as
14681 # published by the Free Software Foundation; either version 2 of
14682 # the License, or (at your option) any later version.
14683 #
14684 # As a special exception to the GNU General Public License,
14685 # if you distribute this file as part of a program or library that
14686 # is built using GNU Libtool, you may include this file under the
14687 # same distribution terms that you use for the rest of that program.
14688 #
14689 # GNU Libtool is distributed in the hope that it will be useful,
14690 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14692 # GNU General Public License for more details.
14693 #
14694 # You should have received a copy of the GNU General Public License
14695 # along with GNU Libtool; see the file COPYING. If not, a copy
14696 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14697 # obtained by writing to the Free Software Foundation, Inc.,
14698 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14699
14700
14701 # The names of the tagged configurations supported by this script.
14702 available_tags=""
14703
14704 # ### BEGIN LIBTOOL CONFIG
14705
14706 # Which release of libtool.m4 was used?
14707 macro_version=$macro_version
14708 macro_revision=$macro_revision
14709
14710 # Whether or not to build shared libraries.
14711 build_libtool_libs=$enable_shared
14712
14713 # Whether or not to build static libraries.
14714 build_old_libs=$enable_static
14715
14716 # What type of objects to build.
14717 pic_mode=$pic_mode
14718
14719 # Whether or not to optimize for fast installation.
14720 fast_install=$enable_fast_install
14721
14722 # Shell to use when invoking shell scripts.
14723 SHELL=$lt_SHELL
14724
14725 # An echo program that protects backslashes.
14726 ECHO=$lt_ECHO
14727
14728 # The host system.
14729 host_alias=$host_alias
14730 host=$host
14731 host_os=$host_os
14732
14733 # The build system.
14734 build_alias=$build_alias
14735 build=$build
14736 build_os=$build_os
14737
14738 # A sed program that does not truncate output.
14739 SED=$lt_SED
14740
14741 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14742 Xsed="\$SED -e 1s/^X//"
14743
14744 # A grep program that handles long lines.
14745 GREP=$lt_GREP
14746
14747 # An ERE matcher.
14748 EGREP=$lt_EGREP
14749
14750 # A literal string matcher.
14751 FGREP=$lt_FGREP
14752
14753 # A BSD- or MS-compatible name lister.
14754 NM=$lt_NM
14755
14756 # Whether we need soft or hard links.
14757 LN_S=$lt_LN_S
14758
14759 # What is the maximum length of a command?
14760 max_cmd_len=$max_cmd_len
14761
14762 # Object file suffix (normally "o").
14763 objext=$ac_objext
14764
14765 # Executable file suffix (normally "").
14766 exeext=$exeext
14767
14768 # whether the shell understands "unset".
14769 lt_unset=$lt_unset
14770
14771 # turn spaces into newlines.
14772 SP2NL=$lt_lt_SP2NL
14773
14774 # turn newlines into spaces.
14775 NL2SP=$lt_lt_NL2SP
14776
14777 # An object symbol dumper.
14778 OBJDUMP=$lt_OBJDUMP
14779
14780 # Method to check whether dependent libraries are shared objects.
14781 deplibs_check_method=$lt_deplibs_check_method
14782
14783 # Command to use when deplibs_check_method == "file_magic".
14784 file_magic_cmd=$lt_file_magic_cmd
14785
14786 # The archiver.
14787 AR=$lt_AR
14788 AR_FLAGS=$lt_AR_FLAGS
14789
14790 # A symbol stripping program.
14791 STRIP=$lt_STRIP
14792
14793 # Commands used to install an old-style archive.
14794 RANLIB=$lt_RANLIB
14795 old_postinstall_cmds=$lt_old_postinstall_cmds
14796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14797
14798 # Whether to use a lock for old archive extraction.
14799 lock_old_archive_extraction=$lock_old_archive_extraction
14800
14801 # A C compiler.
14802 LTCC=$lt_CC
14803
14804 # LTCC compiler flags.
14805 LTCFLAGS=$lt_CFLAGS
14806
14807 # Take the output of nm and produce a listing of raw symbols and C names.
14808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14809
14810 # Transform the output of nm in a proper C declaration.
14811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14812
14813 # Transform the output of nm in a C name address pair.
14814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14815
14816 # Transform the output of nm in a C name address pair when lib prefix is needed.
14817 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14818
14819 # The name of the directory that contains temporary libtool files.
14820 objdir=$objdir
14821
14822 # Used to examine libraries when file_magic_cmd begins with "file".
14823 MAGIC_CMD=$MAGIC_CMD
14824
14825 # Must we lock files when doing compilation?
14826 need_locks=$lt_need_locks
14827
14828 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14829 DSYMUTIL=$lt_DSYMUTIL
14830
14831 # Tool to change global to local symbols on Mac OS X.
14832 NMEDIT=$lt_NMEDIT
14833
14834 # Tool to manipulate fat objects and archives on Mac OS X.
14835 LIPO=$lt_LIPO
14836
14837 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14838 OTOOL=$lt_OTOOL
14839
14840 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14841 OTOOL64=$lt_OTOOL64
14842
14843 # Old archive suffix (normally "a").
14844 libext=$libext
14845
14846 # Shared library suffix (normally ".so").
14847 shrext_cmds=$lt_shrext_cmds
14848
14849 # The commands to extract the exported symbol list from a shared archive.
14850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14851
14852 # Variables whose values should be saved in libtool wrapper scripts and
14853 # restored at link time.
14854 variables_saved_for_relink=$lt_variables_saved_for_relink
14855
14856 # Do we need the "lib" prefix for modules?
14857 need_lib_prefix=$need_lib_prefix
14858
14859 # Do we need a version for libraries?
14860 need_version=$need_version
14861
14862 # Library versioning type.
14863 version_type=$version_type
14864
14865 # Shared library runtime path variable.
14866 runpath_var=$runpath_var
14867
14868 # Shared library path variable.
14869 shlibpath_var=$shlibpath_var
14870
14871 # Is shlibpath searched before the hard-coded library search path?
14872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14873
14874 # Format of library name prefix.
14875 libname_spec=$lt_libname_spec
14876
14877 # List of archive names. First name is the real one, the rest are links.
14878 # The last name is the one that the linker finds with -lNAME
14879 library_names_spec=$lt_library_names_spec
14880
14881 # The coded name of the library, if different from the real name.
14882 soname_spec=$lt_soname_spec
14883
14884 # Permission mode override for installation of shared libraries.
14885 install_override_mode=$lt_install_override_mode
14886
14887 # Command to use after installation of a shared archive.
14888 postinstall_cmds=$lt_postinstall_cmds
14889
14890 # Command to use after uninstallation of a shared archive.
14891 postuninstall_cmds=$lt_postuninstall_cmds
14892
14893 # Commands used to finish a libtool library installation in a directory.
14894 finish_cmds=$lt_finish_cmds
14895
14896 # As "finish_cmds", except a single script fragment to be evaled but
14897 # not shown.
14898 finish_eval=$lt_finish_eval
14899
14900 # Whether we should hardcode library paths into libraries.
14901 hardcode_into_libs=$hardcode_into_libs
14902
14903 # Compile-time system search path for libraries.
14904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14905
14906 # Run-time system search path for libraries.
14907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14908
14909 # Whether dlopen is supported.
14910 dlopen_support=$enable_dlopen
14911
14912 # Whether dlopen of programs is supported.
14913 dlopen_self=$enable_dlopen_self
14914
14915 # Whether dlopen of statically linked programs is supported.
14916 dlopen_self_static=$enable_dlopen_self_static
14917
14918 # Commands to strip libraries.
14919 old_striplib=$lt_old_striplib
14920 striplib=$lt_striplib
14921
14922
14923 # The linker used to build libraries.
14924 LD=$lt_LD
14925
14926 # How to create reloadable object files.
14927 reload_flag=$lt_reload_flag
14928 reload_cmds=$lt_reload_cmds
14929
14930 # Commands used to build an old-style archive.
14931 old_archive_cmds=$lt_old_archive_cmds
14932
14933 # A language specific compiler.
14934 CC=$lt_compiler
14935
14936 # Is the compiler the GNU compiler?
14937 with_gcc=$GCC
14938
14939 # Compiler flag to turn off builtin functions.
14940 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14941
14942 # How to pass a linker flag through the compiler.
14943 wl=$lt_lt_prog_compiler_wl
14944
14945 # Additional compiler flags for building library objects.
14946 pic_flag=$lt_lt_prog_compiler_pic
14947
14948 # Compiler flag to prevent dynamic linking.
14949 link_static_flag=$lt_lt_prog_compiler_static
14950
14951 # Does compiler simultaneously support -c and -o options?
14952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14953
14954 # Whether or not to add -lc for building shared libraries.
14955 build_libtool_need_lc=$archive_cmds_need_lc
14956
14957 # Whether or not to disallow shared libs when runtime libs are static.
14958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14959
14960 # Compiler flag to allow reflexive dlopens.
14961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14962
14963 # Compiler flag to generate shared objects directly from archives.
14964 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14965
14966 # Whether the compiler copes with passing no objects directly.
14967 compiler_needs_object=$lt_compiler_needs_object
14968
14969 # Create an old-style archive from a shared archive.
14970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14971
14972 # Create a temporary old-style archive to link instead of a shared archive.
14973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14974
14975 # Commands used to build a shared archive.
14976 archive_cmds=$lt_archive_cmds
14977 archive_expsym_cmds=$lt_archive_expsym_cmds
14978
14979 # Commands used to build a loadable module if different from building
14980 # a shared archive.
14981 module_cmds=$lt_module_cmds
14982 module_expsym_cmds=$lt_module_expsym_cmds
14983
14984 # Whether we are building with GNU ld or not.
14985 with_gnu_ld=$lt_with_gnu_ld
14986
14987 # Flag that allows shared libraries with undefined symbols to be built.
14988 allow_undefined_flag=$lt_allow_undefined_flag
14989
14990 # Flag that enforces no undefined symbols.
14991 no_undefined_flag=$lt_no_undefined_flag
14992
14993 # Flag to hardcode \$libdir into a binary during linking.
14994 # This must work even if \$libdir does not exist
14995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14996
14997 # If ld is used when linking, flag to hardcode \$libdir into a binary
14998 # during linking. This must work even if \$libdir does not exist.
14999 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15000
15001 # Whether we need a single "-rpath" flag with a separated argument.
15002 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15003
15004 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15005 # DIR into the resulting binary.
15006 hardcode_direct=$hardcode_direct
15007
15008 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15009 # DIR into the resulting binary and the resulting library dependency is
15010 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15011 # library is relocated.
15012 hardcode_direct_absolute=$hardcode_direct_absolute
15013
15014 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15015 # into the resulting binary.
15016 hardcode_minus_L=$hardcode_minus_L
15017
15018 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15019 # into the resulting binary.
15020 hardcode_shlibpath_var=$hardcode_shlibpath_var
15021
15022 # Set to "yes" if building a shared library automatically hardcodes DIR
15023 # into the library and all subsequent libraries and executables linked
15024 # against it.
15025 hardcode_automatic=$hardcode_automatic
15026
15027 # Set to yes if linker adds runtime paths of dependent libraries
15028 # to runtime path list.
15029 inherit_rpath=$inherit_rpath
15030
15031 # Whether libtool must link a program against all its dependency libraries.
15032 link_all_deplibs=$link_all_deplibs
15033
15034 # Fix the shell variable \$srcfile for the compiler.
15035 fix_srcfile_path=$lt_fix_srcfile_path
15036
15037 # Set to "yes" if exported symbols are required.
15038 always_export_symbols=$always_export_symbols
15039
15040 # The commands to list exported symbols.
15041 export_symbols_cmds=$lt_export_symbols_cmds
15042
15043 # Symbols that should not be listed in the preloaded symbols.
15044 exclude_expsyms=$lt_exclude_expsyms
15045
15046 # Symbols that must always be exported.
15047 include_expsyms=$lt_include_expsyms
15048
15049 # Commands necessary for linking programs (against libraries) with templates.
15050 prelink_cmds=$lt_prelink_cmds
15051
15052 # Specify filename containing input files.
15053 file_list_spec=$lt_file_list_spec
15054
15055 # How to hardcode a shared library path into an executable.
15056 hardcode_action=$hardcode_action
15057
15058 # ### END LIBTOOL CONFIG
15059
15060 _LT_EOF
15061
15062 case $host_os in
15063 aix3*)
15064 cat <<\_LT_EOF >> "$cfgfile"
15065 # AIX sometimes has problems with the GCC collect2 program. For some
15066 # reason, if we set the COLLECT_NAMES environment variable, the problems
15067 # vanish in a puff of smoke.
15068 if test "X${COLLECT_NAMES+set}" != Xset; then
15069 COLLECT_NAMES=
15070 export COLLECT_NAMES
15071 fi
15072 _LT_EOF
15073 ;;
15074 esac
15075
15076
15077 ltmain="$ac_aux_dir/ltmain.sh"
15078
15079
15080 # We use sed instead of cat because bash on DJGPP gets confused if
15081 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15082 # text mode, it properly converts lines to CR/LF. This bash problem
15083 # is reportedly fixed, but why not run on old versions too?
15084 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15085 || (rm -f "$cfgfile"; exit 1)
15086
15087 case $xsi_shell in
15088 yes)
15089 cat << \_LT_EOF >> "$cfgfile"
15090
15091 # func_dirname file append nondir_replacement
15092 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15093 # otherwise set result to NONDIR_REPLACEMENT.
15094 func_dirname ()
15095 {
15096 case ${1} in
15097 */*) func_dirname_result="${1%/*}${2}" ;;
15098 * ) func_dirname_result="${3}" ;;
15099 esac
15100 }
15101
15102 # func_basename file
15103 func_basename ()
15104 {
15105 func_basename_result="${1##*/}"
15106 }
15107
15108 # func_dirname_and_basename file append nondir_replacement
15109 # perform func_basename and func_dirname in a single function
15110 # call:
15111 # dirname: Compute the dirname of FILE. If nonempty,
15112 # add APPEND to the result, otherwise set result
15113 # to NONDIR_REPLACEMENT.
15114 # value returned in "$func_dirname_result"
15115 # basename: Compute filename of FILE.
15116 # value retuned in "$func_basename_result"
15117 # Implementation must be kept synchronized with func_dirname
15118 # and func_basename. For efficiency, we do not delegate to
15119 # those functions but instead duplicate the functionality here.
15120 func_dirname_and_basename ()
15121 {
15122 case ${1} in
15123 */*) func_dirname_result="${1%/*}${2}" ;;
15124 * ) func_dirname_result="${3}" ;;
15125 esac
15126 func_basename_result="${1##*/}"
15127 }
15128
15129 # func_stripname prefix suffix name
15130 # strip PREFIX and SUFFIX off of NAME.
15131 # PREFIX and SUFFIX must not contain globbing or regex special
15132 # characters, hashes, percent signs, but SUFFIX may contain a leading
15133 # dot (in which case that matches only a dot).
15134 func_stripname ()
15135 {
15136 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15137 # positional parameters, so assign one to ordinary parameter first.
15138 func_stripname_result=${3}
15139 func_stripname_result=${func_stripname_result#"${1}"}
15140 func_stripname_result=${func_stripname_result%"${2}"}
15141 }
15142
15143 # func_opt_split
15144 func_opt_split ()
15145 {
15146 func_opt_split_opt=${1%%=*}
15147 func_opt_split_arg=${1#*=}
15148 }
15149
15150 # func_lo2o object
15151 func_lo2o ()
15152 {
15153 case ${1} in
15154 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15155 *) func_lo2o_result=${1} ;;
15156 esac
15157 }
15158
15159 # func_xform libobj-or-source
15160 func_xform ()
15161 {
15162 func_xform_result=${1%.*}.lo
15163 }
15164
15165 # func_arith arithmetic-term...
15166 func_arith ()
15167 {
15168 func_arith_result=$(( $* ))
15169 }
15170
15171 # func_len string
15172 # STRING may not start with a hyphen.
15173 func_len ()
15174 {
15175 func_len_result=${#1}
15176 }
15177
15178 _LT_EOF
15179 ;;
15180 *) # Bourne compatible functions.
15181 cat << \_LT_EOF >> "$cfgfile"
15182
15183 # func_dirname file append nondir_replacement
15184 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15185 # otherwise set result to NONDIR_REPLACEMENT.
15186 func_dirname ()
15187 {
15188 # Extract subdirectory from the argument.
15189 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15190 if test "X$func_dirname_result" = "X${1}"; then
15191 func_dirname_result="${3}"
15192 else
15193 func_dirname_result="$func_dirname_result${2}"
15194 fi
15195 }
15196
15197 # func_basename file
15198 func_basename ()
15199 {
15200 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15201 }
15202
15203
15204 # func_stripname prefix suffix name
15205 # strip PREFIX and SUFFIX off of NAME.
15206 # PREFIX and SUFFIX must not contain globbing or regex special
15207 # characters, hashes, percent signs, but SUFFIX may contain a leading
15208 # dot (in which case that matches only a dot).
15209 # func_strip_suffix prefix name
15210 func_stripname ()
15211 {
15212 case ${2} in
15213 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15214 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15215 esac
15216 }
15217
15218 # sed scripts:
15219 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15220 my_sed_long_arg='1s/^-[^=]*=//'
15221
15222 # func_opt_split
15223 func_opt_split ()
15224 {
15225 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15226 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15227 }
15228
15229 # func_lo2o object
15230 func_lo2o ()
15231 {
15232 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15233 }
15234
15235 # func_xform libobj-or-source
15236 func_xform ()
15237 {
15238 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15239 }
15240
15241 # func_arith arithmetic-term...
15242 func_arith ()
15243 {
15244 func_arith_result=`expr "$@"`
15245 }
15246
15247 # func_len string
15248 # STRING may not start with a hyphen.
15249 func_len ()
15250 {
15251 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15252 }
15253
15254 _LT_EOF
15255 esac
15256
15257 case $lt_shell_append in
15258 yes)
15259 cat << \_LT_EOF >> "$cfgfile"
15260
15261 # func_append var value
15262 # Append VALUE to the end of shell variable VAR.
15263 func_append ()
15264 {
15265 eval "$1+=\$2"
15266 }
15267 _LT_EOF
15268 ;;
15269 *)
15270 cat << \_LT_EOF >> "$cfgfile"
15271
15272 # func_append var value
15273 # Append VALUE to the end of shell variable VAR.
15274 func_append ()
15275 {
15276 eval "$1=\$$1\$2"
15277 }
15278
15279 _LT_EOF
15280 ;;
15281 esac
15282
15283
15284 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15285 || (rm -f "$cfgfile"; exit 1)
15286
15287 mv -f "$cfgfile" "$ofile" ||
15288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15289 chmod +x "$ofile"
15290
15291 ;;
15292
15293 esac
15294 done # for ac_tag
15295
15296
15297 as_fn_exit 0
15298 _ACEOF
15299 ac_clean_files=$ac_clean_files_save
15300
15301 test $ac_write_fail = 0 ||
15302 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15303
15304
15305 # configure is writing to config.log, and then calls config.status.
15306 # config.status does its own redirection, appending to config.log.
15307 # Unfortunately, on DOS this fails, as config.log is still kept open
15308 # by configure, so config.status won't be able to write to it; its
15309 # output is simply discarded. So we exec the FD to /dev/null,
15310 # effectively closing config.log, so it can be properly (re)opened and
15311 # appended to by config.status. When coming back to configure, we
15312 # need to make the FD available again.
15313 if test "$no_create" != yes; then
15314 ac_cs_success=:
15315 ac_config_status_args=
15316 test "$silent" = yes &&
15317 ac_config_status_args="$ac_config_status_args --quiet"
15318 exec 5>/dev/null
15319 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15320 exec 5>>config.log
15321 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15322 # would make configure fail if this is the last instruction.
15323 $ac_cs_success || as_fn_exit $?
15324 fi
15325 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15327 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15328 fi
15329