]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/configure
Daily bump.
[thirdparty/gcc.git] / libbacktrace / configure
CommitLineData
ecd3459e 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
30bd8e8b 172test \$(( 1 + 1 )) = 2 || exit 1
ecd3459e 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\" \\
30bd8e8b 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
ecd3459e 181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libbacktrace'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="backtrace.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605NATIVE_FALSE
606NATIVE_TRUE
b919941e 607HAVE_OBJCOPY_DEBUGLINK_FALSE
608HAVE_OBJCOPY_DEBUGLINK_TRUE
609OBJCOPY
1fffcf69 610HAVE_COMPRESSED_DEBUG_FALSE
611HAVE_COMPRESSED_DEBUG_TRUE
612HAVE_ZLIB_FALSE
613HAVE_ZLIB_TRUE
3be33b09 614HAVE_PTHREAD_FALSE
615HAVE_PTHREAD_TRUE
616PTHREAD_CFLAGS
0b986d3d 617clock_gettime_link
ecd3459e 618BACKTRACE_USES_MALLOC
619ALLOC_FILE
620VIEW_FILE
48ee217e 621BACKTRACE_SUPPORTS_DATA
ecd3459e 622BACKTRACE_SUPPORTED
623FORMAT_FILE
624BACKTRACE_SUPPORTS_THREADS
625PIC_FLAG
626WARN_FLAGS
536b8dd3 627EXTRA_FLAGS
ecd3459e 628BACKTRACE_FILE
ecd3459e 629OTOOL64
630OTOOL
631LIPO
632NMEDIT
633DSYMUTIL
634AR
635OBJDUMP
636LN_S
637NM
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
ecd3459e 642SED
643LIBTOOL
644RANLIB
30bd8e8b 645MAINT
646MAINTAINER_MODE_FALSE
647MAINTAINER_MODE_TRUE
ecd3459e 648am__untar
649am__tar
650AMTAR
651am__leading_dot
652SET_MAKE
653AWK
654mkdir_p
655MKDIR_P
656INSTALL_STRIP_PROGRAM
657STRIP
658install_sh
659MAKEINFO
660AUTOHEADER
661AUTOMAKE
662AUTOCONF
663ACLOCAL
664VERSION
665PACKAGE
666CYGPATH_W
667am__isrc
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
671libtool_VERSION
30bd8e8b 672EGREP
673GREP
674CPP
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
ecd3459e 682target_os
683target_vendor
684target_cpu
685target
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
8df488f9 694multi_basedir
ecd3459e 695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files=''
734ac_user_opts='
735enable_option_checking
8df488f9 736enable_multilib
ecd3459e 737enable_maintainer_mode
738with_target_subdir
ecd3459e 739enable_shared
740enable_static
741with_pic
742enable_fast_install
743with_gnu_ld
744enable_libtool_lock
772d73b0 745enable_largefile
ecd3459e 746with_system_libunwind
2bd17377 747enable_host_shared
ecd3459e 748'
749 ac_precious_vars='build_alias
750host_alias
751target_alias
30bd8e8b 752CC
753CFLAGS
754LDFLAGS
755LIBS
756CPPFLAGS
b919941e 757CPP
758OBJCOPY'
ecd3459e 759
760
761# Initialize some variables set by options.
762ac_init_help=
763ac_init_version=false
764ac_unrecognized_opts=
765ac_unrecognized_sep=
766# The variables have the same names as the options, with
767# dashes changed to underlines.
768cache_file=/dev/null
769exec_prefix=NONE
770no_create=
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
779verbose=
780x_includes=NONE
781x_libraries=NONE
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
788# (The list follows the same order as the GNU Coding Standards.)
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
818 fi
819
820 case $ac_option in
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *) ac_optarg=yes ;;
823 esac
824
825 # Accept the important Cygnus configure options, so we can diagnose typos.
826
827 case $ac_dashdash$ac_option in
828 --)
829 ac_dashdash=yes ;;
830
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
835
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
840
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
847
848 --config-cache | -C)
849 cache_file=config.cache ;;
850
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
855
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
862
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
871 *"
872"enable_$ac_useropt"
873"*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=no ;;
878
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
883
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
888
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=\$ac_optarg ;;
904
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
913
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
917
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
924
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
929
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
935
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
942
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
947
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
952
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
959
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
964
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
971
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
976
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
980
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
984
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
988
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
997
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1002
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1009
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1016
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1033
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1038
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1043
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1047
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1053
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1064
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1069
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1074
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1081
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1086
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1089
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1092
1093 -with-* | --with-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102"with_$ac_useropt"
1103"*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=\$ac_optarg ;;
1108
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118"with_$ac_useropt"
1119"*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1142
1143 -*) as_fn_error "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information."
1145 ;;
1146
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1153 esac
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1156
1157 *)
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163 ;;
1164
1165 esac
1166done
1167
1168if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1175 no) ;;
1176 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1186do
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1189 case $ac_val in
1190 */ )
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1193 esac
1194 # Be sure to have absolute directory names.
1195 case $ac_val in
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 esac
1199 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1216 cross_compiling=yes
1217 fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
1226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error "working directory cannot be determined"
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error "pwd does not report name of working directory"
1232
1233
1234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243$as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)[^/].*/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\).*/{
1257 s//\1/
1258 q
1259 }
1260 s/.*/./; q'`
1261 srcdir=$ac_confdir
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 srcdir=..
1264 fi
1265else
1266 ac_srcdir_defaulted=no
1267fi
1268if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1271fi
1272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1275 pwd)`
1276# When building in place, set srcdir=.
1277if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 srcdir=.
1279fi
1280# Remove unnecessary trailing slashes from srcdir.
1281# Double slashes in file names in object file debugging info
1282# mess up M-x gdb in Emacs.
1283case $srcdir in
1284*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285esac
1286for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291done
1292
1293#
1294# Report the --help message.
1295#
1296if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1299 cat <<_ACEOF
1300\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1301
1302Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305VAR=VALUE. See below for descriptions of some of the useful variables.
1306
1307Defaults for the options are specified in brackets.
1308
1309Configuration:
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319
1320Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 [PREFIX]
1325
1326By default, \`make install' will install all the files in
1327\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329for instance \`--prefix=\$HOME'.
1330
1331For better control, use the options below.
1332
1333Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1353_ACEOF
1354
1355 cat <<\_ACEOF
1356
1357Program names:
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of package-unused version-unused:";;
1372 esac
1373 cat <<\_ACEOF
1374
1375Optional Features:
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8df488f9 1379 --enable-multilib build many library versions (default)
30bd8e8b 1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
d0724418 1382 --enable-shared[=PKGS] build shared libraries [default=yes]
ecd3459e 1383 --enable-static[=PKGS] build static libraries [default=yes]
1384 --enable-fast-install[=PKGS]
1385 optimize for fast installation [default=yes]
1386 --disable-libtool-lock avoid locking (might break parallel builds)
772d73b0 1387 --disable-largefile omit support for large files
2bd17377 1388 --enable-host-shared build host code as shared libraries
ecd3459e 1389
1390Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1394 --with-pic try to use only PIC/non-PIC objects [default=use
1395 both]
1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1397 --with-system-libunwind use installed libunwind
1398
1399Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
b919941e 1408 OBJCOPY location of objcopy
ecd3459e 1409
1410Use these variables to override the choices made by `configure' or to help
1411it to find libraries and programs with nonstandard names/locations.
1412
1413Report bugs to the package provider.
1414_ACEOF
1415ac_status=$?
1416fi
1417
1418if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
1424 ac_builddir=.
1425
1426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
1441
1442case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455esac
1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1466 else
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1470 done
1471fi
1472
1473test -n "$ac_init_help" && exit $ac_status
1474if $ac_init_version; then
1475 cat <<\_ACEOF
1476package-unused configure version-unused
1477generated by GNU Autoconf 2.64
1478
1479Copyright (C) 2009 Free Software Foundation, Inc.
1480This configure script is free software; the Free Software Foundation
1481gives unlimited permission to copy, distribute and modify it.
1482_ACEOF
1483 exit
1484fi
1485
1486## ------------------------ ##
1487## Autoconf initialization. ##
1488## ------------------------ ##
1489
1490# ac_fn_c_try_compile LINENO
1491# --------------------------
1492# Try to compile conftest.$ac_ext, and return whether this succeeded.
1493ac_fn_c_try_compile ()
1494{
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1498case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501esac
1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503$as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1510 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1516 ac_retval=0
1517else
1518 $as_echo "$as_me: failed program was:" >&5
1519sed 's/^/| /' conftest.$ac_ext >&5
1520
1521 ac_retval=1
1522fi
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 return $ac_retval
1525
1526} # ac_fn_c_try_compile
1527
30bd8e8b 1528# ac_fn_c_try_cpp LINENO
1529# ----------------------
1530# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_cpp ()
ecd3459e 1532{
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30bd8e8b 1534 if { { ac_try="$ac_cpp conftest.$ac_ext"
ecd3459e 1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
30bd8e8b 1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
ecd3459e 1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30bd8e8b 1549 test $ac_status = 0; } >/dev/null && {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
ecd3459e 1551 test ! -s conftest.err
ecd3459e 1552 }; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
30bd8e8b 1558 ac_retval=1
ecd3459e 1559fi
ecd3459e 1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
30bd8e8b 1563} # ac_fn_c_try_cpp
ecd3459e 1564
30bd8e8b 1565# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
ecd3459e 1566# -------------------------------------------------------
30bd8e8b 1567# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1568# the include files in INCLUDES and setting the cache variable VAR
1569# accordingly.
1570ac_fn_c_check_header_mongrel ()
ecd3459e 1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30bd8e8b 1573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
ecd3459e 1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1575$as_echo_n "checking for $2... " >&6; }
1576if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1577 $as_echo_n "(cached) " >&6
30bd8e8b 1578fi
1579eval ac_res=\$$3
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581$as_echo "$ac_res" >&6; }
ecd3459e 1582else
30bd8e8b 1583 # Is the header compilable?
1584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1585$as_echo_n "checking $2 usability... " >&6; }
1586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ecd3459e 1587/* end confdefs.h. */
1588$4
1589#include <$2>
1590_ACEOF
1591if ac_fn_c_try_compile "$LINENO"; then :
30bd8e8b 1592 ac_header_compiler=yes
ecd3459e 1593else
30bd8e8b 1594 ac_header_compiler=no
ecd3459e 1595fi
1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30bd8e8b 1597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1598$as_echo "$ac_header_compiler" >&6; }
ecd3459e 1599
30bd8e8b 1600# Is the header present?
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1602$as_echo_n "checking $2 presence... " >&6; }
1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h. */
1605#include <$2>
1606_ACEOF
1607if ac_fn_c_try_cpp "$LINENO"; then :
1608 ac_header_preproc=yes
1609else
1610 ac_header_preproc=no
1611fi
1612rm -f conftest.err conftest.$ac_ext
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1614$as_echo "$ac_header_preproc" >&6; }
ecd3459e 1615
30bd8e8b 1616# So? What about this header?
1617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 yes:no: )
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1620$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 ;;
1624 no:yes:* )
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1626$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1628$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1630$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1632$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
ecd3459e 1636esac
30bd8e8b 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
ecd3459e 1641else
30bd8e8b 1642 eval "$3=\$ac_header_compiler"
1643fi
1644eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646$as_echo "$ac_res" >&6; }
ecd3459e 1647fi
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ecd3459e 1649
30bd8e8b 1650} # ac_fn_c_check_header_mongrel
ecd3459e 1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1691
1692} # ac_fn_c_try_run
1693
30bd8e8b 1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713else
1714 eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
1769} # ac_fn_c_try_link
1770
ecd3459e 1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786#define $2 innocuous_$2
1787
1788/* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793#ifdef __STDC__
1794# include <limits.h>
1795#else
1796# include <assert.h>
1797#endif
1798
1799#undef $2
1800
1801/* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804#ifdef __cplusplus
1805extern "C"
1806#endif
1807char $2 ();
1808/* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811#if defined __stub_$2 || defined __stub___$2
1812choke me
1813#endif
1814
1815int
1816main ()
1817{
1818return $2 ();
1819 ;
1820 return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825else
1826 eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836} # ac_fn_c_check_func
1837
b945b61c 1838# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839# -------------------------------------------
1840# Tests whether TYPE exists after having included INCLUDES, setting cache
1841# variable VAR accordingly.
1842ac_fn_c_check_type ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854int
1855main ()
1856{
1857if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$4
1867int
1868main ()
1869{
1870if (sizeof (($2)))
1871 return 0;
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877
1878else
1879 eval "$3=yes"
1880fi
1881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
1890} # ac_fn_c_check_type
1891
1892# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893# --------------------------------------------
1894# Tries to find the compile-time value of EXPR in a program that includes
1895# INCLUDES, setting VAR accordingly. Returns whether the value could be
1896# computed
1897ac_fn_c_compute_int ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if test "$cross_compiling" = yes; then
1901 # Depending upon the size, compute the lo and hi bounds.
1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905int
1906main ()
1907{
1908static int test_array [1 - 2 * !(($2) >= 0)];
1909test_array [0] = 0
1910
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_lo=0 ac_mid=0
1917 while :; do
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
1924static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1925test_array [0] = 0
1926
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_hi=$ac_mid; break
1933else
1934 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1935 if test $ac_lo -le $ac_mid; then
1936 ac_lo= ac_hi=
1937 break
1938 fi
1939 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 done
1943else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946$4
1947int
1948main ()
1949{
1950static int test_array [1 - 2 * !(($2) < 0)];
1951test_array [0] = 0
1952
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_hi=-1 ac_mid=-1
1959 while :; do
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963int
1964main ()
1965{
1966static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1967test_array [0] = 0
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_lo=$ac_mid; break
1975else
1976 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1977 if test $ac_mid -le $ac_hi; then
1978 ac_lo= ac_hi=
1979 break
1980 fi
1981 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 done
1985else
1986 ac_lo= ac_hi=
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991# Binary search between lo and hi bounds.
1992while test "x$ac_lo" != "x$ac_hi"; do
1993 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001test_array [0] = 0
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_hi=$ac_mid
2009else
2010 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013done
2014case $ac_lo in #((
2015?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2016'') ac_retval=1 ;;
2017esac
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */
2021$4
2022static long int longval () { return $2; }
2023static unsigned long int ulongval () { return $2; }
2024#include <stdio.h>
2025#include <stdlib.h>
2026int
2027main ()
2028{
2029
2030 FILE *f = fopen ("conftest.val", "w");
2031 if (! f)
2032 return 1;
2033 if (($2) < 0)
2034 {
2035 long int i = longval ();
2036 if (i != ($2))
2037 return 1;
2038 fprintf (f, "%ld", i);
2039 }
2040 else
2041 {
2042 unsigned long int i = ulongval ();
2043 if (i != ($2))
2044 return 1;
2045 fprintf (f, "%lu", i);
2046 }
2047 /* Do not output a trailing newline, as this causes \r\n confusion
2048 on some platforms. */
2049 return ferror (f) || fclose (f) != 0;
2050
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_run "$LINENO"; then :
2056 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2057else
2058 ac_retval=1
2059fi
2060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2061 conftest.$ac_objext conftest.beam conftest.$ac_ext
2062rm -f conftest.val
2063
2064 fi
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 return $ac_retval
2067
2068} # ac_fn_c_compute_int
2069
5f7c240f 2070# ac_fn_c_check_decl LINENO SYMBOL VAR
2071# ------------------------------------
2072# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2073ac_fn_c_check_decl ()
2074{
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 as_decl_name=`echo $2|sed 's/ *(.*//'`
2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089#ifndef $as_decl_name
2090#ifdef __cplusplus
2091 (void) $as_decl_use;
2092#else
2093 (void) $as_decl_name;
2094#endif
2095#endif
2096
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103else
2104 eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112
2113} # ac_fn_c_check_decl
ecd3459e 2114cat >config.log <<_ACEOF
2115This file contains any messages produced by compilers while
2116running configure, to aid debugging if configure makes a mistake.
2117
2118It was created by package-unused $as_me version-unused, which was
2119generated by GNU Autoconf 2.64. Invocation command line was
2120
2121 $ $0 $@
2122
2123_ACEOF
2124exec 5>>config.log
2125{
2126cat <<_ASUNAME
2127## --------- ##
2128## Platform. ##
2129## --------- ##
2130
2131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136
2137/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2139
2140/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2147
2148_ASUNAME
2149
2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 $as_echo "PATH: $as_dir"
2156 done
2157IFS=$as_save_IFS
2158
2159} >&5
2160
2161cat >&5 <<_ACEOF
2162
2163
2164## ----------- ##
2165## Core tests. ##
2166## ----------- ##
2167
2168_ACEOF
2169
2170
2171# Keep a trace of the command line.
2172# Strip out --no-create and --no-recursion so they do not pile up.
2173# Strip out --silent because we don't want to record it for future runs.
2174# Also quote any args containing shell meta-characters.
2175# Make two passes to allow for proper duplicate-argument suppression.
2176ac_configure_args=
2177ac_configure_args0=
2178ac_configure_args1=
2179ac_must_keep_next=false
2180for ac_pass in 1 2
2181do
2182 for ac_arg
2183 do
2184 case $ac_arg in
2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187 | -silent | --silent | --silen | --sile | --sil)
2188 continue ;;
2189 *\'*)
2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 esac
2192 case $ac_pass in
2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194 2)
2195 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 if test $ac_must_keep_next = true; then
2197 ac_must_keep_next=false # Got value, back to normal.
2198 else
2199 case $ac_arg in
2200 *=* | --config-cache | -C | -disable-* | --disable-* \
2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203 | -with-* | --with-* | -without-* | --without-* | --x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 esac
2207 ;;
2208 -* ) ac_must_keep_next=true ;;
2209 esac
2210 fi
2211 as_fn_append ac_configure_args " '$ac_arg'"
2212 ;;
2213 esac
2214 done
2215done
2216{ ac_configure_args0=; unset ac_configure_args0;}
2217{ ac_configure_args1=; unset ac_configure_args1;}
2218
2219# When interrupted or exit'd, cleanup temporary files, and complete
2220# config.log. We remove comments because anyway the quotes in there
2221# would cause problems or look ugly.
2222# WARNING: Use '\'' to represent an apostrophe within the trap.
2223# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224trap 'exit_status=$?
2225 # Save into config.log some information that might help in debugging.
2226 {
2227 echo
2228
2229 cat <<\_ASBOX
2230## ---------------- ##
2231## Cache variables. ##
2232## ---------------- ##
2233_ASBOX
2234 echo
2235 # The following way of writing the cache mishandles newlines in values,
2236(
2237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in #(
2240 *${as_nl}*)
2241 case $ac_var in #(
2242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 esac
2245 case $ac_var in #(
2246 _ | IFS | as_nl) ;; #(
2247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248 *) { eval $ac_var=; unset $ac_var;} ;;
2249 esac ;;
2250 esac
2251 done
2252 (set) 2>&1 |
2253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254 *${as_nl}ac_space=\ *)
2255 sed -n \
2256 "s/'\''/'\''\\\\'\'''\''/g;
2257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 ;; #(
2259 *)
2260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 ;;
2262 esac |
2263 sort
2264)
2265 echo
2266
2267 cat <<\_ASBOX
2268## ----------------- ##
2269## Output variables. ##
2270## ----------------- ##
2271_ASBOX
2272 echo
2273 for ac_var in $ac_subst_vars
2274 do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2282
2283 if test -n "$ac_subst_files"; then
2284 cat <<\_ASBOX
2285## ------------------- ##
2286## File substitutions. ##
2287## ------------------- ##
2288_ASBOX
2289 echo
2290 for ac_var in $ac_subst_files
2291 do
2292 eval ac_val=\$$ac_var
2293 case $ac_val in
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 esac
2296 $as_echo "$ac_var='\''$ac_val'\''"
2297 done | sort
2298 echo
2299 fi
2300
2301 if test -s confdefs.h; then
2302 cat <<\_ASBOX
2303## ----------- ##
2304## confdefs.h. ##
2305## ----------- ##
2306_ASBOX
2307 echo
2308 cat confdefs.h
2309 echo
2310 fi
2311 test "$ac_signal" != 0 &&
2312 $as_echo "$as_me: caught signal $ac_signal"
2313 $as_echo "$as_me: exit $exit_status"
2314 } >&5
2315 rm -f core *.core core.conftest.* &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317 exit $exit_status
2318' 0
2319for ac_signal in 1 2 13 15; do
2320 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321done
2322ac_signal=0
2323
2324# confdefs.h avoids OS command line length limits that DEFS can exceed.
2325rm -f -r conftest* confdefs.h
2326
2327$as_echo "/* confdefs.h */" > confdefs.h
2328
2329# Predefined preprocessor variables.
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_NAME "$PACKAGE_NAME"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337_ACEOF
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_VERSION "$PACKAGE_VERSION"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_STRING "$PACKAGE_STRING"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_URL "$PACKAGE_URL"
2353_ACEOF
2354
2355
2356# Let the site file select an alternate cache file if it wants to.
2357# Prefer an explicitly selected file to automatically selected ones.
2358ac_site_file1=NONE
2359ac_site_file2=NONE
2360if test -n "$CONFIG_SITE"; then
2361 ac_site_file1=$CONFIG_SITE
2362elif test "x$prefix" != xNONE; then
2363 ac_site_file1=$prefix/share/config.site
2364 ac_site_file2=$prefix/etc/config.site
2365else
2366 ac_site_file1=$ac_default_prefix/share/config.site
2367 ac_site_file2=$ac_default_prefix/etc/config.site
2368fi
2369for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2370do
2371 test "x$ac_site_file" = xNONE && continue
2372 if test -r "$ac_site_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375 sed 's/^/| /' "$ac_site_file" >&5
2376 . "$ac_site_file"
2377 fi
2378done
2379
2380if test -r "$cache_file"; then
2381 # Some versions of bash will fail to source /dev/null (special
2382 # files actually), so we avoid doing that.
2383 if test -f "$cache_file"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2385$as_echo "$as_me: loading cache $cache_file" >&6;}
2386 case $cache_file in
2387 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2388 *) . "./$cache_file";;
2389 esac
2390 fi
2391else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2393$as_echo "$as_me: creating cache $cache_file" >&6;}
2394 >$cache_file
2395fi
2396
2397# Check that the precious variables saved in the cache have kept the same
2398# value.
2399ac_cache_corrupted=false
2400for ac_var in $ac_precious_vars; do
2401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2402 eval ac_new_set=\$ac_env_${ac_var}_set
2403 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2404 eval ac_new_val=\$ac_env_${ac_var}_value
2405 case $ac_old_set,$ac_new_set in
2406 set,)
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2408$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2409 ac_cache_corrupted=: ;;
2410 ,set)
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2412$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2413 ac_cache_corrupted=: ;;
2414 ,);;
2415 *)
2416 if test "x$ac_old_val" != "x$ac_new_val"; then
2417 # differences in whitespace do not lead to failure.
2418 ac_old_val_w=`echo x $ac_old_val`
2419 ac_new_val_w=`echo x $ac_new_val`
2420 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2422$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2423 ac_cache_corrupted=:
2424 else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2426$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2427 eval $ac_var=\$ac_old_val
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2430$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2432$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2433 fi;;
2434 esac
2435 # Pass precious variables to config.status.
2436 if test "$ac_new_set" = set; then
2437 case $ac_new_val in
2438 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2439 *) ac_arg=$ac_var=$ac_new_val ;;
2440 esac
2441 case " $ac_configure_args " in
2442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2443 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2444 esac
2445 fi
2446done
2447if $ac_cache_corrupted; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2451$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2452 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2453fi
2454## -------------------- ##
2455## Main body of script. ##
2456## -------------------- ##
2457
2458ac_ext=c
2459ac_cpp='$CPP $CPPFLAGS'
2460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464
2465
2466
2467
2468
2469ac_config_headers="$ac_config_headers config.h"
2470
2471
8df488f9 2472if test -n "${with_target_subdir}"; then
2473 # Default to --enable-multilib
2474# Check whether --enable-multilib was given.
2475if test "${enable_multilib+set}" = set; then :
2476 enableval=$enable_multilib; case "$enableval" in
2477 yes) multilib=yes ;;
2478 no) multilib=no ;;
2479 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2480 esac
2481else
2482 multilib=yes
2483fi
2484
2485
2486# We may get other options which we leave undocumented:
2487# --with-target-subdir, --with-multisrctop, --with-multisubdir
2488# See config-ml.in if you want the gory details.
2489
2490if test "$srcdir" = "."; then
2491 if test "$with_target_subdir" != "."; then
2492 multi_basedir="$srcdir/$with_multisrctop../.."
2493 else
2494 multi_basedir="$srcdir/$with_multisrctop.."
2495 fi
2496else
2497 multi_basedir="$srcdir/.."
2498fi
2499
2500
2501# Even if the default multilib is not a cross compilation,
2502# it may be that some of the other multilibs are.
2503if test $cross_compiling = no && test $multilib = yes \
2504 && test "x${with_multisubdir}" != x ; then
2505 cross_compiling=maybe
2506fi
2507
2508ac_config_commands="$ac_config_commands default-1"
2509
2510fi
2511
ecd3459e 2512ac_aux_dir=
2513for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2514 for ac_t in install-sh install.sh shtool; do
2515 if test -f "$ac_dir/$ac_t"; then
2516 ac_aux_dir=$ac_dir
2517 ac_install_sh="$ac_aux_dir/$ac_t -c"
2518 break 2
2519 fi
2520 done
2521done
2522if test -z "$ac_aux_dir"; then
2523 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2524fi
2525
2526# These three variables are undocumented and unsupported,
2527# and are intended to be withdrawn in a future Autoconf release.
2528# They can cause serious problems if a builder's source tree is in a directory
2529# whose full name contains unusual characters.
2530ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2531ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2532ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2533
2534
2535# Make sure we can run config.sub.
2536$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2537 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2538
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2540$as_echo_n "checking build system type... " >&6; }
2541if test "${ac_cv_build+set}" = set; then :
2542 $as_echo_n "(cached) " >&6
2543else
2544 ac_build_alias=$build_alias
2545test "x$ac_build_alias" = x &&
2546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2547test "x$ac_build_alias" = x &&
2548 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2549ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2550 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2551
2552fi
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2554$as_echo "$ac_cv_build" >&6; }
2555case $ac_cv_build in
2556*-*-*) ;;
2557*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2558esac
2559build=$ac_cv_build
2560ac_save_IFS=$IFS; IFS='-'
2561set x $ac_cv_build
2562shift
2563build_cpu=$1
2564build_vendor=$2
2565shift; shift
2566# Remember, the first character of IFS is used to create $*,
2567# except with old shells:
2568build_os=$*
2569IFS=$ac_save_IFS
2570case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2571
2572
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2574$as_echo_n "checking host system type... " >&6; }
2575if test "${ac_cv_host+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 if test "x$host_alias" = x; then
2579 ac_cv_host=$ac_cv_build
2580else
2581 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2582 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2583fi
2584
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2587$as_echo "$ac_cv_host" >&6; }
2588case $ac_cv_host in
2589*-*-*) ;;
2590*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2591esac
2592host=$ac_cv_host
2593ac_save_IFS=$IFS; IFS='-'
2594set x $ac_cv_host
2595shift
2596host_cpu=$1
2597host_vendor=$2
2598shift; shift
2599# Remember, the first character of IFS is used to create $*,
2600# except with old shells:
2601host_os=$*
2602IFS=$ac_save_IFS
2603case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2604
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2607$as_echo_n "checking target system type... " >&6; }
2608if test "${ac_cv_target+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 if test "x$target_alias" = x; then
2612 ac_cv_target=$ac_cv_host
2613else
2614 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2616fi
2617
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2620$as_echo "$ac_cv_target" >&6; }
2621case $ac_cv_target in
2622*-*-*) ;;
2623*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2624esac
2625target=$ac_cv_target
2626ac_save_IFS=$IFS; IFS='-'
2627set x $ac_cv_target
2628shift
2629target_cpu=$1
2630target_vendor=$2
2631shift; shift
2632# Remember, the first character of IFS is used to create $*,
2633# except with old shells:
2634target_os=$*
2635IFS=$ac_save_IFS
2636case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2637
2638
2639# The aliases save the names the user supplied, while $host etc.
2640# will get canonicalized.
2641test -n "$target_alias" &&
2642 test "$program_prefix$program_suffix$program_transform_name" = \
2643 NONENONEs,x,x, &&
2644 program_prefix=${target_alias}-
2645
2646target_alias=${target_alias-$host_alias}
2647
30bd8e8b 2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2655set dummy ${ac_tool_prefix}gcc; ac_word=$2
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
2658if test "${ac_cv_prog_CC+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676 done
2677IFS=$as_save_IFS
ecd3459e 2678
30bd8e8b 2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684$as_echo "$CC" >&6; }
2685else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
ecd3459e 2689
ecd3459e 2690
30bd8e8b 2691fi
2692if test -z "$ac_cv_prog_CC"; then
2693 ac_ct_CC=$CC
2694 # Extract the first word of "gcc", so it can be a program name with args.
2695set dummy gcc; ac_word=$2
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697$as_echo_n "checking for $ac_word... " >&6; }
2698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ecd3459e 2699 $as_echo_n "(cached) " >&6
2700else
30bd8e8b 2701 if test -n "$ac_ct_CC"; then
2702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703else
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ecd3459e 2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
30bd8e8b 2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_ac_ct_CC="gcc"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
ecd3459e 2716 done
2717IFS=$as_save_IFS
2718
ecd3459e 2719fi
30bd8e8b 2720fi
2721ac_ct_CC=$ac_cv_prog_ac_ct_CC
2722if test -n "$ac_ct_CC"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2724$as_echo "$ac_ct_CC" >&6; }
2725else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727$as_echo "no" >&6; }
2728fi
2729
2730 if test "x$ac_ct_CC" = x; then
2731 CC=""
ecd3459e 2732 else
30bd8e8b 2733 case $cross_compiling:$ac_tool_warned in
2734yes:)
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737ac_tool_warned=yes ;;
2738esac
2739 CC=$ac_ct_CC
ecd3459e 2740 fi
30bd8e8b 2741else
2742 CC="$ac_cv_prog_CC"
ecd3459e 2743fi
ecd3459e 2744
30bd8e8b 2745if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2748set dummy ${ac_tool_prefix}cc; ac_word=$2
ecd3459e 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 2751if test "${ac_cv_prog_CC+set}" = set; then :
ecd3459e 2752 $as_echo_n "(cached) " >&6
2753else
30bd8e8b 2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
ecd3459e 2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 2764 ac_cv_prog_CC="${ac_tool_prefix}cc"
ecd3459e 2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768done
2769 done
2770IFS=$as_save_IFS
2771
2772fi
2773fi
30bd8e8b 2774CC=$ac_cv_prog_CC
2775if test -n "$CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2777$as_echo "$CC" >&6; }
ecd3459e 2778else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780$as_echo "no" >&6; }
2781fi
2782
2783
30bd8e8b 2784 fi
ecd3459e 2785fi
30bd8e8b 2786if test -z "$CC"; then
2787 # Extract the first word of "cc", so it can be a program name with args.
2788set dummy cc; ac_word=$2
ecd3459e 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 2791if test "${ac_cv_prog_CC+set}" = set; then :
ecd3459e 2792 $as_echo_n "(cached) " >&6
2793else
30bd8e8b 2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
ecd3459e 2796else
30bd8e8b 2797 ac_prog_rejected=no
ecd3459e 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 2805 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2806 ac_prog_rejected=yes
2807 continue
2808 fi
2809 ac_cv_prog_CC="cc"
ecd3459e 2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813done
2814 done
2815IFS=$as_save_IFS
2816
30bd8e8b 2817if test $ac_prog_rejected = yes; then
2818 # We found a bogon in the path, so make sure we never use it.
2819 set dummy $ac_cv_prog_CC
2820 shift
2821 if test $# != 0; then
2822 # We chose a different compiler from the bogus one.
2823 # However, it has the same basename, so the bogon will be chosen
2824 # first if we set CC to just the basename; use the full file name.
2825 shift
2826 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2827 fi
ecd3459e 2828fi
2829fi
30bd8e8b 2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834$as_echo "$CC" >&6; }
ecd3459e 2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
ecd3459e 2840
2841fi
30bd8e8b 2842if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 for ac_prog in cl.exe
2845 do
2846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if test "${ac_cv_prog_CC+set}" = set; then :
ecd3459e 2851 $as_echo_n "(cached) " >&6
2852else
30bd8e8b 2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
ecd3459e 2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
30bd8e8b 2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
ecd3459e 2868 done
2869IFS=$as_save_IFS
2870
2871fi
ecd3459e 2872fi
30bd8e8b 2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876$as_echo "$CC" >&6; }
2877else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
ecd3459e 2881
ecd3459e 2882
30bd8e8b 2883 test -n "$CC" && break
2884 done
2885fi
2886if test -z "$CC"; then
2887 ac_ct_CC=$CC
2888 for ac_prog in cl.exe
ecd3459e 2889do
2890 # Extract the first word of "$ac_prog", so it can be a program name with args.
2891set dummy $ac_prog; ac_word=$2
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 2894if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ecd3459e 2895 $as_echo_n "(cached) " >&6
2896else
30bd8e8b 2897 if test -n "$ac_ct_CC"; then
2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ecd3459e 2899else
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 2907 ac_cv_prog_ac_ct_CC="$ac_prog"
ecd3459e 2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911done
2912 done
2913IFS=$as_save_IFS
2914
2915fi
2916fi
30bd8e8b 2917ac_ct_CC=$ac_cv_prog_ac_ct_CC
2918if test -n "$ac_ct_CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2920$as_echo "$ac_ct_CC" >&6; }
ecd3459e 2921else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923$as_echo "no" >&6; }
2924fi
2925
2926
30bd8e8b 2927 test -n "$ac_ct_CC" && break
ecd3459e 2928done
2929
30bd8e8b 2930 if test "x$ac_ct_CC" = x; then
2931 CC=""
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934yes:)
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937ac_tool_warned=yes ;;
ecd3459e 2938esac
30bd8e8b 2939 CC=$ac_ct_CC
ecd3459e 2940 fi
2941fi
2942
ecd3459e 2943fi
2944
2945
30bd8e8b 2946test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948as_fn_error "no acceptable C compiler found in \$PATH
2949See \`config.log' for more details." "$LINENO" 5; }
ecd3459e 2950
30bd8e8b 2951# Provide some information about the compiler.
2952$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2953set X $ac_compile
2954ac_compiler=$2
2955for ac_option in --version -v -V -qversion; do
2956 { { ac_try="$ac_compiler $ac_option >&5"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2964 ac_status=$?
2965 if test -s conftest.err; then
2966 sed '10a\
2967... rest of stderr output deleted ...
2968 10q' conftest.err >conftest.er1
2969 cat conftest.er1 >&5
2970 rm -f conftest.er1 conftest.err
2971 fi
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }
2974done
ecd3459e 2975
30bd8e8b 2976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977/* end confdefs.h. */
ecd3459e 2978
30bd8e8b 2979int
2980main ()
2981{
ecd3459e 2982
30bd8e8b 2983 ;
2984 return 0;
2985}
2986_ACEOF
2987ac_clean_files_save=$ac_clean_files
2988ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2989# Try to create an executable without -o first, disregard a.out.
2990# It will help us diagnose broken compilers, and finding out an intuition
2991# of exeext.
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2993$as_echo_n "checking for C compiler default output file name... " >&6; }
2994ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
ecd3459e 2995
30bd8e8b 2996# The possible output files:
2997ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
ecd3459e 2998
30bd8e8b 2999ac_rmfiles=
3000for ac_file in $ac_files
3001do
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3005 esac
3006done
3007rm -f $ac_rmfiles
ecd3459e 3008
30bd8e8b 3009if { { ac_try="$ac_link_default"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_link_default") 2>&5
3017 ac_status=$?
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; then :
3020 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022# in a Makefile. We should not override ac_cv_exeext if it was cached,
3023# so that the user can short-circuit this test for compilers unknown to
3024# Autoconf.
3025for ac_file in $ac_files ''
3026do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3030 ;;
3031 [ab].out )
3032 # We found the default executable, but exeext='' is most
3033 # certainly right.
3034 break;;
3035 *.* )
3036 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3037 then :; else
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 fi
3040 # We set ac_cv_exeext here because the later test for it is not
3041 # safe: cross compilers may not add the suffix if given an `-o'
3042 # argument, so we may need to know it at that point already.
3043 # Even if this section looks crufty: it has the advantage of
3044 # actually working.
3045 break;;
3046 * )
3047 break;;
3048 esac
3049done
3050test "$ac_cv_exeext" = no && ac_cv_exeext=
ecd3459e 3051
ecd3459e 3052else
30bd8e8b 3053 ac_file=''
ecd3459e 3054fi
30bd8e8b 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3056$as_echo "$ac_file" >&6; }
3057if test -z "$ac_file"; then :
3058 $as_echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
ecd3459e 3060
30bd8e8b 3061{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063{ as_fn_set_status 77
3064as_fn_error "C compiler cannot create executables
3065See \`config.log' for more details." "$LINENO" 5; }; }
ecd3459e 3066fi
30bd8e8b 3067ac_exeext=$ac_cv_exeext
ecd3459e 3068
30bd8e8b 3069# Check that the compiler produces executables we can run. If not, either
3070# the compiler is broken, or we cross compile.
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3072$as_echo_n "checking whether the C compiler works... " >&6; }
3073# If not cross compiling, check that we can run a simple program.
3074if test "$cross_compiling" != yes; then
3075 if { ac_try='./$ac_file'
3076 { { case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081$as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_try") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }; }; then
3086 cross_compiling=no
3087 else
3088 if test "$cross_compiling" = maybe; then
3089 cross_compiling=yes
3090 else
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093as_fn_error "cannot run C compiled programs.
3094If you meant to cross compile, use \`--host'.
3095See \`config.log' for more details." "$LINENO" 5; }
3096 fi
3097 fi
ecd3459e 3098fi
30bd8e8b 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100$as_echo "yes" >&6; }
ecd3459e 3101
30bd8e8b 3102rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3103ac_clean_files=$ac_clean_files_save
3104# Check that the compiler produces executables we can run. If not, either
3105# the compiler is broken, or we cross compile.
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3107$as_echo_n "checking whether we are cross compiling... " >&6; }
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109$as_echo "$cross_compiling" >&6; }
ecd3459e 3110
30bd8e8b 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3112$as_echo_n "checking for suffix of executables... " >&6; }
3113if { { ac_try="$ac_link"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3125# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3126# work properly (i.e., refer to `conftest.exe'), while it won't with
3127# `rm'.
3128for ac_file in conftest.exe conftest conftest.*; do
3129 test -f "$ac_file" || continue
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133 break;;
3134 * ) break;;
3135 esac
3136done
ecd3459e 3137else
30bd8e8b 3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140as_fn_error "cannot compute suffix of executables: cannot compile and link
3141See \`config.log' for more details." "$LINENO" 5; }
ecd3459e 3142fi
30bd8e8b 3143rm -f conftest$ac_cv_exeext
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3145$as_echo "$ac_cv_exeext" >&6; }
ecd3459e 3146
30bd8e8b 3147rm -f conftest.$ac_ext
3148EXEEXT=$ac_cv_exeext
3149ac_exeext=$EXEEXT
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151$as_echo_n "checking for suffix of object files... " >&6; }
3152if test "${ac_cv_objext+set}" = set; then :
ecd3459e 3153 $as_echo_n "(cached) " >&6
3154else
30bd8e8b 3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h. */
ecd3459e 3157
30bd8e8b 3158int
3159main ()
3160{
ecd3459e 3161
30bd8e8b 3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.o conftest.obj
3167if { { ac_try="$ac_compile"
3168case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
ecd3459e 3171esac
30bd8e8b 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173$as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_compile") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183 break;;
3184 esac
3185done
ecd3459e 3186else
30bd8e8b 3187 $as_echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
ecd3459e 3189
30bd8e8b 3190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error "cannot compute suffix of object files: cannot compile
3193See \`config.log' for more details." "$LINENO" 5; }
3194fi
3195rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198$as_echo "$ac_cv_objext" >&6; }
3199OBJEXT=$ac_cv_objext
3200ac_objext=$OBJEXT
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3202$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3203if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ecd3459e 3204 $as_echo_n "(cached) " >&6
3205else
30bd8e8b 3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
ecd3459e 3208
30bd8e8b 3209int
3210main ()
3211{
3212#ifndef __GNUC__
3213 choke me
3214#endif
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_compiler_gnu=yes
ecd3459e 3222else
30bd8e8b 3223 ac_compiler_gnu=no
ecd3459e 3224fi
30bd8e8b 3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226ac_cv_c_compiler_gnu=$ac_compiler_gnu
ecd3459e 3227
ecd3459e 3228fi
30bd8e8b 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3230$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3231if test $ac_compiler_gnu = yes; then
3232 GCC=yes
ecd3459e 3233else
30bd8e8b 3234 GCC=
3235fi
3236ac_test_CFLAGS=${CFLAGS+set}
3237ac_save_CFLAGS=$CFLAGS
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3239$as_echo_n "checking whether $CC accepts -g... " >&6; }
3240if test "${ac_cv_prog_cc_g+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
ecd3459e 3242else
30bd8e8b 3243 ac_save_c_werror_flag=$ac_c_werror_flag
3244 ac_c_werror_flag=yes
3245 ac_cv_prog_cc_g=no
3246 CFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h. */
ecd3459e 3249
30bd8e8b 3250int
3251main ()
3252{
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_g=yes
ecd3459e 3260else
30bd8e8b 3261 CFLAGS=""
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
ecd3459e 3264
30bd8e8b 3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
ecd3459e 3274
ecd3459e 3275else
30bd8e8b 3276 ac_c_werror_flag=$ac_save_c_werror_flag
3277 CFLAGS="-g"
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
ecd3459e 3284
30bd8e8b 3285 ;
3286 return 0;
3287}
3288_ACEOF
3289if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_g=yes
ecd3459e 3291fi
30bd8e8b 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ecd3459e 3293fi
30bd8e8b 3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ecd3459e 3295fi
30bd8e8b 3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
ecd3459e 3298fi
30bd8e8b 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3300$as_echo "$ac_cv_prog_cc_g" >&6; }
3301if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3305 CFLAGS="-g -O2"
3306 else
3307 CFLAGS="-g"
3308 fi
ecd3459e 3309else
30bd8e8b 3310 if test "$GCC" = yes; then
3311 CFLAGS="-O2"
3312 else
3313 CFLAGS=
ecd3459e 3314 fi
ecd3459e 3315fi
30bd8e8b 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3317$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318if test "${ac_cv_prog_cc_c89+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
ecd3459e 3320else
30bd8e8b 3321 ac_cv_prog_cc_c89=no
3322ac_save_CC=$CC
3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h. */
3325#include <stdarg.h>
3326#include <stdio.h>
3327#include <sys/types.h>
3328#include <sys/stat.h>
3329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3330struct buf { int x; };
3331FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332static char *e (p, i)
3333 char **p;
3334 int i;
3335{
3336 return p[i];
3337}
3338static char *f (char * (*g) (char **, int), char **p, ...)
3339{
3340 char *s;
3341 va_list v;
3342 va_start (v,p);
3343 s = g (p, va_arg (v,int));
3344 va_end (v);
3345 return s;
3346}
ecd3459e 3347
30bd8e8b 3348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3349 function prototypes and stuff, but not '\xHH' hex character constants.
3350 These don't provoke an error unfortunately, instead are silently treated
3351 as 'x'. The following induces an error, until -std is added to get
3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3353 array size at least. It's necessary to write '\x00'==0 to get something
3354 that's true only with -std. */
3355int osf4_cc_array ['\x00' == 0 ? 1 : -1];
ecd3459e 3356
30bd8e8b 3357/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358 inside strings and character constants. */
3359#define FOO(x) 'x'
3360int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
ecd3459e 3361
30bd8e8b 3362int test (int i, double x);
3363struct s1 {int (*f) (int a);};
3364struct s2 {int (*f) (double a);};
3365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366int argc;
3367char **argv;
3368int
3369main ()
3370{
3371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378do
3379 CC="$ac_save_CC $ac_arg"
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_prog_cc_c89=$ac_arg
ecd3459e 3382fi
30bd8e8b 3383rm -f core conftest.err conftest.$ac_objext
3384 test "x$ac_cv_prog_cc_c89" != "xno" && break
3385done
3386rm -f conftest.$ac_ext
3387CC=$ac_save_CC
ecd3459e 3388
3389fi
30bd8e8b 3390# AC_CACHE_VAL
3391case "x$ac_cv_prog_cc_c89" in
3392 x)
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3394$as_echo "none needed" >&6; } ;;
3395 xno)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3397$as_echo "unsupported" >&6; } ;;
3398 *)
3399 CC="$CC $ac_cv_prog_cc_c89"
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3401$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ecd3459e 3402esac
30bd8e8b 3403if test "x$ac_cv_prog_cc_c89" != xno; then :
ecd3459e 3404
30bd8e8b 3405fi
ecd3459e 3406
30bd8e8b 3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
ecd3459e 3412
30bd8e8b 3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3420$as_echo_n "checking how to run the C preprocessor... " >&6; }
3421# On Suns, sometimes $CPP names a directory.
3422if test -n "$CPP" && test -d "$CPP"; then
3423 CPP=
3424fi
3425if test -z "$CPP"; then
3426 if test "${ac_cv_prog_CPP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428else
3429 # Double quotes because CPP needs to be expanded
3430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431 do
3432 ac_preproc_ok=false
3433for ac_c_preproc_warn_flag in '' yes
3434do
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h. */
3443#ifdef __STDC__
3444# include <limits.h>
3445#else
3446# include <assert.h>
3447#endif
3448 Syntax error
ecd3459e 3449_ACEOF
30bd8e8b 3450if ac_fn_c_try_cpp "$LINENO"; then :
ecd3459e 3451
30bd8e8b 3452else
3453 # Broken: fails on valid input.
3454continue
3455fi
3456rm -f conftest.err conftest.$ac_ext
3457
3458 # OK, works on sane cases. Now check whether nonexistent headers
3459 # can be detected and how.
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */
3462#include <ac_nonexistent.h>
3463_ACEOF
3464if ac_fn_c_try_cpp "$LINENO"; then :
3465 # Broken: success on invalid input.
3466continue
3467else
3468 # Passes both tests.
3469ac_preproc_ok=:
3470break
3471fi
3472rm -f conftest.err conftest.$ac_ext
ecd3459e 3473
ecd3459e 3474done
30bd8e8b 3475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476rm -f conftest.err conftest.$ac_ext
3477if $ac_preproc_ok; then :
3478 break
3479fi
ecd3459e 3480
30bd8e8b 3481 done
3482 ac_cv_prog_CPP=$CPP
3483
3484fi
3485 CPP=$ac_cv_prog_CPP
3486else
3487 ac_cv_prog_CPP=$CPP
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3490$as_echo "$CPP" >&6; }
3491ac_preproc_ok=false
3492for ac_c_preproc_warn_flag in '' yes
ecd3459e 3493do
30bd8e8b 3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497 # <limits.h> exists even on freestanding compilers.
3498 # On the NeXT, cc -E runs the code through the compiler's parser,
3499 # not just through cpp. "Syntax error" is here to catch this case.
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h. */
3502#ifdef __STDC__
3503# include <limits.h>
3504#else
3505# include <assert.h>
3506#endif
3507 Syntax error
3508_ACEOF
3509if ac_fn_c_try_cpp "$LINENO"; then :
ecd3459e 3510
3511else
30bd8e8b 3512 # Broken: fails on valid input.
3513continue
ecd3459e 3514fi
30bd8e8b 3515rm -f conftest.err conftest.$ac_ext
ecd3459e 3516
30bd8e8b 3517 # OK, works on sane cases. Now check whether nonexistent headers
3518 # can be detected and how.
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h. */
3521#include <ac_nonexistent.h>
3522_ACEOF
3523if ac_fn_c_try_cpp "$LINENO"; then :
3524 # Broken: success on invalid input.
3525continue
3526else
3527 # Passes both tests.
3528ac_preproc_ok=:
3529break
3530fi
3531rm -f conftest.err conftest.$ac_ext
3532
3533done
3534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535rm -f conftest.err conftest.$ac_ext
3536if $ac_preproc_ok; then :
3537
3538else
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
ecd3459e 3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30bd8e8b 3541as_fn_error "C preprocessor \"$CPP\" fails sanity check
3542See \`config.log' for more details." "$LINENO" 5; }
ecd3459e 3543fi
ecd3459e 3544
30bd8e8b 3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3553$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3554if test "${ac_cv_path_GREP+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556else
3557 if test -z "$GREP"; then
3558 ac_path_GREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_prog in grep ggrep; do
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3568 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3569# Check for GNU ac_path_GREP and select it if it is found.
3570 # Check for GNU $ac_path_GREP
3571case `"$ac_path_GREP" --version 2>&1` in
3572*GNU*)
3573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3574*)
3575 ac_count=0
3576 $as_echo_n 0123456789 >"conftest.in"
3577 while :
3578 do
3579 cat "conftest.in" "conftest.in" >"conftest.tmp"
3580 mv "conftest.tmp" "conftest.in"
3581 cp "conftest.in" "conftest.nl"
3582 $as_echo 'GREP' >> "conftest.nl"
3583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585 as_fn_arith $ac_count + 1 && ac_count=$as_val
3586 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3587 # Best one so far, save it but keep looking for a better one
3588 ac_cv_path_GREP="$ac_path_GREP"
3589 ac_path_GREP_max=$ac_count
ecd3459e 3590 fi
30bd8e8b 3591 # 10*(2^10) chars as input seems more than enough
3592 test $ac_count -gt 10 && break
3593 done
3594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595esac
3596
3597 $ac_path_GREP_found && break 3
3598 done
3599 done
3600 done
3601IFS=$as_save_IFS
3602 if test -z "$ac_cv_path_GREP"; then
3603 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ecd3459e 3604 fi
30bd8e8b 3605else
3606 ac_cv_path_GREP=$GREP
ecd3459e 3607fi
ecd3459e 3608
30bd8e8b 3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3611$as_echo "$ac_cv_path_GREP" >&6; }
3612 GREP="$ac_cv_path_GREP"
ecd3459e 3613
30bd8e8b 3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3616$as_echo_n "checking for egrep... " >&6; }
3617if test "${ac_cv_path_EGREP+set}" = set; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3621 then ac_cv_path_EGREP="$GREP -E"
3622 else
3623 if test -z "$EGREP"; then
3624 ac_path_EGREP_found=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_prog in egrep; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3635# Check for GNU ac_path_EGREP and select it if it is found.
3636 # Check for GNU $ac_path_EGREP
3637case `"$ac_path_EGREP" --version 2>&1` in
3638*GNU*)
3639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3640*)
3641 ac_count=0
3642 $as_echo_n 0123456789 >"conftest.in"
3643 while :
3644 do
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 $as_echo 'EGREP' >> "conftest.nl"
3649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 as_fn_arith $ac_count + 1 && ac_count=$as_val
3652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_EGREP="$ac_path_EGREP"
3655 ac_path_EGREP_max=$ac_count
3656 fi
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3659 done
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
ecd3459e 3661esac
30bd8e8b 3662
3663 $ac_path_EGREP_found && break 3
3664 done
3665 done
3666 done
3667IFS=$as_save_IFS
3668 if test -z "$ac_cv_path_EGREP"; then
3669 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 fi
ecd3459e 3671else
30bd8e8b 3672 ac_cv_path_EGREP=$EGREP
3673fi
3674
3675 fi
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3678$as_echo "$ac_cv_path_EGREP" >&6; }
3679 EGREP="$ac_cv_path_EGREP"
3680
3681
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3683$as_echo_n "checking for ANSI C header files... " >&6; }
3684if test "${ac_cv_header_stdc+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h. */
3689#include <stdlib.h>
3690#include <stdarg.h>
3691#include <string.h>
3692#include <float.h>
3693
3694int
3695main ()
3696{
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_header_stdc=yes
3704else
3705 ac_cv_header_stdc=no
3706fi
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708
3709if test $ac_cv_header_stdc = yes; then
3710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713#include <string.h>
3714
3715_ACEOF
3716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717 $EGREP "memchr" >/dev/null 2>&1; then :
3718
3719else
3720 ac_cv_header_stdc=no
3721fi
3722rm -f conftest*
3723
3724fi
3725
3726if test $ac_cv_header_stdc = yes; then
3727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h. */
3730#include <stdlib.h>
3731
3732_ACEOF
3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734 $EGREP "free" >/dev/null 2>&1; then :
3735
3736else
3737 ac_cv_header_stdc=no
3738fi
3739rm -f conftest*
3740
3741fi
3742
3743if test $ac_cv_header_stdc = yes; then
3744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3745 if test "$cross_compiling" = yes; then :
3746 :
3747else
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h. */
3750#include <ctype.h>
3751#include <stdlib.h>
3752#if ((' ' & 0x0FF) == 0x020)
3753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3755#else
3756# define ISLOWER(c) \
3757 (('a' <= (c) && (c) <= 'i') \
3758 || ('j' <= (c) && (c) <= 'r') \
3759 || ('s' <= (c) && (c) <= 'z'))
3760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3761#endif
3762
3763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764int
3765main ()
3766{
3767 int i;
3768 for (i = 0; i < 256; i++)
3769 if (XOR (islower (i), ISLOWER (i))
3770 || toupper (i) != TOUPPER (i))
3771 return 2;
3772 return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_run "$LINENO"; then :
3776
3777else
3778 ac_cv_header_stdc=no
3779fi
3780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3781 conftest.$ac_objext conftest.beam conftest.$ac_ext
3782fi
3783
3784fi
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3787$as_echo "$ac_cv_header_stdc" >&6; }
3788if test $ac_cv_header_stdc = yes; then
3789
3790$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3791
3792fi
3793
3794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3796 inttypes.h stdint.h unistd.h
3797do :
3798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3800"
3801eval as_val=\$$as_ac_Header
3802 if test "x$as_val" = x""yes; then :
3803 cat >>confdefs.h <<_ACEOF
3804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805_ACEOF
3806
3807fi
3808
3809done
3810
3811
3812
3813 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3814if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3815 MINIX=yes
3816else
3817 MINIX=
3818fi
3819
3820
3821 if test "$MINIX" = yes; then
3822
3823$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3824
3825
3826$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3827
3828
3829$as_echo "#define _MINIX 1" >>confdefs.h
3830
3831 fi
3832
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3835$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3836if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h. */
3841
3842# define __EXTENSIONS__ 1
3843 $ac_includes_default
3844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_safe_to_define___extensions__=yes
3854else
3855 ac_cv_safe_to_define___extensions__=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3860$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3861 test $ac_cv_safe_to_define___extensions__ = yes &&
3862 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3863
3864 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3865
3866 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3867
3868 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3869
3870 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871
3872
3873
3874libtool_VERSION=1:0:0
3875
3876
451b8929 3877# 1.11.1: Require that version of automake.
3878# foreign: Don't require README, INSTALL, NEWS, etc.
3879# no-define: Don't define PACKAGE and VERSION.
3880# no-dependencies: Don't generate automatic dependencies.
3881# (because it breaks when using bootstrap-lean, since some of the
3882# headers are gone at "make install" time).
3883# -Wall: Issue all automake warnings.
3884# -Wno-portability: Don't warn about constructs supported by GNU make.
3885# (because GCC requires GNU make anyhow).
30bd8e8b 3886am__api_version='1.11'
3887
3888# Find a good install program. We prefer a C program (faster),
3889# so one script is as good as another. But avoid the broken or
3890# incompatible versions:
3891# SysV /etc/install, /usr/sbin/install
3892# SunOS /usr/etc/install
3893# IRIX /sbin/install
3894# AIX /bin/install
3895# AmigaOS /C/install, which installs bootblocks on floppy discs
3896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899# OS/2's system install, which has a completely different semantic
3900# ./install, which can be erroneously created by make from ./install.sh.
3901# Reject install programs that cannot install multiple files.
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3903$as_echo_n "checking for a BSD-compatible install... " >&6; }
3904if test -z "$INSTALL"; then
3905if test "${ac_cv_path_install+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914case $as_dir/ in #((
3915 ./ | .// | /[cC]/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3918 /usr/ucb/* ) ;;
3919 *)
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3929 :
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3933 :
3934 else
3935 rm -rf conftest.one conftest.two conftest.dir
3936 echo one > conftest.one
3937 echo two > conftest.two
3938 mkdir conftest.dir
3939 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3940 test -s conftest.one && test -s conftest.two &&
3941 test -s conftest.dir/conftest.one &&
3942 test -s conftest.dir/conftest.two
3943 then
3944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 break 3
3946 fi
3947 fi
3948 fi
3949 done
3950 done
3951 ;;
3952esac
3953
3954 done
3955IFS=$as_save_IFS
3956
3957rm -rf conftest.one conftest.two conftest.dir
3958
3959fi
3960 if test "${ac_cv_path_install+set}" = set; then
3961 INSTALL=$ac_cv_path_install
3962 else
3963 # As a last resort, use the slow shell script. Don't cache a
3964 # value for INSTALL within a source directory, because that will
3965 # break other packages using the cache if that directory is
3966 # removed, or if the value is a relative name.
3967 INSTALL=$ac_install_sh
3968 fi
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3971$as_echo "$INSTALL" >&6; }
3972
3973# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3974# It thinks the first close brace ends the variable substitution.
3975test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3976
3977test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3978
3979test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3980
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3982$as_echo_n "checking whether build environment is sane... " >&6; }
3983# Just in case
3984sleep 1
3985echo timestamp > conftest.file
3986# Reject unsafe characters in $srcdir or the absolute working directory
3987# name. Accept space and tab only in the latter.
3988am_lf='
3989'
3990case `pwd` in
3991 *[\\\"\#\$\&\'\`$am_lf]*)
3992 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3993esac
3994case $srcdir in
3995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3996 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3997esac
3998
3999# Do `set' in a subshell so we don't clobber the current shell's
4000# arguments. Must try -L first in case configure is actually a
4001# symlink; some systems play weird games with the mod time of symlinks
4002# (eg FreeBSD returns the mod time of the symlink's containing
4003# directory).
4004if (
4005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4006 if test "$*" = "X"; then
4007 # -L didn't work.
4008 set X `ls -t "$srcdir/configure" conftest.file`
4009 fi
4010 rm -f conftest.file
4011 if test "$*" != "X $srcdir/configure conftest.file" \
4012 && test "$*" != "X conftest.file $srcdir/configure"; then
4013
4014 # If neither matched, then we have a broken ls. This can happen
4015 # if, for instance, CONFIG_SHELL is bash and it inherits a
4016 # broken ls alias from the environment. This has actually
4017 # happened. Such a system could not be considered "sane".
4018 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4019alias in your environment" "$LINENO" 5
4020 fi
4021
4022 test "$2" = conftest.file
4023 )
4024then
4025 # Ok.
4026 :
4027else
4028 as_fn_error "newly created file is older than distributed files!
4029Check your system clock" "$LINENO" 5
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032$as_echo "yes" >&6; }
4033test "$program_prefix" != NONE &&
4034 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4035# Use a double $ so make ignores it.
4036test "$program_suffix" != NONE &&
4037 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4038# Double any \ or $.
4039# By default was `s,x,x', remove it if useless.
4040ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4041program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4042
4043# expand $ac_aux_dir to an absolute path
4044am_aux_dir=`cd $ac_aux_dir && pwd`
4045
4046if test x"${MISSING+set}" != xset; then
4047 case $am_aux_dir in
4048 *\ * | *\ *)
4049 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4050 *)
4051 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4052 esac
4053fi
4054# Use eval to expand $SHELL
4055if eval "$MISSING --run true"; then
4056 am_missing_run="$MISSING --run "
4057else
4058 am_missing_run=
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4060$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4061fi
4062
4063if test x"${install_sh}" != xset; then
4064 case $am_aux_dir in
4065 *\ * | *\ *)
4066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4067 *)
4068 install_sh="\${SHELL} $am_aux_dir/install-sh"
4069 esac
4070fi
4071
4072# Installed binaries are usually stripped using `strip' when the user
4073# run `make install-strip'. However `strip' might not be the right
4074# tool to use in cross-compilation environments, therefore Automake
4075# will honor the `STRIP' environment variable to overrule this program.
4076if test "$cross_compiling" != no; then
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4079set dummy ${ac_tool_prefix}strip; ac_word=$2
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
4082if test "${ac_cv_prog_STRIP+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084else
4085 if test -n "$STRIP"; then
4086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4087else
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099done
4100 done
4101IFS=$as_save_IFS
4102
4103fi
4104fi
4105STRIP=$ac_cv_prog_STRIP
4106if test -n "$STRIP"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108$as_echo "$STRIP" >&6; }
4109else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
4112fi
4113
4114
4115fi
4116if test -z "$ac_cv_prog_STRIP"; then
4117 ac_ct_STRIP=$STRIP
4118 # Extract the first word of "strip", so it can be a program name with args.
4119set dummy strip; ac_word=$2
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124else
4125 if test -n "$ac_ct_STRIP"; then
4126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_STRIP="strip"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140 done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4146if test -n "$ac_ct_STRIP"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4148$as_echo "$ac_ct_STRIP" >&6; }
4149else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154 if test "x$ac_ct_STRIP" = x; then
4155 STRIP=":"
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158yes:)
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161ac_tool_warned=yes ;;
4162esac
4163 STRIP=$ac_ct_STRIP
4164 fi
4165else
4166 STRIP="$ac_cv_prog_STRIP"
4167fi
4168
4169fi
4170INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4171
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4173$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4174if test -z "$MKDIR_P"; then
4175 if test "${ac_cv_path_mkdir+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in mkdir gmkdir; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4186 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4187 'mkdir (GNU coreutils) '* | \
4188 'mkdir (coreutils) '* | \
4189 'mkdir (fileutils) '4.1*)
4190 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4191 break 3;;
4192 esac
4193 done
4194 done
4195 done
4196IFS=$as_save_IFS
4197
4198fi
4199
4200 if test "${ac_cv_path_mkdir+set}" = set; then
4201 MKDIR_P="$ac_cv_path_mkdir -p"
4202 else
4203 # As a last resort, use the slow shell script. Don't cache a
4204 # value for MKDIR_P within a source directory, because that will
4205 # break other packages using the cache if that directory is
4206 # removed, or if the value is a relative name.
4207 test -d ./--version && rmdir ./--version
4208 MKDIR_P="$ac_install_sh -d"
4209 fi
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4212$as_echo "$MKDIR_P" >&6; }
4213
4214mkdir_p="$MKDIR_P"
4215case $mkdir_p in
4216 [\\/$]* | ?:[\\/]*) ;;
4217 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4218esac
4219
4220for ac_prog in gawk mawk nawk awk
4221do
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223set dummy $ac_prog; ac_word=$2
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
4226if test "${ac_cv_prog_AWK+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$AWK"; then
4230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_AWK="$ac_prog"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243done
4244 done
4245IFS=$as_save_IFS
4246
4247fi
4248fi
4249AWK=$ac_cv_prog_AWK
4250if test -n "$AWK"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4252$as_echo "$AWK" >&6; }
4253else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256fi
4257
4258
4259 test -n "$AWK" && break
4260done
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4263$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4264set x ${MAKE-make}
4265ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4266if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 cat >conftest.make <<\_ACEOF
4270SHELL = /bin/sh
4271all:
4272 @echo '@@@%%%=$(MAKE)=@@@%%%'
4273_ACEOF
4274# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4275case `${MAKE-make} -f conftest.make 2>/dev/null` in
4276 *@@@%%%=?*=@@@%%%*)
4277 eval ac_cv_prog_make_${ac_make}_set=yes;;
4278 *)
4279 eval ac_cv_prog_make_${ac_make}_set=no;;
4280esac
4281rm -f conftest.make
4282fi
4283if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285$as_echo "yes" >&6; }
4286 SET_MAKE=
4287else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290 SET_MAKE="MAKE=${MAKE-make}"
4291fi
4292
4293rm -rf .tst 2>/dev/null
4294mkdir .tst 2>/dev/null
4295if test -d .tst; then
4296 am__leading_dot=.
4297else
4298 am__leading_dot=_
4299fi
4300rmdir .tst 2>/dev/null
4301
30bd8e8b 4302if test "`cd $srcdir && pwd`" != "`pwd`"; then
4303 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4304 # is not polluted with repeated "-I."
4305 am__isrc=' -I$(srcdir)'
4306 # test to see if srcdir already configured
4307 if test -f $srcdir/config.status; then
4308 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4309 fi
4310fi
4311
4312# test whether we have cygpath
4313if test -z "$CYGPATH_W"; then
4314 if (cygpath --version) >/dev/null 2>/dev/null; then
4315 CYGPATH_W='cygpath -w'
4316 else
4317 CYGPATH_W=echo
4318 fi
4319fi
4320
4321
4322# Define the identity of the package.
4323 PACKAGE='libbacktrace'
4324 VERSION='version-unused'
4325
4326
4327# Some tools Automake needs.
4328
4329ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4330
4331
4332AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4333
4334
4335AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4336
4337
4338AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4339
4340
4341MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4342
4343# We need awk for the "check" target. The system "awk" is bad on
4344# some platforms.
2af09e95 4345# Always define AMTAR for backward compatibility. Yes, it's still used
4346# in the wild :-( We should find a proper way to deprecate it ...
4347AMTAR='$${TAR-tar}'
30bd8e8b 4348
2af09e95 4349am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
30bd8e8b 4350
4351
4352
4353
30bd8e8b 4354
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4358$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4359 # Check whether --enable-maintainer-mode was given.
4360if test "${enable_maintainer_mode+set}" = set; then :
4361 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4362else
4363 USE_MAINTAINER_MODE=no
4364fi
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4367$as_echo "$USE_MAINTAINER_MODE" >&6; }
4368 if test $USE_MAINTAINER_MODE = yes; then
4369 MAINTAINER_MODE_TRUE=
4370 MAINTAINER_MODE_FALSE='#'
4371else
4372 MAINTAINER_MODE_TRUE='#'
4373 MAINTAINER_MODE_FALSE=
4374fi
4375
4376 MAINT=$MAINTAINER_MODE_TRUE
4377
4378
4379
4380
4381# Check whether --with-target-subdir was given.
4382if test "${with_target_subdir+set}" = set; then :
4383 withval=$with_target_subdir;
ecd3459e 4384fi
ecd3459e 4385
ecd3459e 4386
30bd8e8b 4387# We must force CC to /not/ be precious variables; otherwise
4388# the wrong, non-multilib-adjusted value will be used in multilibs.
4389# As a side effect, we have to subst CFLAGS ourselves.
ecd3459e 4390
30bd8e8b 4391
4392ac_ext=c
4393ac_cpp='$CPP $CPPFLAGS'
4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4399set dummy ${ac_tool_prefix}gcc; ac_word=$2
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if test "${ac_cv_prog_CC+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
ecd3459e 4404else
30bd8e8b 4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420 done
4421IFS=$as_save_IFS
ecd3459e 4422
ecd3459e 4423fi
ecd3459e 4424fi
30bd8e8b 4425CC=$ac_cv_prog_CC
4426if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428$as_echo "$CC" >&6; }
ecd3459e 4429else
30bd8e8b 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
ecd3459e 4433
ecd3459e 4434
ecd3459e 4435fi
30bd8e8b 4436if test -z "$ac_cv_prog_CC"; then
4437 ac_ct_CC=$CC
4438 # Extract the first word of "gcc", so it can be a program name with args.
4439set dummy gcc; ac_word=$2
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444else
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CC="gcc"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460 done
4461IFS=$as_save_IFS
ecd3459e 4462
4463fi
ecd3459e 4464fi
30bd8e8b 4465ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468$as_echo "$ac_ct_CC" >&6; }
ecd3459e 4469else
30bd8e8b 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471$as_echo "no" >&6; }
4472fi
ecd3459e 4473
30bd8e8b 4474 if test "x$ac_ct_CC" = x; then
4475 CC=""
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478yes:)
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481ac_tool_warned=yes ;;
4482esac
4483 CC=$ac_ct_CC
4484 fi
4485else
4486 CC="$ac_cv_prog_CC"
4487fi
ecd3459e 4488
30bd8e8b 4489if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492set dummy ${ac_tool_prefix}cc; ac_word=$2
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if test "${ac_cv_prog_CC+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
ecd3459e 4497else
30bd8e8b 4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_CC="${ac_tool_prefix}cc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513 done
4514IFS=$as_save_IFS
ecd3459e 4515
30bd8e8b 4516fi
4517fi
4518CC=$ac_cv_prog_CC
4519if test -n "$CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4521$as_echo "$CC" >&6; }
4522else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
ecd3459e 4526
ecd3459e 4527
30bd8e8b 4528 fi
4529fi
4530if test -z "$CC"; then
4531 # Extract the first word of "cc", so it can be a program name with args.
4532set dummy cc; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
4535if test "${ac_cv_prog_CC+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
ecd3459e 4537else
30bd8e8b 4538 if test -n "$CC"; then
4539 ac_cv_prog_CC="$CC" # Let the user override the test.
4540else
4541 ac_prog_rejected=no
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4550 ac_prog_rejected=yes
4551 continue
4552 fi
4553 ac_cv_prog_CC="cc"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558 done
4559IFS=$as_save_IFS
ecd3459e 4560
30bd8e8b 4561if test $ac_prog_rejected = yes; then
4562 # We found a bogon in the path, so make sure we never use it.
4563 set dummy $ac_cv_prog_CC
4564 shift
4565 if test $# != 0; then
4566 # We chose a different compiler from the bogus one.
4567 # However, it has the same basename, so the bogon will be chosen
4568 # first if we set CC to just the basename; use the full file name.
4569 shift
4570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4571 fi
ecd3459e 4572fi
ecd3459e 4573fi
ecd3459e 4574fi
30bd8e8b 4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578$as_echo "$CC" >&6; }
ecd3459e 4579else
30bd8e8b 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
ecd3459e 4582fi
30bd8e8b 4583
4584
4585fi
4586if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in cl.exe
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if test "${ac_cv_prog_CC+set}" = set; then :
ecd3459e 4595 $as_echo_n "(cached) " >&6
4596else
30bd8e8b 4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
ecd3459e 4614
30bd8e8b 4615fi
4616fi
4617CC=$ac_cv_prog_CC
4618if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620$as_echo "$CC" >&6; }
4621else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
ecd3459e 4625
ecd3459e 4626
30bd8e8b 4627 test -n "$CC" && break
4628 done
ecd3459e 4629fi
30bd8e8b 4630if test -z "$CC"; then
4631 ac_ct_CC=$CC
4632 for ac_prog in cl.exe
4633do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635set dummy $ac_prog; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$ac_ct_CC"; then
4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_ac_ct_CC="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
ecd3459e 4655done
30bd8e8b 4656 done
4657IFS=$as_save_IFS
ecd3459e 4658
4659fi
30bd8e8b 4660fi
4661ac_ct_CC=$ac_cv_prog_ac_ct_CC
4662if test -n "$ac_ct_CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4664$as_echo "$ac_ct_CC" >&6; }
4665else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
ecd3459e 4668fi
4669
ecd3459e 4670
30bd8e8b 4671 test -n "$ac_ct_CC" && break
4672done
ecd3459e 4673
30bd8e8b 4674 if test "x$ac_ct_CC" = x; then
4675 CC=""
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678yes:)
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681ac_tool_warned=yes ;;
ecd3459e 4682esac
30bd8e8b 4683 CC=$ac_ct_CC
4684 fi
ecd3459e 4685fi
4686
30bd8e8b 4687fi
ecd3459e 4688
ecd3459e 4689
30bd8e8b 4690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692as_fn_error "no acceptable C compiler found in \$PATH
4693See \`config.log' for more details." "$LINENO" 5; }
4694
4695# Provide some information about the compiler.
4696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4697set X $ac_compile
4698ac_compiler=$2
4699for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4701case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706$as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708 ac_status=$?
4709 if test -s conftest.err; then
4710 sed '10a\
4711... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4714 rm -f conftest.er1 conftest.err
4715 fi
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718done
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4721$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4722if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727
4728int
4729main ()
4730{
4731#ifndef __GNUC__
4732 choke me
4733#endif
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741else
4742 ac_compiler_gnu=no
ecd3459e 4743fi
30bd8e8b 4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745ac_cv_c_compiler_gnu=$ac_compiler_gnu
ecd3459e 4746
ecd3459e 4747fi
30bd8e8b 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4749$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4750if test $ac_compiler_gnu = yes; then
4751 GCC=yes
ecd3459e 4752else
30bd8e8b 4753 GCC=
ecd3459e 4754fi
30bd8e8b 4755ac_test_CFLAGS=${CFLAGS+set}
4756ac_save_CFLAGS=$CFLAGS
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4758$as_echo_n "checking whether $CC accepts -g... " >&6; }
4759if test "${ac_cv_prog_cc_g+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4761else
4762 ac_save_c_werror_flag=$ac_c_werror_flag
4763 ac_c_werror_flag=yes
4764 ac_cv_prog_cc_g=no
4765 CFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
ecd3459e 4768
30bd8e8b 4769int
4770main ()
4771{
ecd3459e 4772
30bd8e8b 4773 ;
4774 return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_g=yes
ecd3459e 4779else
30bd8e8b 4780 CFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
ecd3459e 4783
30bd8e8b 4784int
4785main ()
4786{
ecd3459e 4787
30bd8e8b 4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
ecd3459e 4793
30bd8e8b 4794else
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
ecd3459e 4799
30bd8e8b 4800int
4801main ()
4802{
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_g=yes
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4819$as_echo "$ac_cv_prog_cc_g" >&6; }
4820if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4824 CFLAGS="-g -O2"
4825 else
4826 CFLAGS="-g"
4827 fi
ecd3459e 4828else
30bd8e8b 4829 if test "$GCC" = yes; then
4830 CFLAGS="-O2"
4831 else
4832 CFLAGS=
4833 fi
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4837if test "${ac_cv_prog_cc_c89+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 ac_cv_prog_cc_c89=no
4841ac_save_CC=$CC
4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#include <stdarg.h>
4845#include <stdio.h>
4846#include <sys/types.h>
4847#include <sys/stat.h>
4848/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4849struct buf { int x; };
4850FILE * (*rcsopen) (struct buf *, struct stat *, int);
4851static char *e (p, i)
4852 char **p;
4853 int i;
4854{
4855 return p[i];
4856}
4857static char *f (char * (*g) (char **, int), char **p, ...)
4858{
4859 char *s;
4860 va_list v;
4861 va_start (v,p);
4862 s = g (p, va_arg (v,int));
4863 va_end (v);
4864 return s;
4865}
4866
4867/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4868 function prototypes and stuff, but not '\xHH' hex character constants.
4869 These don't provoke an error unfortunately, instead are silently treated
4870 as 'x'. The following induces an error, until -std is added to get
4871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4872 array size at least. It's necessary to write '\x00'==0 to get something
4873 that's true only with -std. */
4874int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4875
4876/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4877 inside strings and character constants. */
4878#define FOO(x) 'x'
4879int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4880
4881int test (int i, double x);
4882struct s1 {int (*f) (int a);};
4883struct s2 {int (*f) (double a);};
4884int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885int argc;
4886char **argv;
4887int
4888main ()
4889{
4890return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4897do
4898 CC="$ac_save_CC $ac_arg"
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_prog_cc_c89=$ac_arg
ecd3459e 4901fi
30bd8e8b 4902rm -f core conftest.err conftest.$ac_objext
4903 test "x$ac_cv_prog_cc_c89" != "xno" && break
4904done
4905rm -f conftest.$ac_ext
4906CC=$ac_save_CC
ecd3459e 4907
4908fi
30bd8e8b 4909# AC_CACHE_VAL
4910case "x$ac_cv_prog_cc_c89" in
4911 x)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4913$as_echo "none needed" >&6; } ;;
4914 xno)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4916$as_echo "unsupported" >&6; } ;;
4917 *)
4918 CC="$CC $ac_cv_prog_cc_c89"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4920$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4921esac
4922if test "x$ac_cv_prog_cc_c89" != xno; then :
ecd3459e 4923
ecd3459e 4924fi
4925
30bd8e8b 4926ac_ext=c
4927ac_cpp='$CPP $CPPFLAGS'
4928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930ac_compiler_gnu=$ac_cv_c_compiler_gnu
ecd3459e 4931
4932
4933
4934
4935
4936if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4938set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940$as_echo_n "checking for $ac_word... " >&6; }
4941if test "${ac_cv_prog_RANLIB+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943else
4944 if test -n "$RANLIB"; then
4945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4957 fi
4958done
4959 done
4960IFS=$as_save_IFS
4961
4962fi
4963fi
4964RANLIB=$ac_cv_prog_RANLIB
4965if test -n "$RANLIB"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4967$as_echo "$RANLIB" >&6; }
4968else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972
4973
4974fi
4975if test -z "$ac_cv_prog_RANLIB"; then
4976 ac_ct_RANLIB=$RANLIB
4977 # Extract the first word of "ranlib", so it can be a program name with args.
4978set dummy ranlib; ac_word=$2
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 if test -n "$ac_ct_RANLIB"; then
4985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_ac_ct_RANLIB="ranlib"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998done
4999 done
5000IFS=$as_save_IFS
5001
5002fi
5003fi
5004ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5005if test -n "$ac_ct_RANLIB"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5007$as_echo "$ac_ct_RANLIB" >&6; }
5008else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013 if test "x$ac_ct_RANLIB" = x; then
5014 RANLIB=":"
5015 else
5016 case $cross_compiling:$ac_tool_warned in
5017yes:)
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020ac_tool_warned=yes ;;
5021esac
5022 RANLIB=$ac_ct_RANLIB
5023 fi
5024else
5025 RANLIB="$ac_cv_prog_RANLIB"
5026fi
5027
5028
5029for ac_prog in gawk mawk nawk awk
5030do
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032set dummy $ac_prog; ac_word=$2
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if test "${ac_cv_prog_AWK+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037else
5038 if test -n "$AWK"; then
5039 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_AWK="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052done
5053 done
5054IFS=$as_save_IFS
5055
5056fi
5057fi
5058AWK=$ac_cv_prog_AWK
5059if test -n "$AWK"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5061$as_echo "$AWK" >&6; }
5062else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
5065fi
5066
5067
5068 test -n "$AWK" && break
5069done
5070
5071case "$AWK" in
5072"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5073esac
5074
5075case `pwd` in
5076 *\ * | *\ *)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5078$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5079esac
5080
5081
5082
5083macro_version='2.2.7a'
5084macro_revision='1.3134'
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098ltmain="$ac_aux_dir/ltmain.sh"
5099
5100# Backslashify metacharacters that are still active within
5101# double-quoted strings.
5102sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5103
5104# Same as above, but do not quote variable references.
5105double_quote_subst='s/\(["`\\]\)/\\\1/g'
5106
5107# Sed substitution to delay expansion of an escaped shell variable in a
5108# double_quote_subst'ed string.
5109delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5110
5111# Sed substitution to delay expansion of an escaped single quote.
5112delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5113
5114# Sed substitution to avoid accidental globbing in evaled expressions
5115no_glob_subst='s/\*/\\\*/g'
5116
5117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5122$as_echo_n "checking how to print strings... " >&6; }
5123# Test print first, because it will be a builtin if present.
5124if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5126 ECHO='print -r --'
5127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5128 ECHO='printf %s\n'
5129else
5130 # Use this function as a fallback that always works.
5131 func_fallback_echo ()
5132 {
5133 eval 'cat <<_LTECHO_EOF
5134$1
5135_LTECHO_EOF'
5136 }
5137 ECHO='func_fallback_echo'
5138fi
5139
5140# func_echo_all arg...
5141# Invoke $ECHO with all args, space-separated.
5142func_echo_all ()
5143{
5144 $ECHO ""
5145}
5146
5147case "$ECHO" in
5148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5149$as_echo "printf" >&6; } ;;
5150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5151$as_echo "print -r" >&6; } ;;
5152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5153$as_echo "cat" >&6; } ;;
5154esac
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
30bd8e8b 5170$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5171if test "${ac_cv_path_SED+set}" = set; then :
ecd3459e 5172 $as_echo_n "(cached) " >&6
5173else
30bd8e8b 5174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5175 for ac_i in 1 2 3 4 5 6 7; do
5176 ac_script="$ac_script$as_nl$ac_script"
5177 done
5178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5179 { ac_script=; unset ac_script;}
5180 if test -z "$SED"; then
5181 ac_path_SED_found=false
ecd3459e 5182 # Loop through the user's path and test for each of PROGNAME-LIST
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30bd8e8b 5184for as_dir in $PATH
ecd3459e 5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
30bd8e8b 5188 for ac_prog in sed gsed; do
ecd3459e 5189 for ac_exec_ext in '' $ac_executable_extensions; do
30bd8e8b 5190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5192# Check for GNU ac_path_SED and select it if it is found.
5193 # Check for GNU $ac_path_SED
5194case `"$ac_path_SED" --version 2>&1` in
ecd3459e 5195*GNU*)
30bd8e8b 5196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
ecd3459e 5197*)
5198 ac_count=0
5199 $as_echo_n 0123456789 >"conftest.in"
5200 while :
5201 do
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
30bd8e8b 5205 $as_echo '' >> "conftest.nl"
5206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
ecd3459e 5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
30bd8e8b 5209 if test $ac_count -gt ${ac_path_SED_max-0}; then
ecd3459e 5210 # Best one so far, save it but keep looking for a better one
30bd8e8b 5211 ac_cv_path_SED="$ac_path_SED"
5212 ac_path_SED_max=$ac_count
ecd3459e 5213 fi
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5216 done
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218esac
5219
30bd8e8b 5220 $ac_path_SED_found && break 3
ecd3459e 5221 done
5222 done
5223 done
5224IFS=$as_save_IFS
30bd8e8b 5225 if test -z "$ac_cv_path_SED"; then
5226 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ecd3459e 5227 fi
5228else
30bd8e8b 5229 ac_cv_path_SED=$SED
ecd3459e 5230fi
5231
ecd3459e 5232fi
30bd8e8b 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234$as_echo "$ac_cv_path_SED" >&6; }
5235 SED="$ac_cv_path_SED"
5236 rm -f conftest.sed
5237
5238test -z "$SED" && SED=sed
5239Xsed="$SED -e 1s/^X//"
5240
5241
5242
5243
5244
5245
5246
5247
5248
ecd3459e 5249
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5252$as_echo_n "checking for fgrep... " >&6; }
5253if test "${ac_cv_path_FGREP+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5257 then ac_cv_path_FGREP="$GREP -F"
5258 else
5259 if test -z "$FGREP"; then
5260 ac_path_FGREP_found=false
5261 # Loop through the user's path and test for each of PROGNAME-LIST
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_prog in fgrep; do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5270 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5271# Check for GNU ac_path_FGREP and select it if it is found.
5272 # Check for GNU $ac_path_FGREP
5273case `"$ac_path_FGREP" --version 2>&1` in
5274*GNU*)
5275 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5276*)
5277 ac_count=0
5278 $as_echo_n 0123456789 >"conftest.in"
5279 while :
5280 do
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 $as_echo 'FGREP' >> "conftest.nl"
5285 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_FGREP="$ac_path_FGREP"
5291 ac_path_FGREP_max=$ac_count
5292 fi
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5295 done
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297esac
5298
5299 $ac_path_FGREP_found && break 3
5300 done
5301 done
5302 done
5303IFS=$as_save_IFS
5304 if test -z "$ac_cv_path_FGREP"; then
5305 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5306 fi
5307else
5308 ac_cv_path_FGREP=$FGREP
5309fi
5310
5311 fi
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5314$as_echo "$ac_cv_path_FGREP" >&6; }
5315 FGREP="$ac_cv_path_FGREP"
5316
5317
5318test -z "$GREP" && GREP=grep
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338# Check whether --with-gnu-ld was given.
5339if test "${with_gnu_ld+set}" = set; then :
5340 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5341else
5342 with_gnu_ld=no
5343fi
5344
5345ac_prog=ld
5346if test "$GCC" = yes; then
5347 # Check if gcc -print-prog-name=ld gives a path.
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5349$as_echo_n "checking for ld used by $CC... " >&6; }
5350 case $host in
5351 *-*-mingw*)
5352 # gcc leaves a trailing carriage return which upsets mingw
5353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5354 *)
5355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5356 esac
5357 case $ac_prog in
5358 # Accept absolute paths.
5359 [\\/]* | ?:[\\/]*)
5360 re_direlt='/[^/][^/]*/\.\./'
5361 # Canonicalize the pathname of ld
5362 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5363 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5364 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5365 done
5366 test -z "$LD" && LD="$ac_prog"
5367 ;;
5368 "")
5369 # If it fails, then pretend we aren't using GCC.
5370 ac_prog=ld
5371 ;;
5372 *)
5373 # If it is relative, then search for the first ld in PATH.
5374 with_gnu_ld=unknown
5375 ;;
5376 esac
5377elif test "$with_gnu_ld" = yes; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5379$as_echo_n "checking for GNU ld... " >&6; }
5380else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5382$as_echo_n "checking for non-GNU ld... " >&6; }
5383fi
5384if test "${lt_cv_path_LD+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386else
5387 if test -z "$LD"; then
5388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5389 for ac_dir in $PATH; do
5390 IFS="$lt_save_ifs"
5391 test -z "$ac_dir" && ac_dir=.
5392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5393 lt_cv_path_LD="$ac_dir/$ac_prog"
5394 # Check to see if the program is GNU ld. I'd rather use --version,
5395 # but apparently some variants of GNU ld only accept -v.
5396 # Break only if it was the GNU/non-GNU ld that we prefer.
5397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5398 *GNU* | *'with BFD'*)
5399 test "$with_gnu_ld" != no && break
5400 ;;
5401 *)
5402 test "$with_gnu_ld" != yes && break
5403 ;;
5404 esac
5405 fi
5406 done
5407 IFS="$lt_save_ifs"
5408else
5409 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5410fi
5411fi
5412
5413LD="$lt_cv_path_LD"
5414if test -n "$LD"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5416$as_echo "$LD" >&6; }
5417else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }
5420fi
5421test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5423$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5424if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5428case `$LD -v 2>&1 </dev/null` in
5429*GNU* | *'with BFD'*)
5430 lt_cv_prog_gnu_ld=yes
5431 ;;
5432*)
5433 lt_cv_prog_gnu_ld=no
5434 ;;
5435esac
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5438$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5439with_gnu_ld=$lt_cv_prog_gnu_ld
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5450$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5451if test "${lt_cv_path_NM+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$NM"; then
5455 # Let the user override the test.
5456 lt_cv_path_NM="$NM"
5457else
5458 lt_nm_to_check="${ac_tool_prefix}nm"
5459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5460 lt_nm_to_check="$lt_nm_to_check nm"
5461 fi
5462 for lt_tmp_nm in $lt_nm_to_check; do
5463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5464 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5465 IFS="$lt_save_ifs"
5466 test -z "$ac_dir" && ac_dir=.
5467 tmp_nm="$ac_dir/$lt_tmp_nm"
5468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5469 # Check to see if the nm accepts a BSD-compat flag.
5470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5471 # nm: unknown option "B" ignored
5472 # Tru64's nm complains that /dev/null is an invalid object file
5473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5474 */dev/null* | *'Invalid file or object type'*)
5475 lt_cv_path_NM="$tmp_nm -B"
5476 break
5477 ;;
5478 *)
5479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5480 */dev/null*)
5481 lt_cv_path_NM="$tmp_nm -p"
5482 break
5483 ;;
5484 *)
5485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486 continue # so that we can try to find one that supports BSD flags
5487 ;;
5488 esac
5489 ;;
5490 esac
5491 fi
5492 done
5493 IFS="$lt_save_ifs"
5494 done
5495 : ${lt_cv_path_NM=no}
5496fi
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5499$as_echo "$lt_cv_path_NM" >&6; }
5500if test "$lt_cv_path_NM" != "no"; then
5501 NM="$lt_cv_path_NM"
5502else
5503 # Didn't find any BSD compatible name lister, look for dumpbin.
5504 if test -n "$DUMPBIN"; then :
5505 # Let the user override the test.
5506 else
5507 if test -n "$ac_tool_prefix"; then
5508 for ac_prog in dumpbin "link -dump"
5509 do
5510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 if test -n "$DUMPBIN"; then
5518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532 done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537DUMPBIN=$ac_cv_prog_DUMPBIN
5538if test -n "$DUMPBIN"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5540$as_echo "$DUMPBIN" >&6; }
5541else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547 test -n "$DUMPBIN" && break
5548 done
5549fi
5550if test -z "$DUMPBIN"; then
5551 ac_ct_DUMPBIN=$DUMPBIN
5552 for ac_prog in dumpbin "link -dump"
5553do
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555set dummy $ac_prog; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560else
5561 if test -n "$ac_ct_DUMPBIN"; then
5562 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575done
5576 done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5582if test -n "$ac_ct_DUMPBIN"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5584$as_echo "$ac_ct_DUMPBIN" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591 test -n "$ac_ct_DUMPBIN" && break
5592done
5593
5594 if test "x$ac_ct_DUMPBIN" = x; then
5595 DUMPBIN=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598yes:)
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601ac_tool_warned=yes ;;
5602esac
5603 DUMPBIN=$ac_ct_DUMPBIN
5604 fi
5605fi
5606
5607 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5608 *COFF*)
5609 DUMPBIN="$DUMPBIN -symbols"
5610 ;;
5611 *)
5612 DUMPBIN=:
5613 ;;
5614 esac
5615 fi
5616
5617 if test "$DUMPBIN" != ":"; then
5618 NM="$DUMPBIN"
5619 fi
5620fi
5621test -z "$NM" && NM=nm
5622
5623
5624
5625
5626
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5629$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5630if test "${lt_cv_nm_interface+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632else
5633 lt_cv_nm_interface="BSD nm"
5634 echo "int some_variable = 0;" > conftest.$ac_ext
5635 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5636 (eval "$ac_compile" 2>conftest.err)
5637 cat conftest.err >&5
5638 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5639 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5640 cat conftest.err >&5
5641 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5642 cat conftest.out >&5
5643 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5644 lt_cv_nm_interface="MS dumpbin"
5645 fi
5646 rm -f conftest*
5647fi
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5649$as_echo "$lt_cv_nm_interface" >&6; }
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5652$as_echo_n "checking whether ln -s works... " >&6; }
5653LN_S=$as_ln_s
5654if test "$LN_S" = "ln -s"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5659$as_echo "no, using $LN_S" >&6; }
5660fi
5661
5662# find the maximum length of command line arguments
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5664$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5665if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5667else
5668 i=0
5669 teststring="ABCD"
5670
5671 case $build_os in
5672 msdosdjgpp*)
5673 # On DJGPP, this test can blow up pretty badly due to problems in libc
5674 # (any single argument exceeding 2000 bytes causes a buffer overrun
5675 # during glob expansion). Even if it were fixed, the result of this
5676 # check would be larger than it should be.
5677 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5678 ;;
5679
5680 gnu*)
5681 # Under GNU Hurd, this test is not required because there is
5682 # no limit to the length of command line arguments.
5683 # Libtool will interpret -1 as no limit whatsoever
5684 lt_cv_sys_max_cmd_len=-1;
5685 ;;
5686
5687 cygwin* | mingw* | cegcc*)
5688 # On Win9x/ME, this test blows up -- it succeeds, but takes
5689 # about 5 minutes as the teststring grows exponentially.
5690 # Worse, since 9x/ME are not pre-emptively multitasking,
5691 # you end up with a "frozen" computer, even though with patience
5692 # the test eventually succeeds (with a max line length of 256k).
5693 # Instead, let's just punt: use the minimum linelength reported by
5694 # all of the supported platforms: 8192 (on NT/2K/XP).
5695 lt_cv_sys_max_cmd_len=8192;
5696 ;;
5697
5698 mint*)
5699 # On MiNT this can take a long time and run out of memory.
5700 lt_cv_sys_max_cmd_len=8192;
5701 ;;
5702
5703 amigaos*)
5704 # On AmigaOS with pdksh, this test takes hours, literally.
5705 # So we just punt and use a minimum line length of 8192.
5706 lt_cv_sys_max_cmd_len=8192;
5707 ;;
5708
5709 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5710 # This has been around since 386BSD, at least. Likely further.
5711 if test -x /sbin/sysctl; then
5712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5713 elif test -x /usr/sbin/sysctl; then
5714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5715 else
5716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5717 fi
5718 # And add a safety zone
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5721 ;;
5722
5723 interix*)
5724 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5725 lt_cv_sys_max_cmd_len=196608
5726 ;;
5727
5728 osf*)
5729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5731 # nice to cause kernel panics so lets avoid the loop below.
5732 # First set a reasonable default.
5733 lt_cv_sys_max_cmd_len=16384
5734 #
5735 if test -x /sbin/sysconfig; then
5736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5738 esac
5739 fi
5740 ;;
5741 sco3.2v5*)
5742 lt_cv_sys_max_cmd_len=102400
5743 ;;
5744 sysv5* | sco5v6* | sysv4.2uw2*)
5745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5746 if test -n "$kargmax"; then
5747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5748 else
5749 lt_cv_sys_max_cmd_len=32768
5750 fi
5751 ;;
5752 *)
5753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5754 if test -n "$lt_cv_sys_max_cmd_len"; then
5755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5757 else
5758 # Make teststring a little bigger before we do anything with it.
5759 # a 1K string should be a reasonable start.
5760 for i in 1 2 3 4 5 6 7 8 ; do
5761 teststring=$teststring$teststring
5762 done
5763 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5764 # If test is not a shell built-in, we'll probably end up computing a
5765 # maximum length that is only half of the actual maximum length, but
5766 # we can't tell.
5767 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5768 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5769 test $i != 17 # 1/2 MB should be enough
5770 do
5771 i=`expr $i + 1`
5772 teststring=$teststring$teststring
5773 done
5774 # Only check the string length outside the loop.
5775 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5776 teststring=
5777 # Add a significant safety factor because C++ compilers can tack on
5778 # massive amounts of additional arguments before passing them to the
5779 # linker. It appears as though 1/2 is a usable value.
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5781 fi
5782 ;;
5783 esac
5784
5785fi
5786
5787if test -n $lt_cv_sys_max_cmd_len ; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5789$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5790else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5792$as_echo "none" >&6; }
5793fi
5794max_cmd_len=$lt_cv_sys_max_cmd_len
5795
5796
5797
5798
5799
5800
5801: ${CP="cp -f"}
5802: ${MV="mv -f"}
5803: ${RM="rm -f"}
5804
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5806$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5807# Try some XSI features
5808xsi_shell=no
5809( _lt_dummy="a/b/c"
5810 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5811 = c,a/b,, \
5812 && eval 'test $(( 1 + 1 )) -eq 2 \
5813 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5814 && xsi_shell=yes
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5816$as_echo "$xsi_shell" >&6; }
5817
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5820$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5821lt_shell_append=no
5822( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5823 >/dev/null 2>&1 \
5824 && lt_shell_append=yes
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5826$as_echo "$lt_shell_append" >&6; }
5827
5828
5829if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5830 lt_unset=unset
5831else
5832 lt_unset=false
5833fi
5834
5835
5836
5837
5838
5839# test EBCDIC or ASCII
5840case `echo X|tr X '\101'` in
5841 A) # ASCII based system
5842 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5843 lt_SP2NL='tr \040 \012'
5844 lt_NL2SP='tr \015\012 \040\040'
5845 ;;
5846 *) # EBCDIC based system
5847 lt_SP2NL='tr \100 \n'
5848 lt_NL2SP='tr \r\n \100\100'
5849 ;;
5850esac
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5861$as_echo_n "checking for $LD option to reload object files... " >&6; }
5862if test "${lt_cv_ld_reload_flag+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864else
5865 lt_cv_ld_reload_flag='-r'
5866fi
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5868$as_echo "$lt_cv_ld_reload_flag" >&6; }
5869reload_flag=$lt_cv_ld_reload_flag
5870case $reload_flag in
5871"" | " "*) ;;
5872*) reload_flag=" $reload_flag" ;;
5873esac
5874reload_cmds='$LD$reload_flag -o $output$reload_objs'
5875case $host_os in
5876 darwin*)
5877 if test "$GCC" = yes; then
5878 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5879 else
5880 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5881 fi
5882 ;;
5883esac
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}objdump; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
5898if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900else
5901 if test -n "$OBJDUMP"; then
5902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916 done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921OBJDUMP=$ac_cv_prog_OBJDUMP
5922if test -n "$OBJDUMP"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5924$as_echo "$OBJDUMP" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$ac_cv_prog_OBJDUMP"; then
5933 ac_ct_OBJDUMP=$OBJDUMP
5934 # Extract the first word of "objdump", so it can be a program name with args.
5935set dummy objdump; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940else
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956 done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5962if test -n "$ac_ct_OBJDUMP"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5964$as_echo "$ac_ct_OBJDUMP" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970 if test "x$ac_ct_OBJDUMP" = x; then
5971 OBJDUMP="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974yes:)
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977ac_tool_warned=yes ;;
5978esac
5979 OBJDUMP=$ac_ct_OBJDUMP
5980 fi
5981else
5982 OBJDUMP="$ac_cv_prog_OBJDUMP"
5983fi
5984
5985test -z "$OBJDUMP" && OBJDUMP=objdump
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5996$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5997if test "${lt_cv_deplibs_check_method+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999else
6000 lt_cv_file_magic_cmd='$MAGIC_CMD'
6001lt_cv_file_magic_test_file=
6002lt_cv_deplibs_check_method='unknown'
6003# Need to set the preceding variable on all platforms that support
6004# interlibrary dependencies.
6005# 'none' -- dependencies not supported.
6006# `unknown' -- same as none, but documents that we really don't know.
6007# 'pass_all' -- all dependencies passed with no checks.
6008# 'test_compile' -- check by making test program.
6009# 'file_magic [[regex]]' -- check by looking for files in library path
6010# which responds to the $file_magic_cmd with a given extended regex.
6011# If you have `file' or equivalent on your system and you're not sure
6012# whether `pass_all' will *always* work, you probably want this one.
6013
6014case $host_os in
6015aix[4-9]*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019beos*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023bsdi[45]*)
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6025 lt_cv_file_magic_cmd='/usr/bin/file -L'
6026 lt_cv_file_magic_test_file=/shlib/libc.so
6027 ;;
6028
6029cygwin*)
6030 # func_win32_libid is a shell function defined in ltmain.sh
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
6033 ;;
6034
6035mingw* | pw32*)
6036 # Base MSYS/MinGW do not provide the 'file' command needed by
6037 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6038 # unless we find 'file', for example because we are cross-compiling.
6039 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6040 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042 lt_cv_file_magic_cmd='func_win32_libid'
6043 else
6044 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6045 lt_cv_file_magic_cmd='$OBJDUMP -f'
6046 fi
6047 ;;
6048
6049cegcc*)
6050 # use the weaker test based on 'objdump'. See mingw*.
6051 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6052 lt_cv_file_magic_cmd='$OBJDUMP -f'
6053 ;;
6054
6055darwin* | rhapsody*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058
6059freebsd* | dragonfly*)
6060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6061 case $host_cpu in
6062 i*86 )
6063 # Not sure whether the presence of OpenBSD here was a mistake.
6064 # Let's accept both of them until this is cleared up.
6065 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6066 lt_cv_file_magic_cmd=/usr/bin/file
6067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6068 ;;
6069 esac
6070 else
6071 lt_cv_deplibs_check_method=pass_all
6072 fi
6073 ;;
6074
6075gnu*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079haiku*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083hpux10.20* | hpux11*)
6084 lt_cv_file_magic_cmd=/usr/bin/file
6085 case $host_cpu in
6086 ia64*)
6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6089 ;;
6090 hppa*64*)
6091 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]'
6092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6093 ;;
6094 *)
6095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6097 ;;
6098 esac
6099 ;;
6100
6101interix[3-9]*)
6102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6104 ;;
6105
6106irix5* | irix6* | nonstopux*)
6107 case $LD in
6108 *-32|*"-32 ") libmagic=32-bit;;
6109 *-n32|*"-n32 ") libmagic=N32;;
6110 *-64|*"-64 ") libmagic=64-bit;;
6111 *) libmagic=never-match;;
6112 esac
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116# This must be Linux ELF.
6117linux* | k*bsd*-gnu | kopensolaris*-gnu)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121netbsd*)
6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6124 else
6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6126 fi
6127 ;;
6128
6129newos6*)
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6133 ;;
6134
6135*nto* | *qnx*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139openbsd*)
6140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6142 else
6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6144 fi
6145 ;;
6146
6147osf3* | osf4* | osf5*)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150
6151rdos*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154
6155solaris*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163sysv4 | sysv4.3*)
6164 case $host_vendor in
6165 motorola)
6166 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]'
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6168 ;;
6169 ncr)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 sequent)
6173 lt_cv_file_magic_cmd='/bin/file'
6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6175 ;;
6176 sni)
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6179 lt_cv_file_magic_test_file=/lib/libc.so
6180 ;;
6181 siemens)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184 pc)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187 esac
6188 ;;
6189
6190tpf*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193esac
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6197$as_echo "$lt_cv_deplibs_check_method" >&6; }
6198file_magic_cmd=$lt_cv_file_magic_cmd
6199deplibs_check_method=$lt_cv_deplibs_check_method
6200test -z "$deplibs_check_method" && deplibs_check_method=unknown
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6215set dummy ${ac_tool_prefix}ar; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
6218if test "${ac_cv_prog_AR+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6220else
6221 if test -n "$AR"; then
6222 ac_cv_prog_AR="$AR" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_AR="${ac_tool_prefix}ar"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235done
6236 done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241AR=$ac_cv_prog_AR
6242if test -n "$AR"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6244$as_echo "$AR" >&6; }
6245else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250
6251fi
6252if test -z "$ac_cv_prog_AR"; then
6253 ac_ct_AR=$AR
6254 # Extract the first word of "ar", so it can be a program name with args.
6255set dummy ar; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
6258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260else
6261 if test -n "$ac_ct_AR"; then
6262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_AR="ar"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276 done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282if test -n "$ac_ct_AR"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284$as_echo "$ac_ct_AR" >&6; }
6285else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290 if test "x$ac_ct_AR" = x; then
6291 AR="false"
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294yes:)
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297ac_tool_warned=yes ;;
6298esac
6299 AR=$ac_ct_AR
6300 fi
6301else
6302 AR="$ac_cv_prog_AR"
6303fi
6304
6305test -z "$AR" && AR=ar
6306test -z "$AR_FLAGS" && AR_FLAGS=cru
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6320set dummy ${ac_tool_prefix}strip; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if test "${ac_cv_prog_STRIP+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 if test -n "$STRIP"; then
6327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341 done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346STRIP=$ac_cv_prog_STRIP
6347if test -n "$STRIP"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6349$as_echo "$STRIP" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356fi
6357if test -z "$ac_cv_prog_STRIP"; then
6358 ac_ct_STRIP=$STRIP
6359 # Extract the first word of "strip", so it can be a program name with args.
6360set dummy strip; ac_word=$2
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362$as_echo_n "checking for $ac_word... " >&6; }
6363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6364 $as_echo_n "(cached) " >&6
6365else
6366 if test -n "$ac_ct_STRIP"; then
6367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_STRIP="strip"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380done
6381 done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6387if test -n "$ac_ct_STRIP"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6389$as_echo "$ac_ct_STRIP" >&6; }
6390else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393fi
6394
6395 if test "x$ac_ct_STRIP" = x; then
6396 STRIP=":"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399yes:)
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402ac_tool_warned=yes ;;
6403esac
6404 STRIP=$ac_ct_STRIP
6405 fi
6406else
6407 STRIP="$ac_cv_prog_STRIP"
6408fi
6409
6410test -z "$STRIP" && STRIP=:
6411
6412
6413
6414
6415
6416
6417if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6419set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
6422if test "${ac_cv_prog_RANLIB+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424else
6425 if test -n "$RANLIB"; then
6426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440 done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445RANLIB=$ac_cv_prog_RANLIB
6446if test -n "$RANLIB"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6448$as_echo "$RANLIB" >&6; }
6449else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454
6455fi
6456if test -z "$ac_cv_prog_RANLIB"; then
6457 ac_ct_RANLIB=$RANLIB
6458 # Extract the first word of "ranlib", so it can be a program name with args.
6459set dummy ranlib; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6463 $as_echo_n "(cached) " >&6
6464else
6465 if test -n "$ac_ct_RANLIB"; then
6466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_ac_ct_RANLIB="ranlib"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480 done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6486if test -n "$ac_ct_RANLIB"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6488$as_echo "$ac_ct_RANLIB" >&6; }
6489else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494 if test "x$ac_ct_RANLIB" = x; then
6495 RANLIB=":"
6496 else
6497 case $cross_compiling:$ac_tool_warned in
6498yes:)
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501ac_tool_warned=yes ;;
6502esac
6503 RANLIB=$ac_ct_RANLIB
6504 fi
6505else
6506 RANLIB="$ac_cv_prog_RANLIB"
6507fi
6508
6509test -z "$RANLIB" && RANLIB=:
6510
6511
6512
6513
6514
6515
6516# Determine commands to create old-style static archives.
6517old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6518old_postinstall_cmds='chmod 644 $oldlib'
6519old_postuninstall_cmds=
6520
6521if test -n "$RANLIB"; then
6522 case $host_os in
6523 openbsd*)
6524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6525 ;;
6526 *)
6527 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6528 ;;
6529 esac
6530 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6531fi
6532
6533case $host_os in
6534 darwin*)
6535 lock_old_archive_extraction=yes ;;
6536 *)
6537 lock_old_archive_extraction=no ;;
6538esac
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578# If no C compiler was specified, use CC.
6579LTCC=${LTCC-"$CC"}
6580
6581# If no C compiler flags were specified, use CFLAGS.
6582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6583
6584# Allow CC to be a program name with arguments.
6585compiler=$CC
6586
6587
6588# Check for command to grab the raw symbol name followed by C symbol from nm.
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6590$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6591if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593else
6594
6595# These are sane defaults that work on at least a few old systems.
6596# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6597
6598# Character class describing NM global symbol codes.
6599symcode='[BCDEGRST]'
6600
6601# Regexp to match symbols that can be accessed directly from C.
6602sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6603
6604# Define system-specific variables.
6605case $host_os in
6606aix*)
6607 symcode='[BCDT]'
6608 ;;
6609cygwin* | mingw* | pw32* | cegcc*)
6610 symcode='[ABCDGISTW]'
6611 ;;
6612hpux*)
6613 if test "$host_cpu" = ia64; then
6614 symcode='[ABCDEGRST]'
6615 fi
6616 ;;
6617irix* | nonstopux*)
6618 symcode='[BCDEGRST]'
6619 ;;
6620osf*)
6621 symcode='[BCDEGQRST]'
6622 ;;
6623solaris*)
6624 symcode='[BDRT]'
6625 ;;
6626sco3.2v5*)
6627 symcode='[DT]'
6628 ;;
6629sysv4.2uw2*)
6630 symcode='[DT]'
6631 ;;
6632sysv5* | sco5v6* | unixware* | OpenUNIX*)
6633 symcode='[ABDT]'
6634 ;;
6635sysv4)
6636 symcode='[DFNSTU]'
6637 ;;
6638esac
6639
6640# If we're using GNU nm, then use its standard symbol codes.
6641case `$NM -V 2>&1` in
6642*GNU* | *'with BFD'*)
6643 symcode='[ABCDGIRSTW]' ;;
6644esac
6645
6646# Transform an extracted symbol line into a proper C declaration.
6647# Some systems (esp. on ia64) link data and code symbols differently,
6648# so use this general approach.
6649lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6650
6651# Transform an extracted symbol line into symbol name and symbol address
6652lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6653lt_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'"
6654
6655# Handle CRLF in mingw tool chain
6656opt_cr=
6657case $build_os in
6658mingw*)
6659 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6660 ;;
6661esac
6662
6663# Try without a prefix underscore, then with it.
6664for ac_symprfx in "" "_"; do
6665
6666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6667 symxfrm="\\1 $ac_symprfx\\2 \\2"
6668
6669 # Write the raw and C identifiers.
6670 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6671 # Fake it for dumpbin and say T for any non-static function
6672 # and D for any global variable.
6673 # Also find C++ and __fastcall symbols from MSVC++,
6674 # which start with @ or ?.
6675 lt_cv_sys_global_symbol_pipe="$AWK '"\
6676" {last_section=section; section=\$ 3};"\
6677" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6678" \$ 0!~/External *\|/{next};"\
6679" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6680" {if(hide[section]) next};"\
6681" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6682" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6683" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6684" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6685" ' prfx=^$ac_symprfx"
6686 else
6687 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6688 fi
6689
6690 # Check to see that the pipe works correctly.
6691 pipe_works=no
6692
6693 rm -f conftest*
6694 cat > conftest.$ac_ext <<_LT_EOF
6695#ifdef __cplusplus
6696extern "C" {
6697#endif
6698char nm_test_var;
6699void nm_test_func(void);
6700void nm_test_func(void){}
6701#ifdef __cplusplus
6702}
6703#endif
6704int main(){nm_test_var='a';nm_test_func();return(0);}
6705_LT_EOF
6706
6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711 test $ac_status = 0; }; then
6712 # Now try to grab the symbols.
6713 nlist=conftest.nm
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6715 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 test $ac_status = 0; } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" | uniq > "$nlist"T; then
6721 mv -f "$nlist"T "$nlist"
6722 else
6723 rm -f "$nlist"T
6724 fi
6725
6726 # Make sure that we snagged all the symbols we need.
6727 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6728 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6729 cat <<_LT_EOF > conftest.$ac_ext
6730#ifdef __cplusplus
6731extern "C" {
6732#endif
6733
6734_LT_EOF
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6737
6738 cat <<_LT_EOF >> conftest.$ac_ext
6739
6740/* The mapping between symbol names and symbols. */
6741const struct {
6742 const char *name;
6743 void *address;
6744}
6745lt__PROGRAM__LTX_preloaded_symbols[] =
6746{
6747 { "@PROGRAM@", (void *) 0 },
6748_LT_EOF
6749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6750 cat <<\_LT_EOF >> conftest.$ac_ext
6751 {0, (void *) 0}
6752};
6753
6754/* This works around a problem in FreeBSD linker */
6755#ifdef FREEBSD_WORKAROUND
6756static const void *lt_preloaded_setup() {
6757 return lt__PROGRAM__LTX_preloaded_symbols;
6758}
6759#endif
6760
6761#ifdef __cplusplus
6762}
6763#endif
6764_LT_EOF
6765 # Now try linking the two files.
6766 mv conftest.$ac_objext conftstm.$ac_objext
6767 lt_save_LIBS="$LIBS"
6768 lt_save_CFLAGS="$CFLAGS"
6769 LIBS="conftstm.$ac_objext"
6770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6776 pipe_works=yes
6777 fi
6778 LIBS="$lt_save_LIBS"
6779 CFLAGS="$lt_save_CFLAGS"
6780 else
6781 echo "cannot find nm_test_func in $nlist" >&5
6782 fi
6783 else
6784 echo "cannot find nm_test_var in $nlist" >&5
6785 fi
6786 else
6787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6788 fi
6789 else
6790 echo "$progname: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6792 fi
6793 rm -rf conftest* conftst*
6794
6795 # Do not use the global_symbol_pipe unless it works.
6796 if test "$pipe_works" = yes; then
6797 break
6798 else
6799 lt_cv_sys_global_symbol_pipe=
6800 fi
6801done
6802
6803fi
6804
6805if test -z "$lt_cv_sys_global_symbol_pipe"; then
6806 lt_cv_sys_global_symbol_to_cdecl=
6807fi
6808if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6810$as_echo "failed" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6813$as_echo "ok" >&6; }
6814fi
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
ecd3459e 6835
6836
6837# Check whether --enable-libtool-lock was given.
6838if test "${enable_libtool_lock+set}" = set; then :
6839 enableval=$enable_libtool_lock;
6840fi
6841
6842test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6843
6844# Some flags need to be propagated to the compiler or linker for good
6845# libtool support.
6846case $host in
6847ia64-*-hpux*)
6848 # Find out which ABI we are using.
6849 echo 'int i;' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6856 *ELF-32*)
6857 HPUX_IA64_MODE="32"
6858 ;;
6859 *ELF-64*)
6860 HPUX_IA64_MODE="64"
6861 ;;
6862 esac
6863 fi
6864 rm -rf conftest*
6865 ;;
6866*-*-irix6*)
6867 # Find out which ABI we are using.
6868 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }; then
6874 if test "$lt_cv_prog_gnu_ld" = yes; then
6875 case `/usr/bin/file conftest.$ac_objext` in
6876 *32-bit*)
6877 LD="${LD-ld} -melf32bsmip"
6878 ;;
6879 *N32*)
6880 LD="${LD-ld} -melf32bmipn32"
6881 ;;
6882 *64-bit*)
6883 LD="${LD-ld} -melf64bmip"
6884 ;;
6885 esac
6886 else
6887 case `/usr/bin/file conftest.$ac_objext` in
6888 *32-bit*)
6889 LD="${LD-ld} -32"
6890 ;;
6891 *N32*)
6892 LD="${LD-ld} -n32"
6893 ;;
6894 *64-bit*)
6895 LD="${LD-ld} -64"
6896 ;;
6897 esac
6898 fi
6899 fi
6900 rm -rf conftest*
6901 ;;
6902
9613c003 6903x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
ecd3459e 6904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6905 # Find out which ABI we are using.
6906 echo 'int i;' > conftest.$ac_ext
6907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6908 (eval $ac_compile) 2>&5
6909 ac_status=$?
6910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6911 test $ac_status = 0; }; then
6912 case `/usr/bin/file conftest.o` in
6913 *32-bit*)
6914 case $host in
6915 x86_64-*kfreebsd*-gnu)
6916 LD="${LD-ld} -m elf_i386_fbsd"
6917 ;;
6918 x86_64-*linux*)
6919 case `/usr/bin/file conftest.o` in
6920 *x86-64*)
6921 LD="${LD-ld} -m elf32_x86_64"
6922 ;;
6923 *)
6924 LD="${LD-ld} -m elf_i386"
6925 ;;
6926 esac
6927 ;;
9613c003 6928 powerpc64le-*linux*)
6929 LD="${LD-ld} -m elf32lppclinux"
6930 ;;
6931 powerpc64-*linux*)
ecd3459e 6932 LD="${LD-ld} -m elf32ppclinux"
6933 ;;
6934 s390x-*linux*)
6935 LD="${LD-ld} -m elf_s390"
6936 ;;
6937 sparc64-*linux*)
6938 LD="${LD-ld} -m elf32_sparc"
6939 ;;
6940 esac
6941 ;;
6942 *64-bit*)
6943 case $host in
6944 x86_64-*kfreebsd*-gnu)
6945 LD="${LD-ld} -m elf_x86_64_fbsd"
6946 ;;
6947 x86_64-*linux*)
6948 LD="${LD-ld} -m elf_x86_64"
6949 ;;
9613c003 6950 powerpcle-*linux*)
6951 LD="${LD-ld} -m elf64lppc"
6952 ;;
6953 powerpc-*linux*)
ecd3459e 6954 LD="${LD-ld} -m elf64ppc"
6955 ;;
6956 s390*-*linux*|s390*-*tpf*)
6957 LD="${LD-ld} -m elf64_s390"
6958 ;;
6959 sparc*-*linux*)
6960 LD="${LD-ld} -m elf64_sparc"
6961 ;;
6962 esac
6963 ;;
6964 esac
6965 fi
6966 rm -rf conftest*
6967 ;;
6968
6969*-*-sco3.2v5*)
6970 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6971 SAVE_CFLAGS="$CFLAGS"
6972 CFLAGS="$CFLAGS -belf"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6974$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6975if test "${lt_cv_cc_needs_belf+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977else
6978 ac_ext=c
6979ac_cpp='$CPP $CPPFLAGS'
6980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h. */
6986
6987int
6988main ()
6989{
6990
6991 ;
6992 return 0;
6993}
6994_ACEOF
6995if ac_fn_c_try_link "$LINENO"; then :
6996 lt_cv_cc_needs_belf=yes
6997else
6998 lt_cv_cc_needs_belf=no
6999fi
7000rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 ac_ext=c
7003ac_cpp='$CPP $CPPFLAGS'
7004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007
7008fi
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7010$as_echo "$lt_cv_cc_needs_belf" >&6; }
7011 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7012 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7013 CFLAGS="$SAVE_CFLAGS"
7014 fi
7015 ;;
7016sparc*-*solaris*)
7017 # Find out which ABI we are using.
7018 echo 'int i;' > conftest.$ac_ext
7019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7020 (eval $ac_compile) 2>&5
7021 ac_status=$?
7022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023 test $ac_status = 0; }; then
7024 case `/usr/bin/file conftest.o` in
7025 *64-bit*)
7026 case $lt_cv_prog_gnu_ld in
7027 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7028 *)
7029 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7030 LD="${LD-ld} -64"
7031 fi
7032 ;;
7033 esac
7034 ;;
7035 esac
7036 fi
7037 rm -rf conftest*
7038 ;;
7039esac
7040
7041need_locks="$enable_libtool_lock"
7042
7043
7044 case $host_os in
7045 rhapsody* | darwin*)
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7048set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050$as_echo_n "checking for $ac_word... " >&6; }
7051if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053else
7054 if test -n "$DSYMUTIL"; then
7055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069 done
7070IFS=$as_save_IFS
7071
7072fi
7073fi
7074DSYMUTIL=$ac_cv_prog_DSYMUTIL
7075if test -n "$DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7077$as_echo "$DSYMUTIL" >&6; }
7078else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080$as_echo "no" >&6; }
7081fi
7082
7083
7084fi
7085if test -z "$ac_cv_prog_DSYMUTIL"; then
7086 ac_ct_DSYMUTIL=$DSYMUTIL
7087 # Extract the first word of "dsymutil", so it can be a program name with args.
7088set dummy dsymutil; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093else
30bd8e8b 7094 if test -n "$ac_ct_DSYMUTIL"; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
ecd3459e 7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 7104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
ecd3459e 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109 done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
30bd8e8b 7114ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7115if test -n "$ac_ct_DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7117$as_echo "$ac_ct_DSYMUTIL" >&6; }
ecd3459e 7118else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
30bd8e8b 7123 if test "x$ac_ct_DSYMUTIL" = x; then
7124 DSYMUTIL=":"
ecd3459e 7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127yes:)
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130ac_tool_warned=yes ;;
7131esac
30bd8e8b 7132 DSYMUTIL=$ac_ct_DSYMUTIL
ecd3459e 7133 fi
7134else
30bd8e8b 7135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
ecd3459e 7136fi
7137
7138 if test -n "$ac_tool_prefix"; then
30bd8e8b 7139 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}nmedit; ac_word=$2
ecd3459e 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 7143if test "${ac_cv_prog_NMEDIT+set}" = set; then :
ecd3459e 7144 $as_echo_n "(cached) " >&6
7145else
30bd8e8b 7146 if test -n "$NMEDIT"; then
7147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
ecd3459e 7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 7156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
ecd3459e 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161 done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
30bd8e8b 7166NMEDIT=$ac_cv_prog_NMEDIT
7167if test -n "$NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7169$as_echo "$NMEDIT" >&6; }
ecd3459e 7170else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175
7176fi
30bd8e8b 7177if test -z "$ac_cv_prog_NMEDIT"; then
7178 ac_ct_NMEDIT=$NMEDIT
7179 # Extract the first word of "nmedit", so it can be a program name with args.
7180set dummy nmedit; ac_word=$2
ecd3459e 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 7183if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
ecd3459e 7184 $as_echo_n "(cached) " >&6
7185else
30bd8e8b 7186 if test -n "$ac_ct_NMEDIT"; then
7187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
ecd3459e 7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 7196 ac_cv_prog_ac_ct_NMEDIT="nmedit"
ecd3459e 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201 done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
30bd8e8b 7206ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7207if test -n "$ac_ct_NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7209$as_echo "$ac_ct_NMEDIT" >&6; }
ecd3459e 7210else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
30bd8e8b 7215 if test "x$ac_ct_NMEDIT" = x; then
7216 NMEDIT=":"
ecd3459e 7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219yes:)
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222ac_tool_warned=yes ;;
7223esac
30bd8e8b 7224 NMEDIT=$ac_ct_NMEDIT
ecd3459e 7225 fi
7226else
30bd8e8b 7227 NMEDIT="$ac_cv_prog_NMEDIT"
ecd3459e 7228fi
7229
7230 if test -n "$ac_tool_prefix"; then
30bd8e8b 7231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}lipo; ac_word=$2
ecd3459e 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 7235if test "${ac_cv_prog_LIPO+set}" = set; then :
ecd3459e 7236 $as_echo_n "(cached) " >&6
7237else
30bd8e8b 7238 if test -n "$LIPO"; then
7239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
ecd3459e 7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 7248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
ecd3459e 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253 done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
30bd8e8b 7258LIPO=$ac_cv_prog_LIPO
7259if test -n "$LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7261$as_echo "$LIPO" >&6; }
ecd3459e 7262else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267
7268fi
30bd8e8b 7269if test -z "$ac_cv_prog_LIPO"; then
7270 ac_ct_LIPO=$LIPO
7271 # Extract the first word of "lipo", so it can be a program name with args.
7272set dummy lipo; ac_word=$2
ecd3459e 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
30bd8e8b 7275if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
ecd3459e 7276 $as_echo_n "(cached) " >&6
7277else
30bd8e8b 7278 if test -n "$ac_ct_LIPO"; then
7279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
ecd3459e 7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30bd8e8b 7288 ac_cv_prog_ac_ct_LIPO="lipo"
ecd3459e 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293 done
7294IFS=$as_save_IFS
7295
7296fi
7297fi
30bd8e8b 7298ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7299if test -n "$ac_ct_LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7301$as_echo "$ac_ct_LIPO" >&6; }
ecd3459e 7302else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
30bd8e8b 7307 if test "x$ac_ct_LIPO" = x; then
7308 LIPO=":"
ecd3459e 7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
30bd8e8b 7316 LIPO=$ac_ct_LIPO
ecd3459e 7317 fi
7318else
30bd8e8b 7319 LIPO="$ac_cv_prog_LIPO"
ecd3459e 7320fi
7321
30bd8e8b 7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7324set dummy ${ac_tool_prefix}otool; ac_word=$2
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if test "${ac_cv_prog_OTOOL+set}" = set; then :
ecd3459e 7328 $as_echo_n "(cached) " >&6
7329else
30bd8e8b 7330 if test -n "$OTOOL"; then
7331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
ecd3459e 7332else
30bd8e8b 7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345 done
7346IFS=$as_save_IFS
ecd3459e 7347
ecd3459e 7348fi
ecd3459e 7349fi
30bd8e8b 7350OTOOL=$ac_cv_prog_OTOOL
7351if test -n "$OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7353$as_echo "$OTOOL" >&6; }
7354else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356$as_echo "no" >&6; }
ecd3459e 7357fi
ecd3459e 7358
30bd8e8b 7359
ecd3459e 7360fi
30bd8e8b 7361if test -z "$ac_cv_prog_OTOOL"; then
7362 ac_ct_OTOOL=$OTOOL
7363 # Extract the first word of "otool", so it can be a program name with args.
7364set dummy otool; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
ecd3459e 7368 $as_echo_n "(cached) " >&6
7369else
30bd8e8b 7370 if test -n "$ac_ct_OTOOL"; then
7371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
ecd3459e 7375do
30bd8e8b 7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_prog_ac_ct_OTOOL="otool"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384done
7385 done
7386IFS=$as_save_IFS
ecd3459e 7387
30bd8e8b 7388fi
7389fi
7390ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7391if test -n "$ac_ct_OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7393$as_echo "$ac_ct_OTOOL" >&6; }
ecd3459e 7394else
30bd8e8b 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
ecd3459e 7397fi
ecd3459e 7398
30bd8e8b 7399 if test "x$ac_ct_OTOOL" = x; then
7400 OTOOL=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408 OTOOL=$ac_ct_OTOOL
7409 fi
ecd3459e 7410else
30bd8e8b 7411 OTOOL="$ac_cv_prog_OTOOL"
ecd3459e 7412fi
ecd3459e 7413
30bd8e8b 7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}otool64; ac_word=$2
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418$as_echo_n "checking for $ac_word... " >&6; }
7419if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421else
7422 if test -n "$OTOOL64"; then
7423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
ecd3459e 7436done
30bd8e8b 7437 done
7438IFS=$as_save_IFS
7439
7440fi
7441fi
7442OTOOL64=$ac_cv_prog_OTOOL64
7443if test -n "$OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7445$as_echo "$OTOOL64" >&6; }
7446else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
ecd3459e 7449fi
7450
ecd3459e 7451
7452fi
30bd8e8b 7453if test -z "$ac_cv_prog_OTOOL64"; then
7454 ac_ct_OTOOL64=$OTOOL64
7455 # Extract the first word of "otool64", so it can be a program name with args.
7456set dummy otool64; ac_word=$2
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
ecd3459e 7461else
30bd8e8b 7462 if test -n "$ac_ct_OTOOL64"; then
7463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
ecd3459e 7467do
30bd8e8b 7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_ac_ct_OTOOL64="otool64"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477 done
7478IFS=$as_save_IFS
ecd3459e 7479
30bd8e8b 7480fi
7481fi
7482ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7483if test -n "$ac_ct_OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7485$as_echo "$ac_ct_OTOOL64" >&6; }
ecd3459e 7486else
30bd8e8b 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
ecd3459e 7489fi
ecd3459e 7490
30bd8e8b 7491 if test "x$ac_ct_OTOOL64" = x; then
7492 OTOOL64=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500 OTOOL64=$ac_ct_OTOOL64
7501 fi
ecd3459e 7502else
30bd8e8b 7503 OTOOL64="$ac_cv_prog_OTOOL64"
ecd3459e 7504fi
ecd3459e 7505
ecd3459e 7506
ecd3459e 7507
ecd3459e 7508
7509
ecd3459e 7510
ecd3459e 7511
ecd3459e 7512
ecd3459e 7513
ecd3459e 7514
ecd3459e 7515
ecd3459e 7516
ecd3459e 7517
ecd3459e 7518
ecd3459e 7519
ecd3459e 7520
30bd8e8b 7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7533$as_echo_n "checking for -single_module linker flag... " >&6; }
7534if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
ecd3459e 7536else
30bd8e8b 7537 lt_cv_apple_cc_single_mod=no
7538 if test -z "${LT_MULTI_MODULE}"; then
7539 # By default we will add the -single_module flag. You can override
7540 # by either setting the environment variable LT_MULTI_MODULE
7541 # non-empty at configure time, or by adding -multi_module to the
7542 # link flags.
7543 rm -rf libconftest.dylib*
7544 echo "int foo(void){return 1;}" > conftest.c
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546-dynamiclib -Wl,-single_module conftest.c" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7549 _lt_result=$?
7550 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7551 lt_cv_apple_cc_single_mod=yes
7552 else
7553 cat conftest.err >&5
7554 fi
7555 rm -rf libconftest.dylib*
7556 rm -f conftest.*
7557 fi
7558fi
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7560$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7562$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7563if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565else
7566 lt_cv_ld_exported_symbols_list=no
7567 save_LDFLAGS=$LDFLAGS
7568 echo "_main" > conftest.sym
7569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ecd3459e 7571/* end confdefs.h. */
ecd3459e 7572
ecd3459e 7573int
7574main ()
7575{
30bd8e8b 7576
7577 ;
ecd3459e 7578 return 0;
7579}
7580_ACEOF
30bd8e8b 7581if ac_fn_c_try_link "$LINENO"; then :
7582 lt_cv_ld_exported_symbols_list=yes
ecd3459e 7583else
30bd8e8b 7584 lt_cv_ld_exported_symbols_list=no
ecd3459e 7585fi
30bd8e8b 7586rm -f core conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LDFLAGS="$save_LDFLAGS"
ecd3459e 7589
7590fi
30bd8e8b 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7592$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7594$as_echo_n "checking for -force_load linker flag... " >&6; }
7595if test "${lt_cv_ld_force_load+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598 lt_cv_ld_force_load=no
7599 cat > conftest.c << _LT_EOF
7600int forced_loaded() { return 2;}
7601_LT_EOF
7602 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7603 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7604 echo "$AR cru libconftest.a conftest.o" >&5
7605 $AR cru libconftest.a conftest.o 2>&5
7606 cat > conftest.c << _LT_EOF
7607int main() { return 0;}
7608_LT_EOF
7609 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7610 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7611 _lt_result=$?
7612 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7613 lt_cv_ld_force_load=yes
7614 else
7615 cat conftest.err >&5
7616 fi
7617 rm -f conftest.err libconftest.a conftest conftest.c
7618 rm -rf conftest.dSYM
ecd3459e 7619
7620fi
30bd8e8b 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7622$as_echo "$lt_cv_ld_force_load" >&6; }
7623 case $host_os in
7624 rhapsody* | darwin1.[012])
7625 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7626 darwin1.*)
7627 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7628 darwin*) # darwin 5.x on
7629 # if running on 10.5 or later, the deployment target defaults
7630 # to the OS version, if on x86, and 10.4, the deployment
7631 # target defaults to 10.4. Don't you love it?
7632 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7633 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7634 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 7635 10.[012][,.]*)
30bd8e8b 7636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7637 10.*)
7638 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7639 esac
7640 ;;
7641 esac
7642 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7643 _lt_dar_single_mod='$single_module'
7644 fi
7645 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7646 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7647 else
7648 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7649 fi
7650 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7651 _lt_dsymutil='~$DSYMUTIL $lib || :'
7652 else
7653 _lt_dsymutil=
7654 fi
7655 ;;
7656 esac
ecd3459e 7657
7658for ac_header in dlfcn.h
7659do :
7660 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7661"
7662if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7663 cat >>confdefs.h <<_ACEOF
7664#define HAVE_DLFCN_H 1
7665_ACEOF
7666
7667fi
7668
7669done
7670
7671
7672
7673
7674
7675# Set options
d0724418 7676
7677
7678
7679 enable_dlopen=no
7680
7681
7682 enable_win32_dll=no
7683
7684
7685 # Check whether --enable-shared was given.
ecd3459e 7686if test "${enable_shared+set}" = set; then :
7687 enableval=$enable_shared; p=${PACKAGE-default}
7688 case $enableval in
7689 yes) enable_shared=yes ;;
7690 no) enable_shared=no ;;
7691 *)
7692 enable_shared=no
7693 # Look at the argument we got. We use all the common list separators.
7694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7695 for pkg in $enableval; do
7696 IFS="$lt_save_ifs"
7697 if test "X$pkg" = "X$p"; then
7698 enable_shared=yes
7699 fi
7700 done
7701 IFS="$lt_save_ifs"
7702 ;;
7703 esac
7704else
d0724418 7705 enable_shared=yes
ecd3459e 7706fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
ecd3459e 7716 # Check whether --enable-static was given.
7717if test "${enable_static+set}" = set; then :
7718 enableval=$enable_static; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_static=yes ;;
7721 no) enable_static=no ;;
7722 *)
7723 enable_static=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_static=yes
7730 fi
7731 done
7732 IFS="$lt_save_ifs"
7733 ;;
7734 esac
7735else
7736 enable_static=yes
7737fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748# Check whether --with-pic was given.
7749if test "${with_pic+set}" = set; then :
7750 withval=$with_pic; pic_mode="$withval"
7751else
7752 pic_mode=default
7753fi
7754
7755
7756test -z "$pic_mode" && pic_mode=default
7757
7758
7759
7760
7761
7762
7763
7764 # Check whether --enable-fast-install was given.
7765if test "${enable_fast_install+set}" = set; then :
7766 enableval=$enable_fast_install; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_fast_install=yes ;;
7769 no) enable_fast_install=no ;;
7770 *)
7771 enable_fast_install=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774 for pkg in $enableval; do
7775 IFS="$lt_save_ifs"
7776 if test "X$pkg" = "X$p"; then
7777 enable_fast_install=yes
7778 fi
7779 done
7780 IFS="$lt_save_ifs"
7781 ;;
7782 esac
7783else
7784 enable_fast_install=yes
7785fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797# This can be used to rebuild libtool when needed
7798LIBTOOL_DEPS="$ltmain"
7799
7800# Always use our own libtool.
7801LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828test -z "$LN_S" && LN_S="ln -s"
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843if test -n "${ZSH_VERSION+set}" ; then
7844 setopt NO_GLOB_SUBST
7845fi
7846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7848$as_echo_n "checking for objdir... " >&6; }
7849if test "${lt_cv_objdir+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851else
7852 rm -f .libs 2>/dev/null
7853mkdir .libs 2>/dev/null
7854if test -d .libs; then
7855 lt_cv_objdir=.libs
7856else
7857 # MS-DOS does not allow filenames that begin with a dot.
7858 lt_cv_objdir=_libs
7859fi
7860rmdir .libs 2>/dev/null
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7863$as_echo "$lt_cv_objdir" >&6; }
7864objdir=$lt_cv_objdir
7865
7866
7867
7868
7869
7870cat >>confdefs.h <<_ACEOF
7871#define LT_OBJDIR "$lt_cv_objdir/"
7872_ACEOF
7873
7874
7875
7876
7877case $host_os in
7878aix3*)
7879 # AIX sometimes has problems with the GCC collect2 program. For some
7880 # reason, if we set the COLLECT_NAMES environment variable, the problems
7881 # vanish in a puff of smoke.
7882 if test "X${COLLECT_NAMES+set}" != Xset; then
7883 COLLECT_NAMES=
7884 export COLLECT_NAMES
7885 fi
7886 ;;
7887esac
7888
7889# Global variables:
7890ofile=libtool
7891can_build_shared=yes
7892
7893# All known linkers require a `.a' archive for static linking (except MSVC,
7894# which needs '.lib').
7895libext=a
7896
7897with_gnu_ld="$lt_cv_prog_gnu_ld"
7898
7899old_CC="$CC"
7900old_CFLAGS="$CFLAGS"
7901
7902# Set sane defaults for various variables
7903test -z "$CC" && CC=cc
7904test -z "$LTCC" && LTCC=$CC
7905test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7906test -z "$LD" && LD=ld
7907test -z "$ac_objext" && ac_objext=o
7908
7909for cc_temp in $compiler""; do
7910 case $cc_temp in
7911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7913 \-*) ;;
7914 *) break;;
7915 esac
7916done
7917cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7918
7919
7920# Only perform the check for file, if the check method requires it
7921test -z "$MAGIC_CMD" && MAGIC_CMD=file
7922case $deplibs_check_method in
7923file_magic*)
7924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7926$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7927if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929else
7930 case $MAGIC_CMD in
7931[\\/*] | ?:[\\/]*)
7932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7933 ;;
7934*)
7935 lt_save_MAGIC_CMD="$MAGIC_CMD"
7936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7938 for ac_dir in $ac_dummy; do
7939 IFS="$lt_save_ifs"
7940 test -z "$ac_dir" && ac_dir=.
7941 if test -f $ac_dir/${ac_tool_prefix}file; then
7942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7943 if test -n "$file_magic_test_file"; then
7944 case $deplibs_check_method in
7945 "file_magic "*)
7946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7949 $EGREP "$file_magic_regex" > /dev/null; then
7950 :
7951 else
7952 cat <<_LT_EOF 1>&2
7953
7954*** Warning: the command libtool uses to detect shared libraries,
7955*** $file_magic_cmd, produces output that libtool cannot recognize.
7956*** The result is that libtool may fail to recognize shared libraries
7957*** as such. This will affect the creation of libtool libraries that
7958*** depend on shared libraries, but programs linked with such libtool
7959*** libraries will work regardless of this problem. Nevertheless, you
7960*** may want to report the problem to your system manager and/or to
7961*** bug-libtool@gnu.org
7962
7963_LT_EOF
7964 fi ;;
7965 esac
7966 fi
7967 break
7968 fi
7969 done
7970 IFS="$lt_save_ifs"
7971 MAGIC_CMD="$lt_save_MAGIC_CMD"
7972 ;;
7973esac
7974fi
7975
7976MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977if test -n "$MAGIC_CMD"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7979$as_echo "$MAGIC_CMD" >&6; }
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986
7987
7988
7989if test -z "$lt_cv_path_MAGIC_CMD"; then
7990 if test -n "$ac_tool_prefix"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7992$as_echo_n "checking for file... " >&6; }
7993if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995else
7996 case $MAGIC_CMD in
7997[\\/*] | ?:[\\/]*)
7998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7999 ;;
8000*)
8001 lt_save_MAGIC_CMD="$MAGIC_CMD"
8002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8004 for ac_dir in $ac_dummy; do
8005 IFS="$lt_save_ifs"
8006 test -z "$ac_dir" && ac_dir=.
8007 if test -f $ac_dir/file; then
8008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8009 if test -n "$file_magic_test_file"; then
8010 case $deplibs_check_method in
8011 "file_magic "*)
8012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8015 $EGREP "$file_magic_regex" > /dev/null; then
8016 :
8017 else
8018 cat <<_LT_EOF 1>&2
8019
8020*** Warning: the command libtool uses to detect shared libraries,
8021*** $file_magic_cmd, produces output that libtool cannot recognize.
8022*** The result is that libtool may fail to recognize shared libraries
8023*** as such. This will affect the creation of libtool libraries that
8024*** depend on shared libraries, but programs linked with such libtool
8025*** libraries will work regardless of this problem. Nevertheless, you
8026*** may want to report the problem to your system manager and/or to
8027*** bug-libtool@gnu.org
8028
8029_LT_EOF
8030 fi ;;
8031 esac
8032 fi
8033 break
8034 fi
8035 done
8036 IFS="$lt_save_ifs"
8037 MAGIC_CMD="$lt_save_MAGIC_CMD"
8038 ;;
8039esac
8040fi
8041
8042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8043if test -n "$MAGIC_CMD"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8045$as_echo "$MAGIC_CMD" >&6; }
8046else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051
8052 else
8053 MAGIC_CMD=:
8054 fi
8055fi
8056
8057 fi
8058 ;;
8059esac
8060
8061# Use C for the default configuration in the libtool script
8062
8063lt_save_CC="$CC"
8064ac_ext=c
8065ac_cpp='$CPP $CPPFLAGS'
8066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069
8070
8071# Source file extension for C test sources.
8072ac_ext=c
8073
8074# Object file extension for compiled C test sources.
8075objext=o
8076objext=$objext
8077
8078# Code to be used in simple compile tests
8079lt_simple_compile_test_code="int some_variable = 0;"
8080
8081# Code to be used in simple link tests
8082lt_simple_link_test_code='int main(){return(0);}'
8083
8084
8085
8086
8087
8088
8089
8090# If no C compiler was specified, use CC.
8091LTCC=${LTCC-"$CC"}
8092
8093# If no C compiler flags were specified, use CFLAGS.
8094LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8095
8096# Allow CC to be a program name with arguments.
8097compiler=$CC
8098
8099# Save the default compiler, since it gets overwritten when the other
8100# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8101compiler_DEFAULT=$CC
8102
8103# save warnings/boilerplate of simple test code
8104ac_outfile=conftest.$ac_objext
8105echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8107_lt_compiler_boilerplate=`cat conftest.err`
8108$RM conftest*
8109
8110ac_outfile=conftest.$ac_objext
8111echo "$lt_simple_link_test_code" >conftest.$ac_ext
8112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8113_lt_linker_boilerplate=`cat conftest.err`
8114$RM -r conftest*
8115
8116
8117## CAVEAT EMPTOR:
8118## There is no encapsulation within the following macros, do not change
8119## the running order or otherwise move them around unless you know exactly
8120## what you are doing...
8121if test -n "$compiler"; then
8122
8123lt_prog_compiler_no_builtin_flag=
8124
8125if test "$GCC" = yes; then
8126 case $cc_basename in
8127 nvcc*)
8128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8129 *)
8130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8131 esac
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8134$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8135if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137else
8138 lt_cv_prog_compiler_rtti_exceptions=no
8139 ac_outfile=conftest.$ac_objext
8140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141 lt_compiler_flag="-fno-rtti -fno-exceptions"
8142 # Insert the option either (1) after the last *FLAGS variable, or
8143 # (2) before a word containing "conftest.", or (3) at the end.
8144 # Note that $ac_compile itself does not contain backslashes and begins
8145 # with a dollar sign (not a hyphen), so the echo should work correctly.
8146 # The option is referenced via a variable to avoid confusing sed.
8147 lt_compile=`echo "$ac_compile" | $SED \
8148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8150 -e 's:$: $lt_compiler_flag:'`
8151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8152 (eval "$lt_compile" 2>conftest.err)
8153 ac_status=$?
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 if (exit $ac_status) && test -s "$ac_outfile"; then
8157 # The compiler can only warn and ignore the option if not recognized
8158 # So say no if there are warnings other than the usual output.
8159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8162 lt_cv_prog_compiler_rtti_exceptions=yes
8163 fi
8164 fi
8165 $RM conftest*
8166
8167fi
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8169$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8170
8171if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8173else
8174 :
8175fi
8176
8177fi
8178
8179
8180
8181
8182
8183
8184 lt_prog_compiler_wl=
8185lt_prog_compiler_pic=
8186lt_prog_compiler_static=
8187
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8189$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8190
8191 if test "$GCC" = yes; then
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_static='-static'
8194
8195 case $host_os in
8196 aix*)
8197 # All AIX code is PIC.
8198 if test "$host_cpu" = ia64; then
8199 # AIX 5 now supports IA64 processor
8200 lt_prog_compiler_static='-Bstatic'
8201 fi
5f7c240f 8202 lt_prog_compiler_pic='-fPIC'
ecd3459e 8203 ;;
8204
8205 amigaos*)
8206 case $host_cpu in
8207 powerpc)
8208 # see comment about AmigaOS4 .so support
8209 lt_prog_compiler_pic='-fPIC'
8210 ;;
8211 m68k)
8212 # FIXME: we need at least 68020 code to build shared libraries, but
8213 # adding the `-m68020' flag to GCC prevents building anything better,
8214 # like `-m68040'.
8215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8216 ;;
8217 esac
8218 ;;
8219
8220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8221 # PIC is the default for these OSes.
8222 ;;
8223
8224 mingw* | cygwin* | pw32* | os2* | cegcc*)
8225 # This hack is so that the source file can tell whether it is being
8226 # built for inclusion in a dll (and should export symbols for example).
8227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8228 # (--disable-auto-import) libraries
8229 lt_prog_compiler_pic='-DDLL_EXPORT'
8230 ;;
8231
8232 darwin* | rhapsody*)
8233 # PIC is the default on this platform
8234 # Common symbols not allowed in MH_DYLIB files
8235 lt_prog_compiler_pic='-fno-common'
8236 ;;
8237
8238 haiku*)
8239 # PIC is the default for Haiku.
8240 # The "-static" flag exists, but is broken.
8241 lt_prog_compiler_static=
8242 ;;
8243
8244 hpux*)
8245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8247 # sets the default TLS model and affects inlining.
8248 case $host_cpu in
8249 hppa*64*)
8250 # +Z the default
8251 ;;
8252 *)
8253 lt_prog_compiler_pic='-fPIC'
8254 ;;
8255 esac
8256 ;;
8257
8258 interix[3-9]*)
8259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8260 # Instead, we relocate shared libraries at runtime.
8261 ;;
8262
8263 msdosdjgpp*)
8264 # Just because we use GCC doesn't mean we suddenly get shared libraries
8265 # on systems that don't support them.
8266 lt_prog_compiler_can_build_shared=no
8267 enable_shared=no
8268 ;;
8269
8270 *nto* | *qnx*)
8271 # QNX uses GNU C++, but need to define -shared option too, otherwise
8272 # it will coredump.
8273 lt_prog_compiler_pic='-fPIC -shared'
8274 ;;
8275
8276 sysv4*MP*)
8277 if test -d /usr/nec; then
8278 lt_prog_compiler_pic=-Kconform_pic
8279 fi
8280 ;;
8281
8282 *)
8283 lt_prog_compiler_pic='-fPIC'
8284 ;;
8285 esac
8286
8287 case $cc_basename in
8288 nvcc*) # Cuda Compiler Driver 2.2
8289 lt_prog_compiler_wl='-Xlinker '
8290 lt_prog_compiler_pic='-Xcompiler -fPIC'
8291 ;;
8292 esac
8293 else
8294 # PORTME Check for flag to pass linker flags through the system compiler.
8295 case $host_os in
8296 aix*)
8297 lt_prog_compiler_wl='-Wl,'
8298 if test "$host_cpu" = ia64; then
8299 # AIX 5 now supports IA64 processor
8300 lt_prog_compiler_static='-Bstatic'
8301 else
8302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8303 fi
8304 ;;
8305
8306 mingw* | cygwin* | pw32* | os2* | cegcc*)
8307 # This hack is so that the source file can tell whether it is being
8308 # built for inclusion in a dll (and should export symbols for example).
8309 lt_prog_compiler_pic='-DDLL_EXPORT'
8310 ;;
8311
8312 hpux9* | hpux10* | hpux11*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8315 # not for PA HP-UX.
8316 case $host_cpu in
8317 hppa*64*|ia64*)
8318 # +Z the default
8319 ;;
8320 *)
8321 lt_prog_compiler_pic='+Z'
8322 ;;
8323 esac
8324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8325 lt_prog_compiler_static='${wl}-a ${wl}archive'
8326 ;;
8327
8328 irix5* | irix6* | nonstopux*)
8329 lt_prog_compiler_wl='-Wl,'
8330 # PIC (with -KPIC) is the default.
8331 lt_prog_compiler_static='-non_shared'
8332 ;;
8333
8334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8335 case $cc_basename in
8336 # old Intel for x86_64 which still supported -KPIC.
8337 ecc*)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-static'
8341 ;;
8342 # icc used to be incompatible with GCC.
8343 # ICC 10 doesn't accept -KPIC any more.
8344 icc* | ifort*)
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_pic='-fPIC'
8347 lt_prog_compiler_static='-static'
8348 ;;
8349 # Lahey Fortran 8.1.
8350 lf95*)
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='--shared'
8353 lt_prog_compiler_static='--static'
8354 ;;
8355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8356 # Portland Group compilers (*not* the Pentium gcc compiler,
8357 # which looks to be a dead project)
8358 lt_prog_compiler_wl='-Wl,'
8359 lt_prog_compiler_pic='-fpic'
8360 lt_prog_compiler_static='-Bstatic'
8361 ;;
8362 ccc*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All Alpha code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8366 ;;
8367 xl* | bgxl* | bgf* | mpixl*)
8368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-qpic'
8371 lt_prog_compiler_static='-qstaticlink'
8372 ;;
8373 *)
8374 case `$CC -V 2>&1 | sed 5q` in
8375 *Sun\ F* | *Sun*Fortran*)
8376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-Bstatic'
8379 lt_prog_compiler_wl=''
8380 ;;
8381 *Sun\ C*)
8382 # Sun C 5.9
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 lt_prog_compiler_wl='-Wl,'
8386 ;;
8387 esac
8388 ;;
8389 esac
8390 ;;
8391
8392 newsos6)
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 ;;
8396
8397 *nto* | *qnx*)
8398 # QNX uses GNU C++, but need to define -shared option too, otherwise
8399 # it will coredump.
8400 lt_prog_compiler_pic='-fPIC -shared'
8401 ;;
8402
8403 osf3* | osf4* | osf5*)
8404 lt_prog_compiler_wl='-Wl,'
8405 # All OSF/1 code is PIC.
8406 lt_prog_compiler_static='-non_shared'
8407 ;;
8408
8409 rdos*)
8410 lt_prog_compiler_static='-non_shared'
8411 ;;
8412
8413 solaris*)
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 case $cc_basename in
8417 f77* | f90* | f95*)
8418 lt_prog_compiler_wl='-Qoption ld ';;
8419 *)
8420 lt_prog_compiler_wl='-Wl,';;
8421 esac
8422 ;;
8423
8424 sunos4*)
8425 lt_prog_compiler_wl='-Qoption ld '
8426 lt_prog_compiler_pic='-PIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429
8430 sysv4 | sysv4.2uw2* | sysv4.3*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
8435
8436 sysv4*MP*)
8437 if test -d /usr/nec ;then
8438 lt_prog_compiler_pic='-Kconform_pic'
8439 lt_prog_compiler_static='-Bstatic'
8440 fi
8441 ;;
8442
8443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8447 ;;
8448
8449 unicos*)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_can_build_shared=no
8452 ;;
8453
8454 uts4*)
8455 lt_prog_compiler_pic='-pic'
8456 lt_prog_compiler_static='-Bstatic'
8457 ;;
8458
8459 *)
8460 lt_prog_compiler_can_build_shared=no
8461 ;;
8462 esac
8463 fi
8464
8465case $host_os in
8466 # For platforms which do not support PIC, -DPIC is meaningless:
8467 *djgpp*)
8468 lt_prog_compiler_pic=
8469 ;;
8470 *)
8471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8472 ;;
8473esac
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8475$as_echo "$lt_prog_compiler_pic" >&6; }
8476
8477
8478
8479
8480
8481
8482#
8483# Check to make sure the PIC flag actually works.
8484#
8485if test -n "$lt_prog_compiler_pic"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8487$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8488if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490else
8491 lt_cv_prog_compiler_pic_works=no
8492 ac_outfile=conftest.$ac_objext
8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8495 # Insert the option either (1) after the last *FLAGS variable, or
8496 # (2) before a word containing "conftest.", or (3) at the end.
8497 # Note that $ac_compile itself does not contain backslashes and begins
8498 # with a dollar sign (not a hyphen), so the echo should work correctly.
8499 # The option is referenced via a variable to avoid confusing sed.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>conftest.err)
8506 ac_status=$?
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s "$ac_outfile"; then
8510 # The compiler can only warn and ignore the option if not recognized
8511 # So say no if there are warnings other than the usual output.
8512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_pic_works=yes
8516 fi
8517 fi
8518 $RM conftest*
8519
8520fi
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8522$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8523
8524if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8525 case $lt_prog_compiler_pic in
8526 "" | " "*) ;;
8527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8528 esac
8529else
8530 lt_prog_compiler_pic=
8531 lt_prog_compiler_can_build_shared=no
8532fi
8533
8534fi
8535
8536
8537
8538
8539
8540
8541#
8542# Check to make sure the static flag actually works.
8543#
8544wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8547if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549else
8550 lt_cv_prog_compiler_static_works=no
8551 save_LDFLAGS="$LDFLAGS"
8552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8555 # The linker can only warn and ignore the option if not recognized
8556 # So say no if there are warnings
8557 if test -s conftest.err; then
8558 # Append any errors to the config.log.
8559 cat conftest.err 1>&5
8560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562 if diff conftest.exp conftest.er2 >/dev/null; then
8563 lt_cv_prog_compiler_static_works=yes
8564 fi
8565 else
8566 lt_cv_prog_compiler_static_works=yes
8567 fi
8568 fi
8569 $RM -r conftest*
8570 LDFLAGS="$save_LDFLAGS"
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8574$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8575
8576if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8577 :
8578else
8579 lt_prog_compiler_static=
8580fi
8581
8582
8583
8584
8585
8586
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592else
8593 lt_cv_prog_compiler_c_o=no
8594 $RM -r conftest 2>/dev/null
8595 mkdir conftest
8596 cd conftest
8597 mkdir out
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600 lt_compiler_flag="-o out/conftest2.$ac_objext"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 lt_compile=`echo "$ac_compile" | $SED \
8606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608 -e 's:$: $lt_compiler_flag:'`
8609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610 (eval "$lt_compile" 2>out/conftest.err)
8611 ac_status=$?
8612 cat out/conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615 then
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings
8618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_c_o=yes
8622 fi
8623 fi
8624 chmod u+w . 2>&5
8625 $RM conftest*
8626 # SGI C++ compiler will create directory out/ii_files/ for
8627 # template instantiation
8628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629 $RM out/* && rmdir out
8630 cd ..
8631 $RM -r conftest
8632 $RM conftest*
8633
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8637
8638
8639
8640
8641
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8645if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647else
8648 lt_cv_prog_compiler_c_o=no
8649 $RM -r conftest 2>/dev/null
8650 mkdir conftest
8651 cd conftest
8652 mkdir out
8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655 lt_compiler_flag="-o out/conftest2.$ac_objext"
8656 # Insert the option either (1) after the last *FLAGS variable, or
8657 # (2) before a word containing "conftest.", or (3) at the end.
8658 # Note that $ac_compile itself does not contain backslashes and begins
8659 # with a dollar sign (not a hyphen), so the echo should work correctly.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>out/conftest.err)
8666 ac_status=$?
8667 cat out/conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670 then
8671 # The compiler can only warn and ignore the option if not recognized
8672 # So say no if there are warnings
8673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676 lt_cv_prog_compiler_c_o=yes
8677 fi
8678 fi
8679 chmod u+w . 2>&5
8680 $RM conftest*
8681 # SGI C++ compiler will create directory out/ii_files/ for
8682 # template instantiation
8683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8684 $RM out/* && rmdir out
8685 cd ..
8686 $RM -r conftest
8687 $RM conftest*
8688
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8691$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8692
8693
8694
8695
8696hard_links="nottested"
8697if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8698 # do not overwrite the value of need_locks provided by the user
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8700$as_echo_n "checking if we can lock with hard links... " >&6; }
8701 hard_links=yes
8702 $RM conftest*
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 touch conftest.a
8705 ln conftest.a conftest.b 2>&5 || hard_links=no
8706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8708$as_echo "$hard_links" >&6; }
8709 if test "$hard_links" = no; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8711$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8712 need_locks=warn
8713 fi
8714else
8715 need_locks=no
8716fi
8717
8718
8719
8720
8721
8722
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8724$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725
8726 runpath_var=
8727 allow_undefined_flag=
8728 always_export_symbols=no
8729 archive_cmds=
8730 archive_expsym_cmds=
8731 compiler_needs_object=no
8732 enable_shared_with_static_runtimes=no
8733 export_dynamic_flag_spec=
8734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8735 hardcode_automatic=no
8736 hardcode_direct=no
8737 hardcode_direct_absolute=no
8738 hardcode_libdir_flag_spec=
8739 hardcode_libdir_flag_spec_ld=
8740 hardcode_libdir_separator=
8741 hardcode_minus_L=no
8742 hardcode_shlibpath_var=unsupported
8743 inherit_rpath=no
8744 link_all_deplibs=unknown
8745 module_cmds=
8746 module_expsym_cmds=
8747 old_archive_from_new_cmds=
8748 old_archive_from_expsyms_cmds=
8749 thread_safe_flag_spec=
8750 whole_archive_flag_spec=
8751 # include_expsyms should be a list of space-separated symbols to be *always*
8752 # included in the symbol list
8753 include_expsyms=
8754 # exclude_expsyms can be an extended regexp of symbols to exclude
8755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8757 # as well as any symbol that contains `d'.
8758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8760 # platforms (ab)use it in PIC code, but their linkers get confused if
8761 # the symbol is explicitly referenced. Since portable code cannot
8762 # rely on this symbol name, it's probably fine to never include it in
8763 # preloaded symbol tables.
8764 # Exclude shared library initialization/finalization symbols.
8765 extract_expsyms_cmds=
8766
8767 case $host_os in
8768 cygwin* | mingw* | pw32* | cegcc*)
8769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8770 # When not using gcc, we currently assume that we are using
8771 # Microsoft Visual C++.
8772 if test "$GCC" != yes; then
8773 with_gnu_ld=no
8774 fi
8775 ;;
8776 interix*)
8777 # we just hope/assume this is gcc and not c89 (= MSVC++)
8778 with_gnu_ld=yes
8779 ;;
8780 openbsd*)
8781 with_gnu_ld=no
8782 ;;
8783 esac
8784
8785 ld_shlibs=yes
8786
8787 # On some targets, GNU ld is compatible enough with the native linker
8788 # that we're better off using the native interface for both.
8789 lt_use_gnu_ld_interface=no
8790 if test "$with_gnu_ld" = yes; then
8791 case $host_os in
8792 aix*)
8793 # The AIX port of GNU ld has always aspired to compatibility
8794 # with the native linker. However, as the warning in the GNU ld
8795 # block says, versions before 2.19.5* couldn't really create working
8796 # shared libraries, regardless of the interface used.
8797 case `$LD -v 2>&1` in
8798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8801 *)
8802 lt_use_gnu_ld_interface=yes
8803 ;;
8804 esac
8805 ;;
8806 *)
8807 lt_use_gnu_ld_interface=yes
8808 ;;
8809 esac
8810 fi
8811
8812 if test "$lt_use_gnu_ld_interface" = yes; then
8813 # If archive_cmds runs LD, not CC, wlarc should be empty
8814 wlarc='${wl}'
8815
8816 # Set some defaults for GNU ld with shared library support. These
8817 # are reset later if shared libraries are not supported. Putting them
8818 # here allows them to be overridden if necessary.
8819 runpath_var=LD_RUN_PATH
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 export_dynamic_flag_spec='${wl}--export-dynamic'
8822 # ancient GNU ld didn't support --whole-archive et. al.
8823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8825 else
8826 whole_archive_flag_spec=
8827 fi
8828 supports_anon_versioning=no
8829 case `$LD -v 2>&1` in
8830 *GNU\ gold*) supports_anon_versioning=yes ;;
8831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8834 *\ 2.11.*) ;; # other 2.11 versions
8835 *) supports_anon_versioning=yes ;;
8836 esac
8837
8838 # See if GNU ld supports shared libraries.
8839 case $host_os in
8840 aix[3-9]*)
8841 # On AIX/PPC, the GNU linker is very broken
8842 if test "$host_cpu" != ia64; then
8843 ld_shlibs=no
8844 cat <<_LT_EOF 1>&2
8845
8846*** Warning: the GNU linker, at least up to release 2.19, is reported
8847*** to be unable to reliably create shared libraries on AIX.
8848*** Therefore, libtool is disabling shared libraries support. If you
8849*** really care for shared libraries, you may want to install binutils
8850*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8851*** You will then need to restart the configuration process.
8852
8853_LT_EOF
8854 fi
8855 ;;
8856
8857 amigaos*)
8858 case $host_cpu in
8859 powerpc)
8860 # see comment about AmigaOS4 .so support
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 archive_expsym_cmds=''
8863 ;;
8864 m68k)
8865 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)'
8866 hardcode_libdir_flag_spec='-L$libdir'
8867 hardcode_minus_L=yes
8868 ;;
8869 esac
8870 ;;
8871
8872 beos*)
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 allow_undefined_flag=unsupported
8875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8876 # support --undefined. This deserves some investigation. FIXME
8877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 else
8879 ld_shlibs=no
8880 fi
8881 ;;
8882
8883 cygwin* | mingw* | pw32* | cegcc*)
8884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8885 # as there is no search path for DLLs.
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 export_dynamic_flag_spec='${wl}--export-all-symbols'
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=no
8890 enable_shared_with_static_runtimes=yes
8891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8892
8893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895 # If the export-symbols file already is a .def file (1st line
8896 # is EXPORTS), use it as is; otherwise, prepend...
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898 cp $export_symbols $output_objdir/$soname.def;
8899 else
8900 echo EXPORTS > $output_objdir/$soname.def;
8901 cat $export_symbols >> $output_objdir/$soname.def;
8902 fi~
8903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904 else
8905 ld_shlibs=no
8906 fi
8907 ;;
8908
8909 haiku*)
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 link_all_deplibs=yes
8912 ;;
8913
8914 interix[3-9]*)
8915 hardcode_direct=no
8916 hardcode_shlibpath_var=no
8917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8918 export_dynamic_flag_spec='${wl}-E'
8919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8920 # Instead, shared libraries are loaded at an image base (0x10000000 by
8921 # default) and relocated if they conflict, which is a slow very memory
8922 # consuming and fragmenting process. To avoid this, we pick a random,
8923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8926 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'
8927 ;;
8928
8929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8930 tmp_diet=no
8931 if test "$host_os" = linux-dietlibc; then
8932 case $cc_basename in
8933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8934 esac
8935 fi
8936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8937 && test "$tmp_diet" = no
8938 then
4e8a08d4 8939 tmp_addflag=' $pic_flag'
ecd3459e 8940 tmp_sharedflag='-shared'
8941 case $cc_basename,$host_cpu in
8942 pgcc*) # Portland Group C compiler
8943 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'
8944 tmp_addflag=' $pic_flag'
8945 ;;
8946 pgf77* | pgf90* | pgf95* | pgfortran*)
8947 # Portland Group f77 and f90 compilers
8948 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'
8949 tmp_addflag=' $pic_flag -Mnomain' ;;
8950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8951 tmp_addflag=' -i_dynamic' ;;
8952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8953 tmp_addflag=' -i_dynamic -nofor_main' ;;
8954 ifc* | ifort*) # Intel Fortran compiler
8955 tmp_addflag=' -nofor_main' ;;
8956 lf95*) # Lahey Fortran 8.1
8957 whole_archive_flag_spec=
8958 tmp_sharedflag='--shared' ;;
8959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8960 tmp_sharedflag='-qmkshrobj'
8961 tmp_addflag= ;;
8962 nvcc*) # Cuda Compiler Driver 2.2
8963 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'
8964 compiler_needs_object=yes
8965 ;;
8966 esac
8967 case `$CC -V 2>&1 | sed 5q` in
8968 *Sun\ C*) # Sun C 5.9
8969 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'
8970 compiler_needs_object=yes
8971 tmp_sharedflag='-G' ;;
8972 *Sun\ F*) # Sun Fortran 8.3
8973 tmp_sharedflag='-G' ;;
8974 esac
8975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976
8977 if test "x$supports_anon_versioning" = xyes; then
8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980 echo "local: *; };" >> $output_objdir/$libname.ver~
8981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8982 fi
8983
8984 case $cc_basename in
8985 xlf* | bgf* | bgxlf* | mpixlf*)
8986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8988 hardcode_libdir_flag_spec=
8989 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8990 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8991 if test "x$supports_anon_versioning" = xyes; then
8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8994 echo "local: *; };" >> $output_objdir/$libname.ver~
8995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8996 fi
8997 ;;
8998 esac
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003
9004 netbsd*)
9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9007 wlarc=
9008 else
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011 fi
9012 ;;
9013
9014 solaris*)
9015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9016 ld_shlibs=no
9017 cat <<_LT_EOF 1>&2
9018
9019*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9020*** create shared libraries on Solaris systems. Therefore, libtool
9021*** is disabling shared libraries support. We urge you to upgrade GNU
9022*** binutils to release 2.9.1 or newer. Another option is to modify
9023*** your PATH or compiler configuration so that the native linker is
9024*** used, and then restart.
9025
9026_LT_EOF
9027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9032 fi
9033 ;;
9034
9035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9036 case `$LD -v 2>&1` in
9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9040
9041*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9042*** reliably create shared libraries on SCO systems. Therefore, libtool
9043*** is disabling shared libraries support. We urge you to upgrade GNU
9044*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9045*** your PATH or compiler configuration so that the native linker is
9046*** used, and then restart.
9047
9048_LT_EOF
9049 ;;
9050 *)
9051 # For security reasons, it is highly recommended that you always
9052 # use absolute paths for naming shared libraries, and exclude the
9053 # DT_RUNPATH tag from executables and libraries. But doing so
9054 # requires that you compile everything twice, which is a pain.
9055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063 esac
9064 ;;
9065
9066 sunos4*)
9067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 wlarc=
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 *)
9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9077 else
9078 ld_shlibs=no
9079 fi
9080 ;;
9081 esac
9082
9083 if test "$ld_shlibs" = no; then
9084 runpath_var=
9085 hardcode_libdir_flag_spec=
9086 export_dynamic_flag_spec=
9087 whole_archive_flag_spec=
9088 fi
9089 else
9090 # PORTME fill in a description of your system's linker (not GNU ld)
9091 case $host_os in
9092 aix3*)
9093 allow_undefined_flag=unsupported
9094 always_export_symbols=yes
9095 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'
9096 # Note: this linker hardcodes the directories in LIBPATH if there
9097 # are no directories specified by -L.
9098 hardcode_minus_L=yes
9099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9100 # Neither direct hardcoding nor static linking is supported with a
9101 # broken collect2.
9102 hardcode_direct=unsupported
9103 fi
9104 ;;
9105
9106 aix[4-9]*)
9107 if test "$host_cpu" = ia64; then
9108 # On IA64, the linker does run time linking by default, so we don't
9109 # have to do anything special.
9110 aix_use_runtimelinking=no
9111 exp_sym_flag='-Bexport'
9112 no_entry_flag=""
9113 else
9114 # If we're using GNU nm, then we don't want the "-C" option.
9115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9116 # Also, AIX nm treats weak defined symbols like other global
9117 # defined symbols, whereas GNU nm marks them as "W".
9118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9119 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'
9120 else
ab861c80 9121 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'
ecd3459e 9122 fi
9123 aix_use_runtimelinking=no
9124
9125 # Test if we are trying to use run time linking or normal
9126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9127 # need to do runtime linking.
9128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9129 for ld_flag in $LDFLAGS; do
9130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9131 aix_use_runtimelinking=yes
9132 break
9133 fi
9134 done
9135 ;;
9136 esac
9137
9138 exp_sym_flag='-bexport'
9139 no_entry_flag='-bnoentry'
9140 fi
9141
9142 # When large executables or shared objects are built, AIX ld can
9143 # have problems creating the table of contents. If linking a library
9144 # or program results in "error TOC overflow" add -mminimal-toc to
9145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9147
9148 archive_cmds=''
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 hardcode_libdir_separator=':'
9152 link_all_deplibs=yes
9153 file_list_spec='${wl}-f,'
9154
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" &&
9161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9162 then
9163 # We have reworked collect2
9164 :
9165 else
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9174 fi
9175 ;;
9176 esac
9177 shared_flag='-shared'
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag="$shared_flag "'${wl}-G'
9180 fi
9181 else
9182 # not using gcc
9183 if test "$host_cpu" = ia64; then
9184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9185 # chokes on -Wl,-G. The following line is correct:
9186 shared_flag='-G'
9187 else
9188 if test "$aix_use_runtimelinking" = yes; then
9189 shared_flag='${wl}-G'
9190 else
9191 shared_flag='${wl}-bM:SRE'
9192 fi
9193 fi
9194 fi
9195
9196 export_dynamic_flag_spec='${wl}-bexpall'
9197 # It seems that -bexpall does not export symbols beginning with
9198 # underscore (_), so it is better to generate a list of symbols to export.
9199 always_export_symbols=yes
9200 if test "$aix_use_runtimelinking" = yes; then
9201 # Warning - without using the other runtime loading flags (-brtl),
9202 # -berok will link without error, but may produce a broken library.
9203 allow_undefined_flag='-berok'
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_link "$LINENO"; then :
9218
9219lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\(.*\)$/\1/
9223 p
9224 }
9225 }'
9226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227# Check for a 64-bit object if we didn't find anything.
9228if test -z "$aix_libpath"; then
9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230fi
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9235
9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 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"
9238 else
9239 if test "$host_cpu" = ia64; then
9240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9241 allow_undefined_flag="-z nodefs"
9242 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"
9243 else
9244 # Determine the default libpath from the value encoded in an
9245 # empty executable.
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h. */
9248
9249int
9250main ()
9251{
9252
9253 ;
9254 return 0;
9255}
9256_ACEOF
9257if ac_fn_c_try_link "$LINENO"; then :
9258
9259lt_aix_libpath_sed='
9260 /Import File Strings/,/^$/ {
9261 /^0/ {
9262 s/^0 *\(.*\)$/\1/
9263 p
9264 }
9265 }'
9266aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9267# Check for a 64-bit object if we didn't find anything.
9268if test -z "$aix_libpath"; then
9269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9270fi
9271fi
9272rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275
9276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9277 # Warning - without using the other run time loading flags,
9278 # -berok will link without error, but may produce a broken library.
9279 no_undefined_flag=' ${wl}-bernotok'
9280 allow_undefined_flag=' ${wl}-berok'
9281 if test "$with_gnu_ld" = yes; then
9282 # We only use this code for GNU lds that support --whole-archive.
9283 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9284 else
9285 # Exported symbols can be pulled into shared objects from archives
9286 whole_archive_flag_spec='$convenience'
9287 fi
9288 archive_cmds_need_lc=yes
9289 # This is similar to how AIX traditionally builds its shared libraries.
9290 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'
9291 fi
9292 fi
9293 ;;
9294
9295 amigaos*)
9296 case $host_cpu in
9297 powerpc)
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9301 ;;
9302 m68k)
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9306 ;;
9307 esac
9308 ;;
9309
9310 bsdi[45]*)
9311 export_dynamic_flag_spec=-rdynamic
9312 ;;
9313
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # When not using gcc, we currently assume that we are using
9316 # Microsoft Visual C++.
9317 # hardcode_libdir_flag_spec is actually meaningless, as there is
9318 # no search path for DLLs.
9319 hardcode_libdir_flag_spec=' '
9320 allow_undefined_flag=unsupported
9321 # Tell ltmain to make .lib files, not .a files.
9322 libext=lib
9323 # Tell ltmain to make .dll files, not .so files.
9324 shrext_cmds=".dll"
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9327 # The linker will automatically build a .lib file if we build a DLL.
9328 old_archive_from_new_cmds='true'
9329 # FIXME: Should let the user specify the lib program.
9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9331 fix_srcfile_path='`cygpath -w "$srcfile"`'
9332 enable_shared_with_static_runtimes=yes
9333 ;;
9334
9335 darwin* | rhapsody*)
9336
9337
9338 archive_cmds_need_lc=no
9339 hardcode_direct=no
9340 hardcode_automatic=yes
9341 hardcode_shlibpath_var=unsupported
9342 if test "$lt_cv_ld_force_load" = "yes"; then
9343 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\"`'
9344 else
9345 whole_archive_flag_spec=''
9346 fi
9347 link_all_deplibs=yes
9348 allow_undefined_flag="$_lt_dar_allow_undefined"
9349 case $cc_basename in
9350 ifort*) _lt_dar_can_shared=yes ;;
9351 *) _lt_dar_can_shared=$GCC ;;
9352 esac
9353 if test "$_lt_dar_can_shared" = "yes"; then
9354 output_verbose_link_cmd=func_echo_all
9355 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9356 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9357 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}"
9358 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}"
9359
9360 else
9361 ld_shlibs=no
9362 fi
9363
9364 ;;
9365
9366 dgux*)
9367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_shlibpath_var=no
9370 ;;
9371
9372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9373 # support. Future versions do this automatically, but an explicit c++rt0.o
9374 # does not break anything, and helps significantly (at the cost of a little
9375 # extra space).
9376 freebsd2.2*)
9377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9378 hardcode_libdir_flag_spec='-R$libdir'
9379 hardcode_direct=yes
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9384 freebsd2.*)
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9392 freebsd* | dragonfly*)
9393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9394 hardcode_libdir_flag_spec='-R$libdir'
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9397 ;;
9398
9399 hpux9*)
9400 if test "$GCC" = yes; then
9401 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'
9402 else
9403 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'
9404 fi
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 hardcode_direct=yes
9408
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 export_dynamic_flag_spec='${wl}-E'
9413 ;;
9414
9415 hpux10*)
9416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 else
9419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9420 fi
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_flag_spec_ld='+b $libdir'
9424 hardcode_libdir_separator=:
9425 hardcode_direct=yes
9426 hardcode_direct_absolute=yes
9427 export_dynamic_flag_spec='${wl}-E'
9428 # hardcode_minus_L: Not really in the search PATH,
9429 # but as the default location of the library.
9430 hardcode_minus_L=yes
9431 fi
9432 ;;
9433
9434 hpux11*)
9435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9436 case $host_cpu in
9437 hppa*64*)
9438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 ;;
9440 ia64*)
9441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442 ;;
9443 *)
9444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 esac
9447 else
9448 case $host_cpu in
9449 hppa*64*)
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 ia64*)
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 *)
9456
9457 # Older versions of the 11.00 compiler do not understand -b yet
9458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9460$as_echo_n "checking if $CC understands -b... " >&6; }
9461if test "${lt_cv_prog_compiler__b+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463else
9464 lt_cv_prog_compiler__b=no
9465 save_LDFLAGS="$LDFLAGS"
9466 LDFLAGS="$LDFLAGS -b"
9467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9469 # The linker can only warn and ignore the option if not recognized
9470 # So say no if there are warnings
9471 if test -s conftest.err; then
9472 # Append any errors to the config.log.
9473 cat conftest.err 1>&5
9474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler__b=yes
9478 fi
9479 else
9480 lt_cv_prog_compiler__b=yes
9481 fi
9482 fi
9483 $RM -r conftest*
9484 LDFLAGS="$save_LDFLAGS"
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9488$as_echo "$lt_cv_prog_compiler__b" >&6; }
9489
9490if test x"$lt_cv_prog_compiler__b" = xyes; then
9491 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492else
9493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9494fi
9495
9496 ;;
9497 esac
9498 fi
9499 if test "$with_gnu_ld" = no; then
9500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502
9503 case $host_cpu in
9504 hppa*64*|ia64*)
9505 hardcode_direct=no
9506 hardcode_shlibpath_var=no
9507 ;;
9508 *)
9509 hardcode_direct=yes
9510 hardcode_direct_absolute=yes
9511 export_dynamic_flag_spec='${wl}-E'
9512
9513 # hardcode_minus_L: Not really in the search PATH,
9514 # but as the default location of the library.
9515 hardcode_minus_L=yes
9516 ;;
9517 esac
9518 fi
9519 ;;
9520
9521 irix5* | irix6* | nonstopux*)
9522 if test "$GCC" = yes; then
9523 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'
9524 # Try to use the -exported_symbol ld option, if it does not
9525 # work, assume that -exports_file does not work either and
9526 # implicitly export all symbols.
9527 save_LDFLAGS="$LDFLAGS"
9528 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h. */
9531int foo(void) {}
9532_ACEOF
9533if ac_fn_c_try_link "$LINENO"; then :
9534 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'
9535
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LDFLAGS="$save_LDFLAGS"
9540 else
9541 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'
9542 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'
9543 fi
9544 archive_cmds_need_lc='no'
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 hardcode_libdir_separator=:
9547 inherit_rpath=yes
9548 link_all_deplibs=yes
9549 ;;
9550
9551 netbsd*)
9552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9554 else
9555 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9556 fi
9557 hardcode_libdir_flag_spec='-R$libdir'
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9560 ;;
9561
9562 newsos6)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_direct=yes
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9567 hardcode_shlibpath_var=no
9568 ;;
9569
9570 *nto* | *qnx*)
9571 ;;
9572
9573 openbsd*)
9574 if test -f /usr/libexec/ld.so; then
9575 hardcode_direct=yes
9576 hardcode_shlibpath_var=no
9577 hardcode_direct_absolute=yes
9578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9582 export_dynamic_flag_spec='${wl}-E'
9583 else
9584 case $host_os in
9585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_libdir_flag_spec='-R$libdir'
9588 ;;
9589 *)
9590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9592 ;;
9593 esac
9594 fi
9595 else
9596 ld_shlibs=no
9597 fi
9598 ;;
9599
9600 os2*)
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_minus_L=yes
9603 allow_undefined_flag=unsupported
9604 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'
9605 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9606 ;;
9607
9608 osf3*)
9609 if test "$GCC" = yes; then
9610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9611 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'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
9614 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'
9615 fi
9616 archive_cmds_need_lc='no'
9617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618 hardcode_libdir_separator=:
9619 ;;
9620
9621 osf4* | osf5*) # as osf3* with the addition of -msym flag
9622 if test "$GCC" = yes; then
9623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9624 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'
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 else
9627 allow_undefined_flag=' -expect_unresolved \*'
9628 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'
9629 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~
9630 $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'
9631
9632 # Both c and cxx compiler support -rpath directly
9633 hardcode_libdir_flag_spec='-rpath $libdir'
9634 fi
9635 archive_cmds_need_lc='no'
9636 hardcode_libdir_separator=:
9637 ;;
9638
9639 solaris*)
9640 no_undefined_flag=' -z defs'
9641 if test "$GCC" = yes; then
9642 wlarc='${wl}'
9643 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9646 else
9647 case `$CC -V 2>&1` in
9648 *"Compilers 5.0"*)
9649 wlarc=''
9650 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9653 ;;
9654 *)
9655 wlarc='${wl}'
9656 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9659 ;;
9660 esac
9661 fi
9662 hardcode_libdir_flag_spec='-R$libdir'
9663 hardcode_shlibpath_var=no
9664 case $host_os in
9665 solaris2.[0-5] | solaris2.[0-5].*) ;;
9666 *)
9667 # The compiler driver will combine and reorder linker options,
9668 # but understands `-z linker_flag'. GCC discards it without `$wl',
9669 # but is careful enough not to reorder.
9670 # Supported since Solaris 2.6 (maybe 2.5.1?)
9671 if test "$GCC" = yes; then
9672 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9673 else
9674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9675 fi
9676 ;;
9677 esac
9678 link_all_deplibs=yes
9679 ;;
9680
9681 sunos4*)
9682 if test "x$host_vendor" = xsequent; then
9683 # Use $CC to link under sequent, because it throws in some extra .o
9684 # files that make .init and .fini sections work.
9685 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9686 else
9687 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9688 fi
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_direct=yes
9691 hardcode_minus_L=yes
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 sysv4)
9696 case $host_vendor in
9697 sni)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_direct=yes # is this really true???
9700 ;;
9701 siemens)
9702 ## LD is ld it makes a PLAMLIB
9703 ## CC just makes a GrossModule.
9704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9705 reload_cmds='$CC -r -o $output$reload_objs'
9706 hardcode_direct=no
9707 ;;
9708 motorola)
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9711 ;;
9712 esac
9713 runpath_var='LD_RUN_PATH'
9714 hardcode_shlibpath_var=no
9715 ;;
9716
9717 sysv4.3*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_shlibpath_var=no
9720 export_dynamic_flag_spec='-Bexport'
9721 ;;
9722
9723 sysv4*MP*)
9724 if test -d /usr/nec; then
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_shlibpath_var=no
9727 runpath_var=LD_RUN_PATH
9728 hardcode_runpath_var=yes
9729 ld_shlibs=yes
9730 fi
9731 ;;
9732
9733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9734 no_undefined_flag='${wl}-z,text'
9735 archive_cmds_need_lc=no
9736 hardcode_shlibpath_var=no
9737 runpath_var='LD_RUN_PATH'
9738
9739 if test "$GCC" = yes; then
9740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 fi
9746 ;;
9747
9748 sysv5* | sco3.2v5* | sco5v6*)
9749 # Note: We can NOT use -z defs as we might desire, because we do not
9750 # link with -lc, and that would cause any symbols used from libc to
9751 # always be unresolved, which means just about no library would
9752 # ever link correctly. If we're not using GNU ld we use -z text
9753 # though, which does catch some bad symbols but isn't as heavy-handed
9754 # as -z defs.
9755 no_undefined_flag='${wl}-z,text'
9756 allow_undefined_flag='${wl}-z,nodefs'
9757 archive_cmds_need_lc=no
9758 hardcode_shlibpath_var=no
9759 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9760 hardcode_libdir_separator=':'
9761 link_all_deplibs=yes
9762 export_dynamic_flag_spec='${wl}-Bexport'
9763 runpath_var='LD_RUN_PATH'
9764
9765 if test "$GCC" = yes; then
9766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 else
9769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 fi
9772 ;;
9773
9774 uts4*)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_shlibpath_var=no
9778 ;;
9779
9780 *)
9781 ld_shlibs=no
9782 ;;
9783 esac
9784
9785 if test x$host_vendor = xsni; then
9786 case $host in
9787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9788 export_dynamic_flag_spec='${wl}-Blargedynsym'
9789 ;;
9790 esac
9791 fi
9792 fi
9793
9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9795$as_echo "$ld_shlibs" >&6; }
9796test "$ld_shlibs" = no && can_build_shared=no
9797
9798with_gnu_ld=$with_gnu_ld
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814#
9815# Do we need to explicitly link libc?
9816#
9817case "x$archive_cmds_need_lc" in
9818x|xyes)
9819 # Assume -lc should be added
9820 archive_cmds_need_lc=yes
9821
9822 if test "$enable_shared" = yes && test "$GCC" = yes; then
9823 case $archive_cmds in
9824 *'~'*)
9825 # FIXME: we may have to deal with multi-command sequences.
9826 ;;
9827 '$CC '*)
9828 # Test whether the compiler implicitly links with -lc since on some
9829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9830 # to ld, don't add -lc before -lgcc.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9832$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9833if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835else
9836 $RM conftest*
9837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9838
9839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9840 (eval $ac_compile) 2>&5
9841 ac_status=$?
9842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9843 test $ac_status = 0; } 2>conftest.err; then
9844 soname=conftest
9845 lib=conftest
9846 libobjs=conftest.$ac_objext
9847 deplibs=
9848 wl=$lt_prog_compiler_wl
9849 pic_flag=$lt_prog_compiler_pic
9850 compiler_flags=-v
9851 linker_flags=-v
9852 verstring=
9853 output_objdir=.
9854 libname=conftest
9855 lt_save_allow_undefined_flag=$allow_undefined_flag
9856 allow_undefined_flag=
9857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9859 ac_status=$?
9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861 test $ac_status = 0; }
9862 then
9863 lt_cv_archive_cmds_need_lc=no
9864 else
9865 lt_cv_archive_cmds_need_lc=yes
9866 fi
9867 allow_undefined_flag=$lt_save_allow_undefined_flag
9868 else
9869 cat conftest.err 1>&5
9870 fi
9871 $RM conftest*
9872
9873fi
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9875$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9877 ;;
9878 esac
9879 fi
9880 ;;
9881esac
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10040$as_echo_n "checking dynamic linker characteristics... " >&6; }
10041
10042if test "$GCC" = yes; then
10043 case $host_os in
10044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10045 *) lt_awk_arg="/^libraries:/" ;;
10046 esac
10047 case $host_os in
10048 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10049 *) lt_sed_strip_eq="s,=/,/,g" ;;
10050 esac
10051 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10052 case $lt_search_path_spec in
10053 *\;*)
10054 # if the path contains ";" then we assume it to be the separator
10055 # otherwise default to the standard path separator (i.e. ":") - it is
10056 # assumed that no part of a normal pathname contains ";" but that should
10057 # okay in the real world where ";" in dirpaths is itself problematic.
10058 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10059 ;;
10060 *)
10061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10062 ;;
10063 esac
10064 # Ok, now we have the path, separated by spaces, we can step through it
10065 # and add multilib dir if necessary.
10066 lt_tmp_lt_search_path_spec=
10067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10068 for lt_sys_path in $lt_search_path_spec; do
10069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10071 else
10072 test -d "$lt_sys_path" && \
10073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10074 fi
10075 done
10076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10077BEGIN {RS=" "; FS="/|\n";} {
10078 lt_foo="";
10079 lt_count=0;
10080 for (lt_i = NF; lt_i > 0; lt_i--) {
10081 if ($lt_i != "" && $lt_i != ".") {
10082 if ($lt_i == "..") {
10083 lt_count++;
10084 } else {
10085 if (lt_count == 0) {
10086 lt_foo="/" $lt_i lt_foo;
10087 } else {
10088 lt_count--;
10089 }
10090 }
10091 }
10092 }
10093 if (lt_foo != "") { lt_freq[lt_foo]++; }
10094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10095}'`
10096 # AWK program above erroneously prepends '/' to C:/dos/paths
10097 # for these hosts.
10098 case $host_os in
10099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10101 esac
10102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10103else
10104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10105fi
10106library_names_spec=
10107libname_spec='lib$name'
10108soname_spec=
10109shrext_cmds=".so"
10110postinstall_cmds=
10111postuninstall_cmds=
10112finish_cmds=
10113finish_eval=
10114shlibpath_var=
10115shlibpath_overrides_runpath=unknown
10116version_type=none
10117dynamic_linker="$host_os ld.so"
10118sys_lib_dlsearch_path_spec="/lib /usr/lib"
10119need_lib_prefix=unknown
10120hardcode_into_libs=no
10121
10122# when you set need_version to no, make sure it does not cause -set_version
10123# flags to be left without arguments
10124need_version=unknown
10125
10126case $host_os in
10127aix3*)
10128 version_type=linux
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10130 shlibpath_var=LIBPATH
10131
10132 # AIX 3 has no versioning support, so we append a major version to the name.
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 ;;
10135
10136aix[4-9]*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 hardcode_into_libs=yes
10141 if test "$host_cpu" = ia64; then
10142 # AIX 5 supports IA64
10143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 else
10146 # With GCC up to 2.95.x, collect2 would create an import file
10147 # for dependence libraries. The import file would start with
10148 # the line `#! .'. This would cause the generated library to
10149 # depend on `.', always an invalid library. This was fixed in
10150 # development snapshots of GCC prior to 3.0.
10151 case $host_os in
10152 aix4 | aix4.[01] | aix4.[01].*)
10153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10154 echo ' yes '
10155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10156 :
10157 else
10158 can_build_shared=no
10159 fi
10160 ;;
10161 esac
10162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10163 # soname into executable. Probably we can add versioning support to
10164 # collect2, so additional links can be useful in future.
10165 if test "$aix_use_runtimelinking" = yes; then
10166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10167 # instead of lib<name>.a to let people know that these are not
10168 # typical AIX shared libraries.
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 else
10171 # We preserve .a as extension for shared libraries through AIX4.2
10172 # and later when we are not doing run time linking.
10173 library_names_spec='${libname}${release}.a $libname.a'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 fi
10176 shlibpath_var=LIBPATH
10177 fi
10178 ;;
10179
10180amigaos*)
10181 case $host_cpu in
10182 powerpc)
10183 # Since July 2007 AmigaOS4 officially supports .so libraries.
10184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 ;;
10187 m68k)
10188 library_names_spec='$libname.ixlibrary $libname.a'
10189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10190 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'
10191 ;;
10192 esac
10193 ;;
10194
10195beos*)
10196 library_names_spec='${libname}${shared_ext}'
10197 dynamic_linker="$host_os ld.so"
10198 shlibpath_var=LIBRARY_PATH
10199 ;;
10200
10201bsdi[45]*)
10202 version_type=linux
10203 need_version=no
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10210 # the default ld.so.conf also contains /usr/contrib/lib and
10211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10212 # libtool to hard-code these into programs
10213 ;;
10214
10215cygwin* | mingw* | pw32* | cegcc*)
10216 version_type=windows
10217 shrext_cmds=".dll"
10218 need_version=no
10219 need_lib_prefix=no
10220
10221 case $GCC,$host_os in
10222 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10223 library_names_spec='$libname.dll.a'
10224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10225 postinstall_cmds='base_file=`basename \${file}`~
10226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10227 dldir=$destdir/`dirname \$dlpath`~
10228 test -d \$dldir || mkdir -p \$dldir~
10229 $install_prog $dir/$dlname \$dldir/$dlname~
10230 chmod a+x \$dldir/$dlname~
10231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10233 fi'
10234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10235 dlpath=$dir/\$dldll~
10236 $RM \$dlpath'
10237 shlibpath_overrides_runpath=yes
10238
10239 case $host_os in
10240 cygwin*)
10241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10243
10244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10245 ;;
10246 mingw* | cegcc*)
10247 # MinGW DLLs use traditional 'lib' prefix
10248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249 ;;
10250 pw32*)
10251 # pw32 DLLs use 'pw' prefix rather than 'lib'
10252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253 ;;
10254 esac
10255 ;;
10256
10257 *)
10258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10259 ;;
10260 esac
10261 dynamic_linker='Win32 ld.exe'
10262 # FIXME: first we should search . and the directory the executable is in
10263 shlibpath_var=PATH
10264 ;;
10265
10266darwin* | rhapsody*)
10267 dynamic_linker="$host_os dyld"
10268 version_type=darwin
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10272 soname_spec='${libname}${release}${major}$shared_ext'
10273 shlibpath_overrides_runpath=yes
10274 shlibpath_var=DYLD_LIBRARY_PATH
10275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10276
10277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10279 ;;
10280
10281dgux*)
10282 version_type=linux
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 ;;
10289
10290freebsd* | dragonfly*)
10291 # DragonFly does not have aout. When/if they implement a new
10292 # versioning mechanism, adjust this.
10293 if test -x /usr/bin/objformat; then
10294 objformat=`/usr/bin/objformat`
10295 else
10296 case $host_os in
10297 freebsd[23].*) objformat=aout ;;
10298 *) objformat=elf ;;
10299 esac
10300 fi
10301 version_type=freebsd-$objformat
10302 case $version_type in
10303 freebsd-elf*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 need_version=no
10306 need_lib_prefix=no
10307 ;;
10308 freebsd-*)
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10310 need_version=yes
10311 ;;
10312 esac
10313 shlibpath_var=LD_LIBRARY_PATH
10314 case $host_os in
10315 freebsd2.*)
10316 shlibpath_overrides_runpath=yes
10317 ;;
10318 freebsd3.[01]* | freebsdelf3.[01]*)
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 ;;
10322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10326 ;;
10327 *) # from 4.6 on, and DragonFly
10328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10330 ;;
10331 esac
10332 ;;
10333
10334gnu*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 hardcode_into_libs=yes
10342 ;;
10343
10344haiku*)
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 dynamic_linker="$host_os runtime_loader"
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10354 hardcode_into_libs=yes
10355 ;;
10356
10357hpux9* | hpux10* | hpux11*)
10358 # Give a soname corresponding to the major version so that dld.sl refuses to
10359 # link against other versions.
10360 version_type=sunos
10361 need_lib_prefix=no
10362 need_version=no
10363 case $host_cpu in
10364 ia64*)
10365 shrext_cmds='.so'
10366 hardcode_into_libs=yes
10367 dynamic_linker="$host_os dld.so"
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 if test "X$HPUX_IA64_MODE" = X32; then
10373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10374 else
10375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10376 fi
10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378 ;;
10379 hppa*64*)
10380 shrext_cmds='.sl'
10381 hardcode_into_libs=yes
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389 ;;
10390 *)
10391 shrext_cmds='.sl'
10392 dynamic_linker="$host_os dld.sl"
10393 shlibpath_var=SHLIB_PATH
10394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 ;;
10398 esac
10399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10400 postinstall_cmds='chmod 555 $lib'
10401 # or fails outright, so override atomically:
10402 install_override_mode=555
10403 ;;
10404
10405interix[3-9]*)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=no
10414 hardcode_into_libs=yes
10415 ;;
10416
10417irix5* | irix6* | nonstopux*)
10418 case $host_os in
10419 nonstopux*) version_type=nonstopux ;;
10420 *)
10421 if test "$lt_cv_prog_gnu_ld" = yes; then
10422 version_type=linux
10423 else
10424 version_type=irix
10425 fi ;;
10426 esac
10427 need_lib_prefix=no
10428 need_version=no
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10431 case $host_os in
10432 irix5* | nonstopux*)
10433 libsuff= shlibsuff=
10434 ;;
10435 *)
10436 case $LD in # libtool.m4 will add one of these switches to LD
10437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10438 libsuff= shlibsuff= libmagic=32-bit;;
10439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10440 libsuff=32 shlibsuff=N32 libmagic=N32;;
10441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10443 *) libsuff= shlibsuff= libmagic=never-match;;
10444 esac
10445 ;;
10446 esac
10447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10448 shlibpath_overrides_runpath=no
10449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10451 hardcode_into_libs=yes
10452 ;;
10453
10454# No shared lib support for Linux oldld, aout, or coff.
10455linux*oldld* | linux*aout* | linux*coff*)
10456 dynamic_linker=no
10457 ;;
10458
10459# This must be Linux ELF.
10460linux* | k*bsd*-gnu | kopensolaris*-gnu)
10461 version_type=linux
10462 need_lib_prefix=no
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10469
10470 # Some binutils ld are patched to set DT_RUNPATH
10471 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473else
10474 lt_cv_shlibpath_overrides_runpath=no
10475 save_LDFLAGS=$LDFLAGS
10476 save_libdir=$libdir
10477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h. */
10481
10482int
10483main ()
10484{
10485
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10492 lt_cv_shlibpath_overrides_runpath=yes
10493fi
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 libdir=$save_libdir
10499
10500fi
10501
10502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10503
10504 # This implies no fast_install, which is unacceptable.
10505 # Some rework will be needed to allow for fast_install
10506 # before this can be enabled.
10507 hardcode_into_libs=yes
10508
10509 # Append ld.so.conf contents to the search path
10510 if test -f /etc/ld.so.conf; then
10511 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' ' '`
10512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10513 fi
10514
10515 # We used to test for /lib/ld.so.1 and disable shared libraries on
10516 # powerpc, because MkLinux only supported shared libraries with the
10517 # GNU dynamic linker. Since this was broken with cross compilers,
10518 # most powerpc-linux boxes support dynamic linking these days and
10519 # people can always --disable-shared, the test was removed, and we
10520 # assume the GNU/Linux dynamic linker is in use.
10521 dynamic_linker='GNU/Linux ld.so'
10522 ;;
10523
10524netbsd*)
10525 version_type=sunos
10526 need_lib_prefix=no
10527 need_version=no
10528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 dynamic_linker='NetBSD (a.out) ld.so'
10532 else
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 dynamic_linker='NetBSD ld.elf_so'
10536 fi
10537 shlibpath_var=LD_LIBRARY_PATH
10538 shlibpath_overrides_runpath=yes
10539 hardcode_into_libs=yes
10540 ;;
10541
10542newsos6)
10543 version_type=linux
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10547 ;;
10548
10549*nto* | *qnx*)
10550 version_type=qnx
10551 need_lib_prefix=no
10552 need_version=no
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 dynamic_linker='ldqnx.so'
10559 ;;
10560
10561openbsd*)
10562 version_type=sunos
10563 sys_lib_dlsearch_path_spec="/usr/lib"
10564 need_lib_prefix=no
10565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10566 case $host_os in
10567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10568 *) need_version=no ;;
10569 esac
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10574 case $host_os in
10575 openbsd2.[89] | openbsd2.[89].*)
10576 shlibpath_overrides_runpath=no
10577 ;;
10578 *)
10579 shlibpath_overrides_runpath=yes
10580 ;;
10581 esac
10582 else
10583 shlibpath_overrides_runpath=yes
10584 fi
10585 ;;
10586
10587os2*)
10588 libname_spec='$name'
10589 shrext_cmds=".dll"
10590 need_lib_prefix=no
10591 library_names_spec='$libname${shared_ext} $libname.a'
10592 dynamic_linker='OS/2 ld.exe'
10593 shlibpath_var=LIBPATH
10594 ;;
10595
10596osf3* | osf4* | osf5*)
10597 version_type=osf
10598 need_lib_prefix=no
10599 need_version=no
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10605 ;;
10606
10607rdos*)
10608 dynamic_linker=no
10609 ;;
10610
10611solaris*)
10612 version_type=linux
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10620 # ldd complains unless libraries are executable
10621 postinstall_cmds='chmod +x $lib'
10622 ;;
10623
10624sunos4*)
10625 version_type=sunos
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 if test "$with_gnu_ld" = yes; then
10631 need_lib_prefix=no
10632 fi
10633 need_version=yes
10634 ;;
10635
10636sysv4 | sysv4.3*)
10637 version_type=linux
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 case $host_vendor in
10642 sni)
10643 shlibpath_overrides_runpath=no
10644 need_lib_prefix=no
10645 runpath_var=LD_RUN_PATH
10646 ;;
10647 siemens)
10648 need_lib_prefix=no
10649 ;;
10650 motorola)
10651 need_lib_prefix=no
10652 need_version=no
10653 shlibpath_overrides_runpath=no
10654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10655 ;;
10656 esac
10657 ;;
10658
10659sysv4*MP*)
10660 if test -d /usr/nec ;then
10661 version_type=linux
10662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10663 soname_spec='$libname${shared_ext}.$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 fi
10666 ;;
10667
10668sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10669 version_type=freebsd-elf
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 if test "$with_gnu_ld" = yes; then
10678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10679 else
10680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10681 case $host_os in
10682 sco3.2v5*)
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10684 ;;
10685 esac
10686 fi
10687 sys_lib_dlsearch_path_spec='/usr/lib'
10688 ;;
10689
10690tpf*)
10691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10699 ;;
10700
10701uts4*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 ;;
10707
10708*)
10709 dynamic_linker=no
10710 ;;
10711esac
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10713$as_echo "$dynamic_linker" >&6; }
10714test "$dynamic_linker" = no && can_build_shared=no
10715
10716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10717if test "$GCC" = yes; then
10718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10719fi
10720
10721if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10723fi
10724if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10726fi
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10820$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10821hardcode_action=
10822if test -n "$hardcode_libdir_flag_spec" ||
10823 test -n "$runpath_var" ||
10824 test "X$hardcode_automatic" = "Xyes" ; then
10825
10826 # We can hardcode non-existent directories.
10827 if test "$hardcode_direct" != no &&
10828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10829 # have to relink, otherwise we might link with an installed library
10830 # when we should be linking with a yet-to-be-installed one
10831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10832 test "$hardcode_minus_L" != no; then
10833 # Linking always hardcodes the temporary library directory.
10834 hardcode_action=relink
10835 else
10836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10837 hardcode_action=immediate
10838 fi
10839else
10840 # We cannot hardcode anything, or else we can only hardcode existing
10841 # directories.
10842 hardcode_action=unsupported
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10845$as_echo "$hardcode_action" >&6; }
10846
10847if test "$hardcode_action" = relink ||
10848 test "$inherit_rpath" = yes; then
10849 # Fast installation is not supported
10850 enable_fast_install=no
10851elif test "$shlibpath_overrides_runpath" = yes ||
10852 test "$enable_shared" = no; then
10853 # Fast installation is not necessary
10854 enable_fast_install=needless
10855fi
10856
10857
10858
10859
10860
10861
10862 if test "x$enable_dlopen" != xyes; then
10863 enable_dlopen=unknown
10864 enable_dlopen_self=unknown
10865 enable_dlopen_self_static=unknown
10866else
10867 lt_cv_dlopen=no
10868 lt_cv_dlopen_libs=
10869
10870 case $host_os in
10871 beos*)
10872 lt_cv_dlopen="load_add_on"
10873 lt_cv_dlopen_libs=
10874 lt_cv_dlopen_self=yes
10875 ;;
10876
10877 mingw* | pw32* | cegcc*)
10878 lt_cv_dlopen="LoadLibrary"
10879 lt_cv_dlopen_libs=
10880 ;;
10881
10882 cygwin*)
10883 lt_cv_dlopen="dlopen"
10884 lt_cv_dlopen_libs=
10885 ;;
10886
10887 darwin*)
10888 # if libdl is installed we need to link against it
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10890$as_echo_n "checking for dlopen in -ldl... " >&6; }
10891if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893else
10894 ac_check_lib_save_LIBS=$LIBS
10895LIBS="-ldl $LIBS"
10896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h. */
10898
10899/* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10902#ifdef __cplusplus
10903extern "C"
10904#endif
10905char dlopen ();
10906int
10907main ()
10908{
10909return dlopen ();
10910 ;
10911 return 0;
10912}
10913_ACEOF
10914if ac_fn_c_try_link "$LINENO"; then :
10915 ac_cv_lib_dl_dlopen=yes
10916else
10917 ac_cv_lib_dl_dlopen=no
10918fi
10919rm -f core conftest.err conftest.$ac_objext \
10920 conftest$ac_exeext conftest.$ac_ext
10921LIBS=$ac_check_lib_save_LIBS
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10924$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10925if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927else
10928
10929 lt_cv_dlopen="dyld"
10930 lt_cv_dlopen_libs=
10931 lt_cv_dlopen_self=yes
10932
10933fi
10934
10935 ;;
10936
10937 *)
10938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10939if test "x$ac_cv_func_shl_load" = x""yes; then :
10940 lt_cv_dlopen="shl_load"
10941else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10943$as_echo_n "checking for shl_load in -ldld... " >&6; }
10944if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 ac_check_lib_save_LIBS=$LIBS
10948LIBS="-ldld $LIBS"
10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h. */
10951
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char shl_load ();
10959int
10960main ()
10961{
10962return shl_load ();
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_dld_shl_load=yes
10969else
10970 ac_cv_lib_dld_shl_load=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10977$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10978if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10980else
10981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10982if test "x$ac_cv_func_dlopen" = x""yes; then :
10983 lt_cv_dlopen="dlopen"
10984else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10986$as_echo_n "checking for dlopen in -ldl... " >&6; }
10987if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989else
10990 ac_check_lib_save_LIBS=$LIBS
10991LIBS="-ldl $LIBS"
10992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h. */
10994
10995/* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998#ifdef __cplusplus
10999extern "C"
11000#endif
11001char dlopen ();
11002int
11003main ()
11004{
11005return dlopen ();
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_dl_dlopen=yes
11012else
11013 ac_cv_lib_dl_dlopen=no
11014fi
11015rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017LIBS=$ac_check_lib_save_LIBS
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11020$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11021if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11023else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11025$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11026if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028else
11029 ac_check_lib_save_LIBS=$LIBS
11030LIBS="-lsvld $LIBS"
11031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h. */
11033
11034/* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037#ifdef __cplusplus
11038extern "C"
11039#endif
11040char dlopen ();
11041int
11042main ()
11043{
11044return dlopen ();
11045 ;
11046 return 0;
11047}
11048_ACEOF
11049if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_svld_dlopen=yes
11051else
11052 ac_cv_lib_svld_dlopen=no
11053fi
11054rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056LIBS=$ac_check_lib_save_LIBS
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11059$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11060if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11062else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11064$as_echo_n "checking for dld_link in -ldld... " >&6; }
11065if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067else
11068 ac_check_lib_save_LIBS=$LIBS
11069LIBS="-ldld $LIBS"
11070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071/* end confdefs.h. */
11072
11073/* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076#ifdef __cplusplus
11077extern "C"
11078#endif
11079char dld_link ();
11080int
11081main ()
11082{
11083return dld_link ();
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088if ac_fn_c_try_link "$LINENO"; then :
11089 ac_cv_lib_dld_dld_link=yes
11090else
11091 ac_cv_lib_dld_dld_link=no
11092fi
11093rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095LIBS=$ac_check_lib_save_LIBS
11096fi
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11098$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11099if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11101fi
11102
11103
11104fi
11105
11106
11107fi
11108
11109
11110fi
11111
11112
11113fi
11114
11115
11116fi
11117
11118 ;;
11119 esac
11120
11121 if test "x$lt_cv_dlopen" != xno; then
11122 enable_dlopen=yes
11123 else
11124 enable_dlopen=no
11125 fi
11126
11127 case $lt_cv_dlopen in
11128 dlopen)
11129 save_CPPFLAGS="$CPPFLAGS"
11130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11131
11132 save_LDFLAGS="$LDFLAGS"
11133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11134
11135 save_LIBS="$LIBS"
11136 LIBS="$lt_cv_dlopen_libs $LIBS"
11137
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11139$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11140if test "${lt_cv_dlopen_self+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142else
11143 if test "$cross_compiling" = yes; then :
11144 lt_cv_dlopen_self=cross
11145else
11146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11147 lt_status=$lt_dlunknown
11148 cat > conftest.$ac_ext <<_LT_EOF
0b986d3d 11149#line 11149 "configure"
ecd3459e 11150#include "confdefs.h"
11151
11152#if HAVE_DLFCN_H
11153#include <dlfcn.h>
11154#endif
11155
11156#include <stdio.h>
11157
11158#ifdef RTLD_GLOBAL
11159# define LT_DLGLOBAL RTLD_GLOBAL
11160#else
11161# ifdef DL_GLOBAL
11162# define LT_DLGLOBAL DL_GLOBAL
11163# else
11164# define LT_DLGLOBAL 0
11165# endif
11166#endif
11167
11168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11169 find out it does not work in some platform. */
11170#ifndef LT_DLLAZY_OR_NOW
11171# ifdef RTLD_LAZY
11172# define LT_DLLAZY_OR_NOW RTLD_LAZY
11173# else
11174# ifdef DL_LAZY
11175# define LT_DLLAZY_OR_NOW DL_LAZY
11176# else
11177# ifdef RTLD_NOW
11178# define LT_DLLAZY_OR_NOW RTLD_NOW
11179# else
11180# ifdef DL_NOW
11181# define LT_DLLAZY_OR_NOW DL_NOW
11182# else
11183# define LT_DLLAZY_OR_NOW 0
11184# endif
11185# endif
11186# endif
11187# endif
11188#endif
11189
11190/* When -fvisbility=hidden is used, assume the code has been annotated
11191 correspondingly for the symbols needed. */
11192#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11193void fnord () __attribute__((visibility("default")));
11194#endif
11195
11196void fnord () { int i=42; }
11197int main ()
11198{
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
11201
11202 if (self)
11203 {
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else
11206 {
11207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11208 else puts (dlerror ());
11209 }
11210 /* dlclose (self); */
11211 }
11212 else
11213 puts (dlerror ());
11214
11215 return status;
11216}
11217_LT_EOF
11218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11219 (eval $ac_link) 2>&5
11220 ac_status=$?
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11223 (./conftest; exit; ) >&5 2>/dev/null
11224 lt_status=$?
11225 case x$lt_status in
11226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11229 esac
11230 else :
11231 # compilation failed
11232 lt_cv_dlopen_self=no
11233 fi
11234fi
11235rm -fr conftest*
11236
11237
11238fi
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11240$as_echo "$lt_cv_dlopen_self" >&6; }
11241
11242 if test "x$lt_cv_dlopen_self" = xyes; then
11243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11245$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11246if test "${lt_cv_dlopen_self_static+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248else
11249 if test "$cross_compiling" = yes; then :
11250 lt_cv_dlopen_self_static=cross
11251else
11252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11253 lt_status=$lt_dlunknown
11254 cat > conftest.$ac_ext <<_LT_EOF
0b986d3d 11255#line 11255 "configure"
ecd3459e 11256#include "confdefs.h"
11257
11258#if HAVE_DLFCN_H
11259#include <dlfcn.h>
11260#endif
11261
11262#include <stdio.h>
11263
11264#ifdef RTLD_GLOBAL
11265# define LT_DLGLOBAL RTLD_GLOBAL
11266#else
11267# ifdef DL_GLOBAL
11268# define LT_DLGLOBAL DL_GLOBAL
11269# else
11270# define LT_DLGLOBAL 0
11271# endif
11272#endif
11273
11274/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11275 find out it does not work in some platform. */
11276#ifndef LT_DLLAZY_OR_NOW
11277# ifdef RTLD_LAZY
11278# define LT_DLLAZY_OR_NOW RTLD_LAZY
11279# else
11280# ifdef DL_LAZY
11281# define LT_DLLAZY_OR_NOW DL_LAZY
11282# else
11283# ifdef RTLD_NOW
11284# define LT_DLLAZY_OR_NOW RTLD_NOW
11285# else
11286# ifdef DL_NOW
11287# define LT_DLLAZY_OR_NOW DL_NOW
11288# else
11289# define LT_DLLAZY_OR_NOW 0
11290# endif
11291# endif
11292# endif
11293# endif
11294#endif
11295
11296/* When -fvisbility=hidden is used, assume the code has been annotated
11297 correspondingly for the symbols needed. */
11298#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11299void fnord () __attribute__((visibility("default")));
11300#endif
11301
11302void fnord () { int i=42; }
11303int main ()
11304{
11305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11306 int status = $lt_dlunknown;
11307
11308 if (self)
11309 {
11310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11311 else
11312 {
11313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11314 else puts (dlerror ());
11315 }
11316 /* dlclose (self); */
11317 }
11318 else
11319 puts (dlerror ());
11320
11321 return status;
11322}
11323_LT_EOF
11324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11325 (eval $ac_link) 2>&5
11326 ac_status=$?
11327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11329 (./conftest; exit; ) >&5 2>/dev/null
11330 lt_status=$?
11331 case x$lt_status in
11332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11335 esac
11336 else :
11337 # compilation failed
11338 lt_cv_dlopen_self_static=no
11339 fi
11340fi
11341rm -fr conftest*
11342
11343
11344fi
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11346$as_echo "$lt_cv_dlopen_self_static" >&6; }
11347 fi
11348
11349 CPPFLAGS="$save_CPPFLAGS"
11350 LDFLAGS="$save_LDFLAGS"
11351 LIBS="$save_LIBS"
11352 ;;
11353 esac
11354
11355 case $lt_cv_dlopen_self in
11356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11357 *) enable_dlopen_self=unknown ;;
11358 esac
11359
11360 case $lt_cv_dlopen_self_static in
11361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11362 *) enable_dlopen_self_static=unknown ;;
11363 esac
11364fi
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382striplib=
11383old_striplib=
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11385$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11386if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390$as_echo "yes" >&6; }
11391else
11392# FIXME - insert some real tests, host_os isn't really good enough
11393 case $host_os in
11394 darwin*)
11395 if test -n "$STRIP" ; then
11396 striplib="$STRIP -x"
11397 old_striplib="$STRIP -S"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399$as_echo "yes" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402$as_echo "no" >&6; }
11403 fi
11404 ;;
11405 *)
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
11408 ;;
11409 esac
11410fi
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 # Report which library types will actually be built
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11425$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11427$as_echo "$can_build_shared" >&6; }
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11430$as_echo_n "checking whether to build shared libraries... " >&6; }
11431 test "$can_build_shared" = "no" && enable_shared=no
11432
11433 # On AIX, shared libraries and static libraries use the same namespace, and
11434 # are all built from PIC.
11435 case $host_os in
11436 aix3*)
11437 test "$enable_shared" = yes && enable_static=no
11438 if test -n "$RANLIB"; then
11439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11440 postinstall_cmds='$RANLIB $lib'
11441 fi
11442 ;;
11443
11444 aix[4-9]*)
11445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11446 test "$enable_shared" = yes && enable_static=no
11447 fi
11448 ;;
11449 esac
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11451$as_echo "$enable_shared" >&6; }
11452
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11454$as_echo_n "checking whether to build static libraries... " >&6; }
11455 # Make sure either enable_shared or enable_static is yes.
11456 test "$enable_shared" = yes || enable_static=yes
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11458$as_echo "$enable_static" >&6; }
11459
11460
11461
11462
11463fi
11464ac_ext=c
11465ac_cpp='$CPP $CPPFLAGS'
11466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468ac_compiler_gnu=$ac_cv_c_compiler_gnu
11469
11470CC="$lt_save_CC"
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 ac_config_commands="$ac_config_commands libtool"
11485
11486
11487
11488
11489# Only expand once:
11490
11491
11492
11493
772d73b0 11494# Check whether --enable-largefile was given.
11495if test "${enable_largefile+set}" = set; then :
11496 enableval=$enable_largefile;
11497fi
11498
11499if test "$enable_largefile" != no; then
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11502$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11503if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11505else
11506 ac_cv_sys_largefile_CC=no
11507 if test "$GCC" != yes; then
11508 ac_save_CC=$CC
11509 while :; do
11510 # IRIX 6.2 and later do not support large files by default,
11511 # so use the C compiler's -n32 option if that helps.
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514#include <sys/types.h>
11515 /* Check that off_t can represent 2**63 - 1 correctly.
11516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11517 since some C++ compilers masquerading as C compilers
11518 incorrectly reject 9223372036854775807. */
11519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11521 && LARGE_OFF_T % 2147483647 == 1)
11522 ? 1 : -1];
11523int
11524main ()
11525{
11526
11527 ;
11528 return 0;
11529}
11530_ACEOF
11531 if ac_fn_c_try_compile "$LINENO"; then :
11532 break
11533fi
11534rm -f core conftest.err conftest.$ac_objext
11535 CC="$CC -n32"
11536 if ac_fn_c_try_compile "$LINENO"; then :
11537 ac_cv_sys_largefile_CC=' -n32'; break
11538fi
11539rm -f core conftest.err conftest.$ac_objext
11540 break
11541 done
11542 CC=$ac_save_CC
11543 rm -f conftest.$ac_ext
11544 fi
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11547$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11548 if test "$ac_cv_sys_largefile_CC" != no; then
11549 CC=$CC$ac_cv_sys_largefile_CC
11550 fi
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11553$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11554if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556else
11557 while :; do
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h. */
11560#include <sys/types.h>
11561 /* Check that off_t can represent 2**63 - 1 correctly.
11562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11563 since some C++ compilers masquerading as C compilers
11564 incorrectly reject 9223372036854775807. */
11565#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11567 && LARGE_OFF_T % 2147483647 == 1)
11568 ? 1 : -1];
11569int
11570main ()
11571{
11572
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_compile "$LINENO"; then :
11578 ac_cv_sys_file_offset_bits=no; break
11579fi
11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h. */
11583#define _FILE_OFFSET_BITS 64
11584#include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587 since some C++ compilers masquerading as C compilers
11588 incorrectly reject 9223372036854775807. */
11589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591 && LARGE_OFF_T % 2147483647 == 1)
11592 ? 1 : -1];
11593int
11594main ()
11595{
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_sys_file_offset_bits=64; break
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 ac_cv_sys_file_offset_bits=unknown
11606 break
11607done
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11610$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11611case $ac_cv_sys_file_offset_bits in #(
11612 no | unknown) ;;
11613 *)
11614cat >>confdefs.h <<_ACEOF
11615#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11616_ACEOF
11617;;
11618esac
11619rm -rf conftest*
11620 if test $ac_cv_sys_file_offset_bits = unknown; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11622$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11623if test "${ac_cv_sys_large_files+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625else
11626 while :; do
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h. */
11629#include <sys/types.h>
11630 /* Check that off_t can represent 2**63 - 1 correctly.
11631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11632 since some C++ compilers masquerading as C compilers
11633 incorrectly reject 9223372036854775807. */
11634#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11636 && LARGE_OFF_T % 2147483647 == 1)
11637 ? 1 : -1];
11638int
11639main ()
11640{
11641
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646if ac_fn_c_try_compile "$LINENO"; then :
11647 ac_cv_sys_large_files=no; break
11648fi
11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h. */
11652#define _LARGE_FILES 1
11653#include <sys/types.h>
11654 /* Check that off_t can represent 2**63 - 1 correctly.
11655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11656 since some C++ compilers masquerading as C compilers
11657 incorrectly reject 9223372036854775807. */
11658#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11660 && LARGE_OFF_T % 2147483647 == 1)
11661 ? 1 : -1];
11662int
11663main ()
11664{
11665
11666 ;
11667 return 0;
11668}
11669_ACEOF
11670if ac_fn_c_try_compile "$LINENO"; then :
11671 ac_cv_sys_large_files=1; break
11672fi
11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 ac_cv_sys_large_files=unknown
11675 break
11676done
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11679$as_echo "$ac_cv_sys_large_files" >&6; }
11680case $ac_cv_sys_large_files in #(
11681 no | unknown) ;;
11682 *)
11683cat >>confdefs.h <<_ACEOF
11684#define _LARGE_FILES $ac_cv_sys_large_files
11685_ACEOF
11686;;
11687esac
11688rm -rf conftest*
11689 fi
11690fi
11691
11692
ecd3459e 11693backtrace_supported=yes
11694
11695if test -n "${with_target_subdir}"; then
11696 # We are compiling a GCC library. We can assume that the unwind
11697 # library exists.
ecd3459e 11698 BACKTRACE_FILE="backtrace.lo simple.lo"
11699else
11700 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11701if test "x$ac_cv_header_unwind_h" = x""yes; then :
11702 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11703if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11704 BACKTRACE_FILE="backtrace.lo simple.lo"
11705else
11706 BACKTRACE_FILE="nounwind.lo"
11707 backtrace_supported=no
11708fi
11709
11710else
11711 BACKTRACE_FILE="nounwind.lo"
11712 backtrace_supported=no
11713fi
11714
11715
11716fi
11717
11718
536b8dd3 11719EXTRA_FLAGS=
ff2fe13c 11720if test -n "${with_target_subdir}"; then
a7ebc02e 11721 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
ff2fe13c 11722else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11724$as_echo_n "checking for -funwind-tables option... " >&6; }
11725if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11727else
11728 CFLAGS_hold="$CFLAGS"
11729 CFLAGS="$CFLAGS -funwind-tables"
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731/* end confdefs.h. */
11732static int f() { return 0; }
11733int
11734main ()
11735{
11736return f();
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_compile "$LINENO"; then :
11742 libbacktrace_cv_c_unwind_tables=yes
11743else
11744 libbacktrace_cv_c_unwind_tables=no
11745fi
11746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 CFLAGS="$CFLAGS_hold"
11748fi
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11750$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
a7ebc02e 11751 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11752 EXTRA_FLAGS=-funwind-tables
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11755$as_echo_n "checking for -frandom-seed=string option... " >&6; }
11756if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758else
11759 CFLAGS_hold="$CFLAGS"
11760 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762/* end confdefs.h. */
11763
11764int
11765main ()
11766{
11767return 0;
11768 ;
11769 return 0;
11770}
11771_ACEOF
11772if ac_fn_c_try_compile "$LINENO"; then :
11773 libbacktrace_cv_c_random_seed_string=yes
11774else
11775 libbacktrace_cv_c_random_seed_string=no
11776fi
11777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 CFLAGS="$CFLAGS_hold"
11779fi
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11781$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11782 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11783 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11784 fi
536b8dd3 11785fi
11786
11787
de04a87e 11788ac_ext=c
11789ac_cpp='$CPP $CPPFLAGS'
11790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
ecd3459e 11794WARN_FLAGS=
11795save_CFLAGS="$CFLAGS"
11796for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11797 -Wmissing-prototypes -Wold-style-definition \
11798 -Wmissing-format-attribute -Wcast-qual; do
11799 # Do the check with the no- prefix removed since gcc silently
11800 # accepts any -Wno-* option on purpose
11801 case $real_option in
11802 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11803 *) option=$real_option ;;
11804 esac
11805 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11808$as_echo_n "checking whether $CC supports $option... " >&6; }
11809if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11810 $as_echo_n "(cached) " >&6
11811else
11812 CFLAGS="$option"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824if ac_fn_c_try_compile "$LINENO"; then :
11825 eval "$as_acx_Woption=yes"
11826else
11827 eval "$as_acx_Woption=no"
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830
11831fi
11832eval ac_res=\$$as_acx_Woption
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11834$as_echo "$ac_res" >&6; }
11835 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11836 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11837fi
11838 done
11839CFLAGS="$save_CFLAGS"
de04a87e 11840ac_ext=c
11841ac_cpp='$CPP $CPPFLAGS'
11842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11844ac_compiler_gnu=$ac_cv_c_compiler_gnu
11845
ecd3459e 11846
11847
47b4f489 11848if test -n "${with_target_subdir}"; then
ecd3459e 11849 WARN_FLAGS="$WARN_FLAGS -Werror"
11850fi
11851
11852
11853
837eabff 11854if test -n "${with_target_subdir}"; then
ecd3459e 11855
11856
11857# Check whether --with-system-libunwind was given.
11858if test "${with_system_libunwind+set}" = set; then :
11859 withval=$with_system_libunwind;
11860fi
11861
11862 # If system-libunwind was not specifically set, pick a default setting.
11863 if test x$with_system_libunwind = x; then
11864 case ${target} in
11865 ia64-*-hpux*) with_system_libunwind=yes ;;
11866 *) with_system_libunwind=no ;;
11867 esac
11868 fi
11869 # Based on system-libunwind and target, do we have ipinfo?
11870 if test x$with_system_libunwind = xyes; then
11871 case ${target} in
11872 ia64-*-*) have_unwind_getipinfo=no ;;
11873 *) have_unwind_getipinfo=yes ;;
11874 esac
11875 else
11876 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11877
11878 case ${target} in
11879 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11880 *) have_unwind_getipinfo=yes ;;
11881 esac
11882
11883 fi
11884
11885 if test x$have_unwind_getipinfo = xyes; then
11886
11887$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11888
11889 fi
11890
837eabff 11891else
a4a5a77a 11892 ac_save_CFFLAGS="$CFLAGS"
11893 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11895$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h. */
11898#include "unwind.h"
11899 struct _Unwind_Context *context;
11900 int ip_before_insn = 0;
11901int
11902main ()
11903{
11904return _Unwind_GetIPInfo (context, &ip_before_insn);
11905 ;
11906 return 0;
11907}
11908_ACEOF
2ee407b0 11909if ac_fn_c_try_link "$LINENO"; then :
837eabff 11910 have_unwind_getipinfo=yes
11911else
11912 have_unwind_getipinfo=no
11913fi
2ee407b0 11914rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
a4a5a77a 11916 CFLAGS="$ac_save_CFLAGS"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11918$as_echo "$have_unwind_getipinfo" >&6; }
837eabff 11919 if test "$have_unwind_getipinfo" = "yes"; then
11920
11921$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11922
11923 fi
11924fi
ecd3459e 11925
d0724418 11926# Enable --enable-host-shared.
2bd17377 11927# Check whether --enable-host-shared was given.
11928if test "${enable_host_shared+set}" = set; then :
11929 enableval=$enable_host_shared; PIC_FLAG=-fPIC
d0724418 11930else
11931 PIC_FLAG=
2bd17377 11932fi
11933
ecd3459e 11934
11935
11936# Test for __sync support.
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11938$as_echo_n "checking __sync extensions... " >&6; }
11939if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941else
11942 if test -n "${with_target_subdir}"; then
ab861c80 11943 case "${host}" in
11944 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11945 *) libbacktrace_cv_sys_sync=yes ;;
11946 esac
ecd3459e 11947 else
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949/* end confdefs.h. */
11950int i;
11951int
11952main ()
11953{
11954__sync_bool_compare_and_swap (&i, i, i);
11955 __sync_lock_test_and_set (&i, 1);
11956 __sync_lock_release (&i);
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then :
11962 libbacktrace_cv_sys_sync=yes
11963else
11964 libbacktrace_cv_sys_sync=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 fi
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11971$as_echo "$libbacktrace_cv_sys_sync" >&6; }
11972BACKTRACE_SUPPORTS_THREADS=0
11973if test "$libbacktrace_cv_sys_sync" = "yes"; then
11974 BACKTRACE_SUPPORTS_THREADS=1
11975
11976$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11977
11978fi
11979
11980
bcafb4a8 11981# Test for __atomic support.
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11983$as_echo_n "checking __atomic extensions... " >&6; }
11984if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986else
11987 if test -n "${with_target_subdir}"; then
11988 libbacktrace_cv_sys_atomic=yes
11989 else
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
11992int i;
11993int
11994main ()
11995{
11996__atomic_load_n (&i, __ATOMIC_ACQUIRE);
11997 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_link "$LINENO"; then :
12003 libbacktrace_cv_sys_atomic=yes
12004else
12005 libbacktrace_cv_sys_atomic=no
12006fi
12007rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 fi
12010fi
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12012$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12013if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12014
12015$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12016
12017fi
12018
ecd3459e 12019# The library needs to be able to read the executable itself. Compile
12020# a file to determine the executable format. The awk script
12021# filetype.awk prints out the file type.
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12023$as_echo_n "checking output filetype... " >&6; }
12024if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12026else
12027 filetype=
12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029/* end confdefs.h. */
12030int i;
12031int
12032main ()
12033{
12034int j;
12035 ;
12036 return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_compile "$LINENO"; then :
12040 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12041else
12042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12044as_fn_error "compiler failed
12045See \`config.log' for more details." "$LINENO" 5; }
12046fi
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048libbacktrace_cv_sys_filetype=$filetype
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12051$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12052
12053# Match the file type to decide what files to compile.
12054FORMAT_FILE=
48ee217e 12055backtrace_supports_data=yes
ecd3459e 12056case "$libbacktrace_cv_sys_filetype" in
12057elf*) FORMAT_FILE="elf.lo" ;;
48ee217e 12058pecoff) FORMAT_FILE="pecoff.lo"
12059 backtrace_supports_data=no
12060 ;;
0a83c23a 12061xcoff*) FORMAT_FILE="xcoff.lo"
12062 backtrace_supports_data=no
12063 ;;
ecd3459e 12064*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12065$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12066 FORMAT_FILE="unknown.lo"
12067 backtrace_supported=no
12068 ;;
12069esac
12070
12071
12072# ELF defines.
12073elfsize=
12074case "$libbacktrace_cv_sys_filetype" in
12075elf32) elfsize=32 ;;
12076elf64) elfsize=64 ;;
48ee217e 12077*) elfsize=unused
ecd3459e 12078esac
12079
12080cat >>confdefs.h <<_ACEOF
12081#define BACKTRACE_ELF_SIZE $elfsize
12082_ACEOF
12083
12084
0a83c23a 12085# XCOFF defines.
12086xcoffsize=
12087case "$libbacktrace_cv_sys_filetype" in
12088xcoff32) xcoffsize=32 ;;
12089xcoff64) xcoffsize=64 ;;
12090*) xcoffsize=unused
12091esac
12092
12093cat >>confdefs.h <<_ACEOF
12094#define BACKTRACE_XCOFF_SIZE $xcoffsize
12095_ACEOF
12096
12097
ecd3459e 12098BACKTRACE_SUPPORTED=0
12099if test "$backtrace_supported" = "yes"; then
12100 BACKTRACE_SUPPORTED=1
12101fi
12102
12103
48ee217e 12104BACKTRACE_SUPPORTS_DATA=0
12105if test "$backtrace_supports_data" = "yes"; then
12106 BACKTRACE_SUPPORTS_DATA=1
12107fi
12108
12109
b945b61c 12110
12111
12112inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12113
12114acx_cv_header_stdint=stddef.h
12115acx_cv_header_stdint_kind="(already complete)"
12116for i in stdint.h $inttype_headers; do
12117 unset ac_cv_type_uintptr_t
12118 unset ac_cv_type_uintmax_t
12119 unset ac_cv_type_int_least32_t
12120 unset ac_cv_type_int_fast32_t
12121 unset ac_cv_type_uint64_t
12122 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12123 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12124#include <$i>
12125"
12126if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12127 acx_cv_header_stdint=$i
12128else
12129 continue
12130fi
12131
12132 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12133#include <$i>
12134"
12135if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12136
12137else
12138 acx_cv_header_stdint_kind="(mostly complete)"
12139fi
12140
12141 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12142#include <$i>
12143"
12144if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12145
12146else
12147 acx_cv_header_stdint_kind="(mostly complete)"
12148fi
12149
12150 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12151#include <$i>
12152"
12153if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12154
12155else
12156 acx_cv_header_stdint_kind="(mostly complete)"
12157fi
12158
12159 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12160#include <$i>
12161"
12162if test "x$ac_cv_type_uint64_t" = x""yes; then :
12163
12164else
12165 acx_cv_header_stdint_kind="(lacks uint64_t)"
12166fi
12167
12168 break
12169done
12170if test "$acx_cv_header_stdint" = stddef.h; then
12171 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12172 for i in stdint.h $inttype_headers; do
12173 unset ac_cv_type_uintptr_t
12174 unset ac_cv_type_uint32_t
12175 unset ac_cv_type_uint64_t
12176 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12177 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12178#include <$i>
12179"
12180if test "x$ac_cv_type_uint32_t" = x""yes; then :
12181 acx_cv_header_stdint=$i
12182else
12183 continue
12184fi
12185
12186 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12187#include <$i>
12188"
12189if test "x$ac_cv_type_uint64_t" = x""yes; then :
12190
12191fi
12192
12193 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12194#include <$i>
12195"
12196if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12197
12198fi
12199
12200 break
12201 done
12202fi
12203if test "$acx_cv_header_stdint" = stddef.h; then
12204 acx_cv_header_stdint_kind="(u_intXX_t style)"
12205 for i in sys/types.h $inttype_headers; do
12206 unset ac_cv_type_u_int32_t
12207 unset ac_cv_type_u_int64_t
12208 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12209 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12210#include <$i>
12211"
12212if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12213 acx_cv_header_stdint=$i
12214else
12215 continue
12216fi
12217
12218 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12219#include <$i>
12220"
12221if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12222
12223fi
12224
12225 break
12226 done
12227fi
12228if test "$acx_cv_header_stdint" = stddef.h; then
12229 acx_cv_header_stdint_kind="(using manual detection)"
12230fi
12231
12232test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12233test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12234test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12235test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12236test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12237
12238# ----------------- Summarize what we found so far
12239
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12241$as_echo_n "checking what to include in gstdint.h... " >&6; }
12242
12243case `$as_basename -- gstdint.h ||
12244$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12245 Xgstdint.h : 'X\(//\)$' \| \
12246 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12247$as_echo X/gstdint.h |
12248 sed '/^.*\/\([^/][^/]*\)\/*$/{
12249 s//\1/
12250 q
12251 }
12252 /^X\/\(\/\/\)$/{
12253 s//\1/
12254 q
12255 }
12256 /^X\/\(\/\).*/{
12257 s//\1/
12258 q
12259 }
12260 s/.*/./; q'` in
12261 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12262$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12263 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12264$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12265 *) ;;
12266esac
12267
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12269$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12270
12271# ----------------- done included file, check C basic types --------
12272
12273# Lacking an uintptr_t? Test size of void *
12274case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12275 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12278# This bug is HP SR number 8606223364.
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12280$as_echo_n "checking size of void *... " >&6; }
12281if test "${ac_cv_sizeof_void_p+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283else
12284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12285
12286else
12287 if test "$ac_cv_type_void_p" = yes; then
12288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290{ as_fn_set_status 77
12291as_fn_error "cannot compute sizeof (void *)
12292See \`config.log' for more details." "$LINENO" 5; }; }
12293 else
12294 ac_cv_sizeof_void_p=0
12295 fi
12296fi
12297
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12300$as_echo "$ac_cv_sizeof_void_p" >&6; }
12301
12302
12303
12304cat >>confdefs.h <<_ACEOF
12305#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12306_ACEOF
12307
12308 ;;
12309esac
12310
12311# Lacking an uint64_t? Test size of long
12312case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12313 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12316# This bug is HP SR number 8606223364.
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12318$as_echo_n "checking size of long... " >&6; }
12319if test "${ac_cv_sizeof_long+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12321else
12322 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12323
12324else
12325 if test "$ac_cv_type_long" = yes; then
12326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12328{ as_fn_set_status 77
12329as_fn_error "cannot compute sizeof (long)
12330See \`config.log' for more details." "$LINENO" 5; }; }
12331 else
12332 ac_cv_sizeof_long=0
12333 fi
12334fi
12335
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12338$as_echo "$ac_cv_sizeof_long" >&6; }
12339
12340
12341
12342cat >>confdefs.h <<_ACEOF
12343#define SIZEOF_LONG $ac_cv_sizeof_long
12344_ACEOF
12345
12346 ;;
12347esac
12348
12349if test $acx_cv_header_stdint = stddef.h; then
12350 # Lacking a good header? Test size of everything and deduce all types.
12351 # The cast to long int works around a bug in the HP C Compiler
12352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12354# This bug is HP SR number 8606223364.
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12356$as_echo_n "checking size of int... " >&6; }
12357if test "${ac_cv_sizeof_int+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359else
12360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12361
12362else
12363 if test "$ac_cv_type_int" = yes; then
12364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12366{ as_fn_set_status 77
12367as_fn_error "cannot compute sizeof (int)
12368See \`config.log' for more details." "$LINENO" 5; }; }
12369 else
12370 ac_cv_sizeof_int=0
12371 fi
12372fi
12373
12374fi
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12376$as_echo "$ac_cv_sizeof_int" >&6; }
12377
12378
12379
12380cat >>confdefs.h <<_ACEOF
12381#define SIZEOF_INT $ac_cv_sizeof_int
12382_ACEOF
12383
12384
12385 # The cast to long int works around a bug in the HP C Compiler
12386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12388# This bug is HP SR number 8606223364.
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12390$as_echo_n "checking size of short... " >&6; }
12391if test "${ac_cv_sizeof_short+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12393else
12394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12395
12396else
12397 if test "$ac_cv_type_short" = yes; then
12398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12400{ as_fn_set_status 77
12401as_fn_error "cannot compute sizeof (short)
12402See \`config.log' for more details." "$LINENO" 5; }; }
12403 else
12404 ac_cv_sizeof_short=0
12405 fi
12406fi
12407
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12410$as_echo "$ac_cv_sizeof_short" >&6; }
12411
12412
12413
12414cat >>confdefs.h <<_ACEOF
12415#define SIZEOF_SHORT $ac_cv_sizeof_short
12416_ACEOF
12417
12418
12419 # The cast to long int works around a bug in the HP C Compiler
12420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12422# This bug is HP SR number 8606223364.
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12424$as_echo_n "checking size of char... " >&6; }
12425if test "${ac_cv_sizeof_char+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
12427else
12428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12429
12430else
12431 if test "$ac_cv_type_char" = yes; then
12432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12434{ as_fn_set_status 77
12435as_fn_error "cannot compute sizeof (char)
12436See \`config.log' for more details." "$LINENO" 5; }; }
12437 else
12438 ac_cv_sizeof_char=0
12439 fi
12440fi
12441
12442fi
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12444$as_echo "$ac_cv_sizeof_char" >&6; }
12445
12446
12447
12448cat >>confdefs.h <<_ACEOF
12449#define SIZEOF_CHAR $ac_cv_sizeof_char
12450_ACEOF
12451
12452
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12455$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12456 case "$ac_cv_sizeof_char" in
12457 1) acx_cv_type_int8_t=char ;;
12458 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12459 esac
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12461$as_echo "$acx_cv_type_int8_t" >&6; }
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12464$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12465 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12466 2:*) acx_cv_type_int16_t=int ;;
12467 *:2) acx_cv_type_int16_t=short ;;
12468 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12469 esac
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12471$as_echo "$acx_cv_type_int16_t" >&6; }
12472
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12474$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12475 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12476 4:*) acx_cv_type_int32_t=int ;;
12477 *:4) acx_cv_type_int32_t=long ;;
12478 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12479 esac
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12481$as_echo "$acx_cv_type_int32_t" >&6; }
12482fi
12483
12484# These tests are here to make the output prettier
12485
12486if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12487 case "$ac_cv_sizeof_long" in
12488 8) acx_cv_type_int64_t=long ;;
12489 esac
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12491$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12493$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12494fi
12495
12496# Now we can use the above types
12497
12498if test "$ac_cv_type_uintptr_t" != yes; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12500$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12501 case $ac_cv_sizeof_void_p in
12502 2) acx_cv_type_intptr_t=int16_t ;;
12503 4) acx_cv_type_intptr_t=int32_t ;;
12504 8) acx_cv_type_intptr_t=int64_t ;;
12505 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12506 esac
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12508$as_echo "$acx_cv_type_intptr_t" >&6; }
12509fi
12510
12511# ----------------- done all checks, emit header -------------
12512ac_config_commands="$ac_config_commands gstdint.h"
12513
12514
12515
12516
ecd3459e 12517for ac_header in sys/mman.h
12518do :
12519 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12520if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12521 cat >>confdefs.h <<_ACEOF
12522#define HAVE_SYS_MMAN_H 1
12523_ACEOF
12524
12525fi
12526
12527done
12528
12529if test "$ac_cv_header_sys_mman_h" = "no"; then
12530 have_mmap=no
12531else
12532 if test -n "${with_target_subdir}"; then
12533 # When built as a GCC target library, we can't do a link test. We
12534 # simply assume that if we have mman.h, we have mmap.
12535 have_mmap=yes
de04a87e 12536 case "${host}" in
b767924b 12537 spu-*-*|*-*-msdosdjgpp)
de04a87e 12538 # The SPU does not have mmap, but it has a sys/mman.h header file
12539 # containing "mmap_eaddr" and the mmap flags, confusing the test.
b767924b 12540 # DJGPP also has sys/man.h, but no mmap
de04a87e 12541 have_mmap=no ;;
12542 esac
ecd3459e 12543 else
12544 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12545if test "x$ac_cv_func_mmap" = x""yes; then :
12546 have_mmap=yes
12547else
12548 have_mmap=no
12549fi
12550
12551 fi
12552fi
12553if test "$have_mmap" = "no"; then
12554 VIEW_FILE=read.lo
12555 ALLOC_FILE=alloc.lo
12556else
12557 VIEW_FILE=mmapio.lo
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h. */
12560
12561#include <sys/mman.h>
12562#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12563 #error no MAP_ANONYMOUS
12564#endif
12565
12566_ACEOF
12567if ac_fn_c_try_cpp "$LINENO"; then :
12568 ALLOC_FILE=mmap.lo
12569else
12570 ALLOC_FILE=alloc.lo
12571fi
12572rm -f conftest.err conftest.$ac_ext
12573fi
12574
12575
12576
12577BACKTRACE_USES_MALLOC=0
12578if test "$ALLOC_FILE" = "alloc.lo"; then
12579 BACKTRACE_USES_MALLOC=1
12580fi
12581
12582
1bfb5d87 12583# Check for dl_iterate_phdr.
12584for ac_header in link.h
12585do :
12586 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12587if test "x$ac_cv_header_link_h" = x""yes; then :
12588 cat >>confdefs.h <<_ACEOF
12589#define HAVE_LINK_H 1
12590_ACEOF
12591
12592fi
12593
12594done
12595
12596if test "$ac_cv_header_link_h" = "no"; then
12597 have_dl_iterate_phdr=no
12598else
12599 if test -n "${with_target_subdir}"; then
12600 # When built as a GCC target library, we can't do a link test.
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h. */
12603#include <link.h>
12604
12605_ACEOF
12606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12607 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12608 have_dl_iterate_phdr=yes
12609else
12610 have_dl_iterate_phdr=no
12611fi
12612rm -f conftest*
12613
90de4704 12614 case "${host}" in
12615 *-*-solaris2.10*)
12616 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12617 # header file but is only in -ldl.
12618 have_dl_iterate_phdr=no ;;
12619 esac
1bfb5d87 12620 else
12621 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12622if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12623 have_dl_iterate_phdr=yes
12624else
12625 have_dl_iterate_phdr=no
12626fi
12627
12628 fi
12629fi
12630if test "$have_dl_iterate_phdr" = "yes"; then
12631
12632$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12633
12634fi
12635
0a83c23a 12636# Check for loadquery.
12637for ac_header in sys/ldr.h
12638do :
12639 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12640if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12641 cat >>confdefs.h <<_ACEOF
12642#define HAVE_SYS_LDR_H 1
12643_ACEOF
12644
12645fi
12646
12647done
12648
12649if test "$ac_cv_header_sys_ldr_h" = "no"; then
12650 have_loadquery=no
12651else
12652 if test -n "${with_target_subdir}"; then
12653 # When built as a GCC target library, we can't do a link test.
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655/* end confdefs.h. */
12656#include <sys/ldr.h>
12657
12658_ACEOF
12659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660 $EGREP "loadquery" >/dev/null 2>&1; then :
12661 have_loadquery=yes
12662else
12663 have_loadquery=no
12664fi
12665rm -f conftest*
12666
12667 else
12668 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12669if test "x$ac_cv_func_loadquery" = x""yes; then :
12670 have_loadquery=yes
12671else
12672 have_loadquery=no
12673fi
12674
12675 fi
12676fi
12677if test "$have_loadquery" = "yes"; then
12678
12679$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12680
12681fi
12682
7341e544 12683# Check for the fcntl function.
12684if test -n "${with_target_subdir}"; then
12685 case "${host}" in
12686 *-*-mingw*) have_fcntl=no ;;
b2d409ee 12687 spu-*-*) have_fcntl=no ;;
7341e544 12688 *) have_fcntl=yes ;;
12689 esac
12690else
12691 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12692if test "x$ac_cv_func_fcntl" = x""yes; then :
12693 have_fcntl=yes
12694else
12695 have_fcntl=no
12696fi
12697
12698fi
12699if test "$have_fcntl" = "yes"; then
12700
12701$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12702
12703fi
12704
5f7c240f 12705ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12706if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12707 ac_have_decl=1
12708else
12709 ac_have_decl=0
12710fi
12711
12712cat >>confdefs.h <<_ACEOF
12713#define HAVE_DECL_STRNLEN $ac_have_decl
12714_ACEOF
12715
7b3574e4 12716for ac_func in lstat readlink
12717do :
12718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12720eval as_val=\$$as_ac_var
12721 if test "x$as_val" = x""yes; then :
12722 cat >>confdefs.h <<_ACEOF
12723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12724_ACEOF
12725
12726fi
12727done
12728
5f7c240f 12729
686b3772 12730# Check for getexecname function.
12731if test -n "${with_target_subdir}"; then
12732 case "${host}" in
12733 *-*-solaris2*) have_getexecname=yes ;;
12734 *) have_getexecname=no ;;
12735 esac
12736else
12737 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12738if test "x$ac_cv_func_getexecname" = x""yes; then :
12739 have_getexecname=yes
12740else
12741 have_getexecname=no
12742fi
12743
12744fi
12745if test "$have_getexecname" = "yes"; then
12746
12747$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12748
12749fi
12750
c476d11e 12751# Check for the clock_gettime function.
12752for ac_func in clock_gettime
12753do :
12754 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12755if test "x$ac_cv_func_clock_gettime" = x""yes; then :
12756 cat >>confdefs.h <<_ACEOF
12757#define HAVE_CLOCK_GETTIME 1
12758_ACEOF
12759
12760fi
12761done
12762
0b986d3d 12763clock_gettime_link=
12764# At least for glibc, clock_gettime is in librt. But don't
12765# pull that in if it still doesn't give us the function we want. This
12766# test is copied from libgomp, and modified to not link in -lrt as
12767# we're using this for test timing only.
12768if test "$ac_cv_func_clock_gettime" = no; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12770$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12771if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773else
12774 ac_check_lib_save_LIBS=$LIBS
12775LIBS="-lrt $LIBS"
12776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777/* end confdefs.h. */
12778
12779/* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782#ifdef __cplusplus
12783extern "C"
12784#endif
12785char clock_gettime ();
12786int
12787main ()
12788{
12789return clock_gettime ();
12790 ;
12791 return 0;
12792}
12793_ACEOF
12794if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_rt_clock_gettime=yes
12796else
12797 ac_cv_lib_rt_clock_gettime=no
12798fi
12799rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801LIBS=$ac_check_lib_save_LIBS
12802fi
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12804$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12805if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
12806 clock_gettime_link=-lrt
12807
12808$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12809
12810fi
12811
12812fi
12813
c476d11e 12814
3be33b09 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12816$as_echo_n "checking whether -pthread is supported... " >&6; }
12817if test "${libgo_cv_lib_pthread+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819else
12820 CFLAGS_hold=$CFLAGS
12821CFLAGS="$CFLAGS -pthread"
12822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h. */
12824int i;
12825_ACEOF
12826if ac_fn_c_try_compile "$LINENO"; then :
12827 libgo_cv_lib_pthread=yes
12828else
12829 libgo_cv_lib_pthread=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832CFLAGS=$CFLAGS_hold
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12835$as_echo "$libgo_cv_lib_pthread" >&6; }
12836PTHREAD_CFLAGS=
12837if test "$libgo_cv_lib_pthread" = yes; then
12838 PTHREAD_CFLAGS=-pthread
12839fi
12840
12841
12842 if test "$libgo_cv_lib_pthread" = yes; then
12843 HAVE_PTHREAD_TRUE=
12844 HAVE_PTHREAD_FALSE='#'
12845else
12846 HAVE_PTHREAD_TRUE='#'
12847 HAVE_PTHREAD_FALSE=
12848fi
12849
12850
1fffcf69 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
12852$as_echo_n "checking for compress in -lz... " >&6; }
12853if test "${ac_cv_lib_z_compress+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855else
12856 ac_check_lib_save_LIBS=$LIBS
12857LIBS="-lz $LIBS"
12858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h. */
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char compress ();
12868int
12869main ()
12870{
12871return compress ();
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_link "$LINENO"; then :
12877 ac_cv_lib_z_compress=yes
12878else
12879 ac_cv_lib_z_compress=no
12880fi
12881rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883LIBS=$ac_check_lib_save_LIBS
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
12886$as_echo "$ac_cv_lib_z_compress" >&6; }
12887if test "x$ac_cv_lib_z_compress" = x""yes; then :
12888 cat >>confdefs.h <<_ACEOF
12889#define HAVE_LIBZ 1
12890_ACEOF
12891
12892 LIBS="-lz $LIBS"
12893
12894fi
12895
12896if test $ac_cv_lib_z_compress = "yes"; then
12897
12898$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12899
12900fi
12901 if test "$ac_cv_lib_z_compress" = yes; then
12902 HAVE_ZLIB_TRUE=
12903 HAVE_ZLIB_FALSE='#'
12904else
12905 HAVE_ZLIB_TRUE='#'
12906 HAVE_ZLIB_FALSE=
12907fi
12908
12909
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
12911$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
12912if test "${libgo_cv_ld_compress+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914else
12915 LDFLAGS_hold=$LDFLAGS
12916LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
12917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h. */
12919
12920int
12921main ()
12922{
12923
12924 ;
12925 return 0;
12926}
12927_ACEOF
12928if ac_fn_c_try_link "$LINENO"; then :
12929 libgo_cv_ld_compress=yes
12930else
12931 libgo_cv_ld_compress=no
12932fi
12933rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935LDFLAGS=$LDFLAGS_hold
12936fi
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
12938$as_echo "$libgo_cv_ld_compress" >&6; }
12939 if test "$libgo_cv_ld_compress" = yes; then
12940 HAVE_COMPRESSED_DEBUG_TRUE=
12941 HAVE_COMPRESSED_DEBUG_FALSE='#'
12942else
12943 HAVE_COMPRESSED_DEBUG_TRUE='#'
12944 HAVE_COMPRESSED_DEBUG_FALSE=
12945fi
12946
12947
b919941e 12948
12949# Extract the first word of "objcopy", so it can be a program name with args.
12950set dummy objcopy; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955else
12956 if test -n "$OBJCOPY"; then
12957 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12958else
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966 ac_cv_prog_OBJCOPY="objcopy"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970done
12971 done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976OBJCOPY=$ac_cv_prog_OBJCOPY
12977if test -n "$OBJCOPY"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12979$as_echo "$OBJCOPY" >&6; }
12980else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
12987$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
12988if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12990else
12991 if test -n "${with_target_subdir}"; then
12992 libbacktrace_cv_objcopy_debuglink=no
12993elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
12994 rm -f /tmp/ls$$
12995 libbacktrace_cv_objcopy_debuglink=yes
12996else
12997 libbacktrace_cv_objcopy_debuglink=no
12998fi
12999fi
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13001$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13002 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13003 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13004 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13005else
13006 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13007 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13008fi
13009
13010
ecd3459e 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13012$as_echo_n "checking whether tests can run... " >&6; }
13013if test "${libbacktrace_cv_sys_native+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13015else
13016 if test "$cross_compiling" = yes; then :
13017 libbacktrace_cv_sys_native=no
13018else
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h. */
13021
13022int
13023main ()
13024{
13025return 0;
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030if ac_fn_c_try_run "$LINENO"; then :
13031 libbacktrace_cv_sys_native=yes
13032else
13033 libbacktrace_cv_sys_native=no
13034fi
13035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13036 conftest.$ac_objext conftest.beam conftest.$ac_ext
13037fi
13038
13039fi
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13041$as_echo "$libbacktrace_cv_sys_native" >&6; }
13042 if test "$libbacktrace_cv_sys_native" = "yes"; then
13043 NATIVE_TRUE=
13044 NATIVE_FALSE='#'
13045else
13046 NATIVE_TRUE='#'
13047 NATIVE_FALSE=
13048fi
13049
13050
13051if test "${multilib}" = "yes"; then
13052 multilib_arg="--enable-multilib"
13053else
13054 multilib_arg=
13055fi
13056
13057ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13058
13059
13060# We need multilib support, but only if configuring for the target.
13061ac_config_commands="$ac_config_commands default"
13062
13063
13064cat >confcache <<\_ACEOF
13065# This file is a shell script that caches the results of configure
13066# tests run on this system so they can be shared between configure
13067# scripts and configure runs, see configure's option --config-cache.
13068# It is not useful on other systems. If it contains results you don't
13069# want to keep, you may remove or edit it.
13070#
13071# config.status only pays attention to the cache file if you give it
13072# the --recheck option to rerun configure.
13073#
13074# `ac_cv_env_foo' variables (set or unset) will be overridden when
13075# loading this file, other *unset* `ac_cv_foo' will be assigned the
13076# following values.
13077
13078_ACEOF
13079
13080# The following way of writing the cache mishandles newlines in values,
13081# but we know of no workaround that is simple, portable, and efficient.
13082# So, we kill variables containing newlines.
13083# Ultrix sh set writes to stderr and can't be redirected directly,
13084# and sets the high bit in the cache file unless we assign to the vars.
13085(
13086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13087 eval ac_val=\$$ac_var
13088 case $ac_val in #(
13089 *${as_nl}*)
13090 case $ac_var in #(
13091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13093 esac
13094 case $ac_var in #(
13095 _ | IFS | as_nl) ;; #(
13096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13097 *) { eval $ac_var=; unset $ac_var;} ;;
13098 esac ;;
13099 esac
13100 done
13101
13102 (set) 2>&1 |
13103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13104 *${as_nl}ac_space=\ *)
13105 # `set' does not quote correctly, so add quotes: double-quote
13106 # substitution turns \\\\ into \\, and sed turns \\ into \.
13107 sed -n \
13108 "s/'/'\\\\''/g;
13109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13110 ;; #(
13111 *)
13112 # `set' quotes correctly as required by POSIX, so do not add quotes.
13113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13114 ;;
13115 esac |
13116 sort
13117) |
13118 sed '
13119 /^ac_cv_env_/b end
13120 t clear
13121 :clear
13122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13123 t end
13124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13125 :end' >>confcache
13126if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13127 if test -w "$cache_file"; then
13128 test "x$cache_file" != "x/dev/null" &&
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13130$as_echo "$as_me: updating cache $cache_file" >&6;}
13131 cat confcache >$cache_file
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13134$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13135 fi
13136fi
13137rm -f confcache
13138
13139test "x$prefix" = xNONE && prefix=$ac_default_prefix
13140# Let make expand exec_prefix.
13141test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13142
13143DEFS=-DHAVE_CONFIG_H
13144
13145ac_libobjs=
13146ac_ltlibobjs=
13147for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13148 # 1. Remove the extension, and $U if already installed.
13149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13150 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13152 # will be set to the directory where LIBOBJS objects are built.
13153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13155done
13156LIBOBJS=$ac_libobjs
13157
13158LTLIBOBJS=$ac_ltlibobjs
13159
13160
13161 if test -n "$EXEEXT"; then
13162 am__EXEEXT_TRUE=
13163 am__EXEEXT_FALSE='#'
13164else
13165 am__EXEEXT_TRUE='#'
13166 am__EXEEXT_FALSE=
13167fi
13168
13169if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13170 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13171Usually this means the macro was only invoked conditionally." "$LINENO" 5
13172fi
3be33b09 13173if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
13174 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
13175Usually this means the macro was only invoked conditionally." "$LINENO" 5
13176fi
1fffcf69 13177if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
13178 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
13179Usually this means the macro was only invoked conditionally." "$LINENO" 5
13180fi
13181if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
13182 as_fn_error "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
13183Usually this means the macro was only invoked conditionally." "$LINENO" 5
13184fi
b919941e 13185if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
13186 as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
13187Usually this means the macro was only invoked conditionally." "$LINENO" 5
13188fi
ecd3459e 13189if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
13190 as_fn_error "conditional \"NATIVE\" was never defined.
13191Usually this means the macro was only invoked conditionally." "$LINENO" 5
13192fi
13193
13194: ${CONFIG_STATUS=./config.status}
13195ac_write_fail=0
13196ac_clean_files_save=$ac_clean_files
13197ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13199$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13200as_write_fail=0
13201cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13202#! $SHELL
13203# Generated by $as_me.
13204# Run this file to recreate the current configuration.
13205# Compiler output produced by configure, useful for debugging
13206# configure, is in config.log if it exists.
13207
13208debug=false
13209ac_cs_recheck=false
13210ac_cs_silent=false
13211
13212SHELL=\${CONFIG_SHELL-$SHELL}
13213export SHELL
13214_ASEOF
13215cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13216## -------------------- ##
13217## M4sh Initialization. ##
13218## -------------------- ##
13219
13220# Be more Bourne compatible
13221DUALCASE=1; export DUALCASE # for MKS sh
13222if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13223 emulate sh
13224 NULLCMD=:
13225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13226 # is contrary to our usage. Disable this feature.
13227 alias -g '${1+"$@"}'='"$@"'
13228 setopt NO_GLOB_SUBST
13229else
13230 case `(set -o) 2>/dev/null` in #(
13231 *posix*) :
13232 set -o posix ;; #(
13233 *) :
13234 ;;
13235esac
13236fi
13237
13238
13239as_nl='
13240'
13241export as_nl
13242# Printing a long string crashes Solaris 7 /usr/bin/printf.
13243as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13244as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13245as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13246# Prefer a ksh shell builtin over an external printf program on Solaris,
13247# but without wasting forks for bash or zsh.
13248if test -z "$BASH_VERSION$ZSH_VERSION" \
13249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13250 as_echo='print -r --'
13251 as_echo_n='print -rn --'
13252elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13253 as_echo='printf %s\n'
13254 as_echo_n='printf %s'
13255else
13256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13258 as_echo_n='/usr/ucb/echo -n'
13259 else
13260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13261 as_echo_n_body='eval
13262 arg=$1;
13263 case $arg in #(
13264 *"$as_nl"*)
13265 expr "X$arg" : "X\\(.*\\)$as_nl";
13266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13267 esac;
13268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13269 '
13270 export as_echo_n_body
13271 as_echo_n='sh -c $as_echo_n_body as_echo'
13272 fi
13273 export as_echo_body
13274 as_echo='sh -c $as_echo_body as_echo'
13275fi
13276
13277# The user is always right.
13278if test "${PATH_SEPARATOR+set}" != set; then
13279 PATH_SEPARATOR=:
13280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13282 PATH_SEPARATOR=';'
13283 }
13284fi
13285
13286
13287# IFS
13288# We need space, tab and new line, in precisely that order. Quoting is
13289# there to prevent editors from complaining about space-tab.
13290# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13291# splitting by setting IFS to empty value.)
13292IFS=" "" $as_nl"
13293
13294# Find who we are. Look in the path if we contain no directory separator.
13295case $0 in #((
13296 *[\\/]* ) as_myself=$0 ;;
13297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13303 done
13304IFS=$as_save_IFS
13305
13306 ;;
13307esac
13308# We did not find ourselves, most probably we were run as `sh COMMAND'
13309# in which case we are not to be found in the path.
13310if test "x$as_myself" = x; then
13311 as_myself=$0
13312fi
13313if test ! -f "$as_myself"; then
13314 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13315 exit 1
13316fi
13317
13318# Unset variables that we do not need and which cause bugs (e.g. in
13319# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13320# suppresses any "Segmentation fault" message there. '((' could
13321# trigger a bug in pdksh 5.2.14.
13322for as_var in BASH_ENV ENV MAIL MAILPATH
13323do eval test x\${$as_var+set} = xset \
13324 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13325done
13326PS1='$ '
13327PS2='> '
13328PS4='+ '
13329
13330# NLS nuisances.
13331LC_ALL=C
13332export LC_ALL
13333LANGUAGE=C
13334export LANGUAGE
13335
13336# CDPATH.
13337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13338
13339
13340# as_fn_error ERROR [LINENO LOG_FD]
13341# ---------------------------------
13342# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13343# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13344# script with status $?, using 1 if that was 0.
13345as_fn_error ()
13346{
13347 as_status=$?; test $as_status -eq 0 && as_status=1
13348 if test "$3"; then
13349 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13350 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13351 fi
13352 $as_echo "$as_me: error: $1" >&2
13353 as_fn_exit $as_status
13354} # as_fn_error
13355
13356
13357# as_fn_set_status STATUS
13358# -----------------------
13359# Set $? to STATUS, without forking.
13360as_fn_set_status ()
13361{
13362 return $1
13363} # as_fn_set_status
13364
13365# as_fn_exit STATUS
13366# -----------------
13367# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13368as_fn_exit ()
13369{
13370 set +e
13371 as_fn_set_status $1
13372 exit $1
13373} # as_fn_exit
13374
13375# as_fn_unset VAR
13376# ---------------
13377# Portably unset VAR.
13378as_fn_unset ()
13379{
13380 { eval $1=; unset $1;}
13381}
13382as_unset=as_fn_unset
13383# as_fn_append VAR VALUE
13384# ----------------------
13385# Append the text in VALUE to the end of the definition contained in VAR. Take
13386# advantage of any shell optimizations that allow amortized linear growth over
13387# repeated appends, instead of the typical quadratic growth present in naive
13388# implementations.
13389if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13390 eval 'as_fn_append ()
13391 {
13392 eval $1+=\$2
13393 }'
13394else
13395 as_fn_append ()
13396 {
13397 eval $1=\$$1\$2
13398 }
13399fi # as_fn_append
13400
13401# as_fn_arith ARG...
13402# ------------------
13403# Perform arithmetic evaluation on the ARGs, and store the result in the
13404# global $as_val. Take advantage of shells that can avoid forks. The arguments
13405# must be portable across $(()) and expr.
13406if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13407 eval 'as_fn_arith ()
13408 {
13409 as_val=$(( $* ))
13410 }'
13411else
13412 as_fn_arith ()
13413 {
13414 as_val=`expr "$@" || test $? -eq 1`
13415 }
13416fi # as_fn_arith
13417
13418
13419if expr a : '\(a\)' >/dev/null 2>&1 &&
13420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13421 as_expr=expr
13422else
13423 as_expr=false
13424fi
13425
13426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13427 as_basename=basename
13428else
13429 as_basename=false
13430fi
13431
13432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13433 as_dirname=dirname
13434else
13435 as_dirname=false
13436fi
13437
13438as_me=`$as_basename -- "$0" ||
13439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13440 X"$0" : 'X\(//\)$' \| \
13441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13442$as_echo X/"$0" |
13443 sed '/^.*\/\([^/][^/]*\)\/*$/{
13444 s//\1/
13445 q
13446 }
13447 /^X\/\(\/\/\)$/{
13448 s//\1/
13449 q
13450 }
13451 /^X\/\(\/\).*/{
13452 s//\1/
13453 q
13454 }
13455 s/.*/./; q'`
13456
13457# Avoid depending upon Character Ranges.
13458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13461as_cr_digits='0123456789'
13462as_cr_alnum=$as_cr_Letters$as_cr_digits
13463
13464ECHO_C= ECHO_N= ECHO_T=
13465case `echo -n x` in #(((((
13466-n*)
13467 case `echo 'xy\c'` in
13468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13469 xy) ECHO_C='\c';;
13470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13471 ECHO_T=' ';;
13472 esac;;
13473*)
13474 ECHO_N='-n';;
13475esac
13476
13477rm -f conf$$ conf$$.exe conf$$.file
13478if test -d conf$$.dir; then
13479 rm -f conf$$.dir/conf$$.file
13480else
13481 rm -f conf$$.dir
13482 mkdir conf$$.dir 2>/dev/null
13483fi
13484if (echo >conf$$.file) 2>/dev/null; then
13485 if ln -s conf$$.file conf$$ 2>/dev/null; then
13486 as_ln_s='ln -s'
13487 # ... but there are two gotchas:
13488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13490 # In both cases, we have to default to `cp -p'.
13491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13492 as_ln_s='cp -p'
13493 elif ln conf$$.file conf$$ 2>/dev/null; then
13494 as_ln_s=ln
13495 else
13496 as_ln_s='cp -p'
13497 fi
13498else
13499 as_ln_s='cp -p'
13500fi
13501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13502rmdir conf$$.dir 2>/dev/null
13503
13504
13505# as_fn_mkdir_p
13506# -------------
13507# Create "$as_dir" as a directory, including parents if necessary.
13508as_fn_mkdir_p ()
13509{
13510
13511 case $as_dir in #(
13512 -*) as_dir=./$as_dir;;
13513 esac
13514 test -d "$as_dir" || eval $as_mkdir_p || {
13515 as_dirs=
13516 while :; do
13517 case $as_dir in #(
13518 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13519 *) as_qdir=$as_dir;;
13520 esac
13521 as_dirs="'$as_qdir' $as_dirs"
13522 as_dir=`$as_dirname -- "$as_dir" ||
13523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13524 X"$as_dir" : 'X\(//\)[^/]' \| \
13525 X"$as_dir" : 'X\(//\)$' \| \
13526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13527$as_echo X"$as_dir" |
13528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13529 s//\1/
13530 q
13531 }
13532 /^X\(\/\/\)[^/].*/{
13533 s//\1/
13534 q
13535 }
13536 /^X\(\/\/\)$/{
13537 s//\1/
13538 q
13539 }
13540 /^X\(\/\).*/{
13541 s//\1/
13542 q
13543 }
13544 s/.*/./; q'`
13545 test -d "$as_dir" && break
13546 done
13547 test -z "$as_dirs" || eval "mkdir $as_dirs"
13548 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13549
13550
13551} # as_fn_mkdir_p
13552if mkdir -p . 2>/dev/null; then
13553 as_mkdir_p='mkdir -p "$as_dir"'
13554else
13555 test -d ./-p && rmdir ./-p
13556 as_mkdir_p=false
13557fi
13558
13559if test -x / >/dev/null 2>&1; then
13560 as_test_x='test -x'
13561else
13562 if ls -dL / >/dev/null 2>&1; then
13563 as_ls_L_option=L
13564 else
13565 as_ls_L_option=
13566 fi
13567 as_test_x='
13568 eval sh -c '\''
13569 if test -d "$1"; then
13570 test -d "$1/.";
13571 else
13572 case $1 in #(
13573 -*)set "./$1";;
13574 esac;
13575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13576 ???[sx]*):;;*)false;;esac;fi
13577 '\'' sh
13578 '
13579fi
13580as_executable_p=$as_test_x
13581
13582# Sed expression to map a string onto a valid CPP name.
13583as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13584
13585# Sed expression to map a string onto a valid variable name.
13586as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13587
13588
13589exec 6>&1
13590## ----------------------------------- ##
13591## Main body of $CONFIG_STATUS script. ##
13592## ----------------------------------- ##
13593_ASEOF
13594test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13595
13596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597# Save the log message, to keep $0 and so on meaningful, and to
13598# report actual input values of CONFIG_FILES etc. instead of their
13599# values after options handling.
13600ac_log="
13601This file was extended by package-unused $as_me version-unused, which was
13602generated by GNU Autoconf 2.64. Invocation command line was
13603
13604 CONFIG_FILES = $CONFIG_FILES
13605 CONFIG_HEADERS = $CONFIG_HEADERS
13606 CONFIG_LINKS = $CONFIG_LINKS
13607 CONFIG_COMMANDS = $CONFIG_COMMANDS
13608 $ $0 $@
13609
13610on `(hostname || uname -n) 2>/dev/null | sed 1q`
13611"
13612
13613_ACEOF
13614
13615case $ac_config_files in *"
13616"*) set x $ac_config_files; shift; ac_config_files=$*;;
13617esac
13618
13619case $ac_config_headers in *"
13620"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13621esac
13622
13623
13624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13625# Files that config.status was made for.
13626config_files="$ac_config_files"
13627config_headers="$ac_config_headers"
13628config_commands="$ac_config_commands"
13629
13630_ACEOF
13631
13632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633ac_cs_usage="\
13634\`$as_me' instantiates files and other configuration actions
13635from templates according to the current configuration. Unless the files
13636and actions are specified as TAGs, all are instantiated by default.
13637
13638Usage: $0 [OPTION]... [TAG]...
13639
13640 -h, --help print this help, then exit
13641 -V, --version print version number and configuration settings, then exit
13642 -q, --quiet, --silent
13643 do not print progress messages
13644 -d, --debug don't remove temporary files
13645 --recheck update $as_me by reconfiguring in the same conditions
13646 --file=FILE[:TEMPLATE]
13647 instantiate the configuration file FILE
13648 --header=FILE[:TEMPLATE]
13649 instantiate the configuration header FILE
13650
13651Configuration files:
13652$config_files
13653
13654Configuration headers:
13655$config_headers
13656
13657Configuration commands:
13658$config_commands
13659
13660Report bugs to the package provider."
13661
13662_ACEOF
13663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13664ac_cs_version="\\
13665package-unused config.status version-unused
13666configured by $0, generated by GNU Autoconf 2.64,
13667 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13668
13669Copyright (C) 2009 Free Software Foundation, Inc.
13670This config.status script is free software; the Free Software Foundation
13671gives unlimited permission to copy, distribute and modify it."
13672
13673ac_pwd='$ac_pwd'
13674srcdir='$srcdir'
13675INSTALL='$INSTALL'
13676MKDIR_P='$MKDIR_P'
13677AWK='$AWK'
13678test -n "\$AWK" || AWK=awk
13679_ACEOF
13680
13681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13682# The default lists apply if the user does not specify any file.
13683ac_need_defaults=:
13684while test $# != 0
13685do
13686 case $1 in
13687 --*=*)
13688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13690 ac_shift=:
13691 ;;
13692 *)
13693 ac_option=$1
13694 ac_optarg=$2
13695 ac_shift=shift
13696 ;;
13697 esac
13698
13699 case $ac_option in
13700 # Handling of the options.
13701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13702 ac_cs_recheck=: ;;
13703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13704 $as_echo "$ac_cs_version"; exit ;;
13705 --debug | --debu | --deb | --de | --d | -d )
13706 debug=: ;;
13707 --file | --fil | --fi | --f )
13708 $ac_shift
13709 case $ac_optarg in
13710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13711 esac
13712 as_fn_append CONFIG_FILES " '$ac_optarg'"
13713 ac_need_defaults=false;;
13714 --header | --heade | --head | --hea )
13715 $ac_shift
13716 case $ac_optarg in
13717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13718 esac
13719 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13720 ac_need_defaults=false;;
13721 --he | --h)
13722 # Conflict between --help and --header
13723 as_fn_error "ambiguous option: \`$1'
13724Try \`$0 --help' for more information.";;
13725 --help | --hel | -h )
13726 $as_echo "$ac_cs_usage"; exit ;;
13727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13729 ac_cs_silent=: ;;
13730
13731 # This is an error.
13732 -*) as_fn_error "unrecognized option: \`$1'
13733Try \`$0 --help' for more information." ;;
13734
13735 *) as_fn_append ac_config_targets " $1"
13736 ac_need_defaults=false ;;
13737
13738 esac
13739 shift
13740done
13741
13742ac_configure_extra_args=
13743
13744if $ac_cs_silent; then
13745 exec 6>/dev/null
13746 ac_configure_extra_args="$ac_configure_extra_args --silent"
13747fi
13748
13749_ACEOF
13750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13751if \$ac_cs_recheck; then
13752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13753 shift
13754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13755 CONFIG_SHELL='$SHELL'
13756 export CONFIG_SHELL
13757 exec "\$@"
13758fi
13759
13760_ACEOF
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762exec 5>>config.log
13763{
13764 echo
13765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13766## Running $as_me. ##
13767_ASBOX
13768 $as_echo "$ac_log"
13769} >&5
13770
13771_ACEOF
13772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13773#
13774# INIT-COMMANDS
13775#
ecd3459e 13776
8df488f9 13777srcdir="$srcdir"
13778host="$host"
13779target="$target"
13780with_multisubdir="$with_multisubdir"
13781with_multisrctop="$with_multisrctop"
13782with_target_subdir="$with_target_subdir"
13783ac_configure_args="${multilib_arg} ${ac_configure_args}"
13784multi_basedir="$multi_basedir"
13785CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13786CC="$CC"
13787CXX="$CXX"
13788GFORTRAN="$GFORTRAN"
8df488f9 13789
ecd3459e 13790
13791# The HP-UX ksh and POSIX shell print the target directory to stdout
13792# if CDPATH is set.
13793(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13794
13795sed_quote_subst='$sed_quote_subst'
13796double_quote_subst='$double_quote_subst'
13797delay_variable_subst='$delay_variable_subst'
13798macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13799macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13800enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13801enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13802pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13803enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13804SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13805ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13806host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13807host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13808host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13809build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13810build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13811build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13812SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13813Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13814GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13815EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13816FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13817LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13818NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13819LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13820max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13821ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13822exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13823lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13824lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13825lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13826reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13827reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13828OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13829deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13830file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13831AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13832AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13833STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13834RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13835old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13836old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13837old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13838lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13839CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13840CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13841compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13842GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13843lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13844lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13845lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13846lt_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"`'
13847objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13848MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13849lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13850lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13851lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13852lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13853lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13854need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13855DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13856NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13857LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13858OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13859OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13860libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13861shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13862extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13863archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13864enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13865export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13866whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13867compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13868old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13869old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13870archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13871archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13872module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13873module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13874with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13875allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13876no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13877hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13878hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13879hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13880hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13881hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13882hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13883hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13884hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13885inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13886link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13887fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13888always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13889export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13890exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13891include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13892prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13893file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13894variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13895need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13896need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13897version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13898runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13899shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13900shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13901libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13902library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13903soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13904install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13905postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13906postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13907finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13908finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13909hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13910sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13911sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13912hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13913enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13914enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13915enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13916old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13917striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13918
13919LTCC='$LTCC'
13920LTCFLAGS='$LTCFLAGS'
13921compiler='$compiler_DEFAULT'
13922
13923# A function that is used when there is no print builtin or printf.
13924func_fallback_echo ()
13925{
13926 eval 'cat <<_LTECHO_EOF
13927\$1
13928_LTECHO_EOF'
13929}
13930
13931# Quote evaled strings.
13932for var in SHELL \
13933ECHO \
13934SED \
13935GREP \
13936EGREP \
13937FGREP \
13938LD \
13939NM \
13940LN_S \
13941lt_SP2NL \
13942lt_NL2SP \
13943reload_flag \
13944OBJDUMP \
13945deplibs_check_method \
13946file_magic_cmd \
13947AR \
13948AR_FLAGS \
13949STRIP \
13950RANLIB \
13951CC \
13952CFLAGS \
13953compiler \
13954lt_cv_sys_global_symbol_pipe \
13955lt_cv_sys_global_symbol_to_cdecl \
13956lt_cv_sys_global_symbol_to_c_name_address \
13957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13958lt_prog_compiler_no_builtin_flag \
13959lt_prog_compiler_wl \
13960lt_prog_compiler_pic \
13961lt_prog_compiler_static \
13962lt_cv_prog_compiler_c_o \
13963need_locks \
13964DSYMUTIL \
13965NMEDIT \
13966LIPO \
13967OTOOL \
13968OTOOL64 \
13969shrext_cmds \
13970export_dynamic_flag_spec \
13971whole_archive_flag_spec \
13972compiler_needs_object \
13973with_gnu_ld \
13974allow_undefined_flag \
13975no_undefined_flag \
13976hardcode_libdir_flag_spec \
13977hardcode_libdir_flag_spec_ld \
13978hardcode_libdir_separator \
13979fix_srcfile_path \
13980exclude_expsyms \
13981include_expsyms \
13982file_list_spec \
13983variables_saved_for_relink \
13984libname_spec \
13985library_names_spec \
13986soname_spec \
13987install_override_mode \
13988finish_eval \
13989old_striplib \
13990striplib; do
13991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13992 *[\\\\\\\`\\"\\\$]*)
13993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13994 ;;
13995 *)
13996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13997 ;;
13998 esac
13999done
14000
14001# Double-quote double-evaled strings.
14002for var in reload_cmds \
14003old_postinstall_cmds \
14004old_postuninstall_cmds \
14005old_archive_cmds \
14006extract_expsyms_cmds \
14007old_archive_from_new_cmds \
14008old_archive_from_expsyms_cmds \
14009archive_cmds \
14010archive_expsym_cmds \
14011module_cmds \
14012module_expsym_cmds \
14013export_symbols_cmds \
14014prelink_cmds \
14015postinstall_cmds \
14016postuninstall_cmds \
14017finish_cmds \
14018sys_lib_search_path_spec \
14019sys_lib_dlsearch_path_spec; do
14020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14021 *[\\\\\\\`\\"\\\$]*)
14022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14023 ;;
14024 *)
14025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14026 ;;
14027 esac
14028done
14029
14030ac_aux_dir='$ac_aux_dir'
14031xsi_shell='$xsi_shell'
14032lt_shell_append='$lt_shell_append'
14033
14034# See if we are running on zsh, and set the options which allow our
14035# commands through without removal of \ escapes INIT.
14036if test -n "\${ZSH_VERSION+set}" ; then
14037 setopt NO_GLOB_SUBST
14038fi
14039
14040
14041 PACKAGE='$PACKAGE'
14042 VERSION='$VERSION'
14043 TIMESTAMP='$TIMESTAMP'
14044 RM='$RM'
14045 ofile='$ofile'
14046
14047
14048
14049
b945b61c 14050GCC="$GCC"
14051CC="$CC"
14052acx_cv_header_stdint="$acx_cv_header_stdint"
14053acx_cv_type_int8_t="$acx_cv_type_int8_t"
14054acx_cv_type_int16_t="$acx_cv_type_int16_t"
14055acx_cv_type_int32_t="$acx_cv_type_int32_t"
14056acx_cv_type_int64_t="$acx_cv_type_int64_t"
14057acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14058ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14059ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14060ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14061ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14062ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14063ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14064ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14065ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14066
14067
ecd3459e 14068# Variables needed in config.status (file generation) which aren't already
14069# passed by autoconf.
14070SUBDIRS="$SUBDIRS"
14071
14072
14073_ACEOF
14074
14075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076
14077# Handling of arguments.
14078for ac_config_target in $ac_config_targets
14079do
14080 case $ac_config_target in
14081 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
ecd3459e 14082 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8df488f9 14083 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b945b61c 14084 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
ecd3459e 14085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14086 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14087 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14088
14089 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14090 esac
14091done
14092
14093
14094# If the user did not use the arguments to specify the items to instantiate,
14095# then the envvar interface is used. Set only those that are not.
14096# We use the long form for the default assignment because of an extremely
14097# bizarre bug on SunOS 4.1.3.
14098if $ac_need_defaults; then
14099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14102fi
14103
14104# Have a temporary directory for convenience. Make it in the build tree
14105# simply because there is no reason against having it here, and in addition,
14106# creating and moving files from /tmp can sometimes cause problems.
14107# Hook for its removal unless debugging.
14108# Note that there is a small window in which the directory will not be cleaned:
14109# after its creation but before its name has been assigned to `$tmp'.
14110$debug ||
14111{
14112 tmp=
14113 trap 'exit_status=$?
14114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14115' 0
14116 trap 'as_fn_exit 1' 1 2 13 15
14117}
14118# Create a (secure) tmp directory for tmp files.
14119
14120{
14121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14122 test -n "$tmp" && test -d "$tmp"
14123} ||
14124{
14125 tmp=./conf$$-$RANDOM
14126 (umask 077 && mkdir "$tmp")
14127} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14128
14129# Set up the scripts for CONFIG_FILES section.
14130# No need to generate them if there are no CONFIG_FILES.
14131# This happens for instance with `./config.status config.h'.
14132if test -n "$CONFIG_FILES"; then
14133
14134
14135ac_cr=`echo X | tr X '\015'`
14136# On cygwin, bash can eat \r inside `` if the user requested igncr.
14137# But we know of no other shell where ac_cr would be empty at this
14138# point, so we can use a bashism as a fallback.
14139if test "x$ac_cr" = x; then
14140 eval ac_cr=\$\'\\r\'
14141fi
14142ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14143if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14144 ac_cs_awk_cr='\r'
14145else
14146 ac_cs_awk_cr=$ac_cr
14147fi
14148
14149echo 'BEGIN {' >"$tmp/subs1.awk" &&
14150_ACEOF
14151
14152
14153{
14154 echo "cat >conf$$subs.awk <<_ACEOF" &&
14155 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14156 echo "_ACEOF"
14157} >conf$$subs.sh ||
14158 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14159ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14160ac_delim='%!_!# '
14161for ac_last_try in false false false false false :; do
14162 . ./conf$$subs.sh ||
14163 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14164
14165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14166 if test $ac_delim_n = $ac_delim_num; then
14167 break
14168 elif $ac_last_try; then
14169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14170 else
14171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14172 fi
14173done
14174rm -f conf$$subs.sh
14175
14176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14178_ACEOF
14179sed -n '
14180h
14181s/^/S["/; s/!.*/"]=/
14182p
14183g
14184s/^[^!]*!//
14185:repl
14186t repl
14187s/'"$ac_delim"'$//
14188t delim
14189:nl
14190h
14191s/\(.\{148\}\).*/\1/
14192t more1
14193s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14194p
14195n
14196b repl
14197:more1
14198s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14199p
14200g
14201s/.\{148\}//
14202t nl
14203:delim
14204h
14205s/\(.\{148\}\).*/\1/
14206t more2
14207s/["\\]/\\&/g; s/^/"/; s/$/"/
14208p
14209b
14210:more2
14211s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14212p
14213g
14214s/.\{148\}//
14215t delim
14216' <conf$$subs.awk | sed '
14217/^[^""]/{
14218 N
14219 s/\n//
14220}
14221' >>$CONFIG_STATUS || ac_write_fail=1
14222rm -f conf$$subs.awk
14223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14224_ACAWK
14225cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14226 for (key in S) S_is_set[key] = 1
14227 FS = "\a"
14228
14229}
14230{
14231 line = $ 0
14232 nfields = split(line, field, "@")
14233 substed = 0
14234 len = length(field[1])
14235 for (i = 2; i < nfields; i++) {
14236 key = field[i]
14237 keylen = length(key)
14238 if (S_is_set[key]) {
14239 value = S[key]
14240 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14241 len += length(value) + length(field[++i])
14242 substed = 1
14243 } else
14244 len += 1 + keylen
14245 }
14246
14247 print line
14248}
14249
14250_ACAWK
14251_ACEOF
14252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14253if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14254 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14255else
14256 cat
14257fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14258 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14259_ACEOF
14260
14261# VPATH may cause trouble with some makes, so we remove $(srcdir),
14262# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14263# trailing colons and then remove the whole line if VPATH becomes empty
14264# (actually we leave an empty line to preserve line numbers).
14265if test "x$srcdir" = x.; then
14266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14267s/:*\$(srcdir):*/:/
14268s/:*\${srcdir}:*/:/
14269s/:*@srcdir@:*/:/
14270s/^\([^=]*=[ ]*\):*/\1/
14271s/:*$//
14272s/^[^=]*=[ ]*$//
14273}'
14274fi
14275
14276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14277fi # test -n "$CONFIG_FILES"
14278
14279# Set up the scripts for CONFIG_HEADERS section.
14280# No need to generate them if there are no CONFIG_HEADERS.
14281# This happens for instance with `./config.status Makefile'.
14282if test -n "$CONFIG_HEADERS"; then
14283cat >"$tmp/defines.awk" <<\_ACAWK ||
14284BEGIN {
14285_ACEOF
14286
14287# Transform confdefs.h into an awk script `defines.awk', embedded as
14288# here-document in config.status, that substitutes the proper values into
14289# config.h.in to produce config.h.
14290
14291# Create a delimiter string that does not exist in confdefs.h, to ease
14292# handling of long lines.
14293ac_delim='%!_!# '
14294for ac_last_try in false false :; do
14295 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14296 if test -z "$ac_t"; then
14297 break
14298 elif $ac_last_try; then
14299 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14300 else
14301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14302 fi
14303done
14304
14305# For the awk script, D is an array of macro values keyed by name,
14306# likewise P contains macro parameters if any. Preserve backslash
14307# newline sequences.
14308
14309ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14310sed -n '
14311s/.\{148\}/&'"$ac_delim"'/g
14312t rset
14313:rset
14314s/^[ ]*#[ ]*define[ ][ ]*/ /
14315t def
14316d
14317:def
14318s/\\$//
14319t bsnl
14320s/["\\]/\\&/g
14321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14322D["\1"]=" \3"/p
14323s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14324d
14325:bsnl
14326s/["\\]/\\&/g
14327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14328D["\1"]=" \3\\\\\\n"\\/p
14329t cont
14330s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14331t cont
14332d
14333:cont
14334n
14335s/.\{148\}/&'"$ac_delim"'/g
14336t clear
14337:clear
14338s/\\$//
14339t bsnlc
14340s/["\\]/\\&/g; s/^/"/; s/$/"/p
14341d
14342:bsnlc
14343s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14344b cont
14345' <confdefs.h | sed '
14346s/'"$ac_delim"'/"\\\
14347"/g' >>$CONFIG_STATUS || ac_write_fail=1
14348
14349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 for (key in D) D_is_set[key] = 1
14351 FS = "\a"
14352}
14353/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14354 line = \$ 0
14355 split(line, arg, " ")
14356 if (arg[1] == "#") {
14357 defundef = arg[2]
14358 mac1 = arg[3]
14359 } else {
14360 defundef = substr(arg[1], 2)
14361 mac1 = arg[2]
14362 }
14363 split(mac1, mac2, "(") #)
14364 macro = mac2[1]
14365 prefix = substr(line, 1, index(line, defundef) - 1)
14366 if (D_is_set[macro]) {
14367 # Preserve the white space surrounding the "#".
14368 print prefix "define", macro P[macro] D[macro]
14369 next
14370 } else {
14371 # Replace #undef with comments. This is necessary, for example,
14372 # in the case of _POSIX_SOURCE, which is predefined and required
14373 # on some systems where configure will not decide to define it.
14374 if (defundef == "undef") {
14375 print "/*", prefix defundef, macro, "*/"
14376 next
14377 }
14378 }
14379}
14380{ print }
14381_ACAWK
14382_ACEOF
14383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14385fi # test -n "$CONFIG_HEADERS"
14386
14387
14388eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14389shift
14390for ac_tag
14391do
14392 case $ac_tag in
14393 :[FHLC]) ac_mode=$ac_tag; continue;;
14394 esac
14395 case $ac_mode$ac_tag in
14396 :[FHL]*:*);;
14397 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14398 :[FH]-) ac_tag=-:-;;
14399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14400 esac
14401 ac_save_IFS=$IFS
14402 IFS=:
14403 set x $ac_tag
14404 IFS=$ac_save_IFS
14405 shift
14406 ac_file=$1
14407 shift
14408
14409 case $ac_mode in
14410 :L) ac_source=$1;;
14411 :[FH])
14412 ac_file_inputs=
14413 for ac_f
14414 do
14415 case $ac_f in
14416 -) ac_f="$tmp/stdin";;
14417 *) # Look for the file first in the build tree, then in the source tree
14418 # (if the path is not absolute). The absolute path cannot be DOS-style,
14419 # because $ac_f cannot contain `:'.
14420 test -f "$ac_f" ||
14421 case $ac_f in
14422 [\\/$]*) false;;
14423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14424 esac ||
14425 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14426 esac
14427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14428 as_fn_append ac_file_inputs " '$ac_f'"
14429 done
14430
14431 # Let's still pretend it is `configure' which instantiates (i.e., don't
14432 # use $as_me), people would be surprised to read:
14433 # /* config.h. Generated by config.status. */
14434 configure_input='Generated from '`
14435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14436 `' by configure.'
14437 if test x"$ac_file" != x-; then
14438 configure_input="$ac_file. $configure_input"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14440$as_echo "$as_me: creating $ac_file" >&6;}
14441 fi
14442 # Neutralize special characters interpreted by sed in replacement strings.
14443 case $configure_input in #(
14444 *\&* | *\|* | *\\* )
14445 ac_sed_conf_input=`$as_echo "$configure_input" |
14446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14447 *) ac_sed_conf_input=$configure_input;;
14448 esac
14449
14450 case $ac_tag in
14451 *:-:* | *:-) cat >"$tmp/stdin" \
14452 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14453 esac
14454 ;;
14455 esac
14456
14457 ac_dir=`$as_dirname -- "$ac_file" ||
14458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14459 X"$ac_file" : 'X\(//\)[^/]' \| \
14460 X"$ac_file" : 'X\(//\)$' \| \
14461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14462$as_echo X"$ac_file" |
14463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14464 s//\1/
14465 q
14466 }
14467 /^X\(\/\/\)[^/].*/{
14468 s//\1/
14469 q
14470 }
14471 /^X\(\/\/\)$/{
14472 s//\1/
14473 q
14474 }
14475 /^X\(\/\).*/{
14476 s//\1/
14477 q
14478 }
14479 s/.*/./; q'`
14480 as_dir="$ac_dir"; as_fn_mkdir_p
14481 ac_builddir=.
14482
14483case "$ac_dir" in
14484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14485*)
14486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14487 # A ".." for each directory in $ac_dir_suffix.
14488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14489 case $ac_top_builddir_sub in
14490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14492 esac ;;
14493esac
14494ac_abs_top_builddir=$ac_pwd
14495ac_abs_builddir=$ac_pwd$ac_dir_suffix
14496# for backward compatibility:
14497ac_top_builddir=$ac_top_build_prefix
14498
14499case $srcdir in
14500 .) # We are building in place.
14501 ac_srcdir=.
14502 ac_top_srcdir=$ac_top_builddir_sub
14503 ac_abs_top_srcdir=$ac_pwd ;;
14504 [\\/]* | ?:[\\/]* ) # Absolute name.
14505 ac_srcdir=$srcdir$ac_dir_suffix;
14506 ac_top_srcdir=$srcdir
14507 ac_abs_top_srcdir=$srcdir ;;
14508 *) # Relative name.
14509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14510 ac_top_srcdir=$ac_top_build_prefix$srcdir
14511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14512esac
14513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14514
14515
14516 case $ac_mode in
14517 :F)
14518 #
14519 # CONFIG_FILE
14520 #
14521
14522 case $INSTALL in
14523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14525 esac
14526 ac_MKDIR_P=$MKDIR_P
14527 case $MKDIR_P in
14528 [\\/$]* | ?:[\\/]* ) ;;
14529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14530 esac
14531_ACEOF
14532
14533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534# If the template does not know about datarootdir, expand it.
14535# FIXME: This hack should be removed a few years after 2.60.
14536ac_datarootdir_hack=; ac_datarootdir_seen=
14537ac_sed_dataroot='
14538/datarootdir/ {
14539 p
14540 q
14541}
14542/@datadir@/p
14543/@docdir@/p
14544/@infodir@/p
14545/@localedir@/p
14546/@mandir@/p'
14547case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14548*datarootdir*) ac_datarootdir_seen=yes;;
14549*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14551$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14552_ACEOF
14553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14554 ac_datarootdir_hack='
14555 s&@datadir@&$datadir&g
14556 s&@docdir@&$docdir&g
14557 s&@infodir@&$infodir&g
14558 s&@localedir@&$localedir&g
14559 s&@mandir@&$mandir&g
14560 s&\\\${datarootdir}&$datarootdir&g' ;;
14561esac
14562_ACEOF
14563
14564# Neutralize VPATH when `$srcdir' = `.'.
14565# Shell code in configure.ac might set extrasub.
14566# FIXME: do we really want to maintain this feature?
14567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14568ac_sed_extra="$ac_vpsub
14569$extrasub
14570_ACEOF
14571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572:t
14573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14574s|@configure_input@|$ac_sed_conf_input|;t t
14575s&@top_builddir@&$ac_top_builddir_sub&;t t
14576s&@top_build_prefix@&$ac_top_build_prefix&;t t
14577s&@srcdir@&$ac_srcdir&;t t
14578s&@abs_srcdir@&$ac_abs_srcdir&;t t
14579s&@top_srcdir@&$ac_top_srcdir&;t t
14580s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14581s&@builddir@&$ac_builddir&;t t
14582s&@abs_builddir@&$ac_abs_builddir&;t t
14583s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14584s&@INSTALL@&$ac_INSTALL&;t t
14585s&@MKDIR_P@&$ac_MKDIR_P&;t t
14586$ac_datarootdir_hack
14587"
14588eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14589 || as_fn_error "could not create $ac_file" "$LINENO" 5
14590
14591test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14595which seems to be undefined. Please make sure it is defined." >&5
14596$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14597which seems to be undefined. Please make sure it is defined." >&2;}
14598
14599 rm -f "$tmp/stdin"
14600 case $ac_file in
14601 -) cat "$tmp/out" && rm -f "$tmp/out";;
14602 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14603 esac \
14604 || as_fn_error "could not create $ac_file" "$LINENO" 5
14605 ;;
14606 :H)
14607 #
14608 # CONFIG_HEADER
14609 #
14610 if test x"$ac_file" != x-; then
14611 {
14612 $as_echo "/* $configure_input */" \
14613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14614 } >"$tmp/config.h" \
14615 || as_fn_error "could not create $ac_file" "$LINENO" 5
14616 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14618$as_echo "$as_me: $ac_file is unchanged" >&6;}
14619 else
14620 rm -f "$ac_file"
14621 mv "$tmp/config.h" "$ac_file" \
14622 || as_fn_error "could not create $ac_file" "$LINENO" 5
14623 fi
14624 else
14625 $as_echo "/* $configure_input */" \
14626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14627 || as_fn_error "could not create -" "$LINENO" 5
14628 fi
14629# Compute "$ac_file"'s index in $config_headers.
14630_am_arg="$ac_file"
14631_am_stamp_count=1
14632for _am_header in $config_headers :; do
14633 case $_am_header in
14634 $_am_arg | $_am_arg:* )
14635 break ;;
14636 * )
14637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14638 esac
14639done
14640echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14641$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14642 X"$_am_arg" : 'X\(//\)[^/]' \| \
14643 X"$_am_arg" : 'X\(//\)$' \| \
14644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14645$as_echo X"$_am_arg" |
14646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14647 s//\1/
14648 q
14649 }
14650 /^X\(\/\/\)[^/].*/{
14651 s//\1/
14652 q
14653 }
14654 /^X\(\/\/\)$/{
14655 s//\1/
14656 q
14657 }
14658 /^X\(\/\).*/{
14659 s//\1/
14660 q
14661 }
14662 s/.*/./; q'`/stamp-h$_am_stamp_count
14663 ;;
14664
14665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14666$as_echo "$as_me: executing $ac_file commands" >&6;}
14667 ;;
14668 esac
14669
14670
14671 case $ac_file$ac_mode in
8df488f9 14672 "default-1":C)
14673# Only add multilib support code if we just rebuilt the top-level
14674# Makefile.
14675case " $CONFIG_FILES " in
14676 *" Makefile "*)
14677 ac_file=Makefile . ${multi_basedir}/config-ml.in
14678 ;;
14679esac ;;
ecd3459e 14680 "libtool":C)
14681
14682 # See if we are running on zsh, and set the options which allow our
14683 # commands through without removal of \ escapes.
14684 if test -n "${ZSH_VERSION+set}" ; then
14685 setopt NO_GLOB_SUBST
14686 fi
14687
14688 cfgfile="${ofile}T"
14689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14690 $RM "$cfgfile"
14691
14692 cat <<_LT_EOF >> "$cfgfile"
14693#! $SHELL
14694
14695# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14696# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14698# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14699#
14700# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14701# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14702# Written by Gordon Matzigkeit, 1996
14703#
14704# This file is part of GNU Libtool.
14705#
14706# GNU Libtool is free software; you can redistribute it and/or
14707# modify it under the terms of the GNU General Public License as
14708# published by the Free Software Foundation; either version 2 of
14709# the License, or (at your option) any later version.
14710#
14711# As a special exception to the GNU General Public License,
14712# if you distribute this file as part of a program or library that
14713# is built using GNU Libtool, you may include this file under the
14714# same distribution terms that you use for the rest of that program.
14715#
14716# GNU Libtool is distributed in the hope that it will be useful,
14717# but WITHOUT ANY WARRANTY; without even the implied warranty of
14718# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14719# GNU General Public License for more details.
14720#
14721# You should have received a copy of the GNU General Public License
14722# along with GNU Libtool; see the file COPYING. If not, a copy
14723# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14724# obtained by writing to the Free Software Foundation, Inc.,
14725# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14726
14727
14728# The names of the tagged configurations supported by this script.
14729available_tags=""
14730
14731# ### BEGIN LIBTOOL CONFIG
14732
14733# Which release of libtool.m4 was used?
14734macro_version=$macro_version
14735macro_revision=$macro_revision
14736
14737# Whether or not to build shared libraries.
14738build_libtool_libs=$enable_shared
14739
14740# Whether or not to build static libraries.
14741build_old_libs=$enable_static
14742
14743# What type of objects to build.
14744pic_mode=$pic_mode
14745
14746# Whether or not to optimize for fast installation.
14747fast_install=$enable_fast_install
14748
14749# Shell to use when invoking shell scripts.
14750SHELL=$lt_SHELL
14751
14752# An echo program that protects backslashes.
14753ECHO=$lt_ECHO
14754
14755# The host system.
14756host_alias=$host_alias
14757host=$host
14758host_os=$host_os
14759
14760# The build system.
14761build_alias=$build_alias
14762build=$build
14763build_os=$build_os
14764
14765# A sed program that does not truncate output.
14766SED=$lt_SED
14767
14768# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14769Xsed="\$SED -e 1s/^X//"
14770
14771# A grep program that handles long lines.
14772GREP=$lt_GREP
14773
14774# An ERE matcher.
14775EGREP=$lt_EGREP
14776
14777# A literal string matcher.
14778FGREP=$lt_FGREP
14779
14780# A BSD- or MS-compatible name lister.
14781NM=$lt_NM
14782
14783# Whether we need soft or hard links.
14784LN_S=$lt_LN_S
14785
14786# What is the maximum length of a command?
14787max_cmd_len=$max_cmd_len
14788
14789# Object file suffix (normally "o").
14790objext=$ac_objext
14791
14792# Executable file suffix (normally "").
14793exeext=$exeext
14794
14795# whether the shell understands "unset".
14796lt_unset=$lt_unset
14797
14798# turn spaces into newlines.
14799SP2NL=$lt_lt_SP2NL
14800
14801# turn newlines into spaces.
14802NL2SP=$lt_lt_NL2SP
14803
14804# An object symbol dumper.
14805OBJDUMP=$lt_OBJDUMP
14806
14807# Method to check whether dependent libraries are shared objects.
14808deplibs_check_method=$lt_deplibs_check_method
14809
14810# Command to use when deplibs_check_method == "file_magic".
14811file_magic_cmd=$lt_file_magic_cmd
14812
14813# The archiver.
14814AR=$lt_AR
14815AR_FLAGS=$lt_AR_FLAGS
14816
14817# A symbol stripping program.
14818STRIP=$lt_STRIP
14819
14820# Commands used to install an old-style archive.
14821RANLIB=$lt_RANLIB
14822old_postinstall_cmds=$lt_old_postinstall_cmds
14823old_postuninstall_cmds=$lt_old_postuninstall_cmds
14824
14825# Whether to use a lock for old archive extraction.
14826lock_old_archive_extraction=$lock_old_archive_extraction
14827
14828# A C compiler.
14829LTCC=$lt_CC
14830
14831# LTCC compiler flags.
14832LTCFLAGS=$lt_CFLAGS
14833
14834# Take the output of nm and produce a listing of raw symbols and C names.
14835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14836
14837# Transform the output of nm in a proper C declaration.
14838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14839
14840# Transform the output of nm in a C name address pair.
14841global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14842
14843# Transform the output of nm in a C name address pair when lib prefix is needed.
14844global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14845
14846# The name of the directory that contains temporary libtool files.
14847objdir=$objdir
14848
14849# Used to examine libraries when file_magic_cmd begins with "file".
14850MAGIC_CMD=$MAGIC_CMD
14851
14852# Must we lock files when doing compilation?
14853need_locks=$lt_need_locks
14854
14855# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14856DSYMUTIL=$lt_DSYMUTIL
14857
14858# Tool to change global to local symbols on Mac OS X.
14859NMEDIT=$lt_NMEDIT
14860
14861# Tool to manipulate fat objects and archives on Mac OS X.
14862LIPO=$lt_LIPO
14863
14864# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14865OTOOL=$lt_OTOOL
14866
14867# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14868OTOOL64=$lt_OTOOL64
14869
14870# Old archive suffix (normally "a").
14871libext=$libext
14872
14873# Shared library suffix (normally ".so").
14874shrext_cmds=$lt_shrext_cmds
14875
14876# The commands to extract the exported symbol list from a shared archive.
14877extract_expsyms_cmds=$lt_extract_expsyms_cmds
14878
14879# Variables whose values should be saved in libtool wrapper scripts and
14880# restored at link time.
14881variables_saved_for_relink=$lt_variables_saved_for_relink
14882
14883# Do we need the "lib" prefix for modules?
14884need_lib_prefix=$need_lib_prefix
14885
14886# Do we need a version for libraries?
14887need_version=$need_version
14888
14889# Library versioning type.
14890version_type=$version_type
14891
14892# Shared library runtime path variable.
14893runpath_var=$runpath_var
14894
14895# Shared library path variable.
14896shlibpath_var=$shlibpath_var
14897
14898# Is shlibpath searched before the hard-coded library search path?
14899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14900
14901# Format of library name prefix.
14902libname_spec=$lt_libname_spec
14903
14904# List of archive names. First name is the real one, the rest are links.
14905# The last name is the one that the linker finds with -lNAME
14906library_names_spec=$lt_library_names_spec
14907
14908# The coded name of the library, if different from the real name.
14909soname_spec=$lt_soname_spec
14910
14911# Permission mode override for installation of shared libraries.
14912install_override_mode=$lt_install_override_mode
14913
14914# Command to use after installation of a shared archive.
14915postinstall_cmds=$lt_postinstall_cmds
14916
14917# Command to use after uninstallation of a shared archive.
14918postuninstall_cmds=$lt_postuninstall_cmds
14919
14920# Commands used to finish a libtool library installation in a directory.
14921finish_cmds=$lt_finish_cmds
14922
14923# As "finish_cmds", except a single script fragment to be evaled but
14924# not shown.
14925finish_eval=$lt_finish_eval
14926
14927# Whether we should hardcode library paths into libraries.
14928hardcode_into_libs=$hardcode_into_libs
14929
14930# Compile-time system search path for libraries.
14931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14932
14933# Run-time system search path for libraries.
14934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14935
14936# Whether dlopen is supported.
14937dlopen_support=$enable_dlopen
14938
14939# Whether dlopen of programs is supported.
14940dlopen_self=$enable_dlopen_self
14941
14942# Whether dlopen of statically linked programs is supported.
14943dlopen_self_static=$enable_dlopen_self_static
14944
14945# Commands to strip libraries.
14946old_striplib=$lt_old_striplib
14947striplib=$lt_striplib
14948
14949
14950# The linker used to build libraries.
14951LD=$lt_LD
14952
14953# How to create reloadable object files.
14954reload_flag=$lt_reload_flag
14955reload_cmds=$lt_reload_cmds
14956
14957# Commands used to build an old-style archive.
14958old_archive_cmds=$lt_old_archive_cmds
14959
14960# A language specific compiler.
14961CC=$lt_compiler
14962
14963# Is the compiler the GNU compiler?
14964with_gcc=$GCC
14965
14966# Compiler flag to turn off builtin functions.
14967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14968
14969# How to pass a linker flag through the compiler.
14970wl=$lt_lt_prog_compiler_wl
14971
14972# Additional compiler flags for building library objects.
14973pic_flag=$lt_lt_prog_compiler_pic
14974
14975# Compiler flag to prevent dynamic linking.
14976link_static_flag=$lt_lt_prog_compiler_static
14977
14978# Does compiler simultaneously support -c and -o options?
14979compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14980
14981# Whether or not to add -lc for building shared libraries.
14982build_libtool_need_lc=$archive_cmds_need_lc
14983
14984# Whether or not to disallow shared libs when runtime libs are static.
14985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14986
14987# Compiler flag to allow reflexive dlopens.
14988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14989
14990# Compiler flag to generate shared objects directly from archives.
14991whole_archive_flag_spec=$lt_whole_archive_flag_spec
14992
14993# Whether the compiler copes with passing no objects directly.
14994compiler_needs_object=$lt_compiler_needs_object
14995
14996# Create an old-style archive from a shared archive.
14997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14998
14999# Create a temporary old-style archive to link instead of a shared archive.
15000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15001
15002# Commands used to build a shared archive.
15003archive_cmds=$lt_archive_cmds
15004archive_expsym_cmds=$lt_archive_expsym_cmds
15005
15006# Commands used to build a loadable module if different from building
15007# a shared archive.
15008module_cmds=$lt_module_cmds
15009module_expsym_cmds=$lt_module_expsym_cmds
15010
15011# Whether we are building with GNU ld or not.
15012with_gnu_ld=$lt_with_gnu_ld
15013
15014# Flag that allows shared libraries with undefined symbols to be built.
15015allow_undefined_flag=$lt_allow_undefined_flag
15016
15017# Flag that enforces no undefined symbols.
15018no_undefined_flag=$lt_no_undefined_flag
15019
15020# Flag to hardcode \$libdir into a binary during linking.
15021# This must work even if \$libdir does not exist
15022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15023
15024# If ld is used when linking, flag to hardcode \$libdir into a binary
15025# during linking. This must work even if \$libdir does not exist.
15026hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15027
15028# Whether we need a single "-rpath" flag with a separated argument.
15029hardcode_libdir_separator=$lt_hardcode_libdir_separator
15030
15031# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15032# DIR into the resulting binary.
15033hardcode_direct=$hardcode_direct
15034
15035# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15036# DIR into the resulting binary and the resulting library dependency is
15037# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15038# library is relocated.
15039hardcode_direct_absolute=$hardcode_direct_absolute
15040
15041# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15042# into the resulting binary.
15043hardcode_minus_L=$hardcode_minus_L
15044
15045# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15046# into the resulting binary.
15047hardcode_shlibpath_var=$hardcode_shlibpath_var
15048
15049# Set to "yes" if building a shared library automatically hardcodes DIR
15050# into the library and all subsequent libraries and executables linked
15051# against it.
15052hardcode_automatic=$hardcode_automatic
15053
15054# Set to yes if linker adds runtime paths of dependent libraries
15055# to runtime path list.
15056inherit_rpath=$inherit_rpath
15057
15058# Whether libtool must link a program against all its dependency libraries.
15059link_all_deplibs=$link_all_deplibs
15060
15061# Fix the shell variable \$srcfile for the compiler.
15062fix_srcfile_path=$lt_fix_srcfile_path
15063
15064# Set to "yes" if exported symbols are required.
15065always_export_symbols=$always_export_symbols
15066
15067# The commands to list exported symbols.
15068export_symbols_cmds=$lt_export_symbols_cmds
15069
15070# Symbols that should not be listed in the preloaded symbols.
15071exclude_expsyms=$lt_exclude_expsyms
15072
15073# Symbols that must always be exported.
15074include_expsyms=$lt_include_expsyms
15075
15076# Commands necessary for linking programs (against libraries) with templates.
15077prelink_cmds=$lt_prelink_cmds
15078
15079# Specify filename containing input files.
15080file_list_spec=$lt_file_list_spec
15081
15082# How to hardcode a shared library path into an executable.
15083hardcode_action=$hardcode_action
15084
15085# ### END LIBTOOL CONFIG
15086
15087_LT_EOF
15088
15089 case $host_os in
15090 aix3*)
15091 cat <<\_LT_EOF >> "$cfgfile"
15092# AIX sometimes has problems with the GCC collect2 program. For some
15093# reason, if we set the COLLECT_NAMES environment variable, the problems
15094# vanish in a puff of smoke.
15095if test "X${COLLECT_NAMES+set}" != Xset; then
15096 COLLECT_NAMES=
15097 export COLLECT_NAMES
15098fi
15099_LT_EOF
15100 ;;
15101 esac
15102
15103
15104ltmain="$ac_aux_dir/ltmain.sh"
15105
15106
15107 # We use sed instead of cat because bash on DJGPP gets confused if
15108 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15109 # text mode, it properly converts lines to CR/LF. This bash problem
15110 # is reportedly fixed, but why not run on old versions too?
15111 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15112 || (rm -f "$cfgfile"; exit 1)
15113
15114 case $xsi_shell in
15115 yes)
15116 cat << \_LT_EOF >> "$cfgfile"
15117
15118# func_dirname file append nondir_replacement
15119# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15120# otherwise set result to NONDIR_REPLACEMENT.
15121func_dirname ()
15122{
15123 case ${1} in
15124 */*) func_dirname_result="${1%/*}${2}" ;;
15125 * ) func_dirname_result="${3}" ;;
15126 esac
15127}
15128
15129# func_basename file
15130func_basename ()
15131{
15132 func_basename_result="${1##*/}"
15133}
15134
15135# func_dirname_and_basename file append nondir_replacement
15136# perform func_basename and func_dirname in a single function
15137# call:
15138# dirname: Compute the dirname of FILE. If nonempty,
15139# add APPEND to the result, otherwise set result
15140# to NONDIR_REPLACEMENT.
15141# value returned in "$func_dirname_result"
15142# basename: Compute filename of FILE.
15143# value retuned in "$func_basename_result"
15144# Implementation must be kept synchronized with func_dirname
15145# and func_basename. For efficiency, we do not delegate to
15146# those functions but instead duplicate the functionality here.
15147func_dirname_and_basename ()
15148{
15149 case ${1} in
15150 */*) func_dirname_result="${1%/*}${2}" ;;
15151 * ) func_dirname_result="${3}" ;;
15152 esac
15153 func_basename_result="${1##*/}"
15154}
15155
15156# func_stripname prefix suffix name
15157# strip PREFIX and SUFFIX off of NAME.
15158# PREFIX and SUFFIX must not contain globbing or regex special
15159# characters, hashes, percent signs, but SUFFIX may contain a leading
15160# dot (in which case that matches only a dot).
15161func_stripname ()
15162{
15163 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15164 # positional parameters, so assign one to ordinary parameter first.
15165 func_stripname_result=${3}
15166 func_stripname_result=${func_stripname_result#"${1}"}
15167 func_stripname_result=${func_stripname_result%"${2}"}
15168}
15169
15170# func_opt_split
15171func_opt_split ()
15172{
15173 func_opt_split_opt=${1%%=*}
15174 func_opt_split_arg=${1#*=}
15175}
15176
15177# func_lo2o object
15178func_lo2o ()
15179{
15180 case ${1} in
15181 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15182 *) func_lo2o_result=${1} ;;
15183 esac
15184}
15185
15186# func_xform libobj-or-source
15187func_xform ()
15188{
15189 func_xform_result=${1%.*}.lo
15190}
15191
15192# func_arith arithmetic-term...
15193func_arith ()
15194{
15195 func_arith_result=$(( $* ))
15196}
15197
15198# func_len string
15199# STRING may not start with a hyphen.
15200func_len ()
15201{
15202 func_len_result=${#1}
15203}
15204
15205_LT_EOF
15206 ;;
15207 *) # Bourne compatible functions.
15208 cat << \_LT_EOF >> "$cfgfile"
15209
15210# func_dirname file append nondir_replacement
15211# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15212# otherwise set result to NONDIR_REPLACEMENT.
15213func_dirname ()
15214{
15215 # Extract subdirectory from the argument.
15216 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15217 if test "X$func_dirname_result" = "X${1}"; then
15218 func_dirname_result="${3}"
15219 else
15220 func_dirname_result="$func_dirname_result${2}"
15221 fi
15222}
15223
15224# func_basename file
15225func_basename ()
15226{
15227 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15228}
15229
15230
15231# func_stripname prefix suffix name
15232# strip PREFIX and SUFFIX off of NAME.
15233# PREFIX and SUFFIX must not contain globbing or regex special
15234# characters, hashes, percent signs, but SUFFIX may contain a leading
15235# dot (in which case that matches only a dot).
15236# func_strip_suffix prefix name
15237func_stripname ()
15238{
15239 case ${2} in
15240 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15241 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15242 esac
15243}
15244
15245# sed scripts:
15246my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15247my_sed_long_arg='1s/^-[^=]*=//'
15248
15249# func_opt_split
15250func_opt_split ()
15251{
15252 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15253 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15254}
15255
15256# func_lo2o object
15257func_lo2o ()
15258{
15259 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15260}
15261
15262# func_xform libobj-or-source
15263func_xform ()
15264{
15265 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15266}
15267
15268# func_arith arithmetic-term...
15269func_arith ()
15270{
15271 func_arith_result=`expr "$@"`
15272}
15273
15274# func_len string
15275# STRING may not start with a hyphen.
15276func_len ()
15277{
15278 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15279}
15280
15281_LT_EOF
15282esac
15283
15284case $lt_shell_append in
15285 yes)
15286 cat << \_LT_EOF >> "$cfgfile"
15287
15288# func_append var value
15289# Append VALUE to the end of shell variable VAR.
15290func_append ()
15291{
15292 eval "$1+=\$2"
15293}
15294_LT_EOF
15295 ;;
15296 *)
15297 cat << \_LT_EOF >> "$cfgfile"
15298
15299# func_append var value
15300# Append VALUE to the end of shell variable VAR.
15301func_append ()
15302{
15303 eval "$1=\$$1\$2"
15304}
15305
15306_LT_EOF
15307 ;;
15308 esac
15309
15310
15311 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15312 || (rm -f "$cfgfile"; exit 1)
15313
15314 mv -f "$cfgfile" "$ofile" ||
15315 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15316 chmod +x "$ofile"
15317
15318 ;;
b945b61c 15319 "gstdint.h":C)
15320if test "$GCC" = yes; then
15321 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15322else
15323 echo "/* generated for $CC */" > tmp-stdint.h
15324fi
15325
15326sed 's/^ *//' >> tmp-stdint.h <<EOF
15327
15328 #ifndef GCC_GENERATED_STDINT_H
15329 #define GCC_GENERATED_STDINT_H 1
15330
15331 #include <sys/types.h>
15332EOF
15333
15334if test "$acx_cv_header_stdint" != stdint.h; then
15335 echo "#include <stddef.h>" >> tmp-stdint.h
15336fi
15337if test "$acx_cv_header_stdint" != stddef.h; then
15338 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15339fi
15340
15341sed 's/^ *//' >> tmp-stdint.h <<EOF
15342 /* glibc uses these symbols as guards to prevent redefinitions. */
15343 #ifdef __int8_t_defined
15344 #define _INT8_T
15345 #define _INT16_T
15346 #define _INT32_T
15347 #endif
15348 #ifdef __uint32_t_defined
15349 #define _UINT32_T
15350 #endif
15351
15352EOF
15353
15354# ----------------- done header, emit basic int types -------------
15355if test "$acx_cv_header_stdint" = stddef.h; then
15356 sed 's/^ *//' >> tmp-stdint.h <<EOF
15357
15358 #ifndef _UINT8_T
15359 #define _UINT8_T
15360 #ifndef __uint8_t_defined
15361 #define __uint8_t_defined
15362 #ifndef uint8_t
15363 typedef unsigned $acx_cv_type_int8_t uint8_t;
15364 #endif
15365 #endif
15366 #endif
15367
15368 #ifndef _UINT16_T
15369 #define _UINT16_T
15370 #ifndef __uint16_t_defined
15371 #define __uint16_t_defined
15372 #ifndef uint16_t
15373 typedef unsigned $acx_cv_type_int16_t uint16_t;
15374 #endif
15375 #endif
15376 #endif
15377
15378 #ifndef _UINT32_T
15379 #define _UINT32_T
15380 #ifndef __uint32_t_defined
15381 #define __uint32_t_defined
15382 #ifndef uint32_t
15383 typedef unsigned $acx_cv_type_int32_t uint32_t;
15384 #endif
15385 #endif
15386 #endif
15387
15388 #ifndef _INT8_T
15389 #define _INT8_T
15390 #ifndef __int8_t_defined
15391 #define __int8_t_defined
15392 #ifndef int8_t
15393 typedef $acx_cv_type_int8_t int8_t;
15394 #endif
15395 #endif
15396 #endif
15397
15398 #ifndef _INT16_T
15399 #define _INT16_T
15400 #ifndef __int16_t_defined
15401 #define __int16_t_defined
15402 #ifndef int16_t
15403 typedef $acx_cv_type_int16_t int16_t;
15404 #endif
15405 #endif
15406 #endif
15407
15408 #ifndef _INT32_T
15409 #define _INT32_T
15410 #ifndef __int32_t_defined
15411 #define __int32_t_defined
15412 #ifndef int32_t
15413 typedef $acx_cv_type_int32_t int32_t;
15414 #endif
15415 #endif
15416 #endif
15417EOF
15418elif test "$ac_cv_type_u_int32_t" = yes; then
15419 sed 's/^ *//' >> tmp-stdint.h <<EOF
15420
15421 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15422 #ifndef _INT8_T
15423 #define _INT8_T
15424 #endif
15425 #ifndef _INT16_T
15426 #define _INT16_T
15427 #endif
15428 #ifndef _INT32_T
15429 #define _INT32_T
15430 #endif
15431
15432 #ifndef _UINT8_T
15433 #define _UINT8_T
15434 #ifndef __uint8_t_defined
15435 #define __uint8_t_defined
15436 #ifndef uint8_t
15437 typedef u_int8_t uint8_t;
15438 #endif
15439 #endif
15440 #endif
15441
15442 #ifndef _UINT16_T
15443 #define _UINT16_T
15444 #ifndef __uint16_t_defined
15445 #define __uint16_t_defined
15446 #ifndef uint16_t
15447 typedef u_int16_t uint16_t;
15448 #endif
15449 #endif
15450 #endif
15451
15452 #ifndef _UINT32_T
15453 #define _UINT32_T
15454 #ifndef __uint32_t_defined
15455 #define __uint32_t_defined
15456 #ifndef uint32_t
15457 typedef u_int32_t uint32_t;
15458 #endif
15459 #endif
15460 #endif
15461EOF
15462else
15463 sed 's/^ *//' >> tmp-stdint.h <<EOF
15464
15465 /* Some systems have guard macros to prevent redefinitions, define them. */
15466 #ifndef _INT8_T
15467 #define _INT8_T
15468 #endif
15469 #ifndef _INT16_T
15470 #define _INT16_T
15471 #endif
15472 #ifndef _INT32_T
15473 #define _INT32_T
15474 #endif
15475 #ifndef _UINT8_T
15476 #define _UINT8_T
15477 #endif
15478 #ifndef _UINT16_T
15479 #define _UINT16_T
15480 #endif
15481 #ifndef _UINT32_T
15482 #define _UINT32_T
15483 #endif
15484EOF
15485fi
15486
15487# ------------- done basic int types, emit int64_t types ------------
15488if test "$ac_cv_type_uint64_t" = yes; then
15489 sed 's/^ *//' >> tmp-stdint.h <<EOF
15490
15491 /* system headers have good uint64_t and int64_t */
15492 #ifndef _INT64_T
15493 #define _INT64_T
15494 #endif
15495 #ifndef _UINT64_T
15496 #define _UINT64_T
15497 #endif
15498EOF
15499elif test "$ac_cv_type_u_int64_t" = yes; then
15500 sed 's/^ *//' >> tmp-stdint.h <<EOF
15501
15502 /* system headers have an u_int64_t (and int64_t) */
15503 #ifndef _INT64_T
15504 #define _INT64_T
15505 #endif
15506 #ifndef _UINT64_T
15507 #define _UINT64_T
15508 #ifndef __uint64_t_defined
15509 #define __uint64_t_defined
15510 #ifndef uint64_t
15511 typedef u_int64_t uint64_t;
15512 #endif
15513 #endif
15514 #endif
15515EOF
15516elif test -n "$acx_cv_type_int64_t"; then
15517 sed 's/^ *//' >> tmp-stdint.h <<EOF
15518
15519 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15520 #ifndef _INT64_T
15521 #define _INT64_T
15522 #ifndef int64_t
15523 typedef $acx_cv_type_int64_t int64_t;
15524 #endif
15525 #endif
15526 #ifndef _UINT64_T
15527 #define _UINT64_T
15528 #ifndef __uint64_t_defined
15529 #define __uint64_t_defined
15530 #ifndef uint64_t
15531 typedef unsigned $acx_cv_type_int64_t uint64_t;
15532 #endif
15533 #endif
15534 #endif
15535EOF
15536else
15537 sed 's/^ *//' >> tmp-stdint.h <<EOF
15538
15539 /* some common heuristics for int64_t, using compiler-specific tests */
15540 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15541 #ifndef _INT64_T
15542 #define _INT64_T
15543 #ifndef __int64_t_defined
15544 #ifndef int64_t
15545 typedef long long int64_t;
15546 #endif
15547 #endif
15548 #endif
15549 #ifndef _UINT64_T
15550 #define _UINT64_T
15551 #ifndef uint64_t
15552 typedef unsigned long long uint64_t;
15553 #endif
15554 #endif
15555
15556 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15557 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15558 does not implement __extension__. But that compiler doesn't define
15559 __GNUC_MINOR__. */
15560 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15561 # define __extension__
15562 # endif
15563
15564 # ifndef _INT64_T
15565 # define _INT64_T
15566 # ifndef int64_t
15567 __extension__ typedef long long int64_t;
15568 # endif
15569 # endif
15570 # ifndef _UINT64_T
15571 # define _UINT64_T
15572 # ifndef uint64_t
15573 __extension__ typedef unsigned long long uint64_t;
15574 # endif
15575 # endif
15576
15577 #elif !defined __STRICT_ANSI__
15578 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15579
15580 # ifndef _INT64_T
15581 # define _INT64_T
15582 # ifndef int64_t
15583 typedef __int64 int64_t;
15584 # endif
15585 # endif
15586 # ifndef _UINT64_T
15587 # define _UINT64_T
15588 # ifndef uint64_t
15589 typedef unsigned __int64 uint64_t;
15590 # endif
15591 # endif
15592 # endif /* compiler */
15593
15594 #endif /* ANSI version */
15595EOF
15596fi
15597
15598# ------------- done int64_t types, emit intptr types ------------
15599if test "$ac_cv_type_uintptr_t" != yes; then
15600 sed 's/^ *//' >> tmp-stdint.h <<EOF
15601
15602 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15603 #ifndef __uintptr_t_defined
15604 #ifndef uintptr_t
15605 typedef u$acx_cv_type_intptr_t uintptr_t;
15606 #endif
15607 #endif
15608 #ifndef __intptr_t_defined
15609 #ifndef intptr_t
15610 typedef $acx_cv_type_intptr_t intptr_t;
15611 #endif
15612 #endif
15613EOF
15614fi
15615
15616# ------------- done intptr types, emit int_least types ------------
15617if test "$ac_cv_type_int_least32_t" != yes; then
15618 sed 's/^ *//' >> tmp-stdint.h <<EOF
15619
15620 /* Define int_least types */
15621 typedef int8_t int_least8_t;
15622 typedef int16_t int_least16_t;
15623 typedef int32_t int_least32_t;
15624 #ifdef _INT64_T
15625 typedef int64_t int_least64_t;
15626 #endif
15627
15628 typedef uint8_t uint_least8_t;
15629 typedef uint16_t uint_least16_t;
15630 typedef uint32_t uint_least32_t;
15631 #ifdef _UINT64_T
15632 typedef uint64_t uint_least64_t;
15633 #endif
15634EOF
15635fi
15636
15637# ------------- done intptr types, emit int_fast types ------------
15638if test "$ac_cv_type_int_fast32_t" != yes; then
15639 sed 's/^ *//' >> tmp-stdint.h <<EOF
15640
15641 /* Define int_fast types. short is often slow */
15642 typedef int8_t int_fast8_t;
15643 typedef int int_fast16_t;
15644 typedef int32_t int_fast32_t;
15645 #ifdef _INT64_T
15646 typedef int64_t int_fast64_t;
15647 #endif
15648
15649 typedef uint8_t uint_fast8_t;
15650 typedef unsigned int uint_fast16_t;
15651 typedef uint32_t uint_fast32_t;
15652 #ifdef _UINT64_T
15653 typedef uint64_t uint_fast64_t;
15654 #endif
15655EOF
15656fi
15657
15658if test "$ac_cv_type_uintmax_t" != yes; then
15659 sed 's/^ *//' >> tmp-stdint.h <<EOF
15660
15661 /* Define intmax based on what we found */
15662 #ifndef intmax_t
15663 #ifdef _INT64_T
15664 typedef int64_t intmax_t;
15665 #else
15666 typedef long intmax_t;
15667 #endif
15668 #endif
15669 #ifndef uintmax_t
15670 #ifdef _UINT64_T
15671 typedef uint64_t uintmax_t;
15672 #else
15673 typedef unsigned long uintmax_t;
15674 #endif
15675 #endif
15676EOF
15677fi
15678
15679sed 's/^ *//' >> tmp-stdint.h <<EOF
15680
15681 #endif /* GCC_GENERATED_STDINT_H */
15682EOF
15683
15684if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15685 rm -f tmp-stdint.h
15686else
15687 mv -f tmp-stdint.h gstdint.h
15688fi
15689
15690 ;;
ecd3459e 15691 "default":C) if test -n "$CONFIG_FILES"; then
15692 if test -n "${with_target_subdir}"; then
15693 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15694 # that multilib installs will end up installed in the correct place.
15695 # The testsuite needs it for multilib-aware ABI baseline files.
15696 # To work around this not being passed down from config-ml.in ->
15697 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15698 # append it here. Only modify Makefiles that have just been created.
15699 #
15700 # Also, get rid of this simulated-VPATH thing that automake does.
15701 cat > vpsed << \_EOF
15702 s!`test -f '$<' || echo '$(srcdir)/'`!!
15703_EOF
15704 for i in $SUBDIRS; do
15705 case $CONFIG_FILES in
15706 *${i}/Makefile*)
15707 #echo "Adding MULTISUBDIR to $i/Makefile"
15708 sed -f vpsed $i/Makefile > tmp
15709 grep '^MULTISUBDIR =' Makefile >> tmp
15710 mv tmp $i/Makefile
15711 ;;
15712 esac
15713 done
15714 rm vpsed
15715 fi
15716 fi
15717 ;;
15718
15719 esac
15720done # for ac_tag
15721
15722
15723as_fn_exit 0
15724_ACEOF
15725ac_clean_files=$ac_clean_files_save
15726
15727test $ac_write_fail = 0 ||
15728 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15729
15730
15731# configure is writing to config.log, and then calls config.status.
15732# config.status does its own redirection, appending to config.log.
15733# Unfortunately, on DOS this fails, as config.log is still kept open
15734# by configure, so config.status won't be able to write to it; its
15735# output is simply discarded. So we exec the FD to /dev/null,
15736# effectively closing config.log, so it can be properly (re)opened and
15737# appended to by config.status. When coming back to configure, we
15738# need to make the FD available again.
15739if test "$no_create" != yes; then
15740 ac_cs_success=:
15741 ac_config_status_args=
15742 test "$silent" = yes &&
15743 ac_config_status_args="$ac_config_status_args --quiet"
15744 exec 5>/dev/null
15745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15746 exec 5>>config.log
15747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15748 # would make configure fail if this is the last instruction.
15749 $ac_cs_success || as_fn_exit $?
15750fi
15751if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15753$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15754fi
15755