]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure
re PR debug/46252 (-fcompare-debug failure (length) with -O -frerun-cse-after-loop...
[thirdparty/gcc.git] / lto-plugin / configure
CommitLineData
d7f09764
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
52327858
L
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
d7f09764
DN
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7f09764
DN
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7f09764
DN
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='LTO plugin for ld'
558PACKAGE_TARNAME='lto-plugin'
559PACKAGE_VERSION='0.1'
560PACKAGE_STRING='LTO plugin for ld 0.1'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578# include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
1cd0b716 604LTO_FORMAT
d7f09764
DN
605target_noncanonical
606CPP
607OTOOL64
608OTOOL
609LIPO
610NMEDIT
611DSYMUTIL
d7f09764
DN
612RANLIB
613AR
614OBJDUMP
615LN_S
616NM
617ac_ct_DUMPBIN
618DUMPBIN
619LD
620FGREP
621EGREP
622GREP
623SED
d7f09764
DN
624LIBTOOL
625LIBELFINC
626LIBELFLIBS
627am__fastdepCC_FALSE
628am__fastdepCC_TRUE
629CCDEPMODE
630AMDEPBACKSLASH
631AMDEP_FALSE
632AMDEP_TRUE
633am__quote
634am__include
635DEPDIR
636OBJEXT
637EXEEXT
638ac_ct_CC
639CPPFLAGS
640LDFLAGS
641CFLAGS
642CC
03428d41
RG
643MAINT
644MAINTAINER_MODE_FALSE
645MAINTAINER_MODE_TRUE
d7f09764
DN
646am__untar
647am__tar
648AMTAR
649am__leading_dot
650SET_MAKE
651AWK
652mkdir_p
653MKDIR_P
654INSTALL_STRIP_PROGRAM
655STRIP
656install_sh
657MAKEINFO
658AUTOHEADER
659AUTOMAKE
660AUTOCONF
661ACLOCAL
662VERSION
663PACKAGE
664CYGPATH_W
665am__isrc
666INSTALL_DATA
667INSTALL_SCRIPT
668INSTALL_PROGRAM
669target_subdir
670host_subdir
671build_subdir
672build_libsubdir
73d5e770
L
673target_os
674target_vendor
675target_cpu
676target
677host_os
678host_vendor
679host_cpu
680host
d7f09764
DN
681build_os
682build_vendor
683build_cpu
684build
685target_alias
686host_alias
687build_alias
688LIBS
689ECHO_T
690ECHO_N
691ECHO_C
692DEFS
693mandir
694localedir
695libdir
696psdir
697pdfdir
698dvidir
699htmldir
700infodir
701docdir
702oldincludedir
703includedir
704localstatedir
705sharedstatedir
706sysconfdir
707datadir
708datarootdir
709libexecdir
710sbindir
711bindir
712program_transform_name
713prefix
714exec_prefix
715PACKAGE_URL
716PACKAGE_BUGREPORT
717PACKAGE_STRING
718PACKAGE_VERSION
719PACKAGE_TARNAME
720PACKAGE_NAME
721PATH_SEPARATOR
722SHELL'
723ac_subst_files=''
724ac_user_opts='
725enable_option_checking
726with_build_libsubdir
03428d41 727enable_maintainer_mode
d7f09764 728enable_dependency_tracking
4c0f4b0b 729enable_largefile
d7f09764
DN
730enable_shared
731enable_static
732with_pic
733enable_fast_install
734with_gnu_ld
735enable_libtool_lock
d7f09764
DN
736'
737 ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745LIBELFLIBS
746LIBELFINC
747CPP'
748
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
753ac_unrecognized_opts=
754ac_unrecognized_sep=
755# The variables have the same names as the options, with
756# dashes changed to underlines.
757cache_file=/dev/null
758exec_prefix=NONE
759no_create=
760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
765silent=
766site=
767srcdir=
768verbose=
769x_includes=NONE
770x_libraries=NONE
771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
777# (The list follows the same order as the GNU Coding Standards.)
778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
786includedir='${prefix}/include'
787oldincludedir='/usr/include'
788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
797
798ac_prev=
799ac_dashdash=
800for ac_option
801do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
844
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861"enable_$ac_useropt"
862"*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
893
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
902
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
906
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
913
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
918
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
924
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
931
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
936
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
941
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
948
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
953
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
960
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
965
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
969
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
973
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
977
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
986
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
991
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
998
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1005
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1022
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1027
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1032
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091"with_$ac_useropt"
1092"*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"with_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information."
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 ;;
1153
1154 esac
1155done
1156
1157if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1175do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1206 fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error "working directory cannot be determined"
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error "pwd does not report name of working directory"
1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232$as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1253 fi
1254else
1255 ac_srcdir_defaulted=no
1256fi
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260fi
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE. See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308
1309Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342_ACEOF
1343
1344 cat <<\_ACEOF
1345
1346Program names:
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1350
1351System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
73d5e770 1354 --target=TARGET configure for building compilers for TARGET [HOST]
d7f09764
DN
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
03428d41
RG
1368 --enable-maintainer-mode enable make rules and dependencies not useful
1369 (and sometimes confusing) to the casual installer
d7f09764
DN
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
4c0f4b0b 1372 --disable-largefile omit support for large files
d7f09764
DN
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1378
1379Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-build-libsubdir=DIR Directory where to find libraries for build system
1383 --with-pic try to use only PIC/non-PIC objects [default=use
1384 both]
1385 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1386
1387Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 LIBELFLIBS How to link libelf
1396 LIBELFINC How to find libelf include files
1397 CPP C preprocessor
1398
1399Use these variables to override the choices made by `configure' or to help
1400it to find libraries and programs with nonstandard names/locations.
1401
1402Report bugs to the package provider.
1403_ACEOF
1404ac_status=$?
1405fi
1406
1407if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1414
1415case "$ac_dir" in
1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417*)
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425esac
1426ac_abs_top_builddir=$ac_pwd
1427ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428# for backward compatibility:
1429ac_top_builddir=$ac_top_build_prefix
1430
1431case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444esac
1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460fi
1461
1462test -n "$ac_init_help" && exit $ac_status
1463if $ac_init_version; then
1464 cat <<\_ACEOF
1465LTO plugin for ld configure 0.1
1466generated by GNU Autoconf 2.64
1467
1468Copyright (C) 2009 Free Software Foundation, Inc.
1469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
1471_ACEOF
1472 exit
1473fi
1474
1475## ------------------------ ##
1476## Autoconf initialization. ##
1477## ------------------------ ##
1478
1479# ac_fn_c_try_compile LINENO
1480# --------------------------
1481# Try to compile conftest.$ac_ext, and return whether this succeeded.
1482ac_fn_c_try_compile ()
1483{
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490esac
1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492$as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506else
1507 $as_echo "$as_me: failed program was:" >&5
1508sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515} # ac_fn_c_try_compile
1516
1517# ac_fn_c_try_link LINENO
1518# -----------------------
1519# Try to link conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_link ()
1521{
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1525case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1545 }; then :
1546 ac_retval=0
1547else
1548 $as_echo "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
1550
1551 ac_retval=1
1552fi
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1560
1561} # ac_fn_c_try_link
1562
1563# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564# -------------------------------------------------------
1565# Tests whether HEADER exists and can be compiled using the include files in
1566# INCLUDES, setting the cache variable VAR accordingly.
1567ac_fn_c_check_header_compile ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571$as_echo_n "checking for $2... " >&6; }
1572if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1574else
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576/* end confdefs.h. */
1577$4
1578#include <$2>
1579_ACEOF
1580if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582else
1583 eval "$3=no"
1584fi
1585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586fi
1587eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589$as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
1592} # ac_fn_c_check_header_compile
1593
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_try_run LINENO
1632# ----------------------
1633# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634# that executables *can* be run.
1635ac_fn_c_try_run ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=$ac_status
1666fi
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671} # ac_fn_c_try_run
1672
1673# ac_fn_c_check_func LINENO FUNC VAR
1674# ----------------------------------
1675# Tests whether FUNC exists, setting the cache variable VAR accordingly
1676ac_fn_c_check_func ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h. */
1686/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688#define $2 innocuous_$2
1689
1690/* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1694
1695#ifdef __STDC__
1696# include <limits.h>
1697#else
1698# include <assert.h>
1699#endif
1700
1701#undef $2
1702
1703/* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1706#ifdef __cplusplus
1707extern "C"
1708#endif
1709char $2 ();
1710/* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713#if defined __stub_$2 || defined __stub___$2
1714choke me
1715#endif
1716
1717int
1718main ()
1719{
1720return $2 ();
1721 ;
1722 return 0;
1723}
1724_ACEOF
1725if ac_fn_c_try_link "$LINENO"; then :
1726 eval "$3=yes"
1727else
1728 eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738} # ac_fn_c_check_func
21750c78
RE
1739
1740# ac_fn_c_find_uintX_t LINENO BITS VAR
1741# ------------------------------------
1742# Finds an unsigned integer type with width BITS, setting cache variable VAR
1743# accordingly.
1744ac_fn_c_find_uintX_t ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1748$as_echo_n "checking for uint$2_t... " >&6; }
1749if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1751else
1752 eval "$3=no"
1753 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1754 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$ac_includes_default
1758int
1759main ()
1760{
1761static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1762test_array [0] = 0
1763
1764 ;
1765 return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769 case $ac_type in #(
1770 uint$2_t) :
1771 eval "$3=yes" ;; #(
1772 *) :
1773 eval "$3=\$ac_type" ;;
1774esac
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 eval as_val=\$$3
1778 if test "x$as_val" = x""no; then :
1779
1780else
1781 break
1782fi
1783 done
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789
1790} # ac_fn_c_find_uintX_t
d7f09764
DN
1791cat >config.log <<_ACEOF
1792This file contains any messages produced by compilers while
1793running configure, to aid debugging if configure makes a mistake.
1794
1795It was created by LTO plugin for ld $as_me 0.1, which was
1796generated by GNU Autoconf 2.64. Invocation command line was
1797
1798 $ $0 $@
1799
1800_ACEOF
1801exec 5>>config.log
1802{
1803cat <<_ASUNAME
1804## --------- ##
1805## Platform. ##
1806## --------- ##
1807
1808hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
1814/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816
1817/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824
1825_ASUNAME
1826
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1833 done
1834IFS=$as_save_IFS
1835
1836} >&5
1837
1838cat >&5 <<_ACEOF
1839
1840
1841## ----------- ##
1842## Core tests. ##
1843## ----------- ##
1844
1845_ACEOF
1846
1847
1848# Keep a trace of the command line.
1849# Strip out --no-create and --no-recursion so they do not pile up.
1850# Strip out --silent because we don't want to record it for future runs.
1851# Also quote any args containing shell meta-characters.
1852# Make two passes to allow for proper duplicate-argument suppression.
1853ac_configure_args=
1854ac_configure_args0=
1855ac_configure_args1=
1856ac_must_keep_next=false
1857for ac_pass in 1 2
1858do
1859 for ac_arg
1860 do
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871 2)
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1884 ;;
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1887 fi
1888 as_fn_append ac_configure_args " '$ac_arg'"
1889 ;;
1890 esac
1891 done
1892done
1893{ ac_configure_args0=; unset ac_configure_args0;}
1894{ ac_configure_args1=; unset ac_configure_args1;}
1895
1896# When interrupted or exit'd, cleanup temporary files, and complete
1897# config.log. We remove comments because anyway the quotes in there
1898# would cause problems or look ugly.
1899# WARNING: Use '\'' to represent an apostrophe within the trap.
1900# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1903 {
1904 echo
1905
1906 cat <<\_ASBOX
1907## ---------------- ##
1908## Cache variables. ##
1909## ---------------- ##
1910_ASBOX
1911 echo
1912 # The following way of writing the cache mishandles newlines in values,
1913(
1914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in #(
1917 *${as_nl}*)
1918 case $ac_var in #(
1919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 esac
1922 case $ac_var in #(
1923 _ | IFS | as_nl) ;; #(
1924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925 *) { eval $ac_var=; unset $ac_var;} ;;
1926 esac ;;
1927 esac
1928 done
1929 (set) 2>&1 |
1930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931 *${as_nl}ac_space=\ *)
1932 sed -n \
1933 "s/'\''/'\''\\\\'\'''\''/g;
1934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 ;; #(
1936 *)
1937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 ;;
1939 esac |
1940 sort
1941)
1942 echo
1943
1944 cat <<\_ASBOX
1945## ----------------- ##
1946## Output variables. ##
1947## ----------------- ##
1948_ASBOX
1949 echo
1950 for ac_var in $ac_subst_vars
1951 do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in
1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 esac
1956 $as_echo "$ac_var='\''$ac_val'\''"
1957 done | sort
1958 echo
1959
1960 if test -n "$ac_subst_files"; then
1961 cat <<\_ASBOX
1962## ------------------- ##
1963## File substitutions. ##
1964## ------------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_files
1968 do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1976 fi
1977
1978 if test -s confdefs.h; then
1979 cat <<\_ASBOX
1980## ----------- ##
1981## confdefs.h. ##
1982## ----------- ##
1983_ASBOX
1984 echo
1985 cat confdefs.h
1986 echo
1987 fi
1988 test "$ac_signal" != 0 &&
1989 $as_echo "$as_me: caught signal $ac_signal"
1990 $as_echo "$as_me: exit $exit_status"
1991 } >&5
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994 exit $exit_status
1995' 0
1996for ac_signal in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1998done
1999ac_signal=0
2000
2001# confdefs.h avoids OS command line length limits that DEFS can exceed.
2002rm -f -r conftest* confdefs.h
2003
2004$as_echo "/* confdefs.h */" > confdefs.h
2005
2006# Predefined preprocessor variables.
2007
2008cat >>confdefs.h <<_ACEOF
2009#define PACKAGE_NAME "$PACKAGE_NAME"
2010_ACEOF
2011
2012cat >>confdefs.h <<_ACEOF
2013#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2014_ACEOF
2015
2016cat >>confdefs.h <<_ACEOF
2017#define PACKAGE_VERSION "$PACKAGE_VERSION"
2018_ACEOF
2019
2020cat >>confdefs.h <<_ACEOF
2021#define PACKAGE_STRING "$PACKAGE_STRING"
2022_ACEOF
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2026_ACEOF
2027
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_URL "$PACKAGE_URL"
2030_ACEOF
2031
2032
2033# Let the site file select an alternate cache file if it wants to.
2034# Prefer an explicitly selected file to automatically selected ones.
2035ac_site_file1=NONE
2036ac_site_file2=NONE
2037if test -n "$CONFIG_SITE"; then
2038 ac_site_file1=$CONFIG_SITE
2039elif test "x$prefix" != xNONE; then
2040 ac_site_file1=$prefix/share/config.site
2041 ac_site_file2=$prefix/etc/config.site
2042else
2043 ac_site_file1=$ac_default_prefix/share/config.site
2044 ac_site_file2=$ac_default_prefix/etc/config.site
2045fi
2046for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047do
2048 test "x$ac_site_file" = xNONE && continue
2049 if test -r "$ac_site_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052 sed 's/^/| /' "$ac_site_file" >&5
2053 . "$ac_site_file"
2054 fi
2055done
2056
2057if test -r "$cache_file"; then
2058 # Some versions of bash will fail to source /dev/null (special
2059 # files actually), so we avoid doing that.
2060 if test -f "$cache_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062$as_echo "$as_me: loading cache $cache_file" >&6;}
2063 case $cache_file in
2064 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065 *) . "./$cache_file";;
2066 esac
2067 fi
2068else
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070$as_echo "$as_me: creating cache $cache_file" >&6;}
2071 >$cache_file
2072fi
2073
2074# Check that the precious variables saved in the cache have kept the same
2075# value.
2076ac_cache_corrupted=false
2077for ac_var in $ac_precious_vars; do
2078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2079 eval ac_new_set=\$ac_env_${ac_var}_set
2080 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2081 eval ac_new_val=\$ac_env_${ac_var}_value
2082 case $ac_old_set,$ac_new_set in
2083 set,)
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2085$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2086 ac_cache_corrupted=: ;;
2087 ,set)
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2089$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2090 ac_cache_corrupted=: ;;
2091 ,);;
2092 *)
2093 if test "x$ac_old_val" != "x$ac_new_val"; then
2094 # differences in whitespace do not lead to failure.
2095 ac_old_val_w=`echo x $ac_old_val`
2096 ac_new_val_w=`echo x $ac_new_val`
2097 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2099$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2100 ac_cache_corrupted=:
2101 else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2103$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2104 eval $ac_var=\$ac_old_val
2105 fi
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2107$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2109$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2110 fi;;
2111 esac
2112 # Pass precious variables to config.status.
2113 if test "$ac_new_set" = set; then
2114 case $ac_new_val in
2115 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 *) ac_arg=$ac_var=$ac_new_val ;;
2117 esac
2118 case " $ac_configure_args " in
2119 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2120 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2121 esac
2122 fi
2123done
2124if $ac_cache_corrupted; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2128$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2129 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2130fi
2131## -------------------- ##
2132## Main body of script. ##
2133## -------------------- ##
2134
2135ac_ext=c
2136ac_cpp='$CPP $CPPFLAGS'
2137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140
2141
2142
2143
2144
2145ac_aux_dir=
2146for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147 for ac_t in install-sh install.sh shtool; do
2148 if test -f "$ac_dir/$ac_t"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/$ac_t -c"
2151 break 2
2152 fi
2153 done
2154done
2155if test -z "$ac_aux_dir"; then
2156 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2157fi
2158
2159# These three variables are undocumented and unsupported,
2160# and are intended to be withdrawn in a future Autoconf release.
2161# They can cause serious problems if a builder's source tree is in a directory
2162# whose full name contains unusual characters.
2163ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2164ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2165ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2166
2167
2168# Make sure we can run config.sub.
2169$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2170 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2171
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2173$as_echo_n "checking build system type... " >&6; }
2174if test "${ac_cv_build+set}" = set; then :
2175 $as_echo_n "(cached) " >&6
2176else
2177 ac_build_alias=$build_alias
2178test "x$ac_build_alias" = x &&
2179 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2180test "x$ac_build_alias" = x &&
2181 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2182ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2183 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2184
2185fi
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2187$as_echo "$ac_cv_build" >&6; }
2188case $ac_cv_build in
2189*-*-*) ;;
2190*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2191esac
2192build=$ac_cv_build
2193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_build
2195shift
2196build_cpu=$1
2197build_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201build_os=$*
2202IFS=$ac_save_IFS
2203case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2204
2205
73d5e770
L
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2207$as_echo_n "checking host system type... " >&6; }
2208if test "${ac_cv_host+set}" = set; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 if test "x$host_alias" = x; then
2212 ac_cv_host=$ac_cv_build
2213else
2214 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2216fi
2217
2218fi
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2220$as_echo "$ac_cv_host" >&6; }
2221case $ac_cv_host in
2222*-*-*) ;;
2223*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2224esac
2225host=$ac_cv_host
2226ac_save_IFS=$IFS; IFS='-'
2227set x $ac_cv_host
2228shift
2229host_cpu=$1
2230host_vendor=$2
2231shift; shift
2232# Remember, the first character of IFS is used to create $*,
2233# except with old shells:
2234host_os=$*
2235IFS=$ac_save_IFS
2236case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2237
2238
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2240$as_echo_n "checking target system type... " >&6; }
2241if test "${ac_cv_target+set}" = set; then :
2242 $as_echo_n "(cached) " >&6
2243else
2244 if test "x$target_alias" = x; then
2245 ac_cv_target=$ac_cv_host
2246else
2247 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2249fi
2250
2251fi
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2253$as_echo "$ac_cv_target" >&6; }
2254case $ac_cv_target in
2255*-*-*) ;;
2256*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2257esac
2258target=$ac_cv_target
2259ac_save_IFS=$IFS; IFS='-'
2260set x $ac_cv_target
2261shift
2262target_cpu=$1
2263target_vendor=$2
2264shift; shift
2265# Remember, the first character of IFS is used to create $*,
2266# except with old shells:
2267target_os=$*
2268IFS=$ac_save_IFS
2269case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2270
2271
2272# The aliases save the names the user supplied, while $host etc.
2273# will get canonicalized.
2274test -n "$target_alias" &&
2275 test "$program_prefix$program_suffix$program_transform_name" = \
2276 NONENONEs,x,x, &&
2277 program_prefix=${target_alias}-
2278
d7f09764
DN
2279 case ${build_alias} in
2280 "") build_noncanonical=${build} ;;
2281 *) build_noncanonical=${build_alias} ;;
2282esac
2283
2284 case ${host_alias} in
2285 "") host_noncanonical=${build_noncanonical} ;;
2286 *) host_noncanonical=${host_alias} ;;
2287esac
2288
2289 case ${target_alias} in
2290 "") target_noncanonical=${host_noncanonical} ;;
2291 *) target_noncanonical=${target_alias} ;;
2292esac
2293
2294
2295# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2296# have matching libraries, they should use host libraries: Makefile.tpl
2297# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2298# However, they still use the build modules, because the corresponding
2299# host modules (e.g. bison) are only built for the host when bootstrap
2300# finishes. So:
2301# - build_subdir is where we find build modules, and never changes.
2302# - build_libsubdir is where we find build libraries, and can be overridden.
2303
2304# Prefix 'build-' so this never conflicts with target_subdir.
2305build_subdir="build-${build_noncanonical}"
2306
2307# Check whether --with-build-libsubdir was given.
2308if test "${with_build_libsubdir+set}" = set; then :
2309 withval=$with_build_libsubdir; build_libsubdir="$withval"
2310else
2311 build_libsubdir="$build_subdir"
2312fi
2313
2314# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2315if ( test $srcdir = . && test -d gcc ) \
2316 || test -d $srcdir/../host-${host_noncanonical}; then
2317 host_subdir="host-${host_noncanonical}"
2318else
2319 host_subdir=.
2320fi
2321# No prefix.
2322target_subdir=${target_noncanonical}
2323
2324am__api_version='1.11'
2325
2326# Find a good install program. We prefer a C program (faster),
2327# so one script is as good as another. But avoid the broken or
2328# incompatible versions:
2329# SysV /etc/install, /usr/sbin/install
2330# SunOS /usr/etc/install
2331# IRIX /sbin/install
2332# AIX /bin/install
2333# AmigaOS /C/install, which installs bootblocks on floppy discs
2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337# OS/2's system install, which has a completely different semantic
2338# ./install, which can be erroneously created by make from ./install.sh.
2339# Reject install programs that cannot install multiple files.
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341$as_echo_n "checking for a BSD-compatible install... " >&6; }
2342if test -z "$INSTALL"; then
2343if test "${ac_cv_path_install+set}" = set; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2384 fi
2385 fi
2386 fi
2387 done
2388 done
2389 ;;
2390esac
2391
2392 done
2393IFS=$as_save_IFS
2394
2395rm -rf conftest.one conftest.two conftest.dir
2396
2397fi
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2406 fi
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409$as_echo "$INSTALL" >&6; }
2410
2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412# It thinks the first close brace ends the variable substitution.
2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420$as_echo_n "checking whether build environment is sane... " >&6; }
2421# Just in case
2422sleep 1
2423echo timestamp > conftest.file
2424# Reject unsafe characters in $srcdir or the absolute working directory
2425# name. Accept space and tab only in the latter.
2426am_lf='
2427'
2428case `pwd` in
2429 *[\\\"\#\$\&\'\`$am_lf]*)
2430 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2431esac
2432case $srcdir in
2433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2434 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2435esac
2436
2437# Do `set' in a subshell so we don't clobber the current shell's
2438# arguments. Must try -L first in case configure is actually a
2439# symlink; some systems play weird games with the mod time of symlinks
2440# (eg FreeBSD returns the mod time of the symlink's containing
2441# directory).
2442if (
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2447 fi
2448 rm -f conftest.file
2449 if test "$*" != "X $srcdir/configure conftest.file" \
2450 && test "$*" != "X conftest.file $srcdir/configure"; then
2451
2452 # If neither matched, then we have a broken ls. This can happen
2453 # if, for instance, CONFIG_SHELL is bash and it inherits a
2454 # broken ls alias from the environment. This has actually
2455 # happened. Such a system could not be considered "sane".
2456 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2457alias in your environment" "$LINENO" 5
2458 fi
2459
2460 test "$2" = conftest.file
2461 )
2462then
2463 # Ok.
2464 :
2465else
2466 as_fn_error "newly created file is older than distributed files!
2467Check your system clock" "$LINENO" 5
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470$as_echo "yes" >&6; }
2471test "$program_prefix" != NONE &&
2472 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2473# Use a double $ so make ignores it.
2474test "$program_suffix" != NONE &&
2475 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2476# Double any \ or $.
2477# By default was `s,x,x', remove it if useless.
2478ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2479program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2480
2481# expand $ac_aux_dir to an absolute path
2482am_aux_dir=`cd $ac_aux_dir && pwd`
2483
2484if test x"${MISSING+set}" != xset; then
2485 case $am_aux_dir in
2486 *\ * | *\ *)
2487 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2488 *)
2489 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2490 esac
2491fi
2492# Use eval to expand $SHELL
2493if eval "$MISSING --run true"; then
2494 am_missing_run="$MISSING --run "
2495else
2496 am_missing_run=
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2498$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2499fi
2500
2501if test x"${install_sh}" != xset; then
2502 case $am_aux_dir in
2503 *\ * | *\ *)
2504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2505 *)
2506 install_sh="\${SHELL} $am_aux_dir/install-sh"
2507 esac
2508fi
2509
2510# Installed binaries are usually stripped using `strip' when the user
2511# run `make install-strip'. However `strip' might not be the right
2512# tool to use in cross-compilation environments, therefore Automake
2513# will honor the `STRIP' environment variable to overrule this program.
2514if test "$cross_compiling" != no; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}strip; ac_word=$2
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
2520if test "${ac_cv_prog_STRIP+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522else
2523 if test -n "$STRIP"; then
2524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538 done
2539IFS=$as_save_IFS
2540
2541fi
2542fi
2543STRIP=$ac_cv_prog_STRIP
2544if test -n "$STRIP"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2546$as_echo "$STRIP" >&6; }
2547else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
2550fi
2551
2552
2553fi
2554if test -z "$ac_cv_prog_STRIP"; then
2555 ac_ct_STRIP=$STRIP
2556 # Extract the first word of "strip", so it can be a program name with args.
2557set dummy strip; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 if test -n "$ac_ct_STRIP"; then
2564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_STRIP="strip"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578 done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584if test -n "$ac_ct_STRIP"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2586$as_echo "$ac_ct_STRIP" >&6; }
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592 if test "x$ac_ct_STRIP" = x; then
2593 STRIP=":"
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596yes:)
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599ac_tool_warned=yes ;;
2600esac
2601 STRIP=$ac_ct_STRIP
2602 fi
2603else
2604 STRIP="$ac_cv_prog_STRIP"
2605fi
2606
2607fi
2608INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2609
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2611$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2612if test -z "$MKDIR_P"; then
2613 if test "${ac_cv_path_mkdir+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_prog in mkdir gmkdir; do
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2625 'mkdir (GNU coreutils) '* | \
2626 'mkdir (coreutils) '* | \
2627 'mkdir (fileutils) '4.1*)
2628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2629 break 3;;
2630 esac
2631 done
2632 done
2633 done
2634IFS=$as_save_IFS
2635
2636fi
2637
2638 if test "${ac_cv_path_mkdir+set}" = set; then
2639 MKDIR_P="$ac_cv_path_mkdir -p"
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for MKDIR_P within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 test -d ./--version && rmdir ./--version
2646 MKDIR_P="$ac_install_sh -d"
2647 fi
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2650$as_echo "$MKDIR_P" >&6; }
2651
2652mkdir_p="$MKDIR_P"
2653case $mkdir_p in
2654 [\\/$]* | ?:[\\/]*) ;;
2655 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2656esac
2657
2658for ac_prog in gawk mawk nawk awk
2659do
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661set dummy $ac_prog; ac_word=$2
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if test "${ac_cv_prog_AWK+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666else
2667 if test -n "$AWK"; then
2668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_AWK="$ac_prog"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681done
2682 done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687AWK=$ac_cv_prog_AWK
2688if test -n "$AWK"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2690$as_echo "$AWK" >&6; }
2691else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697 test -n "$AWK" && break
2698done
2699
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2701$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2702set x ${MAKE-make}
2703ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2704if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2705 $as_echo_n "(cached) " >&6
2706else
2707 cat >conftest.make <<\_ACEOF
2708SHELL = /bin/sh
2709all:
2710 @echo '@@@%%%=$(MAKE)=@@@%%%'
2711_ACEOF
2712# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2713case `${MAKE-make} -f conftest.make 2>/dev/null` in
2714 *@@@%%%=?*=@@@%%%*)
2715 eval ac_cv_prog_make_${ac_make}_set=yes;;
2716 *)
2717 eval ac_cv_prog_make_${ac_make}_set=no;;
2718esac
2719rm -f conftest.make
2720fi
2721if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723$as_echo "yes" >&6; }
2724 SET_MAKE=
2725else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727$as_echo "no" >&6; }
2728 SET_MAKE="MAKE=${MAKE-make}"
2729fi
2730
2731rm -rf .tst 2>/dev/null
2732mkdir .tst 2>/dev/null
2733if test -d .tst; then
2734 am__leading_dot=.
2735else
2736 am__leading_dot=_
2737fi
2738rmdir .tst 2>/dev/null
2739
2740if test "`cd $srcdir && pwd`" != "`pwd`"; then
2741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2742 # is not polluted with repeated "-I."
2743 am__isrc=' -I$(srcdir)'
2744 # test to see if srcdir already configured
2745 if test -f $srcdir/config.status; then
2746 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2747 fi
2748fi
2749
2750# test whether we have cygpath
2751if test -z "$CYGPATH_W"; then
2752 if (cygpath --version) >/dev/null 2>/dev/null; then
2753 CYGPATH_W='cygpath -w'
2754 else
2755 CYGPATH_W=echo
2756 fi
2757fi
2758
2759
2760# Define the identity of the package.
2761 PACKAGE='lto-plugin'
2762 VERSION='0.1'
2763
2764
2765cat >>confdefs.h <<_ACEOF
2766#define PACKAGE "$PACKAGE"
2767_ACEOF
2768
2769
2770cat >>confdefs.h <<_ACEOF
2771#define VERSION "$VERSION"
2772_ACEOF
2773
2774# Some tools Automake needs.
2775
2776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2777
2778
2779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2780
2781
2782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2783
2784
2785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2786
2787
2788MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2789
2790# We need awk for the "check" target. The system "awk" is bad on
2791# some platforms.
2792# Always define AMTAR for backward compatibility.
2793
2794AMTAR=${AMTAR-"${am_missing_run}tar"}
2795
2796am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2797
2798
2799
2800
2801
03428d41
RG
2802
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2804$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2805 # Check whether --enable-maintainer-mode was given.
2806if test "${enable_maintainer_mode+set}" = set; then :
2807 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2808else
2809 USE_MAINTAINER_MODE=no
2810fi
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2813$as_echo "$USE_MAINTAINER_MODE" >&6; }
2814 if test $USE_MAINTAINER_MODE = yes; then
2815 MAINTAINER_MODE_TRUE=
2816 MAINTAINER_MODE_FALSE='#'
2817else
2818 MAINTAINER_MODE_TRUE='#'
2819 MAINTAINER_MODE_FALSE=
2820fi
2821
2822 MAINT=$MAINTAINER_MODE_TRUE
2823
2824
d7f09764
DN
2825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}gcc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853 done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861$as_echo "$CC" >&6; }
2862else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868fi
2869if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872set dummy gcc; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CC="gcc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893 done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901$as_echo "$ac_ct_CC" >&6; }
2902else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911yes:)
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914ac_tool_warned=yes ;;
2915esac
2916 CC=$ac_ct_CC
2917 fi
2918else
2919 CC="$ac_cv_prog_CC"
2920fi
2921
2922if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2925set dummy ${ac_tool_prefix}cc; ac_word=$2
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927$as_echo_n "checking for $ac_word... " >&6; }
2928if test "${ac_cv_prog_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC="${ac_tool_prefix}cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945done
2946 done
2947IFS=$as_save_IFS
2948
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954$as_echo "$CC" >&6; }
2955else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957$as_echo "no" >&6; }
2958fi
2959
2960
2961 fi
2962fi
2963if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965set dummy cc; ac_word=$2
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967$as_echo_n "checking for $ac_word... " >&6; }
2968if test "${ac_cv_prog_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
2974 ac_prog_rejected=no
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2984 continue
2985 fi
2986 ac_cv_prog_CC="cc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991 done
2992IFS=$as_save_IFS
2993
2994if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2997 shift
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3002 shift
3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3004 fi
3005fi
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011$as_echo "$CC" >&6; }
3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017
3018fi
3019if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl.exe
3022 do
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if test "${ac_cv_prog_CC+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053$as_echo "$CC" >&6; }
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059
3060 test -n "$CC" && break
3061 done
3062fi
3063if test -z "$CC"; then
3064 ac_ct_CC=$CC
3065 for ac_prog in cl.exe
3066do
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068set dummy $ac_prog; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_CC="$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088done
3089 done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097$as_echo "$ac_ct_CC" >&6; }
3098else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104 test -n "$ac_ct_CC" && break
3105done
3106
3107 if test "x$ac_ct_CC" = x; then
3108 CC=""
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111yes:)
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114ac_tool_warned=yes ;;
3115esac
3116 CC=$ac_ct_CC
3117 fi
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125as_fn_error "no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." "$LINENO" 5; }
3127
3128# Provide some information about the compiler.
3129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130set X $ac_compile
3131ac_compiler=$2
3132for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 ac_status=$?
3142 if test -s conftest.err; then
3143 sed '10a\
3144... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 rm -f conftest.er1 conftest.err
3148 fi
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151done
3152
3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170$as_echo_n "checking for C compiler default output file name... " >&6; }
3171ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173# The possible output files:
3174ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
3176ac_rmfiles=
3177for ac_file in $ac_files
3178do
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183done
3184rm -f $ac_rmfiles
3185
3186if { { ac_try="$ac_link_default"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199# in a Makefile. We should not override ac_cv_exeext if it was cached,
3200# so that the user can short-circuit this test for compilers unknown to
3201# Autoconf.
3202for ac_file in $ac_files ''
3203do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3207 ;;
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 fi
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
3222 break;;
3223 * )
3224 break;;
3225 esac
3226done
3227test "$ac_cv_exeext" = no && ac_cv_exeext=
3228
3229else
3230 ac_file=''
3231fi
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233$as_echo "$ac_file" >&6; }
3234if test -z "$ac_file"; then :
3235 $as_echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240{ as_fn_set_status 77
3241as_fn_error "C compiler cannot create executables
3242See \`config.log' for more details." "$LINENO" 5; }; }
3243fi
3244ac_exeext=$ac_cv_exeext
3245
3246# Check that the compiler produces executables we can run. If not, either
3247# the compiler is broken, or we cross compile.
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249$as_echo_n "checking whether the C compiler works... " >&6; }
3250# If not cross compiling, check that we can run a simple program.
3251if test "$cross_compiling" != yes; then
3252 if { ac_try='./$ac_file'
3253 { { case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; }; then
3263 cross_compiling=no
3264 else
3265 if test "$cross_compiling" = maybe; then
3266 cross_compiling=yes
3267 else
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270as_fn_error "cannot run C compiled programs.
3271If you meant to cross compile, use \`--host'.
3272See \`config.log' for more details." "$LINENO" 5; }
3273 fi
3274 fi
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278
3279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3280ac_clean_files=$ac_clean_files_save
3281# Check that the compiler produces executables we can run. If not, either
3282# the compiler is broken, or we cross compile.
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3284$as_echo_n "checking whether we are cross compiling... " >&6; }
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286$as_echo "$cross_compiling" >&6; }
3287
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3289$as_echo_n "checking for suffix of executables... " >&6; }
3290if { { ac_try="$ac_link"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3302# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3303# work properly (i.e., refer to `conftest.exe'), while it won't with
3304# `rm'.
3305for ac_file in conftest.exe conftest conftest.*; do
3306 test -f "$ac_file" || continue
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 break;;
3311 * ) break;;
3312 esac
3313done
3314else
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317as_fn_error "cannot compute suffix of executables: cannot compile and link
3318See \`config.log' for more details." "$LINENO" 5; }
3319fi
3320rm -f conftest$ac_cv_exeext
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3322$as_echo "$ac_cv_exeext" >&6; }
3323
3324rm -f conftest.$ac_ext
3325EXEEXT=$ac_cv_exeext
3326ac_exeext=$EXEEXT
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328$as_echo_n "checking for suffix of object files... " >&6; }
3329if test "${ac_cv_objext+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331else
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.o conftest.obj
3344if { { ac_try="$ac_compile"
3345case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compile") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 for ac_file in conftest.o conftest.obj conftest.*; do
3356 test -f "$ac_file" || continue;
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360 break;;
3361 esac
3362done
3363else
3364 $as_echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error "cannot compute suffix of object files: cannot compile
3370See \`config.log' for more details." "$LINENO" 5; }
3371fi
3372rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375$as_echo "$ac_cv_objext" >&6; }
3376OBJEXT=$ac_cv_objext
3377ac_objext=$OBJEXT
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3382else
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389#ifndef __GNUC__
3390 choke me
3391#endif
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_compiler_gnu=yes
3399else
3400 ac_compiler_gnu=no
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410else
3411 GCC=
3412fi
3413ac_test_CFLAGS=${CFLAGS+set}
3414ac_save_CFLAGS=$CFLAGS
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416$as_echo_n "checking whether $CC accepts -g... " >&6; }
3417if test "${ac_cv_prog_cc_g+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419else
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3422 ac_cv_prog_cc_g=no
3423 CFLAGS="-g"
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h. */
3426
3427int
3428main ()
3429{
3430
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_cv_prog_cc_g=yes
3437else
3438 CFLAGS=""
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450if ac_fn_c_try_compile "$LINENO"; then :
3451
3452else
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h. */
3457
3458int
3459main ()
3460{
3461
3462 ;
3463 return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_g=yes
3468fi
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472fi
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477$as_echo "$ac_cv_prog_cc_g" >&6; }
3478if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3482 CFLAGS="-g -O2"
3483 else
3484 CFLAGS="-g"
3485 fi
3486else
3487 if test "$GCC" = yes; then
3488 CFLAGS="-O2"
3489 else
3490 CFLAGS=
3491 fi
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495if test "${ac_cv_prog_cc_c89+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497else
3498 ac_cv_prog_cc_c89=no
3499ac_save_CC=$CC
3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h. */
3502#include <stdarg.h>
3503#include <stdio.h>
3504#include <sys/types.h>
3505#include <sys/stat.h>
3506/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3507struct buf { int x; };
3508FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509static char *e (p, i)
3510 char **p;
3511 int i;
3512{
3513 return p[i];
3514}
3515static char *f (char * (*g) (char **, int), char **p, ...)
3516{
3517 char *s;
3518 va_list v;
3519 va_start (v,p);
3520 s = g (p, va_arg (v,int));
3521 va_end (v);
3522 return s;
3523}
3524
3525/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3526 function prototypes and stuff, but not '\xHH' hex character constants.
3527 These don't provoke an error unfortunately, instead are silently treated
3528 as 'x'. The following induces an error, until -std is added to get
3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3530 array size at least. It's necessary to write '\x00'==0 to get something
3531 that's true only with -std. */
3532int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
3534/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3535 inside strings and character constants. */
3536#define FOO(x) 'x'
3537int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3538
3539int test (int i, double x);
3540struct s1 {int (*f) (int a);};
3541struct s2 {int (*f) (double a);};
3542int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543int argc;
3544char **argv;
3545int
3546main ()
3547{
3548return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3554 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555do
3556 CC="$ac_save_CC $ac_arg"
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_c89=$ac_arg
3559fi
3560rm -f core conftest.err conftest.$ac_objext
3561 test "x$ac_cv_prog_cc_c89" != "xno" && break
3562done
3563rm -f conftest.$ac_ext
3564CC=$ac_save_CC
3565
3566fi
3567# AC_CACHE_VAL
3568case "x$ac_cv_prog_cc_c89" in
3569 x)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571$as_echo "none needed" >&6; } ;;
3572 xno)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3574$as_echo "unsupported" >&6; } ;;
3575 *)
3576 CC="$CC $ac_cv_prog_cc_c89"
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3578$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3579esac
3580if test "x$ac_cv_prog_cc_c89" != xno; then :
3581
3582fi
3583
3584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589DEPDIR="${am__leading_dot}deps"
3590
3591ac_config_commands="$ac_config_commands depfiles"
3592
3593
3594am_make=${MAKE-make}
3595cat > confinc << 'END'
3596am__doit:
3597 @echo this is the am__doit target
3598.PHONY: am__doit
3599END
3600# If we don't find an include directive, just comment out the code.
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3602$as_echo_n "checking for style of include used by $am_make... " >&6; }
3603am__include="#"
3604am__quote=
3605_am_result=none
3606# First try GNU make style include.
3607echo "include confinc" > confmf
3608# Ignore all kinds of additional output from `make'.
3609case `$am_make -s -f confmf 2> /dev/null` in #(
3610*the\ am__doit\ target*)
3611 am__include=include
3612 am__quote=
3613 _am_result=GNU
3614 ;;
3615esac
3616# Now try BSD make style include.
3617if test "$am__include" = "#"; then
3618 echo '.include "confinc"' > confmf
3619 case `$am_make -s -f confmf 2> /dev/null` in #(
3620 *the\ am__doit\ target*)
3621 am__include=.include
3622 am__quote="\""
3623 _am_result=BSD
3624 ;;
3625 esac
3626fi
3627
3628
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3630$as_echo "$_am_result" >&6; }
3631rm -f confinc confmf
3632
3633# Check whether --enable-dependency-tracking was given.
3634if test "${enable_dependency_tracking+set}" = set; then :
3635 enableval=$enable_dependency_tracking;
3636fi
3637
3638if test "x$enable_dependency_tracking" != xno; then
3639 am_depcomp="$ac_aux_dir/depcomp"
3640 AMDEPBACKSLASH='\'
3641fi
3642 if test "x$enable_dependency_tracking" != xno; then
3643 AMDEP_TRUE=
3644 AMDEP_FALSE='#'
3645else
3646 AMDEP_TRUE='#'
3647 AMDEP_FALSE=
3648fi
3649
3650
3651
3652depcc="$CC" am_compiler_list=
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655$as_echo_n "checking dependency style of $depcc... " >&6; }
3656if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658else
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named `D' -- because `-MD' means `put the output
3664 # in D'.
3665 mkdir conftest.dir
3666 # Copy depcomp to subdir because otherwise we won't find it if we're
3667 # using a relative directory.
3668 cp "$am_depcomp" conftest.dir
3669 cd conftest.dir
3670 # We will build objects and dependencies in a subdirectory because
3671 # it helps to detect inapplicable dependency modes. For instance
3672 # both Tru64's cc and ICC support -MD to output dependencies as a
3673 # side effect of compilation, but ICC will put the dependencies in
3674 # the current directory while Tru64 will put them in the object
3675 # directory.
3676 mkdir sub
3677
3678 am_cv_CC_dependencies_compiler_type=none
3679 if test "$am_compiler_list" = ""; then
3680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3681 fi
3682 am__universal=false
3683 case " $depcc " in #(
3684 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3685 esac
3686
3687 for depmode in $am_compiler_list; do
3688 # Setup a source with many dependencies, because some compilers
3689 # like to wrap large dependency lists on column 80 (with \), and
3690 # we should not choose a depcomp mode which is confused by this.
3691 #
3692 # We need to recreate these files for each test, as the compiler may
3693 # overwrite some of them when testing with obscure command lines.
3694 # This happens at least with the AIX C compiler.
3695 : > sub/conftest.c
3696 for i in 1 2 3 4 5 6; do
3697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3698 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3699 # Solaris 8's {/usr,}/bin/sh.
3700 touch sub/conftst$i.h
3701 done
3702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3703
3704 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705 # mode. It turns out that the SunPro C++ compiler does not properly
3706 # handle `-M -o', and we need to detect this. Also, some Intel
3707 # versions had trouble with output in subdirs
3708 am__obj=sub/conftest.${OBJEXT-o}
3709 am__minus_obj="-o $am__obj"
3710 case $depmode in
3711 gcc)
3712 # This depmode causes a compiler race in universal mode.
3713 test "$am__universal" = false || continue
3714 ;;
3715 nosideeffect)
3716 # after this tag, mechanisms are not by side-effect, so they'll
3717 # only be used when explicitly requested
3718 if test "x$enable_dependency_tracking" = xyes; then
3719 continue
3720 else
3721 break
3722 fi
3723 ;;
3724 msvisualcpp | msvcmsys)
3725 # This compiler won't grok `-c -o', but also, the minuso test has
3726 # not run yet. These depmodes are late enough in the game, and
3727 # so weak that their functioning should not be impacted.
3728 am__obj=conftest.${OBJEXT-o}
3729 am__minus_obj=
3730 ;;
3731 none) break ;;
3732 esac
3733 if depmode=$depmode \
3734 source=sub/conftest.c object=$am__obj \
3735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3737 >/dev/null 2>conftest.err &&
3738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742 # icc doesn't choke on unknown options, it will just issue warnings
3743 # or remarks (even with -Werror). So we grep stderr for any message
3744 # that says an option was ignored or not supported.
3745 # When given -MP, icc 7.0 and 7.1 complain thusly:
3746 # icc: Command line warning: ignoring option '-M'; no argument required
3747 # The diagnosis changed in icc 8.0:
3748 # icc: Command line remark: option '-MP' not supported
3749 if (grep 'ignoring option' conftest.err ||
3750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751 am_cv_CC_dependencies_compiler_type=$depmode
3752 break
3753 fi
3754 fi
3755 done
3756
3757 cd ..
3758 rm -rf conftest.dir
3759else
3760 am_cv_CC_dependencies_compiler_type=none
3761fi
3762
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3765$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3766CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3767
3768 if
3769 test "x$enable_dependency_tracking" != xno \
3770 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3771 am__fastdepCC_TRUE=
3772 am__fastdepCC_FALSE='#'
3773else
3774 am__fastdepCC_TRUE='#'
3775 am__fastdepCC_FALSE=
3776fi
3777
3778
3779
4c0f4b0b
DG
3780# Check whether --enable-largefile was given.
3781if test "${enable_largefile+set}" = set; then :
3782 enableval=$enable_largefile;
3783fi
3784
3785if test "$enable_largefile" != no; then
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3788$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3789if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791else
3792 ac_cv_sys_largefile_CC=no
3793 if test "$GCC" != yes; then
3794 ac_save_CC=$CC
3795 while :; do
3796 # IRIX 6.2 and later do not support large files by default,
3797 # so use the C compiler's -n32 option if that helps.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h. */
3800#include <sys/types.h>
3801 /* Check that off_t can represent 2**63 - 1 correctly.
3802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3803 since some C++ compilers masquerading as C compilers
3804 incorrectly reject 9223372036854775807. */
3805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3807 && LARGE_OFF_T % 2147483647 == 1)
3808 ? 1 : -1];
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 break
3819fi
3820rm -f core conftest.err conftest.$ac_objext
3821 CC="$CC -n32"
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_sys_largefile_CC=' -n32'; break
3824fi
3825rm -f core conftest.err conftest.$ac_objext
3826 break
3827 done
3828 CC=$ac_save_CC
3829 rm -f conftest.$ac_ext
3830 fi
3831fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3833$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3834 if test "$ac_cv_sys_largefile_CC" != no; then
3835 CC=$CC$ac_cv_sys_largefile_CC
3836 fi
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3839$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3840if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842else
3843 while :; do
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h. */
3846#include <sys/types.h>
3847 /* Check that off_t can represent 2**63 - 1 correctly.
3848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3849 since some C++ compilers masquerading as C compilers
3850 incorrectly reject 9223372036854775807. */
3851#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3853 && LARGE_OFF_T % 2147483647 == 1)
3854 ? 1 : -1];
3855int
3856main ()
3857{
3858
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_sys_file_offset_bits=no; break
3865fi
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869#define _FILE_OFFSET_BITS 64
3870#include <sys/types.h>
3871 /* Check that off_t can represent 2**63 - 1 correctly.
3872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3873 since some C++ compilers masquerading as C compilers
3874 incorrectly reject 9223372036854775807. */
3875#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3877 && LARGE_OFF_T % 2147483647 == 1)
3878 ? 1 : -1];
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_sys_file_offset_bits=64; break
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_cv_sys_file_offset_bits=unknown
3892 break
3893done
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3896$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3897case $ac_cv_sys_file_offset_bits in #(
3898 no | unknown) ;;
3899 *)
3900cat >>confdefs.h <<_ACEOF
3901#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3902_ACEOF
3903;;
3904esac
3905rm -rf conftest*
3906 if test $ac_cv_sys_file_offset_bits = unknown; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3908$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3909if test "${ac_cv_sys_large_files+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 while :; do
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915#include <sys/types.h>
3916 /* Check that off_t can represent 2**63 - 1 correctly.
3917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3918 since some C++ compilers masquerading as C compilers
3919 incorrectly reject 9223372036854775807. */
3920#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3922 && LARGE_OFF_T % 2147483647 == 1)
3923 ? 1 : -1];
3924int
3925main ()
3926{
3927
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_sys_large_files=no; break
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938#define _LARGE_FILES 1
3939#include <sys/types.h>
3940 /* Check that off_t can represent 2**63 - 1 correctly.
3941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3942 since some C++ compilers masquerading as C compilers
3943 incorrectly reject 9223372036854775807. */
3944#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3946 && LARGE_OFF_T % 2147483647 == 1)
3947 ? 1 : -1];
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_sys_large_files=1; break
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_cv_sys_large_files=unknown
3961 break
3962done
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3965$as_echo "$ac_cv_sys_large_files" >&6; }
3966case $ac_cv_sys_large_files in #(
3967 no | unknown) ;;
3968 *)
3969cat >>confdefs.h <<_ACEOF
3970#define _LARGE_FILES $ac_cv_sys_large_files
3971_ACEOF
3972;;
3973esac
3974rm -rf conftest*
3975 fi
3976fi
3977
3978
d7f09764
DN
3979
3980case `pwd` in
3981 *\ * | *\ *)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3983$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3984esac
3985
3986
3987
52327858
L
3988macro_version='2.2.7a'
3989macro_revision='1.3134'
d7f09764
DN
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003ltmain="$ac_aux_dir/ltmain.sh"
4004
52327858
L
4005# Backslashify metacharacters that are still active within
4006# double-quoted strings.
4007sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4008
4009# Same as above, but do not quote variable references.
4010double_quote_subst='s/\(["`\\]\)/\\\1/g'
4011
4012# Sed substitution to delay expansion of an escaped shell variable in a
4013# double_quote_subst'ed string.
4014delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4015
4016# Sed substitution to delay expansion of an escaped single quote.
4017delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4018
4019# Sed substitution to avoid accidental globbing in evaled expressions
4020no_glob_subst='s/\*/\\\*/g'
4021
4022ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4023ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4024ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4027$as_echo_n "checking how to print strings... " >&6; }
4028# Test print first, because it will be a builtin if present.
4029if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4030 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4031 ECHO='print -r --'
4032elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4033 ECHO='printf %s\n'
4034else
4035 # Use this function as a fallback that always works.
4036 func_fallback_echo ()
4037 {
4038 eval 'cat <<_LTECHO_EOF
4039$1
4040_LTECHO_EOF'
4041 }
4042 ECHO='func_fallback_echo'
4043fi
4044
4045# func_echo_all arg...
4046# Invoke $ECHO with all args, space-separated.
4047func_echo_all ()
4048{
4049 $ECHO ""
4050}
4051
4052case "$ECHO" in
4053 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4054$as_echo "printf" >&6; } ;;
4055 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4056$as_echo "print -r" >&6; } ;;
4057 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4058$as_echo "cat" >&6; } ;;
4059esac
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
d7f09764
DN
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4075$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4076if test "${ac_cv_path_SED+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078else
4079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4080 for ac_i in 1 2 3 4 5 6 7; do
4081 ac_script="$ac_script$as_nl$ac_script"
4082 done
4083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4084 { ac_script=; unset ac_script;}
4085 if test -z "$SED"; then
4086 ac_path_SED_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_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_prog in sed gsed; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4097# Check for GNU ac_path_SED and select it if it is found.
4098 # Check for GNU $ac_path_SED
4099case `"$ac_path_SED" --version 2>&1` in
4100*GNU*)
4101 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4102*)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo '' >> "conftest.nl"
4111 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_SED_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_SED="$ac_path_SED"
4117 ac_path_SED_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123esac
4124
4125 $ac_path_SED_found && break 3
4126 done
4127 done
4128 done
4129IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_SED"; then
4131 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4132 fi
4133else
4134 ac_cv_path_SED=$SED
4135fi
4136
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4139$as_echo "$ac_cv_path_SED" >&6; }
4140 SED="$ac_cv_path_SED"
4141 rm -f conftest.sed
4142
4143test -z "$SED" && SED=sed
4144Xsed="$SED -e 1s/^X//"
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158if test "${ac_cv_path_GREP+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4173# Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175case `"$ac_path_GREP" --version 2>&1` in
4176*GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178*)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 as_fn_arith $ac_count + 1 && ac_count=$as_val
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199esac
4200
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208 fi
4209else
4210 ac_cv_path_GREP=$GREP
4211fi
4212
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215$as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4217
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220$as_echo_n "checking for egrep... " >&6; }
4221if test "${ac_cv_path_EGREP+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223else
4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225 then ac_cv_path_EGREP="$GREP -E"
4226 else
4227 if test -z "$EGREP"; then
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4239# Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241case `"$ac_path_EGREP" --version 2>&1` in
4242*GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4244*)
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265esac
4266
4267 $ac_path_EGREP_found && break 3
4268 done
4269 done
4270 done
4271IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_EGREP"; then
4273 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 fi
4275else
4276 ac_cv_path_EGREP=$EGREP
4277fi
4278
4279 fi
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282$as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4287$as_echo_n "checking for fgrep... " >&6; }
4288if test "${ac_cv_path_FGREP+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290else
4291 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4292 then ac_cv_path_FGREP="$GREP -F"
4293 else
4294 if test -z "$FGREP"; then
4295 ac_path_FGREP_found=false
4296 # Loop through the user's path and test for each of PROGNAME-LIST
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_prog in fgrep; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4305 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4306# Check for GNU ac_path_FGREP and select it if it is found.
4307 # Check for GNU $ac_path_FGREP
4308case `"$ac_path_FGREP" --version 2>&1` in
4309*GNU*)
4310 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4311*)
4312 ac_count=0
4313 $as_echo_n 0123456789 >"conftest.in"
4314 while :
4315 do
4316 cat "conftest.in" "conftest.in" >"conftest.tmp"
4317 mv "conftest.tmp" "conftest.in"
4318 cp "conftest.in" "conftest.nl"
4319 $as_echo 'FGREP' >> "conftest.nl"
4320 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322 as_fn_arith $ac_count + 1 && ac_count=$as_val
4323 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4324 # Best one so far, save it but keep looking for a better one
4325 ac_cv_path_FGREP="$ac_path_FGREP"
4326 ac_path_FGREP_max=$ac_count
4327 fi
4328 # 10*(2^10) chars as input seems more than enough
4329 test $ac_count -gt 10 && break
4330 done
4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332esac
4333
4334 $ac_path_FGREP_found && break 3
4335 done
4336 done
4337 done
4338IFS=$as_save_IFS
4339 if test -z "$ac_cv_path_FGREP"; then
4340 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341 fi
4342else
4343 ac_cv_path_FGREP=$FGREP
4344fi
4345
4346 fi
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4349$as_echo "$ac_cv_path_FGREP" >&6; }
4350 FGREP="$ac_cv_path_FGREP"
4351
4352
4353test -z "$GREP" && GREP=grep
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373# Check whether --with-gnu-ld was given.
4374if test "${with_gnu_ld+set}" = set; then :
4375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4376else
4377 with_gnu_ld=no
4378fi
4379
4380ac_prog=ld
4381if test "$GCC" = yes; then
4382 # Check if gcc -print-prog-name=ld gives a path.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4384$as_echo_n "checking for ld used by $CC... " >&6; }
4385 case $host in
4386 *-*-mingw*)
4387 # gcc leaves a trailing carriage return which upsets mingw
4388 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4389 *)
4390 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4391 esac
4392 case $ac_prog in
4393 # Accept absolute paths.
4394 [\\/]* | ?:[\\/]*)
4395 re_direlt='/[^/][^/]*/\.\./'
4396 # Canonicalize the pathname of ld
4397 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4398 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4399 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4400 done
4401 test -z "$LD" && LD="$ac_prog"
4402 ;;
4403 "")
4404 # If it fails, then pretend we aren't using GCC.
4405 ac_prog=ld
4406 ;;
4407 *)
4408 # If it is relative, then search for the first ld in PATH.
4409 with_gnu_ld=unknown
4410 ;;
4411 esac
4412elif test "$with_gnu_ld" = yes; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4414$as_echo_n "checking for GNU ld... " >&6; }
4415else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4417$as_echo_n "checking for non-GNU ld... " >&6; }
4418fi
4419if test "${lt_cv_path_LD+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421else
4422 if test -z "$LD"; then
4423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4424 for ac_dir in $PATH; do
4425 IFS="$lt_save_ifs"
4426 test -z "$ac_dir" && ac_dir=.
4427 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4428 lt_cv_path_LD="$ac_dir/$ac_prog"
4429 # Check to see if the program is GNU ld. I'd rather use --version,
4430 # but apparently some variants of GNU ld only accept -v.
4431 # Break only if it was the GNU/non-GNU ld that we prefer.
4432 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4433 *GNU* | *'with BFD'*)
4434 test "$with_gnu_ld" != no && break
4435 ;;
4436 *)
4437 test "$with_gnu_ld" != yes && break
4438 ;;
4439 esac
4440 fi
4441 done
4442 IFS="$lt_save_ifs"
4443else
4444 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4445fi
4446fi
4447
4448LD="$lt_cv_path_LD"
4449if test -n "$LD"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4451$as_echo "$LD" >&6; }
4452else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454$as_echo "no" >&6; }
4455fi
4456test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4459if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4463case `$LD -v 2>&1 </dev/null` in
4464*GNU* | *'with BFD'*)
4465 lt_cv_prog_gnu_ld=yes
4466 ;;
4467*)
4468 lt_cv_prog_gnu_ld=no
4469 ;;
4470esac
4471fi
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4473$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4474with_gnu_ld=$lt_cv_prog_gnu_ld
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4485$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4486if test "${lt_cv_path_NM+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488else
4489 if test -n "$NM"; then
4490 # Let the user override the test.
4491 lt_cv_path_NM="$NM"
4492else
4493 lt_nm_to_check="${ac_tool_prefix}nm"
4494 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4495 lt_nm_to_check="$lt_nm_to_check nm"
4496 fi
4497 for lt_tmp_nm in $lt_nm_to_check; do
4498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4499 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4500 IFS="$lt_save_ifs"
4501 test -z "$ac_dir" && ac_dir=.
4502 tmp_nm="$ac_dir/$lt_tmp_nm"
4503 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4504 # Check to see if the nm accepts a BSD-compat flag.
4505 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4506 # nm: unknown option "B" ignored
4507 # Tru64's nm complains that /dev/null is an invalid object file
4508 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4509 */dev/null* | *'Invalid file or object type'*)
4510 lt_cv_path_NM="$tmp_nm -B"
4511 break
4512 ;;
4513 *)
4514 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4515 */dev/null*)
4516 lt_cv_path_NM="$tmp_nm -p"
4517 break
4518 ;;
4519 *)
4520 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4521 continue # so that we can try to find one that supports BSD flags
4522 ;;
4523 esac
4524 ;;
4525 esac
4526 fi
4527 done
4528 IFS="$lt_save_ifs"
4529 done
4530 : ${lt_cv_path_NM=no}
4531fi
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4534$as_echo "$lt_cv_path_NM" >&6; }
4535if test "$lt_cv_path_NM" != "no"; then
4536 NM="$lt_cv_path_NM"
4537else
4538 # Didn't find any BSD compatible name lister, look for dumpbin.
52327858
L
4539 if test -n "$DUMPBIN"; then :
4540 # Let the user override the test.
4541 else
4542 if test -n "$ac_tool_prefix"; then
4543 for ac_prog in dumpbin "link -dump"
d7f09764
DN
4544 do
4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$DUMPBIN"; then
4553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572DUMPBIN=$ac_cv_prog_DUMPBIN
4573if test -n "$DUMPBIN"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4575$as_echo "$DUMPBIN" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582 test -n "$DUMPBIN" && break
4583 done
4584fi
4585if test -z "$DUMPBIN"; then
4586 ac_ct_DUMPBIN=$DUMPBIN
52327858 4587 for ac_prog in dumpbin "link -dump"
d7f09764
DN
4588do
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590set dummy $ac_prog; ac_word=$2
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592$as_echo_n "checking for $ac_word... " >&6; }
4593if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595else
4596 if test -n "$ac_ct_DUMPBIN"; then
4597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611 done
4612IFS=$as_save_IFS
4613
4614fi
4615fi
4616ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4617if test -n "$ac_ct_DUMPBIN"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4619$as_echo "$ac_ct_DUMPBIN" >&6; }
4620else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622$as_echo "no" >&6; }
4623fi
4624
4625
4626 test -n "$ac_ct_DUMPBIN" && break
4627done
4628
4629 if test "x$ac_ct_DUMPBIN" = x; then
4630 DUMPBIN=":"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633yes:)
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638 DUMPBIN=$ac_ct_DUMPBIN
4639 fi
4640fi
4641
52327858
L
4642 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4643 *COFF*)
4644 DUMPBIN="$DUMPBIN -symbols"
4645 ;;
4646 *)
4647 DUMPBIN=:
4648 ;;
4649 esac
4650 fi
d7f09764
DN
4651
4652 if test "$DUMPBIN" != ":"; then
4653 NM="$DUMPBIN"
4654 fi
4655fi
4656test -z "$NM" && NM=nm
4657
4658
4659
4660
4661
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4664$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4665if test "${lt_cv_nm_interface+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667else
4668 lt_cv_nm_interface="BSD nm"
4669 echo "int some_variable = 0;" > conftest.$ac_ext
52327858 4670 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7f09764
DN
4671 (eval "$ac_compile" 2>conftest.err)
4672 cat conftest.err >&5
52327858 4673 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7f09764
DN
4674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4675 cat conftest.err >&5
52327858 4676 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7f09764
DN
4677 cat conftest.out >&5
4678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4679 lt_cv_nm_interface="MS dumpbin"
4680 fi
4681 rm -f conftest*
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4684$as_echo "$lt_cv_nm_interface" >&6; }
4685
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4687$as_echo_n "checking whether ln -s works... " >&6; }
4688LN_S=$as_ln_s
4689if test "$LN_S" = "ln -s"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691$as_echo "yes" >&6; }
4692else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4694$as_echo "no, using $LN_S" >&6; }
4695fi
4696
4697# find the maximum length of command line arguments
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4699$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4700if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 i=0
4704 teststring="ABCD"
4705
4706 case $build_os in
4707 msdosdjgpp*)
4708 # On DJGPP, this test can blow up pretty badly due to problems in libc
4709 # (any single argument exceeding 2000 bytes causes a buffer overrun
4710 # during glob expansion). Even if it were fixed, the result of this
4711 # check would be larger than it should be.
4712 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4713 ;;
4714
4715 gnu*)
4716 # Under GNU Hurd, this test is not required because there is
4717 # no limit to the length of command line arguments.
4718 # Libtool will interpret -1 as no limit whatsoever
4719 lt_cv_sys_max_cmd_len=-1;
4720 ;;
4721
4722 cygwin* | mingw* | cegcc*)
4723 # On Win9x/ME, this test blows up -- it succeeds, but takes
4724 # about 5 minutes as the teststring grows exponentially.
4725 # Worse, since 9x/ME are not pre-emptively multitasking,
4726 # you end up with a "frozen" computer, even though with patience
4727 # the test eventually succeeds (with a max line length of 256k).
4728 # Instead, let's just punt: use the minimum linelength reported by
4729 # all of the supported platforms: 8192 (on NT/2K/XP).
4730 lt_cv_sys_max_cmd_len=8192;
4731 ;;
4732
52327858
L
4733 mint*)
4734 # On MiNT this can take a long time and run out of memory.
4735 lt_cv_sys_max_cmd_len=8192;
4736 ;;
4737
d7f09764
DN
4738 amigaos*)
4739 # On AmigaOS with pdksh, this test takes hours, literally.
4740 # So we just punt and use a minimum line length of 8192.
4741 lt_cv_sys_max_cmd_len=8192;
4742 ;;
4743
4744 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4745 # This has been around since 386BSD, at least. Likely further.
4746 if test -x /sbin/sysctl; then
4747 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4748 elif test -x /usr/sbin/sysctl; then
4749 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4750 else
4751 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4752 fi
4753 # And add a safety zone
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4756 ;;
4757
4758 interix*)
4759 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4760 lt_cv_sys_max_cmd_len=196608
4761 ;;
4762
4763 osf*)
4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4766 # nice to cause kernel panics so lets avoid the loop below.
4767 # First set a reasonable default.
4768 lt_cv_sys_max_cmd_len=16384
4769 #
4770 if test -x /sbin/sysconfig; then
4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4773 esac
4774 fi
4775 ;;
4776 sco3.2v5*)
4777 lt_cv_sys_max_cmd_len=102400
4778 ;;
4779 sysv5* | sco5v6* | sysv4.2uw2*)
4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4781 if test -n "$kargmax"; then
4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4783 else
4784 lt_cv_sys_max_cmd_len=32768
4785 fi
4786 ;;
4787 *)
4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4789 if test -n "$lt_cv_sys_max_cmd_len"; then
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792 else
4793 # Make teststring a little bigger before we do anything with it.
4794 # a 1K string should be a reasonable start.
4795 for i in 1 2 3 4 5 6 7 8 ; do
4796 teststring=$teststring$teststring
4797 done
4798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4799 # If test is not a shell built-in, we'll probably end up computing a
4800 # maximum length that is only half of the actual maximum length, but
4801 # we can't tell.
52327858
L
4802 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4803 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d7f09764
DN
4804 test $i != 17 # 1/2 MB should be enough
4805 do
4806 i=`expr $i + 1`
4807 teststring=$teststring$teststring
4808 done
4809 # Only check the string length outside the loop.
4810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4811 teststring=
4812 # Add a significant safety factor because C++ compilers can tack on
4813 # massive amounts of additional arguments before passing them to the
4814 # linker. It appears as though 1/2 is a usable value.
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4816 fi
4817 ;;
4818 esac
4819
4820fi
4821
4822if test -n $lt_cv_sys_max_cmd_len ; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4824$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4825else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4827$as_echo "none" >&6; }
4828fi
4829max_cmd_len=$lt_cv_sys_max_cmd_len
4830
4831
4832
4833
4834
4835
4836: ${CP="cp -f"}
4837: ${MV="mv -f"}
4838: ${RM="rm -f"}
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4841$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4842# Try some XSI features
4843xsi_shell=no
4844( _lt_dummy="a/b/c"
4845 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4846 = c,a/b,, \
4847 && eval 'test $(( 1 + 1 )) -eq 2 \
4848 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4849 && xsi_shell=yes
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4851$as_echo "$xsi_shell" >&6; }
4852
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4855$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4856lt_shell_append=no
4857( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4858 >/dev/null 2>&1 \
4859 && lt_shell_append=yes
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4861$as_echo "$lt_shell_append" >&6; }
4862
4863
4864if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 lt_unset=unset
4866else
4867 lt_unset=false
4868fi
4869
4870
4871
4872
4873
4874# test EBCDIC or ASCII
4875case `echo X|tr X '\101'` in
4876 A) # ASCII based system
4877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4878 lt_SP2NL='tr \040 \012'
4879 lt_NL2SP='tr \015\012 \040\040'
4880 ;;
4881 *) # EBCDIC based system
4882 lt_SP2NL='tr \100 \n'
4883 lt_NL2SP='tr \r\n \100\100'
4884 ;;
4885esac
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4896$as_echo_n "checking for $LD option to reload object files... " >&6; }
4897if test "${lt_cv_ld_reload_flag+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899else
4900 lt_cv_ld_reload_flag='-r'
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4903$as_echo "$lt_cv_ld_reload_flag" >&6; }
4904reload_flag=$lt_cv_ld_reload_flag
4905case $reload_flag in
4906"" | " "*) ;;
4907*) reload_flag=" $reload_flag" ;;
4908esac
4909reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910case $host_os in
4911 darwin*)
4912 if test "$GCC" = yes; then
4913 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4914 else
4915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4916 fi
4917 ;;
4918esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4930set dummy ${ac_tool_prefix}objdump; ac_word=$2
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932$as_echo_n "checking for $ac_word... " >&6; }
4933if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935else
4936 if test -n "$OBJDUMP"; then
4937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4938else
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950done
4951 done
4952IFS=$as_save_IFS
4953
4954fi
4955fi
4956OBJDUMP=$ac_cv_prog_OBJDUMP
4957if test -n "$OBJDUMP"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4959$as_echo "$OBJDUMP" >&6; }
4960else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963fi
4964
4965
4966fi
4967if test -z "$ac_cv_prog_OBJDUMP"; then
4968 ac_ct_OBJDUMP=$OBJDUMP
4969 # Extract the first word of "objdump", so it can be a program name with args.
4970set dummy objdump; ac_word=$2
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
4973if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975else
4976 if test -n "$ac_ct_OBJDUMP"; then
4977 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991 done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4997if test -n "$ac_ct_OBJDUMP"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4999$as_echo "$ac_ct_OBJDUMP" >&6; }
5000else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
5004
5005 if test "x$ac_ct_OBJDUMP" = x; then
5006 OBJDUMP="false"
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009yes:)
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012ac_tool_warned=yes ;;
5013esac
5014 OBJDUMP=$ac_ct_OBJDUMP
5015 fi
5016else
5017 OBJDUMP="$ac_cv_prog_OBJDUMP"
5018fi
5019
5020test -z "$OBJDUMP" && OBJDUMP=objdump
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5031$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5032if test "${lt_cv_deplibs_check_method+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034else
5035 lt_cv_file_magic_cmd='$MAGIC_CMD'
5036lt_cv_file_magic_test_file=
5037lt_cv_deplibs_check_method='unknown'
5038# Need to set the preceding variable on all platforms that support
5039# interlibrary dependencies.
5040# 'none' -- dependencies not supported.
5041# `unknown' -- same as none, but documents that we really don't know.
5042# 'pass_all' -- all dependencies passed with no checks.
5043# 'test_compile' -- check by making test program.
5044# 'file_magic [[regex]]' -- check by looking for files in library path
5045# which responds to the $file_magic_cmd with a given extended regex.
5046# If you have `file' or equivalent on your system and you're not sure
5047# whether `pass_all' will *always* work, you probably want this one.
5048
5049case $host_os in
5050aix[4-9]*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053
5054beos*)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057
5058bsdi[45]*)
5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5060 lt_cv_file_magic_cmd='/usr/bin/file -L'
5061 lt_cv_file_magic_test_file=/shlib/libc.so
5062 ;;
5063
5064cygwin*)
5065 # func_win32_libid is a shell function defined in ltmain.sh
5066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067 lt_cv_file_magic_cmd='func_win32_libid'
5068 ;;
5069
5070mingw* | pw32*)
5071 # Base MSYS/MinGW do not provide the 'file' command needed by
5072 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5073 # unless we find 'file', for example because we are cross-compiling.
52327858
L
5074 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5075 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
5076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077 lt_cv_file_magic_cmd='func_win32_libid'
5078 else
5079 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5080 lt_cv_file_magic_cmd='$OBJDUMP -f'
5081 fi
5082 ;;
5083
52327858 5084cegcc*)
d7f09764
DN
5085 # use the weaker test based on 'objdump'. See mingw*.
5086 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5087 lt_cv_file_magic_cmd='$OBJDUMP -f'
5088 ;;
5089
5090darwin* | rhapsody*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094freebsd* | dragonfly*)
5095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5096 case $host_cpu in
5097 i*86 )
5098 # Not sure whether the presence of OpenBSD here was a mistake.
5099 # Let's accept both of them until this is cleared up.
5100 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5101 lt_cv_file_magic_cmd=/usr/bin/file
5102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5103 ;;
5104 esac
5105 else
5106 lt_cv_deplibs_check_method=pass_all
5107 fi
5108 ;;
5109
5110gnu*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
52327858
L
5114haiku*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
d7f09764
DN
5118hpux10.20* | hpux11*)
5119 lt_cv_file_magic_cmd=/usr/bin/file
5120 case $host_cpu in
5121 ia64*)
5122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5124 ;;
5125 hppa*64*)
52327858 5126 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]'
d7f09764
DN
5127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5128 ;;
5129 *)
52327858 5130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
5131 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5132 ;;
5133 esac
5134 ;;
5135
5136interix[3-9]*)
5137 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5139 ;;
5140
5141irix5* | irix6* | nonstopux*)
5142 case $LD in
5143 *-32|*"-32 ") libmagic=32-bit;;
5144 *-n32|*"-n32 ") libmagic=N32;;
5145 *-64|*"-64 ") libmagic=64-bit;;
5146 *) libmagic=never-match;;
5147 esac
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151# This must be Linux ELF.
5152linux* | k*bsd*-gnu | kopensolaris*-gnu)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156netbsd*)
5157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5159 else
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5161 fi
5162 ;;
5163
5164newos6*)
5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5166 lt_cv_file_magic_cmd=/usr/bin/file
5167 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5168 ;;
5169
5170*nto* | *qnx*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174openbsd*)
5175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5177 else
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5179 fi
5180 ;;
5181
5182osf3* | osf4* | osf5*)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185
5186rdos*)
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190solaris*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
5197
5198sysv4 | sysv4.3*)
5199 case $host_vendor in
5200 motorola)
5201 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]'
5202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5203 ;;
5204 ncr)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207 sequent)
5208 lt_cv_file_magic_cmd='/bin/file'
5209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5210 ;;
5211 sni)
5212 lt_cv_file_magic_cmd='/bin/file'
5213 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5214 lt_cv_file_magic_test_file=/lib/libc.so
5215 ;;
5216 siemens)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219 pc)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222 esac
5223 ;;
5224
5225tpf*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228esac
5229
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5232$as_echo "$lt_cv_deplibs_check_method" >&6; }
5233file_magic_cmd=$lt_cv_file_magic_cmd
5234deplibs_check_method=$lt_cv_deplibs_check_method
5235test -z "$deplibs_check_method" && deplibs_check_method=unknown
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5250set dummy ${ac_tool_prefix}ar; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if test "${ac_cv_prog_AR+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 if test -n "$AR"; then
5257 ac_cv_prog_AR="$AR" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_AR="${ac_tool_prefix}ar"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271 done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276AR=$ac_cv_prog_AR
5277if test -n "$AR"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5279$as_echo "$AR" >&6; }
5280else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286fi
5287if test -z "$ac_cv_prog_AR"; then
5288 ac_ct_AR=$AR
5289 # Extract the first word of "ar", so it can be a program name with args.
5290set dummy ar; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 if test -n "$ac_ct_AR"; then
5297 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_ac_ct_AR="ar"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310done
5311 done
5312IFS=$as_save_IFS
5313
5314fi
5315fi
5316ac_ct_AR=$ac_cv_prog_ac_ct_AR
5317if test -n "$ac_ct_AR"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5319$as_echo "$ac_ct_AR" >&6; }
5320else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325 if test "x$ac_ct_AR" = x; then
5326 AR="false"
5327 else
5328 case $cross_compiling:$ac_tool_warned in
5329yes:)
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334 AR=$ac_ct_AR
5335 fi
5336else
5337 AR="$ac_cv_prog_AR"
5338fi
5339
5340test -z "$AR" && AR=ar
5341test -z "$AR_FLAGS" && AR_FLAGS=cru
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}strip; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
5358if test "${ac_cv_prog_STRIP+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361 if test -n "$STRIP"; then
5362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376 done
5377IFS=$as_save_IFS
5378
5379fi
5380fi
5381STRIP=$ac_cv_prog_STRIP
5382if test -n "$STRIP"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5384$as_echo "$STRIP" >&6; }
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391fi
5392if test -z "$ac_cv_prog_STRIP"; then
5393 ac_ct_STRIP=$STRIP
5394 # Extract the first word of "strip", so it can be a program name with args.
5395set dummy strip; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400else
5401 if test -n "$ac_ct_STRIP"; then
5402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_STRIP="strip"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416 done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5422if test -n "$ac_ct_STRIP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5424$as_echo "$ac_ct_STRIP" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430 if test "x$ac_ct_STRIP" = x; then
5431 STRIP=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 STRIP=$ac_ct_STRIP
5440 fi
5441else
5442 STRIP="$ac_cv_prog_STRIP"
5443fi
5444
5445test -z "$STRIP" && STRIP=:
5446
5447
5448
5449
5450
5451
5452if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
5457if test "${ac_cv_prog_RANLIB+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 if test -n "$RANLIB"; then
5461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475 done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480RANLIB=$ac_cv_prog_RANLIB
5481if test -n "$RANLIB"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5483$as_echo "$RANLIB" >&6; }
5484else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490fi
5491if test -z "$ac_cv_prog_RANLIB"; then
5492 ac_ct_RANLIB=$RANLIB
5493 # Extract the first word of "ranlib", so it can be a program name with args.
5494set dummy ranlib; ac_word=$2
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496$as_echo_n "checking for $ac_word... " >&6; }
5497if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499else
5500 if test -n "$ac_ct_RANLIB"; then
5501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_RANLIB="ranlib"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515 done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5521if test -n "$ac_ct_RANLIB"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5523$as_echo "$ac_ct_RANLIB" >&6; }
5524else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529 if test "x$ac_ct_RANLIB" = x; then
5530 RANLIB=":"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533yes:)
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538 RANLIB=$ac_ct_RANLIB
5539 fi
5540else
5541 RANLIB="$ac_cv_prog_RANLIB"
5542fi
5543
5544test -z "$RANLIB" && RANLIB=:
5545
5546
5547
5548
5549
5550
5551# Determine commands to create old-style static archives.
5552old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5553old_postinstall_cmds='chmod 644 $oldlib'
5554old_postuninstall_cmds=
5555
5556if test -n "$RANLIB"; then
5557 case $host_os in
5558 openbsd*)
5559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5560 ;;
5561 *)
5562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5563 ;;
5564 esac
5565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5566fi
5567
52327858
L
5568case $host_os in
5569 darwin*)
5570 lock_old_archive_extraction=yes ;;
5571 *)
5572 lock_old_archive_extraction=no ;;
5573esac
5574
5575
5576
5577
5578
5579
d7f09764
DN
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613# If no C compiler was specified, use CC.
5614LTCC=${LTCC-"$CC"}
5615
5616# If no C compiler flags were specified, use CFLAGS.
5617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5618
5619# Allow CC to be a program name with arguments.
5620compiler=$CC
5621
5622
5623# Check for command to grab the raw symbol name followed by C symbol from nm.
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5625$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5626if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628else
5629
5630# These are sane defaults that work on at least a few old systems.
5631# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5632
5633# Character class describing NM global symbol codes.
5634symcode='[BCDEGRST]'
5635
5636# Regexp to match symbols that can be accessed directly from C.
5637sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5638
5639# Define system-specific variables.
5640case $host_os in
5641aix*)
5642 symcode='[BCDT]'
5643 ;;
5644cygwin* | mingw* | pw32* | cegcc*)
5645 symcode='[ABCDGISTW]'
5646 ;;
5647hpux*)
5648 if test "$host_cpu" = ia64; then
5649 symcode='[ABCDEGRST]'
5650 fi
5651 ;;
5652irix* | nonstopux*)
5653 symcode='[BCDEGRST]'
5654 ;;
5655osf*)
5656 symcode='[BCDEGQRST]'
5657 ;;
5658solaris*)
5659 symcode='[BDRT]'
5660 ;;
5661sco3.2v5*)
5662 symcode='[DT]'
5663 ;;
5664sysv4.2uw2*)
5665 symcode='[DT]'
5666 ;;
5667sysv5* | sco5v6* | unixware* | OpenUNIX*)
5668 symcode='[ABDT]'
5669 ;;
5670sysv4)
5671 symcode='[DFNSTU]'
5672 ;;
5673esac
5674
5675# If we're using GNU nm, then use its standard symbol codes.
5676case `$NM -V 2>&1` in
5677*GNU* | *'with BFD'*)
5678 symcode='[ABCDGIRSTW]' ;;
5679esac
5680
5681# Transform an extracted symbol line into a proper C declaration.
5682# Some systems (esp. on ia64) link data and code symbols differently,
5683# so use this general approach.
5684lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5685
5686# Transform an extracted symbol line into symbol name and symbol address
5687lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5688lt_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'"
5689
5690# Handle CRLF in mingw tool chain
5691opt_cr=
5692case $build_os in
5693mingw*)
5694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5695 ;;
5696esac
5697
5698# Try without a prefix underscore, then with it.
5699for ac_symprfx in "" "_"; do
5700
5701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5702 symxfrm="\\1 $ac_symprfx\\2 \\2"
5703
5704 # Write the raw and C identifiers.
5705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5706 # Fake it for dumpbin and say T for any non-static function
5707 # and D for any global variable.
5708 # Also find C++ and __fastcall symbols from MSVC++,
5709 # which start with @ or ?.
5710 lt_cv_sys_global_symbol_pipe="$AWK '"\
5711" {last_section=section; section=\$ 3};"\
5712" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5713" \$ 0!~/External *\|/{next};"\
5714" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5715" {if(hide[section]) next};"\
5716" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5717" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5718" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5719" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5720" ' prfx=^$ac_symprfx"
5721 else
5722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5723 fi
5724
5725 # Check to see that the pipe works correctly.
5726 pipe_works=no
5727
5728 rm -f conftest*
5729 cat > conftest.$ac_ext <<_LT_EOF
5730#ifdef __cplusplus
5731extern "C" {
5732#endif
5733char nm_test_var;
5734void nm_test_func(void);
5735void nm_test_func(void){}
5736#ifdef __cplusplus
5737}
5738#endif
5739int main(){nm_test_var='a';nm_test_func();return(0);}
5740_LT_EOF
5741
5742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5743 (eval $ac_compile) 2>&5
5744 ac_status=$?
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746 test $ac_status = 0; }; then
5747 # Now try to grab the symbols.
5748 nlist=conftest.nm
52327858
L
5749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5750 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
5751 ac_status=$?
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; } && test -s "$nlist"; then
5754 # Try sorting and uniquifying the output.
5755 if sort "$nlist" | uniq > "$nlist"T; then
5756 mv -f "$nlist"T "$nlist"
5757 else
5758 rm -f "$nlist"T
5759 fi
5760
5761 # Make sure that we snagged all the symbols we need.
5762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5764 cat <<_LT_EOF > conftest.$ac_ext
5765#ifdef __cplusplus
5766extern "C" {
5767#endif
5768
5769_LT_EOF
5770 # Now generate the symbol file.
5771 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5772
5773 cat <<_LT_EOF >> conftest.$ac_ext
5774
5775/* The mapping between symbol names and symbols. */
5776const struct {
5777 const char *name;
5778 void *address;
5779}
5780lt__PROGRAM__LTX_preloaded_symbols[] =
5781{
5782 { "@PROGRAM@", (void *) 0 },
5783_LT_EOF
5784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5785 cat <<\_LT_EOF >> conftest.$ac_ext
5786 {0, (void *) 0}
5787};
5788
5789/* This works around a problem in FreeBSD linker */
5790#ifdef FREEBSD_WORKAROUND
5791static const void *lt_preloaded_setup() {
5792 return lt__PROGRAM__LTX_preloaded_symbols;
5793}
5794#endif
5795
5796#ifdef __cplusplus
5797}
5798#endif
5799_LT_EOF
5800 # Now try linking the two files.
5801 mv conftest.$ac_objext conftstm.$ac_objext
5802 lt_save_LIBS="$LIBS"
5803 lt_save_CFLAGS="$CFLAGS"
5804 LIBS="conftstm.$ac_objext"
5805 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5807 (eval $ac_link) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5811 pipe_works=yes
5812 fi
5813 LIBS="$lt_save_LIBS"
5814 CFLAGS="$lt_save_CFLAGS"
5815 else
5816 echo "cannot find nm_test_func in $nlist" >&5
5817 fi
5818 else
5819 echo "cannot find nm_test_var in $nlist" >&5
5820 fi
5821 else
5822 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5823 fi
5824 else
5825 echo "$progname: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 fi
5828 rm -rf conftest* conftst*
5829
5830 # Do not use the global_symbol_pipe unless it works.
5831 if test "$pipe_works" = yes; then
5832 break
5833 else
5834 lt_cv_sys_global_symbol_pipe=
5835 fi
5836done
5837
5838fi
5839
5840if test -z "$lt_cv_sys_global_symbol_pipe"; then
5841 lt_cv_sys_global_symbol_to_cdecl=
5842fi
5843if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5845$as_echo "failed" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5848$as_echo "ok" >&6; }
5849fi
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
d7f09764
DN
5870
5871
5872# Check whether --enable-libtool-lock was given.
5873if test "${enable_libtool_lock+set}" = set; then :
5874 enableval=$enable_libtool_lock;
5875fi
5876
5877test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5878
5879# Some flags need to be propagated to the compiler or linker for good
5880# libtool support.
5881case $host in
5882ia64-*-hpux*)
5883 # Find out which ABI we are using.
5884 echo 'int i;' > conftest.$ac_ext
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5886 (eval $ac_compile) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; then
5890 case `/usr/bin/file conftest.$ac_objext` in
5891 *ELF-32*)
5892 HPUX_IA64_MODE="32"
5893 ;;
5894 *ELF-64*)
5895 HPUX_IA64_MODE="64"
5896 ;;
5897 esac
5898 fi
5899 rm -rf conftest*
5900 ;;
5901*-*-irix6*)
5902 # Find out which ABI we are using.
52327858 5903 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
5904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5905 (eval $ac_compile) 2>&5
5906 ac_status=$?
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; }; then
5909 if test "$lt_cv_prog_gnu_ld" = yes; then
5910 case `/usr/bin/file conftest.$ac_objext` in
5911 *32-bit*)
5912 LD="${LD-ld} -melf32bsmip"
5913 ;;
5914 *N32*)
5915 LD="${LD-ld} -melf32bmipn32"
5916 ;;
5917 *64-bit*)
5918 LD="${LD-ld} -melf64bmip"
5919 ;;
5920 esac
5921 else
5922 case `/usr/bin/file conftest.$ac_objext` in
5923 *32-bit*)
5924 LD="${LD-ld} -32"
5925 ;;
5926 *N32*)
5927 LD="${LD-ld} -n32"
5928 ;;
5929 *64-bit*)
5930 LD="${LD-ld} -64"
5931 ;;
5932 esac
5933 fi
5934 fi
5935 rm -rf conftest*
5936 ;;
5937
5938x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5939s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5940 # Find out which ABI we are using.
5941 echo 'int i;' > conftest.$ac_ext
5942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then
5947 case `/usr/bin/file conftest.o` in
5948 *32-bit*)
5949 case $host in
5950 x86_64-*kfreebsd*-gnu)
5951 LD="${LD-ld} -m elf_i386_fbsd"
5952 ;;
5953 x86_64-*linux*)
5954 LD="${LD-ld} -m elf_i386"
5955 ;;
5956 ppc64-*linux*|powerpc64-*linux*)
5957 LD="${LD-ld} -m elf32ppclinux"
5958 ;;
5959 s390x-*linux*)
5960 LD="${LD-ld} -m elf_s390"
5961 ;;
5962 sparc64-*linux*)
5963 LD="${LD-ld} -m elf32_sparc"
5964 ;;
5965 esac
5966 ;;
5967 *64-bit*)
5968 case $host in
5969 x86_64-*kfreebsd*-gnu)
5970 LD="${LD-ld} -m elf_x86_64_fbsd"
5971 ;;
5972 x86_64-*linux*)
5973 LD="${LD-ld} -m elf_x86_64"
5974 ;;
5975 ppc*-*linux*|powerpc*-*linux*)
5976 LD="${LD-ld} -m elf64ppc"
5977 ;;
5978 s390*-*linux*|s390*-*tpf*)
5979 LD="${LD-ld} -m elf64_s390"
5980 ;;
5981 sparc*-*linux*)
5982 LD="${LD-ld} -m elf64_sparc"
5983 ;;
5984 esac
5985 ;;
5986 esac
5987 fi
5988 rm -rf conftest*
5989 ;;
5990
5991*-*-sco3.2v5*)
5992 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5993 SAVE_CFLAGS="$CFLAGS"
5994 CFLAGS="$CFLAGS -belf"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5996$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5997if test "${lt_cv_cc_needs_belf+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999else
6000 ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008
6009int
6010main ()
6011{
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
6018 lt_cv_cc_needs_belf=yes
6019else
6020 lt_cv_cc_needs_belf=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 ac_ext=c
6025ac_cpp='$CPP $CPPFLAGS'
6026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6032$as_echo "$lt_cv_cc_needs_belf" >&6; }
6033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6035 CFLAGS="$SAVE_CFLAGS"
6036 fi
6037 ;;
6038sparc*-*solaris*)
6039 # Find out which ABI we are using.
6040 echo 'int i;' > conftest.$ac_ext
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6042 (eval $ac_compile) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }; then
6046 case `/usr/bin/file conftest.o` in
6047 *64-bit*)
6048 case $lt_cv_prog_gnu_ld in
6049 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6050 *)
6051 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6052 LD="${LD-ld} -64"
6053 fi
6054 ;;
6055 esac
6056 ;;
6057 esac
6058 fi
6059 rm -rf conftest*
6060 ;;
6061esac
6062
6063need_locks="$enable_libtool_lock"
6064
6065
6066 case $host_os in
6067 rhapsody* | darwin*)
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6070set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075else
6076 if test -n "$DSYMUTIL"; then
6077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090done
6091 done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096DSYMUTIL=$ac_cv_prog_DSYMUTIL
6097if test -n "$DSYMUTIL"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6099$as_echo "$DSYMUTIL" >&6; }
6100else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_DSYMUTIL"; then
6108 ac_ct_DSYMUTIL=$DSYMUTIL
6109 # Extract the first word of "dsymutil", so it can be a program name with args.
6110set dummy dsymutil; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$ac_ct_DSYMUTIL"; then
6117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131 done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6137if test -n "$ac_ct_DSYMUTIL"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6139$as_echo "$ac_ct_DSYMUTIL" >&6; }
6140else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145 if test "x$ac_ct_DSYMUTIL" = x; then
6146 DSYMUTIL=":"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154 DSYMUTIL=$ac_ct_DSYMUTIL
6155 fi
6156else
6157 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6158fi
6159
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6162set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164$as_echo_n "checking for $ac_word... " >&6; }
6165if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167else
6168 if test -n "$NMEDIT"; then
6169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182done
6183 done
6184IFS=$as_save_IFS
6185
6186fi
6187fi
6188NMEDIT=$ac_cv_prog_NMEDIT
6189if test -n "$NMEDIT"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6191$as_echo "$NMEDIT" >&6; }
6192else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194$as_echo "no" >&6; }
6195fi
6196
6197
6198fi
6199if test -z "$ac_cv_prog_NMEDIT"; then
6200 ac_ct_NMEDIT=$NMEDIT
6201 # Extract the first word of "nmedit", so it can be a program name with args.
6202set dummy nmedit; ac_word=$2
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
6205if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207else
6208 if test -n "$ac_ct_NMEDIT"; then
6209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223 done
6224IFS=$as_save_IFS
6225
6226fi
6227fi
6228ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6229if test -n "$ac_ct_NMEDIT"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6231$as_echo "$ac_ct_NMEDIT" >&6; }
6232else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235fi
6236
6237 if test "x$ac_ct_NMEDIT" = x; then
6238 NMEDIT=":"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241yes:)
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244ac_tool_warned=yes ;;
6245esac
6246 NMEDIT=$ac_ct_NMEDIT
6247 fi
6248else
6249 NMEDIT="$ac_cv_prog_NMEDIT"
6250fi
6251
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6254set dummy ${ac_tool_prefix}lipo; ac_word=$2
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256$as_echo_n "checking for $ac_word... " >&6; }
6257if test "${ac_cv_prog_LIPO+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259else
6260 if test -n "$LIPO"; then
6261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275 done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280LIPO=$ac_cv_prog_LIPO
6281if test -n "$LIPO"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6283$as_echo "$LIPO" >&6; }
6284else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288
6289
6290fi
6291if test -z "$ac_cv_prog_LIPO"; then
6292 ac_ct_LIPO=$LIPO
6293 # Extract the first word of "lipo", so it can be a program name with args.
6294set dummy lipo; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299else
6300 if test -n "$ac_ct_LIPO"; then
6301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_LIPO="lipo"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315 done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6321if test -n "$ac_ct_LIPO"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6323$as_echo "$ac_ct_LIPO" >&6; }
6324else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329 if test "x$ac_ct_LIPO" = x; then
6330 LIPO=":"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333yes:)
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336ac_tool_warned=yes ;;
6337esac
6338 LIPO=$ac_ct_LIPO
6339 fi
6340else
6341 LIPO="$ac_cv_prog_LIPO"
6342fi
6343
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6346set dummy ${ac_tool_prefix}otool; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if test "${ac_cv_prog_OTOOL+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351else
6352 if test -n "$OTOOL"; then
6353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372OTOOL=$ac_cv_prog_OTOOL
6373if test -n "$OTOOL"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6375$as_echo "$OTOOL" >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382fi
6383if test -z "$ac_cv_prog_OTOOL"; then
6384 ac_ct_OTOOL=$OTOOL
6385 # Extract the first word of "otool", so it can be a program name with args.
6386set dummy otool; ac_word=$2
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
6389if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 if test -n "$ac_ct_OTOOL"; then
6393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_OTOOL="otool"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406done
6407 done
6408IFS=$as_save_IFS
6409
6410fi
6411fi
6412ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6413if test -n "$ac_ct_OTOOL"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6415$as_echo "$ac_ct_OTOOL" >&6; }
6416else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418$as_echo "no" >&6; }
6419fi
6420
6421 if test "x$ac_ct_OTOOL" = x; then
6422 OTOOL=":"
6423 else
6424 case $cross_compiling:$ac_tool_warned in
6425yes:)
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428ac_tool_warned=yes ;;
6429esac
6430 OTOOL=$ac_ct_OTOOL
6431 fi
6432else
6433 OTOOL="$ac_cv_prog_OTOOL"
6434fi
6435
6436 if test -n "$ac_tool_prefix"; then
6437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6438set dummy ${ac_tool_prefix}otool64; ac_word=$2
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443else
6444 if test -n "$OTOOL64"; then
6445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459 done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
6464OTOOL64=$ac_cv_prog_OTOOL64
6465if test -n "$OTOOL64"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6467$as_echo "$OTOOL64" >&6; }
6468else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
6473
6474fi
6475if test -z "$ac_cv_prog_OTOOL64"; then
6476 ac_ct_OTOOL64=$OTOOL64
6477 # Extract the first word of "otool64", so it can be a program name with args.
6478set dummy otool64; ac_word=$2
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480$as_echo_n "checking for $ac_word... " >&6; }
6481if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483else
6484 if test -n "$ac_ct_OTOOL64"; then
6485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_ac_ct_OTOOL64="otool64"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499 done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6505if test -n "$ac_ct_OTOOL64"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6507$as_echo "$ac_ct_OTOOL64" >&6; }
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513 if test "x$ac_ct_OTOOL64" = x; then
6514 OTOOL64=":"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517yes:)
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520ac_tool_warned=yes ;;
6521esac
6522 OTOOL64=$ac_ct_OTOOL64
6523 fi
6524else
6525 OTOOL64="$ac_cv_prog_OTOOL64"
6526fi
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6555$as_echo_n "checking for -single_module linker flag... " >&6; }
6556if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 lt_cv_apple_cc_single_mod=no
6560 if test -z "${LT_MULTI_MODULE}"; then
6561 # By default we will add the -single_module flag. You can override
6562 # by either setting the environment variable LT_MULTI_MODULE
6563 # non-empty at configure time, or by adding -multi_module to the
6564 # link flags.
6565 rm -rf libconftest.dylib*
6566 echo "int foo(void){return 1;}" > conftest.c
6567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6568-dynamiclib -Wl,-single_module conftest.c" >&5
6569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6571 _lt_result=$?
6572 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6573 lt_cv_apple_cc_single_mod=yes
6574 else
6575 cat conftest.err >&5
6576 fi
6577 rm -rf libconftest.dylib*
6578 rm -f conftest.*
6579 fi
6580fi
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6582$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6584$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6585if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587else
6588 lt_cv_ld_exported_symbols_list=no
6589 save_LDFLAGS=$LDFLAGS
6590 echo "_main" > conftest.sym
6591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h. */
6594
6595int
6596main ()
6597{
6598
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603if ac_fn_c_try_link "$LINENO"; then :
6604 lt_cv_ld_exported_symbols_list=yes
6605else
6606 lt_cv_ld_exported_symbols_list=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LDFLAGS="$save_LDFLAGS"
6611
6612fi
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6614$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
52327858
L
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6616$as_echo_n "checking for -force_load linker flag... " >&6; }
6617if test "${lt_cv_ld_force_load+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619else
6620 lt_cv_ld_force_load=no
6621 cat > conftest.c << _LT_EOF
6622int forced_loaded() { return 2;}
6623_LT_EOF
6624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6626 echo "$AR cru libconftest.a conftest.o" >&5
6627 $AR cru libconftest.a conftest.o 2>&5
6628 cat > conftest.c << _LT_EOF
6629int main() { return 0;}
6630_LT_EOF
6631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6633 _lt_result=$?
6634 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6635 lt_cv_ld_force_load=yes
6636 else
6637 cat conftest.err >&5
6638 fi
6639 rm -f conftest.err libconftest.a conftest conftest.c
6640 rm -rf conftest.dSYM
6641
6642fi
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6644$as_echo "$lt_cv_ld_force_load" >&6; }
d7f09764
DN
6645 case $host_os in
6646 rhapsody* | darwin1.[012])
6647 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6648 darwin1.*)
6649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6650 darwin*) # darwin 5.x on
6651 # if running on 10.5 or later, the deployment target defaults
6652 # to the OS version, if on x86, and 10.4, the deployment
6653 # target defaults to 10.4. Don't you love it?
6654 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6655 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6657 10.[012]*)
6658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6659 10.*)
6660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6661 esac
6662 ;;
6663 esac
6664 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6665 _lt_dar_single_mod='$single_module'
6666 fi
6667 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6668 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6669 else
6670 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6671 fi
52327858 6672 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
d7f09764
DN
6673 _lt_dsymutil='~$DSYMUTIL $lib || :'
6674 else
6675 _lt_dsymutil=
6676 fi
6677 ;;
6678 esac
6679
6680ac_ext=c
6681ac_cpp='$CPP $CPPFLAGS'
6682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6686$as_echo_n "checking how to run the C preprocessor... " >&6; }
6687# On Suns, sometimes $CPP names a directory.
6688if test -n "$CPP" && test -d "$CPP"; then
6689 CPP=
6690fi
6691if test -z "$CPP"; then
6692 if test "${ac_cv_prog_CPP+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694else
6695 # Double quotes because CPP needs to be expanded
6696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6697 do
6698 ac_preproc_ok=false
6699for ac_c_preproc_warn_flag in '' yes
6700do
6701 # Use a header file that comes with gcc, so configuring glibc
6702 # with a fresh cross-compiler works.
6703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6704 # <limits.h> exists even on freestanding compilers.
6705 # On the NeXT, cc -E runs the code through the compiler's parser,
6706 # not just through cpp. "Syntax error" is here to catch this case.
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h. */
6709#ifdef __STDC__
6710# include <limits.h>
6711#else
6712# include <assert.h>
6713#endif
6714 Syntax error
6715_ACEOF
6716if ac_fn_c_try_cpp "$LINENO"; then :
6717
6718else
6719 # Broken: fails on valid input.
6720continue
6721fi
6722rm -f conftest.err conftest.$ac_ext
6723
6724 # OK, works on sane cases. Now check whether nonexistent headers
6725 # can be detected and how.
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h. */
6728#include <ac_nonexistent.h>
6729_ACEOF
6730if ac_fn_c_try_cpp "$LINENO"; then :
6731 # Broken: success on invalid input.
6732continue
6733else
6734 # Passes both tests.
6735ac_preproc_ok=:
6736break
6737fi
6738rm -f conftest.err conftest.$ac_ext
6739
6740done
6741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6742rm -f conftest.err conftest.$ac_ext
6743if $ac_preproc_ok; then :
6744 break
6745fi
6746
6747 done
6748 ac_cv_prog_CPP=$CPP
6749
6750fi
6751 CPP=$ac_cv_prog_CPP
6752else
6753 ac_cv_prog_CPP=$CPP
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6756$as_echo "$CPP" >&6; }
6757ac_preproc_ok=false
6758for ac_c_preproc_warn_flag in '' yes
6759do
6760 # Use a header file that comes with gcc, so configuring glibc
6761 # with a fresh cross-compiler works.
6762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6763 # <limits.h> exists even on freestanding compilers.
6764 # On the NeXT, cc -E runs the code through the compiler's parser,
6765 # not just through cpp. "Syntax error" is here to catch this case.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h. */
6768#ifdef __STDC__
6769# include <limits.h>
6770#else
6771# include <assert.h>
6772#endif
6773 Syntax error
6774_ACEOF
6775if ac_fn_c_try_cpp "$LINENO"; then :
6776
6777else
6778 # Broken: fails on valid input.
6779continue
6780fi
6781rm -f conftest.err conftest.$ac_ext
6782
6783 # OK, works on sane cases. Now check whether nonexistent headers
6784 # can be detected and how.
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h. */
6787#include <ac_nonexistent.h>
6788_ACEOF
6789if ac_fn_c_try_cpp "$LINENO"; then :
6790 # Broken: success on invalid input.
6791continue
6792else
6793 # Passes both tests.
6794ac_preproc_ok=:
6795break
6796fi
6797rm -f conftest.err conftest.$ac_ext
6798
6799done
6800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6801rm -f conftest.err conftest.$ac_ext
6802if $ac_preproc_ok; then :
6803
6804else
6805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6807as_fn_error "C preprocessor \"$CPP\" fails sanity check
6808See \`config.log' for more details." "$LINENO" 5; }
6809fi
6810
6811ac_ext=c
6812ac_cpp='$CPP $CPPFLAGS'
6813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6819$as_echo_n "checking for ANSI C header files... " >&6; }
6820if test "${ac_cv_header_stdc+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h. */
6825#include <stdlib.h>
6826#include <stdarg.h>
6827#include <string.h>
6828#include <float.h>
6829
6830int
6831main ()
6832{
6833
6834 ;
6835 return 0;
6836}
6837_ACEOF
6838if ac_fn_c_try_compile "$LINENO"; then :
6839 ac_cv_header_stdc=yes
6840else
6841 ac_cv_header_stdc=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844
6845if test $ac_cv_header_stdc = yes; then
6846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h. */
6849#include <string.h>
6850
6851_ACEOF
6852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "memchr" >/dev/null 2>&1; then :
6854
6855else
6856 ac_cv_header_stdc=no
6857fi
6858rm -f conftest*
6859
6860fi
6861
6862if test $ac_cv_header_stdc = yes; then
6863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h. */
6866#include <stdlib.h>
6867
6868_ACEOF
6869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870 $EGREP "free" >/dev/null 2>&1; then :
6871
6872else
6873 ac_cv_header_stdc=no
6874fi
6875rm -f conftest*
6876
6877fi
6878
6879if test $ac_cv_header_stdc = yes; then
6880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881 if test "$cross_compiling" = yes; then :
6882 :
6883else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h. */
6886#include <ctype.h>
6887#include <stdlib.h>
6888#if ((' ' & 0x0FF) == 0x020)
6889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6891#else
6892# define ISLOWER(c) \
6893 (('a' <= (c) && (c) <= 'i') \
6894 || ('j' <= (c) && (c) <= 'r') \
6895 || ('s' <= (c) && (c) <= 'z'))
6896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6897#endif
6898
6899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6900int
6901main ()
6902{
6903 int i;
6904 for (i = 0; i < 256; i++)
6905 if (XOR (islower (i), ISLOWER (i))
6906 || toupper (i) != TOUPPER (i))
6907 return 2;
6908 return 0;
6909}
6910_ACEOF
6911if ac_fn_c_try_run "$LINENO"; then :
6912
6913else
6914 ac_cv_header_stdc=no
6915fi
6916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6917 conftest.$ac_objext conftest.beam conftest.$ac_ext
6918fi
6919
6920fi
6921fi
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6923$as_echo "$ac_cv_header_stdc" >&6; }
6924if test $ac_cv_header_stdc = yes; then
6925
6926$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6927
6928fi
6929
6930# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6931for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932 inttypes.h stdint.h unistd.h
6933do :
6934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6936"
6937eval as_val=\$$as_ac_Header
6938 if test "x$as_val" = x""yes; then :
6939 cat >>confdefs.h <<_ACEOF
6940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941_ACEOF
6942
6943fi
6944
6945done
6946
6947
6948for ac_header in dlfcn.h
6949do :
6950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6951"
6952if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6953 cat >>confdefs.h <<_ACEOF
6954#define HAVE_DLFCN_H 1
6955_ACEOF
6956
6957fi
6958
6959done
6960
6961
6962
52327858
L
6963
6964
d7f09764
DN
6965# Set options
6966
6967
6968
6969 enable_dlopen=no
6970
6971
6972 enable_win32_dll=no
6973
6974
6975 # Check whether --enable-shared was given.
6976if test "${enable_shared+set}" = set; then :
6977 enableval=$enable_shared; p=${PACKAGE-default}
6978 case $enableval in
6979 yes) enable_shared=yes ;;
6980 no) enable_shared=no ;;
6981 *)
6982 enable_shared=no
6983 # Look at the argument we got. We use all the common list separators.
6984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6985 for pkg in $enableval; do
6986 IFS="$lt_save_ifs"
6987 if test "X$pkg" = "X$p"; then
6988 enable_shared=yes
6989 fi
6990 done
6991 IFS="$lt_save_ifs"
6992 ;;
6993 esac
6994else
6995 enable_shared=yes
6996fi
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006 # Check whether --enable-static was given.
7007if test "${enable_static+set}" = set; then :
7008 enableval=$enable_static; p=${PACKAGE-default}
7009 case $enableval in
7010 yes) enable_static=yes ;;
7011 no) enable_static=no ;;
7012 *)
7013 enable_static=no
7014 # Look at the argument we got. We use all the common list separators.
7015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7016 for pkg in $enableval; do
7017 IFS="$lt_save_ifs"
7018 if test "X$pkg" = "X$p"; then
7019 enable_static=yes
7020 fi
7021 done
7022 IFS="$lt_save_ifs"
7023 ;;
7024 esac
7025else
7026 enable_static=yes
7027fi
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038# Check whether --with-pic was given.
7039if test "${with_pic+set}" = set; then :
7040 withval=$with_pic; pic_mode="$withval"
7041else
7042 pic_mode=default
7043fi
7044
7045
7046test -z "$pic_mode" && pic_mode=default
7047
7048
7049
7050
7051
7052
7053
7054 # Check whether --enable-fast-install was given.
7055if test "${enable_fast_install+set}" = set; then :
7056 enableval=$enable_fast_install; p=${PACKAGE-default}
7057 case $enableval in
7058 yes) enable_fast_install=yes ;;
7059 no) enable_fast_install=no ;;
7060 *)
7061 enable_fast_install=no
7062 # Look at the argument we got. We use all the common list separators.
7063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7064 for pkg in $enableval; do
7065 IFS="$lt_save_ifs"
7066 if test "X$pkg" = "X$p"; then
7067 enable_fast_install=yes
7068 fi
7069 done
7070 IFS="$lt_save_ifs"
7071 ;;
7072 esac
7073else
7074 enable_fast_install=yes
7075fi
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087# This can be used to rebuild libtool when needed
7088LIBTOOL_DEPS="$ltmain"
7089
7090# Always use our own libtool.
7091LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
52327858 7115
d7f09764
DN
7116
7117
7118test -z "$LN_S" && LN_S="ln -s"
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133if test -n "${ZSH_VERSION+set}" ; then
7134 setopt NO_GLOB_SUBST
7135fi
7136
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7138$as_echo_n "checking for objdir... " >&6; }
7139if test "${lt_cv_objdir+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141else
7142 rm -f .libs 2>/dev/null
7143mkdir .libs 2>/dev/null
7144if test -d .libs; then
7145 lt_cv_objdir=.libs
7146else
7147 # MS-DOS does not allow filenames that begin with a dot.
7148 lt_cv_objdir=_libs
7149fi
7150rmdir .libs 2>/dev/null
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7153$as_echo "$lt_cv_objdir" >&6; }
7154objdir=$lt_cv_objdir
7155
7156
7157
7158
7159
7160cat >>confdefs.h <<_ACEOF
7161#define LT_OBJDIR "$lt_cv_objdir/"
7162_ACEOF
7163
7164
7165
7166
d7f09764
DN
7167case $host_os in
7168aix3*)
7169 # AIX sometimes has problems with the GCC collect2 program. For some
7170 # reason, if we set the COLLECT_NAMES environment variable, the problems
7171 # vanish in a puff of smoke.
7172 if test "X${COLLECT_NAMES+set}" != Xset; then
7173 COLLECT_NAMES=
7174 export COLLECT_NAMES
7175 fi
7176 ;;
7177esac
7178
d7f09764
DN
7179# Global variables:
7180ofile=libtool
7181can_build_shared=yes
7182
7183# All known linkers require a `.a' archive for static linking (except MSVC,
7184# which needs '.lib').
7185libext=a
7186
7187with_gnu_ld="$lt_cv_prog_gnu_ld"
7188
7189old_CC="$CC"
7190old_CFLAGS="$CFLAGS"
7191
7192# Set sane defaults for various variables
7193test -z "$CC" && CC=cc
7194test -z "$LTCC" && LTCC=$CC
7195test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7196test -z "$LD" && LD=ld
7197test -z "$ac_objext" && ac_objext=o
7198
7199for cc_temp in $compiler""; do
7200 case $cc_temp in
7201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7203 \-*) ;;
7204 *) break;;
7205 esac
7206done
52327858 7207cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
7208
7209
7210# Only perform the check for file, if the check method requires it
7211test -z "$MAGIC_CMD" && MAGIC_CMD=file
7212case $deplibs_check_method in
7213file_magic*)
7214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7216$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219else
7220 case $MAGIC_CMD in
7221[\\/*] | ?:[\\/]*)
7222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7223 ;;
7224*)
7225 lt_save_MAGIC_CMD="$MAGIC_CMD"
7226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7228 for ac_dir in $ac_dummy; do
7229 IFS="$lt_save_ifs"
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f $ac_dir/${ac_tool_prefix}file; then
7232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7233 if test -n "$file_magic_test_file"; then
7234 case $deplibs_check_method in
7235 "file_magic "*)
7236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7239 $EGREP "$file_magic_regex" > /dev/null; then
7240 :
7241 else
7242 cat <<_LT_EOF 1>&2
7243
7244*** Warning: the command libtool uses to detect shared libraries,
7245*** $file_magic_cmd, produces output that libtool cannot recognize.
7246*** The result is that libtool may fail to recognize shared libraries
7247*** as such. This will affect the creation of libtool libraries that
7248*** depend on shared libraries, but programs linked with such libtool
7249*** libraries will work regardless of this problem. Nevertheless, you
7250*** may want to report the problem to your system manager and/or to
7251*** bug-libtool@gnu.org
7252
7253_LT_EOF
7254 fi ;;
7255 esac
7256 fi
7257 break
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261 MAGIC_CMD="$lt_save_MAGIC_CMD"
7262 ;;
7263esac
7264fi
7265
7266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7267if test -n "$MAGIC_CMD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7269$as_echo "$MAGIC_CMD" >&6; }
7270else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
7274
7275
7276
7277
7278
7279if test -z "$lt_cv_path_MAGIC_CMD"; then
7280 if test -n "$ac_tool_prefix"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7282$as_echo_n "checking for file... " >&6; }
7283if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285else
7286 case $MAGIC_CMD in
7287[\\/*] | ?:[\\/]*)
7288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7289 ;;
7290*)
7291 lt_save_MAGIC_CMD="$MAGIC_CMD"
7292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7294 for ac_dir in $ac_dummy; do
7295 IFS="$lt_save_ifs"
7296 test -z "$ac_dir" && ac_dir=.
7297 if test -f $ac_dir/file; then
7298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7299 if test -n "$file_magic_test_file"; then
7300 case $deplibs_check_method in
7301 "file_magic "*)
7302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7305 $EGREP "$file_magic_regex" > /dev/null; then
7306 :
7307 else
7308 cat <<_LT_EOF 1>&2
7309
7310*** Warning: the command libtool uses to detect shared libraries,
7311*** $file_magic_cmd, produces output that libtool cannot recognize.
7312*** The result is that libtool may fail to recognize shared libraries
7313*** as such. This will affect the creation of libtool libraries that
7314*** depend on shared libraries, but programs linked with such libtool
7315*** libraries will work regardless of this problem. Nevertheless, you
7316*** may want to report the problem to your system manager and/or to
7317*** bug-libtool@gnu.org
7318
7319_LT_EOF
7320 fi ;;
7321 esac
7322 fi
7323 break
7324 fi
7325 done
7326 IFS="$lt_save_ifs"
7327 MAGIC_CMD="$lt_save_MAGIC_CMD"
7328 ;;
7329esac
7330fi
7331
7332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333if test -n "$MAGIC_CMD"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7335$as_echo "$MAGIC_CMD" >&6; }
7336else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341
7342 else
7343 MAGIC_CMD=:
7344 fi
7345fi
7346
7347 fi
7348 ;;
7349esac
7350
7351# Use C for the default configuration in the libtool script
7352
7353lt_save_CC="$CC"
7354ac_ext=c
7355ac_cpp='$CPP $CPPFLAGS'
7356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360
7361# Source file extension for C test sources.
7362ac_ext=c
7363
7364# Object file extension for compiled C test sources.
7365objext=o
7366objext=$objext
7367
7368# Code to be used in simple compile tests
7369lt_simple_compile_test_code="int some_variable = 0;"
7370
7371# Code to be used in simple link tests
7372lt_simple_link_test_code='int main(){return(0);}'
7373
7374
7375
7376
7377
7378
7379
7380# If no C compiler was specified, use CC.
7381LTCC=${LTCC-"$CC"}
7382
7383# If no C compiler flags were specified, use CFLAGS.
7384LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7385
7386# Allow CC to be a program name with arguments.
7387compiler=$CC
7388
7389# Save the default compiler, since it gets overwritten when the other
7390# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7391compiler_DEFAULT=$CC
7392
7393# save warnings/boilerplate of simple test code
7394ac_outfile=conftest.$ac_objext
7395echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397_lt_compiler_boilerplate=`cat conftest.err`
7398$RM conftest*
7399
7400ac_outfile=conftest.$ac_objext
7401echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403_lt_linker_boilerplate=`cat conftest.err`
7404$RM -r conftest*
7405
7406
7407## CAVEAT EMPTOR:
7408## There is no encapsulation within the following macros, do not change
7409## the running order or otherwise move them around unless you know exactly
7410## what you are doing...
7411if test -n "$compiler"; then
7412
7413lt_prog_compiler_no_builtin_flag=
7414
7415if test "$GCC" = yes; then
52327858
L
7416 case $cc_basename in
7417 nvcc*)
7418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7419 *)
7420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7421 esac
d7f09764
DN
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7424$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7425if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427else
7428 lt_cv_prog_compiler_rtti_exceptions=no
7429 ac_outfile=conftest.$ac_objext
7430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7431 lt_compiler_flag="-fno-rtti -fno-exceptions"
7432 # Insert the option either (1) after the last *FLAGS variable, or
7433 # (2) before a word containing "conftest.", or (3) at the end.
7434 # Note that $ac_compile itself does not contain backslashes and begins
7435 # with a dollar sign (not a hyphen), so the echo should work correctly.
7436 # The option is referenced via a variable to avoid confusing sed.
7437 lt_compile=`echo "$ac_compile" | $SED \
7438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7440 -e 's:$: $lt_compiler_flag:'`
52327858 7441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7442 (eval "$lt_compile" 2>conftest.err)
7443 ac_status=$?
7444 cat conftest.err >&5
52327858 7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7446 if (exit $ac_status) && test -s "$ac_outfile"; then
7447 # The compiler can only warn and ignore the option if not recognized
7448 # So say no if there are warnings other than the usual output.
52327858 7449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
7450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7452 lt_cv_prog_compiler_rtti_exceptions=yes
7453 fi
7454 fi
7455 $RM conftest*
7456
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7459$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7460
7461if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7463else
7464 :
7465fi
7466
7467fi
7468
7469
7470
7471
7472
7473
7474 lt_prog_compiler_wl=
7475lt_prog_compiler_pic=
7476lt_prog_compiler_static=
7477
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7479$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7480
7481 if test "$GCC" = yes; then
7482 lt_prog_compiler_wl='-Wl,'
7483 lt_prog_compiler_static='-static'
7484
7485 case $host_os in
7486 aix*)
7487 # All AIX code is PIC.
7488 if test "$host_cpu" = ia64; then
7489 # AIX 5 now supports IA64 processor
7490 lt_prog_compiler_static='-Bstatic'
7491 fi
7492 ;;
7493
7494 amigaos*)
7495 case $host_cpu in
7496 powerpc)
7497 # see comment about AmigaOS4 .so support
7498 lt_prog_compiler_pic='-fPIC'
7499 ;;
7500 m68k)
7501 # FIXME: we need at least 68020 code to build shared libraries, but
7502 # adding the `-m68020' flag to GCC prevents building anything better,
7503 # like `-m68040'.
7504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7505 ;;
7506 esac
7507 ;;
7508
7509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7510 # PIC is the default for these OSes.
7511 ;;
7512
7513 mingw* | cygwin* | pw32* | os2* | cegcc*)
7514 # This hack is so that the source file can tell whether it is being
7515 # built for inclusion in a dll (and should export symbols for example).
7516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7517 # (--disable-auto-import) libraries
7518 lt_prog_compiler_pic='-DDLL_EXPORT'
7519 ;;
7520
7521 darwin* | rhapsody*)
7522 # PIC is the default on this platform
7523 # Common symbols not allowed in MH_DYLIB files
7524 lt_prog_compiler_pic='-fno-common'
7525 ;;
7526
52327858
L
7527 haiku*)
7528 # PIC is the default for Haiku.
7529 # The "-static" flag exists, but is broken.
7530 lt_prog_compiler_static=
7531 ;;
7532
d7f09764
DN
7533 hpux*)
7534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7536 # sets the default TLS model and affects inlining.
7537 case $host_cpu in
7538 hppa*64*)
7539 # +Z the default
7540 ;;
7541 *)
7542 lt_prog_compiler_pic='-fPIC'
7543 ;;
7544 esac
7545 ;;
7546
7547 interix[3-9]*)
7548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7549 # Instead, we relocate shared libraries at runtime.
7550 ;;
7551
7552 msdosdjgpp*)
7553 # Just because we use GCC doesn't mean we suddenly get shared libraries
7554 # on systems that don't support them.
7555 lt_prog_compiler_can_build_shared=no
7556 enable_shared=no
7557 ;;
7558
7559 *nto* | *qnx*)
7560 # QNX uses GNU C++, but need to define -shared option too, otherwise
7561 # it will coredump.
7562 lt_prog_compiler_pic='-fPIC -shared'
7563 ;;
7564
7565 sysv4*MP*)
7566 if test -d /usr/nec; then
7567 lt_prog_compiler_pic=-Kconform_pic
7568 fi
7569 ;;
7570
7571 *)
7572 lt_prog_compiler_pic='-fPIC'
7573 ;;
7574 esac
52327858
L
7575
7576 case $cc_basename in
7577 nvcc*) # Cuda Compiler Driver 2.2
7578 lt_prog_compiler_wl='-Xlinker '
7579 lt_prog_compiler_pic='-Xcompiler -fPIC'
7580 ;;
7581 esac
d7f09764
DN
7582 else
7583 # PORTME Check for flag to pass linker flags through the system compiler.
7584 case $host_os in
7585 aix*)
7586 lt_prog_compiler_wl='-Wl,'
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 now supports IA64 processor
7589 lt_prog_compiler_static='-Bstatic'
7590 else
7591 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7592 fi
7593 ;;
7594
7595 mingw* | cygwin* | pw32* | os2* | cegcc*)
7596 # This hack is so that the source file can tell whether it is being
7597 # built for inclusion in a dll (and should export symbols for example).
7598 lt_prog_compiler_pic='-DDLL_EXPORT'
7599 ;;
7600
7601 hpux9* | hpux10* | hpux11*)
7602 lt_prog_compiler_wl='-Wl,'
7603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7604 # not for PA HP-UX.
7605 case $host_cpu in
7606 hppa*64*|ia64*)
7607 # +Z the default
7608 ;;
7609 *)
7610 lt_prog_compiler_pic='+Z'
7611 ;;
7612 esac
7613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7614 lt_prog_compiler_static='${wl}-a ${wl}archive'
7615 ;;
7616
7617 irix5* | irix6* | nonstopux*)
7618 lt_prog_compiler_wl='-Wl,'
7619 # PIC (with -KPIC) is the default.
7620 lt_prog_compiler_static='-non_shared'
7621 ;;
7622
7623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7624 case $cc_basename in
7625 # old Intel for x86_64 which still supported -KPIC.
7626 ecc*)
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_pic='-KPIC'
7629 lt_prog_compiler_static='-static'
7630 ;;
7631 # icc used to be incompatible with GCC.
7632 # ICC 10 doesn't accept -KPIC any more.
7633 icc* | ifort*)
7634 lt_prog_compiler_wl='-Wl,'
7635 lt_prog_compiler_pic='-fPIC'
7636 lt_prog_compiler_static='-static'
7637 ;;
7638 # Lahey Fortran 8.1.
7639 lf95*)
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_pic='--shared'
7642 lt_prog_compiler_static='--static'
7643 ;;
52327858 7644 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
7645 # Portland Group compilers (*not* the Pentium gcc compiler,
7646 # which looks to be a dead project)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-fpic'
7649 lt_prog_compiler_static='-Bstatic'
7650 ;;
7651 ccc*)
7652 lt_prog_compiler_wl='-Wl,'
7653 # All Alpha code is PIC.
7654 lt_prog_compiler_static='-non_shared'
7655 ;;
52327858
L
7656 xl* | bgxl* | bgf* | mpixl*)
7657 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-qpic'
7660 lt_prog_compiler_static='-qstaticlink'
7661 ;;
7662 *)
7663 case `$CC -V 2>&1 | sed 5q` in
52327858
L
7664 *Sun\ F* | *Sun*Fortran*)
7665 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
7666 lt_prog_compiler_pic='-KPIC'
7667 lt_prog_compiler_static='-Bstatic'
52327858 7668 lt_prog_compiler_wl=''
d7f09764 7669 ;;
52327858
L
7670 *Sun\ C*)
7671 # Sun C 5.9
d7f09764
DN
7672 lt_prog_compiler_pic='-KPIC'
7673 lt_prog_compiler_static='-Bstatic'
52327858 7674 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
7675 ;;
7676 esac
7677 ;;
7678 esac
7679 ;;
7680
7681 newsos6)
7682 lt_prog_compiler_pic='-KPIC'
7683 lt_prog_compiler_static='-Bstatic'
7684 ;;
7685
7686 *nto* | *qnx*)
7687 # QNX uses GNU C++, but need to define -shared option too, otherwise
7688 # it will coredump.
7689 lt_prog_compiler_pic='-fPIC -shared'
7690 ;;
7691
7692 osf3* | osf4* | osf5*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # All OSF/1 code is PIC.
7695 lt_prog_compiler_static='-non_shared'
7696 ;;
7697
7698 rdos*)
7699 lt_prog_compiler_static='-non_shared'
7700 ;;
7701
7702 solaris*)
7703 lt_prog_compiler_pic='-KPIC'
7704 lt_prog_compiler_static='-Bstatic'
7705 case $cc_basename in
7706 f77* | f90* | f95*)
7707 lt_prog_compiler_wl='-Qoption ld ';;
7708 *)
7709 lt_prog_compiler_wl='-Wl,';;
7710 esac
7711 ;;
7712
7713 sunos4*)
7714 lt_prog_compiler_wl='-Qoption ld '
7715 lt_prog_compiler_pic='-PIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 ;;
7718
7719 sysv4 | sysv4.2uw2* | sysv4.3*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 ;;
7724
7725 sysv4*MP*)
7726 if test -d /usr/nec ;then
7727 lt_prog_compiler_pic='-Kconform_pic'
7728 lt_prog_compiler_static='-Bstatic'
7729 fi
7730 ;;
7731
7732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 ;;
7737
7738 unicos*)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_can_build_shared=no
7741 ;;
7742
7743 uts4*)
7744 lt_prog_compiler_pic='-pic'
7745 lt_prog_compiler_static='-Bstatic'
7746 ;;
7747
7748 *)
7749 lt_prog_compiler_can_build_shared=no
7750 ;;
7751 esac
7752 fi
7753
7754case $host_os in
7755 # For platforms which do not support PIC, -DPIC is meaningless:
7756 *djgpp*)
7757 lt_prog_compiler_pic=
7758 ;;
7759 *)
7760 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7761 ;;
7762esac
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7764$as_echo "$lt_prog_compiler_pic" >&6; }
7765
7766
7767
7768
7769
7770
7771#
7772# Check to make sure the PIC flag actually works.
7773#
7774if test -n "$lt_prog_compiler_pic"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7776$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7777if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779else
7780 lt_cv_prog_compiler_pic_works=no
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7783 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7784 # Insert the option either (1) after the last *FLAGS variable, or
7785 # (2) before a word containing "conftest.", or (3) at the end.
7786 # Note that $ac_compile itself does not contain backslashes and begins
7787 # with a dollar sign (not a hyphen), so the echo should work correctly.
7788 # The option is referenced via a variable to avoid confusing sed.
7789 lt_compile=`echo "$ac_compile" | $SED \
7790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792 -e 's:$: $lt_compiler_flag:'`
52327858 7793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7794 (eval "$lt_compile" 2>conftest.err)
7795 ac_status=$?
7796 cat conftest.err >&5
52327858 7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7798 if (exit $ac_status) && test -s "$ac_outfile"; then
7799 # The compiler can only warn and ignore the option if not recognized
7800 # So say no if there are warnings other than the usual output.
52327858 7801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
7802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7804 lt_cv_prog_compiler_pic_works=yes
7805 fi
7806 fi
7807 $RM conftest*
7808
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7811$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7812
7813if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7814 case $lt_prog_compiler_pic in
7815 "" | " "*) ;;
7816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7817 esac
7818else
7819 lt_prog_compiler_pic=
7820 lt_prog_compiler_can_build_shared=no
7821fi
7822
7823fi
7824
7825
7826
7827
7828
7829
7830#
7831# Check to make sure the static flag actually works.
7832#
7833wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7835$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7836if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838else
7839 lt_cv_prog_compiler_static_works=no
7840 save_LDFLAGS="$LDFLAGS"
7841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7844 # The linker can only warn and ignore the option if not recognized
7845 # So say no if there are warnings
7846 if test -s conftest.err; then
7847 # Append any errors to the config.log.
7848 cat conftest.err 1>&5
52327858 7849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
7850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7851 if diff conftest.exp conftest.er2 >/dev/null; then
7852 lt_cv_prog_compiler_static_works=yes
7853 fi
7854 else
7855 lt_cv_prog_compiler_static_works=yes
7856 fi
7857 fi
7858 $RM -r conftest*
7859 LDFLAGS="$save_LDFLAGS"
7860
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7863$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7864
7865if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7866 :
7867else
7868 lt_prog_compiler_static=
7869fi
7870
7871
7872
7873
7874
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7878$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7879if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881else
7882 lt_cv_prog_compiler_c_o=no
7883 $RM -r conftest 2>/dev/null
7884 mkdir conftest
7885 cd conftest
7886 mkdir out
7887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888
7889 lt_compiler_flag="-o out/conftest2.$ac_objext"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
52327858 7898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7899 (eval "$lt_compile" 2>out/conftest.err)
7900 ac_status=$?
7901 cat out/conftest.err >&5
52327858 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7904 then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings
52327858 7907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
7908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_c_o=yes
7911 fi
7912 fi
7913 chmod u+w . 2>&5
7914 $RM conftest*
7915 # SGI C++ compiler will create directory out/ii_files/ for
7916 # template instantiation
7917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7918 $RM out/* && rmdir out
7919 cd ..
7920 $RM -r conftest
7921 $RM conftest*
7922
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7925$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7926
7927
7928
7929
7930
7931
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7933$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7934if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936else
7937 lt_cv_prog_compiler_c_o=no
7938 $RM -r conftest 2>/dev/null
7939 mkdir conftest
7940 cd conftest
7941 mkdir out
7942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7943
7944 lt_compiler_flag="-o out/conftest2.$ac_objext"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 lt_compile=`echo "$ac_compile" | $SED \
7950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7952 -e 's:$: $lt_compiler_flag:'`
52327858 7953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7954 (eval "$lt_compile" 2>out/conftest.err)
7955 ac_status=$?
7956 cat out/conftest.err >&5
52327858 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7959 then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings
52327858 7962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
7963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_c_o=yes
7966 fi
7967 fi
7968 chmod u+w . 2>&5
7969 $RM conftest*
7970 # SGI C++ compiler will create directory out/ii_files/ for
7971 # template instantiation
7972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7973 $RM out/* && rmdir out
7974 cd ..
7975 $RM -r conftest
7976 $RM conftest*
7977
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7980$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7981
7982
7983
7984
7985hard_links="nottested"
7986if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7987 # do not overwrite the value of need_locks provided by the user
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7989$as_echo_n "checking if we can lock with hard links... " >&6; }
7990 hard_links=yes
7991 $RM conftest*
7992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7993 touch conftest.a
7994 ln conftest.a conftest.b 2>&5 || hard_links=no
7995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7997$as_echo "$hard_links" >&6; }
7998 if test "$hard_links" = no; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8000$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8001 need_locks=warn
8002 fi
8003else
8004 need_locks=no
8005fi
8006
8007
8008
8009
8010
8011
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8013$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8014
8015 runpath_var=
8016 allow_undefined_flag=
8017 always_export_symbols=no
8018 archive_cmds=
8019 archive_expsym_cmds=
8020 compiler_needs_object=no
8021 enable_shared_with_static_runtimes=no
8022 export_dynamic_flag_spec=
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8024 hardcode_automatic=no
8025 hardcode_direct=no
8026 hardcode_direct_absolute=no
8027 hardcode_libdir_flag_spec=
8028 hardcode_libdir_flag_spec_ld=
8029 hardcode_libdir_separator=
8030 hardcode_minus_L=no
8031 hardcode_shlibpath_var=unsupported
8032 inherit_rpath=no
8033 link_all_deplibs=unknown
8034 module_cmds=
8035 module_expsym_cmds=
8036 old_archive_from_new_cmds=
8037 old_archive_from_expsyms_cmds=
8038 thread_safe_flag_spec=
8039 whole_archive_flag_spec=
8040 # include_expsyms should be a list of space-separated symbols to be *always*
8041 # included in the symbol list
8042 include_expsyms=
8043 # exclude_expsyms can be an extended regexp of symbols to exclude
8044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8046 # as well as any symbol that contains `d'.
8047 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8049 # platforms (ab)use it in PIC code, but their linkers get confused if
8050 # the symbol is explicitly referenced. Since portable code cannot
8051 # rely on this symbol name, it's probably fine to never include it in
8052 # preloaded symbol tables.
8053 # Exclude shared library initialization/finalization symbols.
8054 extract_expsyms_cmds=
8055
8056 case $host_os in
8057 cygwin* | mingw* | pw32* | cegcc*)
8058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 if test "$GCC" != yes; then
8062 with_gnu_ld=no
8063 fi
8064 ;;
8065 interix*)
8066 # we just hope/assume this is gcc and not c89 (= MSVC++)
8067 with_gnu_ld=yes
8068 ;;
8069 openbsd*)
8070 with_gnu_ld=no
8071 ;;
8072 esac
8073
8074 ld_shlibs=yes
52327858
L
8075
8076 # On some targets, GNU ld is compatible enough with the native linker
8077 # that we're better off using the native interface for both.
8078 lt_use_gnu_ld_interface=no
d7f09764 8079 if test "$with_gnu_ld" = yes; then
52327858
L
8080 case $host_os in
8081 aix*)
8082 # The AIX port of GNU ld has always aspired to compatibility
8083 # with the native linker. However, as the warning in the GNU ld
8084 # block says, versions before 2.19.5* couldn't really create working
8085 # shared libraries, regardless of the interface used.
8086 case `$LD -v 2>&1` in
8087 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8088 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8089 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8090 *)
8091 lt_use_gnu_ld_interface=yes
8092 ;;
8093 esac
8094 ;;
8095 *)
8096 lt_use_gnu_ld_interface=yes
8097 ;;
8098 esac
8099 fi
8100
8101 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
8102 # If archive_cmds runs LD, not CC, wlarc should be empty
8103 wlarc='${wl}'
8104
8105 # Set some defaults for GNU ld with shared library support. These
8106 # are reset later if shared libraries are not supported. Putting them
8107 # here allows them to be overridden if necessary.
8108 runpath_var=LD_RUN_PATH
8109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8110 export_dynamic_flag_spec='${wl}--export-dynamic'
8111 # ancient GNU ld didn't support --whole-archive et. al.
8112 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8113 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114 else
8115 whole_archive_flag_spec=
8116 fi
8117 supports_anon_versioning=no
8118 case `$LD -v 2>&1` in
52327858 8119 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8123 *\ 2.11.*) ;; # other 2.11 versions
8124 *) supports_anon_versioning=yes ;;
8125 esac
8126
8127 # See if GNU ld supports shared libraries.
8128 case $host_os in
8129 aix[3-9]*)
8130 # On AIX/PPC, the GNU linker is very broken
8131 if test "$host_cpu" != ia64; then
8132 ld_shlibs=no
8133 cat <<_LT_EOF 1>&2
8134
52327858 8135*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
8136*** to be unable to reliably create shared libraries on AIX.
8137*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
8138*** really care for shared libraries, you may want to install binutils
8139*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8140*** You will then need to restart the configuration process.
d7f09764
DN
8141
8142_LT_EOF
8143 fi
8144 ;;
8145
8146 amigaos*)
8147 case $host_cpu in
8148 powerpc)
8149 # see comment about AmigaOS4 .so support
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 archive_expsym_cmds=''
8152 ;;
8153 m68k)
8154 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)'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_minus_L=yes
8157 ;;
8158 esac
8159 ;;
8160
8161 beos*)
8162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8163 allow_undefined_flag=unsupported
8164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8165 # support --undefined. This deserves some investigation. FIXME
8166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167 else
8168 ld_shlibs=no
8169 fi
8170 ;;
8171
8172 cygwin* | mingw* | pw32* | cegcc*)
8173 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8174 # as there is no search path for DLLs.
8175 hardcode_libdir_flag_spec='-L$libdir'
52327858 8176 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
8177 allow_undefined_flag=unsupported
8178 always_export_symbols=no
8179 enable_shared_with_static_runtimes=yes
8180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8181
8182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184 # If the export-symbols file already is a .def file (1st line
8185 # is EXPORTS), use it as is; otherwise, prepend...
8186 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8187 cp $export_symbols $output_objdir/$soname.def;
8188 else
8189 echo EXPORTS > $output_objdir/$soname.def;
8190 cat $export_symbols >> $output_objdir/$soname.def;
8191 fi~
8192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8193 else
8194 ld_shlibs=no
8195 fi
8196 ;;
8197
52327858
L
8198 haiku*)
8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 link_all_deplibs=yes
8201 ;;
8202
d7f09764
DN
8203 interix[3-9]*)
8204 hardcode_direct=no
8205 hardcode_shlibpath_var=no
8206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8207 export_dynamic_flag_spec='${wl}-E'
8208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8209 # Instead, shared libraries are loaded at an image base (0x10000000 by
8210 # default) and relocated if they conflict, which is a slow very memory
8211 # consuming and fragmenting process. To avoid this, we pick a random,
8212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8215 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'
8216 ;;
8217
8218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8219 tmp_diet=no
8220 if test "$host_os" = linux-dietlibc; then
8221 case $cc_basename in
8222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8223 esac
8224 fi
8225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8226 && test "$tmp_diet" = no
8227 then
8228 tmp_addflag=
8229 tmp_sharedflag='-shared'
8230 case $cc_basename,$host_cpu in
8231 pgcc*) # Portland Group C compiler
52327858 8232 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'
d7f09764
DN
8233 tmp_addflag=' $pic_flag'
8234 ;;
52327858
L
8235 pgf77* | pgf90* | pgf95* | pgfortran*)
8236 # Portland Group f77 and f90 compilers
8237 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'
d7f09764
DN
8238 tmp_addflag=' $pic_flag -Mnomain' ;;
8239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8240 tmp_addflag=' -i_dynamic' ;;
8241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8242 tmp_addflag=' -i_dynamic -nofor_main' ;;
8243 ifc* | ifort*) # Intel Fortran compiler
8244 tmp_addflag=' -nofor_main' ;;
8245 lf95*) # Lahey Fortran 8.1
8246 whole_archive_flag_spec=
8247 tmp_sharedflag='--shared' ;;
52327858 8248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
8249 tmp_sharedflag='-qmkshrobj'
8250 tmp_addflag= ;;
52327858
L
8251 nvcc*) # Cuda Compiler Driver 2.2
8252 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'
8253 compiler_needs_object=yes
8254 ;;
d7f09764
DN
8255 esac
8256 case `$CC -V 2>&1 | sed 5q` in
8257 *Sun\ C*) # Sun C 5.9
52327858 8258 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'
d7f09764
DN
8259 compiler_needs_object=yes
8260 tmp_sharedflag='-G' ;;
8261 *Sun\ F*) # Sun Fortran 8.3
8262 tmp_sharedflag='-G' ;;
8263 esac
8264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265
8266 if test "x$supports_anon_versioning" = xyes; then
8267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269 echo "local: *; };" >> $output_objdir/$libname.ver~
8270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8271 fi
8272
8273 case $cc_basename in
52327858 8274 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
8275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8277 hardcode_libdir_flag_spec=
8278 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8279 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8280 if test "x$supports_anon_versioning" = xyes; then
8281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8283 echo "local: *; };" >> $output_objdir/$libname.ver~
8284 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8285 fi
8286 ;;
8287 esac
8288 else
8289 ld_shlibs=no
8290 fi
8291 ;;
8292
8293 netbsd*)
8294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8296 wlarc=
8297 else
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 fi
8301 ;;
8302
8303 solaris*)
8304 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8305 ld_shlibs=no
8306 cat <<_LT_EOF 1>&2
8307
8308*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309*** create shared libraries on Solaris systems. Therefore, libtool
8310*** is disabling shared libraries support. We urge you to upgrade GNU
8311*** binutils to release 2.9.1 or newer. Another option is to modify
8312*** your PATH or compiler configuration so that the native linker is
8313*** used, and then restart.
8314
8315_LT_EOF
8316 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 else
8320 ld_shlibs=no
8321 fi
8322 ;;
8323
8324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8325 case `$LD -v 2>&1` in
8326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8327 ld_shlibs=no
8328 cat <<_LT_EOF 1>&2
8329
8330*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8331*** reliably create shared libraries on SCO systems. Therefore, libtool
8332*** is disabling shared libraries support. We urge you to upgrade GNU
8333*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8334*** your PATH or compiler configuration so that the native linker is
8335*** used, and then restart.
8336
8337_LT_EOF
8338 ;;
8339 *)
8340 # For security reasons, it is highly recommended that you always
8341 # use absolute paths for naming shared libraries, and exclude the
8342 # DT_RUNPATH tag from executables and libraries. But doing so
8343 # requires that you compile everything twice, which is a pain.
8344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8348 else
8349 ld_shlibs=no
8350 fi
8351 ;;
8352 esac
8353 ;;
8354
8355 sunos4*)
8356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8357 wlarc=
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8360 ;;
8361
8362 *)
8363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366 else
8367 ld_shlibs=no
8368 fi
8369 ;;
8370 esac
8371
8372 if test "$ld_shlibs" = no; then
8373 runpath_var=
8374 hardcode_libdir_flag_spec=
8375 export_dynamic_flag_spec=
8376 whole_archive_flag_spec=
8377 fi
8378 else
8379 # PORTME fill in a description of your system's linker (not GNU ld)
8380 case $host_os in
8381 aix3*)
8382 allow_undefined_flag=unsupported
8383 always_export_symbols=yes
8384 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'
8385 # Note: this linker hardcodes the directories in LIBPATH if there
8386 # are no directories specified by -L.
8387 hardcode_minus_L=yes
8388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8389 # Neither direct hardcoding nor static linking is supported with a
8390 # broken collect2.
8391 hardcode_direct=unsupported
8392 fi
8393 ;;
8394
8395 aix[4-9]*)
8396 if test "$host_cpu" = ia64; then
8397 # On IA64, the linker does run time linking by default, so we don't
8398 # have to do anything special.
8399 aix_use_runtimelinking=no
8400 exp_sym_flag='-Bexport'
8401 no_entry_flag=""
8402 else
8403 # If we're using GNU nm, then we don't want the "-C" option.
8404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
8405 # Also, AIX nm treats weak defined symbols like other global
8406 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 8407 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 8408 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'
d7f09764
DN
8409 else
8410 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8411 fi
8412 aix_use_runtimelinking=no
8413
8414 # Test if we are trying to use run time linking or normal
8415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8416 # need to do runtime linking.
8417 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8418 for ld_flag in $LDFLAGS; do
8419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8420 aix_use_runtimelinking=yes
8421 break
8422 fi
8423 done
8424 ;;
8425 esac
8426
8427 exp_sym_flag='-bexport'
8428 no_entry_flag='-bnoentry'
8429 fi
8430
8431 # When large executables or shared objects are built, AIX ld can
8432 # have problems creating the table of contents. If linking a library
8433 # or program results in "error TOC overflow" add -mminimal-toc to
8434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8436
8437 archive_cmds=''
8438 hardcode_direct=yes
8439 hardcode_direct_absolute=yes
8440 hardcode_libdir_separator=':'
8441 link_all_deplibs=yes
8442 file_list_spec='${wl}-f,'
8443
8444 if test "$GCC" = yes; then
8445 case $host_os in aix4.[012]|aix4.[012].*)
8446 # We only want to do this on AIX 4.2 and lower, the check
8447 # below for broken collect2 doesn't work under 4.3+
8448 collect2name=`${CC} -print-prog-name=collect2`
8449 if test -f "$collect2name" &&
8450 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8451 then
8452 # We have reworked collect2
8453 :
8454 else
8455 # We have old collect2
8456 hardcode_direct=unsupported
8457 # It fails to find uninstalled libraries when the uninstalled
8458 # path is not listed in the libpath. Setting hardcode_minus_L
8459 # to unsupported forces relinking
8460 hardcode_minus_L=yes
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_libdir_separator=
8463 fi
8464 ;;
8465 esac
8466 shared_flag='-shared'
8467 if test "$aix_use_runtimelinking" = yes; then
8468 shared_flag="$shared_flag "'${wl}-G'
8469 fi
8470 else
8471 # not using gcc
8472 if test "$host_cpu" = ia64; then
8473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8474 # chokes on -Wl,-G. The following line is correct:
8475 shared_flag='-G'
8476 else
8477 if test "$aix_use_runtimelinking" = yes; then
8478 shared_flag='${wl}-G'
8479 else
8480 shared_flag='${wl}-bM:SRE'
8481 fi
8482 fi
8483 fi
8484
8485 export_dynamic_flag_spec='${wl}-bexpall'
8486 # It seems that -bexpall does not export symbols beginning with
8487 # underscore (_), so it is better to generate a list of symbols to export.
8488 always_export_symbols=yes
8489 if test "$aix_use_runtimelinking" = yes; then
8490 # Warning - without using the other runtime loading flags (-brtl),
8491 # -berok will link without error, but may produce a broken library.
8492 allow_undefined_flag='-berok'
8493 # Determine the default libpath from the value encoded in an
8494 # empty executable.
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h. */
8497
8498int
8499main ()
8500{
8501
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_link "$LINENO"; then :
8507
8508lt_aix_libpath_sed='
8509 /Import File Strings/,/^$/ {
8510 /^0/ {
8511 s/^0 *\(.*\)$/\1/
8512 p
8513 }
8514 }'
8515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8516# Check for a 64-bit object if we didn't find anything.
8517if test -z "$aix_libpath"; then
8518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8519fi
8520fi
8521rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8524
8525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 8526 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"
d7f09764
DN
8527 else
8528 if test "$host_cpu" = ia64; then
8529 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8530 allow_undefined_flag="-z nodefs"
8531 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"
8532 else
8533 # Determine the default libpath from the value encoded in an
8534 # empty executable.
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
8537
8538int
8539main ()
8540{
8541
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546if ac_fn_c_try_link "$LINENO"; then :
8547
8548lt_aix_libpath_sed='
8549 /Import File Strings/,/^$/ {
8550 /^0/ {
8551 s/^0 *\(.*\)$/\1/
8552 p
8553 }
8554 }'
8555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556# Check for a 64-bit object if we didn't find anything.
8557if test -z "$aix_libpath"; then
8558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559fi
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8564
8565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8566 # Warning - without using the other run time loading flags,
8567 # -berok will link without error, but may produce a broken library.
8568 no_undefined_flag=' ${wl}-bernotok'
8569 allow_undefined_flag=' ${wl}-berok'
52327858
L
8570 if test "$with_gnu_ld" = yes; then
8571 # We only use this code for GNU lds that support --whole-archive.
8572 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8573 else
8574 # Exported symbols can be pulled into shared objects from archives
8575 whole_archive_flag_spec='$convenience'
8576 fi
d7f09764
DN
8577 archive_cmds_need_lc=yes
8578 # This is similar to how AIX traditionally builds its shared libraries.
8579 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'
8580 fi
8581 fi
8582 ;;
8583
8584 amigaos*)
8585 case $host_cpu in
8586 powerpc)
8587 # see comment about AmigaOS4 .so support
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589 archive_expsym_cmds=''
8590 ;;
8591 m68k)
8592 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)'
8593 hardcode_libdir_flag_spec='-L$libdir'
8594 hardcode_minus_L=yes
8595 ;;
8596 esac
8597 ;;
8598
8599 bsdi[45]*)
8600 export_dynamic_flag_spec=-rdynamic
8601 ;;
8602
8603 cygwin* | mingw* | pw32* | cegcc*)
8604 # When not using gcc, we currently assume that we are using
8605 # Microsoft Visual C++.
8606 # hardcode_libdir_flag_spec is actually meaningless, as there is
8607 # no search path for DLLs.
8608 hardcode_libdir_flag_spec=' '
8609 allow_undefined_flag=unsupported
8610 # Tell ltmain to make .lib files, not .a files.
8611 libext=lib
8612 # Tell ltmain to make .dll files, not .so files.
8613 shrext_cmds=".dll"
8614 # FIXME: Setting linknames here is a bad hack.
52327858 8615 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
8616 # The linker will automatically build a .lib file if we build a DLL.
8617 old_archive_from_new_cmds='true'
8618 # FIXME: Should let the user specify the lib program.
8619 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8620 fix_srcfile_path='`cygpath -w "$srcfile"`'
8621 enable_shared_with_static_runtimes=yes
8622 ;;
8623
8624 darwin* | rhapsody*)
8625
8626
8627 archive_cmds_need_lc=no
8628 hardcode_direct=no
8629 hardcode_automatic=yes
8630 hardcode_shlibpath_var=unsupported
52327858
L
8631 if test "$lt_cv_ld_force_load" = "yes"; then
8632 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\"`'
8633 else
8634 whole_archive_flag_spec=''
8635 fi
d7f09764
DN
8636 link_all_deplibs=yes
8637 allow_undefined_flag="$_lt_dar_allow_undefined"
8638 case $cc_basename in
8639 ifort*) _lt_dar_can_shared=yes ;;
8640 *) _lt_dar_can_shared=$GCC ;;
8641 esac
8642 if test "$_lt_dar_can_shared" = "yes"; then
52327858 8643 output_verbose_link_cmd=func_echo_all
d7f09764
DN
8644 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8645 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8646 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}"
8647 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}"
8648
8649 else
8650 ld_shlibs=no
8651 fi
8652
8653 ;;
8654
8655 dgux*)
8656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_shlibpath_var=no
8659 ;;
8660
8661 freebsd1*)
8662 ld_shlibs=no
8663 ;;
8664
8665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8666 # support. Future versions do this automatically, but an explicit c++rt0.o
8667 # does not break anything, and helps significantly (at the cost of a little
8668 # extra space).
8669 freebsd2.2*)
8670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8674 ;;
8675
8676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8677 freebsd2*)
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 hardcode_direct=yes
8680 hardcode_minus_L=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8685 freebsd* | dragonfly*)
8686 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8687 hardcode_libdir_flag_spec='-R$libdir'
8688 hardcode_direct=yes
8689 hardcode_shlibpath_var=no
8690 ;;
8691
8692 hpux9*)
8693 if test "$GCC" = yes; then
8694 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'
8695 else
8696 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'
8697 fi
8698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699 hardcode_libdir_separator=:
8700 hardcode_direct=yes
8701
8702 # hardcode_minus_L: Not really in the search PATH,
8703 # but as the default location of the library.
8704 hardcode_minus_L=yes
8705 export_dynamic_flag_spec='${wl}-E'
8706 ;;
8707
8708 hpux10*)
52327858 8709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
8710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8711 else
8712 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8713 fi
8714 if test "$with_gnu_ld" = no; then
8715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716 hardcode_libdir_flag_spec_ld='+b $libdir'
8717 hardcode_libdir_separator=:
8718 hardcode_direct=yes
8719 hardcode_direct_absolute=yes
8720 export_dynamic_flag_spec='${wl}-E'
8721 # hardcode_minus_L: Not really in the search PATH,
8722 # but as the default location of the library.
8723 hardcode_minus_L=yes
8724 fi
8725 ;;
8726
8727 hpux11*)
52327858 8728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
8729 case $host_cpu in
8730 hppa*64*)
8731 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 ia64*)
8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735 ;;
8736 *)
8737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8738 ;;
8739 esac
8740 else
8741 case $host_cpu in
8742 hppa*64*)
8743 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 ;;
8745 ia64*)
8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8747 ;;
8748 *)
52327858
L
8749
8750 # Older versions of the 11.00 compiler do not understand -b yet
8751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8753$as_echo_n "checking if $CC understands -b... " >&6; }
8754if test "${lt_cv_prog_compiler__b+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8756else
8757 lt_cv_prog_compiler__b=no
8758 save_LDFLAGS="$LDFLAGS"
8759 LDFLAGS="$LDFLAGS -b"
8760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762 # The linker can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 if test -s conftest.err; then
8765 # Append any errors to the config.log.
8766 cat conftest.err 1>&5
8767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769 if diff conftest.exp conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler__b=yes
8771 fi
8772 else
8773 lt_cv_prog_compiler__b=yes
8774 fi
8775 fi
8776 $RM -r conftest*
8777 LDFLAGS="$save_LDFLAGS"
8778
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8781$as_echo "$lt_cv_prog_compiler__b" >&6; }
8782
8783if test x"$lt_cv_prog_compiler__b" = xyes; then
8784 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8785else
8786 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8787fi
8788
d7f09764
DN
8789 ;;
8790 esac
8791 fi
8792 if test "$with_gnu_ld" = no; then
8793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795
8796 case $host_cpu in
8797 hppa*64*|ia64*)
8798 hardcode_direct=no
8799 hardcode_shlibpath_var=no
8800 ;;
8801 *)
8802 hardcode_direct=yes
8803 hardcode_direct_absolute=yes
8804 export_dynamic_flag_spec='${wl}-E'
8805
8806 # hardcode_minus_L: Not really in the search PATH,
8807 # but as the default location of the library.
8808 hardcode_minus_L=yes
8809 ;;
8810 esac
8811 fi
8812 ;;
8813
8814 irix5* | irix6* | nonstopux*)
8815 if test "$GCC" = yes; then
52327858 8816 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'
d7f09764
DN
8817 # Try to use the -exported_symbol ld option, if it does not
8818 # work, assume that -exports_file does not work either and
8819 # implicitly export all symbols.
8820 save_LDFLAGS="$LDFLAGS"
8821 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h. */
8824int foo(void) {}
8825_ACEOF
8826if ac_fn_c_try_link "$LINENO"; then :
52327858 8827 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'
d7f09764
DN
8828
8829fi
8830rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 LDFLAGS="$save_LDFLAGS"
8833 else
52327858
L
8834 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'
8835 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'
d7f09764
DN
8836 fi
8837 archive_cmds_need_lc='no'
8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839 hardcode_libdir_separator=:
8840 inherit_rpath=yes
8841 link_all_deplibs=yes
8842 ;;
8843
8844 netbsd*)
8845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8847 else
8848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8849 fi
8850 hardcode_libdir_flag_spec='-R$libdir'
8851 hardcode_direct=yes
8852 hardcode_shlibpath_var=no
8853 ;;
8854
8855 newsos6)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_direct=yes
8858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8859 hardcode_libdir_separator=:
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 *nto* | *qnx*)
8864 ;;
8865
8866 openbsd*)
8867 if test -f /usr/libexec/ld.so; then
8868 hardcode_direct=yes
8869 hardcode_shlibpath_var=no
8870 hardcode_direct_absolute=yes
8871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875 export_dynamic_flag_spec='${wl}-E'
8876 else
8877 case $host_os in
8878 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-R$libdir'
8881 ;;
8882 *)
8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 ;;
8886 esac
8887 fi
8888 else
8889 ld_shlibs=no
8890 fi
8891 ;;
8892
8893 os2*)
8894 hardcode_libdir_flag_spec='-L$libdir'
8895 hardcode_minus_L=yes
8896 allow_undefined_flag=unsupported
52327858 8897 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'
d7f09764
DN
8898 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8899 ;;
8900
8901 osf3*)
8902 if test "$GCC" = yes; then
8903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 8904 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'
d7f09764
DN
8905 else
8906 allow_undefined_flag=' -expect_unresolved \*'
52327858 8907 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'
d7f09764
DN
8908 fi
8909 archive_cmds_need_lc='no'
8910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911 hardcode_libdir_separator=:
8912 ;;
8913
8914 osf4* | osf5*) # as osf3* with the addition of -msym flag
8915 if test "$GCC" = yes; then
8916 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 8917 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'
d7f09764
DN
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 else
8920 allow_undefined_flag=' -expect_unresolved \*'
52327858 8921 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'
d7f09764 8922 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~
52327858 8923 $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'
d7f09764
DN
8924
8925 # Both c and cxx compiler support -rpath directly
8926 hardcode_libdir_flag_spec='-rpath $libdir'
8927 fi
8928 archive_cmds_need_lc='no'
8929 hardcode_libdir_separator=:
8930 ;;
8931
8932 solaris*)
8933 no_undefined_flag=' -z defs'
8934 if test "$GCC" = yes; then
8935 wlarc='${wl}'
8936 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8938 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8939 else
8940 case `$CC -V 2>&1` in
8941 *"Compilers 5.0"*)
8942 wlarc=''
8943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8946 ;;
8947 *)
8948 wlarc='${wl}'
8949 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8952 ;;
8953 esac
8954 fi
8955 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_shlibpath_var=no
8957 case $host_os in
8958 solaris2.[0-5] | solaris2.[0-5].*) ;;
8959 *)
8960 # The compiler driver will combine and reorder linker options,
8961 # but understands `-z linker_flag'. GCC discards it without `$wl',
8962 # but is careful enough not to reorder.
8963 # Supported since Solaris 2.6 (maybe 2.5.1?)
8964 if test "$GCC" = yes; then
8965 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8966 else
8967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8968 fi
8969 ;;
8970 esac
8971 link_all_deplibs=yes
8972 ;;
8973
8974 sunos4*)
8975 if test "x$host_vendor" = xsequent; then
8976 # Use $CC to link under sequent, because it throws in some extra .o
8977 # files that make .init and .fini sections work.
8978 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8979 else
8980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8981 fi
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_direct=yes
8984 hardcode_minus_L=yes
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 sysv4)
8989 case $host_vendor in
8990 sni)
8991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_direct=yes # is this really true???
8993 ;;
8994 siemens)
8995 ## LD is ld it makes a PLAMLIB
8996 ## CC just makes a GrossModule.
8997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8998 reload_cmds='$CC -r -o $output$reload_objs'
8999 hardcode_direct=no
9000 ;;
9001 motorola)
9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9004 ;;
9005 esac
9006 runpath_var='LD_RUN_PATH'
9007 hardcode_shlibpath_var=no
9008 ;;
9009
9010 sysv4.3*)
9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_shlibpath_var=no
9013 export_dynamic_flag_spec='-Bexport'
9014 ;;
9015
9016 sysv4*MP*)
9017 if test -d /usr/nec; then
9018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019 hardcode_shlibpath_var=no
9020 runpath_var=LD_RUN_PATH
9021 hardcode_runpath_var=yes
9022 ld_shlibs=yes
9023 fi
9024 ;;
9025
9026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9027 no_undefined_flag='${wl}-z,text'
9028 archive_cmds_need_lc=no
9029 hardcode_shlibpath_var=no
9030 runpath_var='LD_RUN_PATH'
9031
9032 if test "$GCC" = yes; then
9033 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9035 else
9036 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 fi
9039 ;;
9040
9041 sysv5* | sco3.2v5* | sco5v6*)
9042 # Note: We can NOT use -z defs as we might desire, because we do not
9043 # link with -lc, and that would cause any symbols used from libc to
9044 # always be unresolved, which means just about no library would
9045 # ever link correctly. If we're not using GNU ld we use -z text
9046 # though, which does catch some bad symbols but isn't as heavy-handed
9047 # as -z defs.
9048 no_undefined_flag='${wl}-z,text'
9049 allow_undefined_flag='${wl}-z,nodefs'
9050 archive_cmds_need_lc=no
9051 hardcode_shlibpath_var=no
9052 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9053 hardcode_libdir_separator=':'
9054 link_all_deplibs=yes
9055 export_dynamic_flag_spec='${wl}-Bexport'
9056 runpath_var='LD_RUN_PATH'
9057
9058 if test "$GCC" = yes; then
9059 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 else
9062 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 fi
9065 ;;
9066
9067 uts4*)
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 *)
9074 ld_shlibs=no
9075 ;;
9076 esac
9077
9078 if test x$host_vendor = xsni; then
9079 case $host in
9080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9081 export_dynamic_flag_spec='${wl}-Blargedynsym'
9082 ;;
9083 esac
9084 fi
9085 fi
9086
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9088$as_echo "$ld_shlibs" >&6; }
9089test "$ld_shlibs" = no && can_build_shared=no
9090
9091with_gnu_ld=$with_gnu_ld
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107#
9108# Do we need to explicitly link libc?
9109#
9110case "x$archive_cmds_need_lc" in
9111x|xyes)
9112 # Assume -lc should be added
9113 archive_cmds_need_lc=yes
9114
9115 if test "$enable_shared" = yes && test "$GCC" = yes; then
9116 case $archive_cmds in
9117 *'~'*)
9118 # FIXME: we may have to deal with multi-command sequences.
9119 ;;
9120 '$CC '*)
9121 # Test whether the compiler implicitly links with -lc since on some
9122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9123 # to ld, don't add -lc before -lgcc.
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9126if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128else
9129 $RM conftest*
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131
9132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9136 test $ac_status = 0; } 2>conftest.err; then
9137 soname=conftest
9138 lib=conftest
9139 libobjs=conftest.$ac_objext
9140 deplibs=
9141 wl=$lt_prog_compiler_wl
9142 pic_flag=$lt_prog_compiler_pic
9143 compiler_flags=-v
9144 linker_flags=-v
9145 verstring=
9146 output_objdir=.
9147 libname=conftest
9148 lt_save_allow_undefined_flag=$allow_undefined_flag
9149 allow_undefined_flag=
9150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9152 ac_status=$?
9153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9154 test $ac_status = 0; }
9155 then
9156 lt_cv_archive_cmds_need_lc=no
9157 else
9158 lt_cv_archive_cmds_need_lc=yes
9159 fi
9160 allow_undefined_flag=$lt_save_allow_undefined_flag
9161 else
9162 cat conftest.err 1>&5
9163 fi
9164 $RM conftest*
9165
9166fi
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9168$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9170 ;;
9171 esac
9172 fi
9173 ;;
9174esac
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9333$as_echo_n "checking dynamic linker characteristics... " >&6; }
9334
9335if test "$GCC" = yes; then
9336 case $host_os in
9337 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9338 *) lt_awk_arg="/^libraries:/" ;;
9339 esac
52327858
L
9340 case $host_os in
9341 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9342 *) lt_sed_strip_eq="s,=/,/,g" ;;
9343 esac
9344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9345 case $lt_search_path_spec in
9346 *\;*)
d7f09764
DN
9347 # if the path contains ";" then we assume it to be the separator
9348 # otherwise default to the standard path separator (i.e. ":") - it is
9349 # assumed that no part of a normal pathname contains ";" but that should
9350 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
9351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9352 ;;
9353 *)
9354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9355 ;;
9356 esac
d7f09764
DN
9357 # Ok, now we have the path, separated by spaces, we can step through it
9358 # and add multilib dir if necessary.
9359 lt_tmp_lt_search_path_spec=
9360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9361 for lt_sys_path in $lt_search_path_spec; do
9362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9364 else
9365 test -d "$lt_sys_path" && \
9366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9367 fi
9368 done
52327858 9369 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
9370BEGIN {RS=" "; FS="/|\n";} {
9371 lt_foo="";
9372 lt_count=0;
9373 for (lt_i = NF; lt_i > 0; lt_i--) {
9374 if ($lt_i != "" && $lt_i != ".") {
9375 if ($lt_i == "..") {
9376 lt_count++;
9377 } else {
9378 if (lt_count == 0) {
9379 lt_foo="/" $lt_i lt_foo;
9380 } else {
9381 lt_count--;
9382 }
9383 }
9384 }
9385 }
9386 if (lt_foo != "") { lt_freq[lt_foo]++; }
9387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9388}'`
52327858
L
9389 # AWK program above erroneously prepends '/' to C:/dos/paths
9390 # for these hosts.
9391 case $host_os in
9392 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9393 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9394 esac
9395 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
9396else
9397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9398fi
9399library_names_spec=
9400libname_spec='lib$name'
9401soname_spec=
9402shrext_cmds=".so"
9403postinstall_cmds=
9404postuninstall_cmds=
9405finish_cmds=
9406finish_eval=
9407shlibpath_var=
9408shlibpath_overrides_runpath=unknown
9409version_type=none
9410dynamic_linker="$host_os ld.so"
9411sys_lib_dlsearch_path_spec="/lib /usr/lib"
9412need_lib_prefix=unknown
9413hardcode_into_libs=no
9414
9415# when you set need_version to no, make sure it does not cause -set_version
9416# flags to be left without arguments
9417need_version=unknown
9418
9419case $host_os in
9420aix3*)
9421 version_type=linux
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9423 shlibpath_var=LIBPATH
9424
9425 # AIX 3 has no versioning support, so we append a major version to the name.
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 ;;
9428
9429aix[4-9]*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 hardcode_into_libs=yes
9434 if test "$host_cpu" = ia64; then
9435 # AIX 5 supports IA64
9436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 else
9439 # With GCC up to 2.95.x, collect2 would create an import file
9440 # for dependence libraries. The import file would start with
9441 # the line `#! .'. This would cause the generated library to
9442 # depend on `.', always an invalid library. This was fixed in
9443 # development snapshots of GCC prior to 3.0.
9444 case $host_os in
9445 aix4 | aix4.[01] | aix4.[01].*)
9446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9447 echo ' yes '
9448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9449 :
9450 else
9451 can_build_shared=no
9452 fi
9453 ;;
9454 esac
9455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9456 # soname into executable. Probably we can add versioning support to
9457 # collect2, so additional links can be useful in future.
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9460 # instead of lib<name>.a to let people know that these are not
9461 # typical AIX shared libraries.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 else
9464 # We preserve .a as extension for shared libraries through AIX4.2
9465 # and later when we are not doing run time linking.
9466 library_names_spec='${libname}${release}.a $libname.a'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 fi
9469 shlibpath_var=LIBPATH
9470 fi
9471 ;;
9472
9473amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # Since July 2007 AmigaOS4 officially supports .so libraries.
9477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479 ;;
9480 m68k)
9481 library_names_spec='$libname.ixlibrary $libname.a'
9482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 9483 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'
d7f09764
DN
9484 ;;
9485 esac
9486 ;;
9487
9488beos*)
9489 library_names_spec='${libname}${shared_ext}'
9490 dynamic_linker="$host_os ld.so"
9491 shlibpath_var=LIBRARY_PATH
9492 ;;
9493
9494bsdi[45]*)
9495 version_type=linux
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9503 # the default ld.so.conf also contains /usr/contrib/lib and
9504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9505 # libtool to hard-code these into programs
9506 ;;
9507
9508cygwin* | mingw* | pw32* | cegcc*)
9509 version_type=windows
9510 shrext_cmds=".dll"
9511 need_version=no
9512 need_lib_prefix=no
9513
9514 case $GCC,$host_os in
9515 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9516 library_names_spec='$libname.dll.a'
9517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9518 postinstall_cmds='base_file=`basename \${file}`~
9519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9520 dldir=$destdir/`dirname \$dlpath`~
9521 test -d \$dldir || mkdir -p \$dldir~
9522 $install_prog $dir/$dlname \$dldir/$dlname~
9523 chmod a+x \$dldir/$dlname~
9524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9526 fi'
9527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9528 dlpath=$dir/\$dldll~
9529 $RM \$dlpath'
9530 shlibpath_overrides_runpath=yes
9531
9532 case $host_os in
9533 cygwin*)
9534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
9536
9537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
9538 ;;
9539 mingw* | cegcc*)
9540 # MinGW DLLs use traditional 'lib' prefix
9541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
9542 ;;
9543 pw32*)
9544 # pw32 DLLs use 'pw' prefix rather than 'lib'
9545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546 ;;
9547 esac
9548 ;;
9549
9550 *)
9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552 ;;
9553 esac
9554 dynamic_linker='Win32 ld.exe'
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9557 ;;
9558
9559darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9572 ;;
9573
9574dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 ;;
9582
9583freebsd1*)
9584 dynamic_linker=no
9585 ;;
9586
9587freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9597 fi
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9604 ;;
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9608 ;;
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9623 ;;
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628 esac
9629 ;;
9630
9631gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 ;;
9640
52327858
L
9641haiku*)
9642 version_type=linux
9643 need_lib_prefix=no
9644 need_version=no
9645 dynamic_linker="$host_os runtime_loader"
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes
9650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9651 hardcode_into_libs=yes
9652 ;;
9653
d7f09764
DN
9654hpux9* | hpux10* | hpux11*)
9655 # Give a soname corresponding to the major version so that dld.sl refuses to
9656 # link against other versions.
9657 version_type=sunos
9658 need_lib_prefix=no
9659 need_version=no
9660 case $host_cpu in
9661 ia64*)
9662 shrext_cmds='.so'
9663 hardcode_into_libs=yes
9664 dynamic_linker="$host_os dld.so"
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 if test "X$HPUX_IA64_MODE" = X32; then
9670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9671 else
9672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9673 fi
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675 ;;
9676 hppa*64*)
9677 shrext_cmds='.sl'
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686 ;;
9687 *)
9688 shrext_cmds='.sl'
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=SHLIB_PATH
9691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 ;;
9695 esac
52327858 9696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 9697 postinstall_cmds='chmod 555 $lib'
52327858
L
9698 # or fails outright, so override atomically:
9699 install_override_mode=555
d7f09764
DN
9700 ;;
9701
9702interix[3-9]*)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9711 hardcode_into_libs=yes
9712 ;;
9713
9714irix5* | irix6* | nonstopux*)
9715 case $host_os in
9716 nonstopux*) version_type=nonstopux ;;
9717 *)
9718 if test "$lt_cv_prog_gnu_ld" = yes; then
9719 version_type=linux
9720 else
9721 version_type=irix
9722 fi ;;
9723 esac
9724 need_lib_prefix=no
9725 need_version=no
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9728 case $host_os in
9729 irix5* | nonstopux*)
9730 libsuff= shlibsuff=
9731 ;;
9732 *)
9733 case $LD in # libtool.m4 will add one of these switches to LD
9734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9735 libsuff= shlibsuff= libmagic=32-bit;;
9736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9737 libsuff=32 shlibsuff=N32 libmagic=N32;;
9738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9740 *) libsuff= shlibsuff= libmagic=never-match;;
9741 esac
9742 ;;
9743 esac
9744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9745 shlibpath_overrides_runpath=no
9746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9748 hardcode_into_libs=yes
9749 ;;
9750
9751# No shared lib support for Linux oldld, aout, or coff.
9752linux*oldld* | linux*aout* | linux*coff*)
9753 dynamic_linker=no
9754 ;;
9755
9756# This must be Linux ELF.
9757linux* | k*bsd*-gnu | kopensolaris*-gnu)
9758 version_type=linux
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=no
9766
9767 # Some binutils ld are patched to set DT_RUNPATH
9768 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770else
9771 lt_cv_shlibpath_overrides_runpath=no
9772 save_LDFLAGS=$LDFLAGS
9773 save_libdir=$libdir
9774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h. */
9778
9779int
9780main ()
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then :
9788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9789 lt_cv_shlibpath_overrides_runpath=yes
9790fi
9791fi
9792rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LDFLAGS=$save_LDFLAGS
9795 libdir=$save_libdir
9796
9797fi
9798
9799 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9800
9801 # This implies no fast_install, which is unacceptable.
9802 # Some rework will be needed to allow for fast_install
9803 # before this can be enabled.
9804 hardcode_into_libs=yes
9805
9806 # Append ld.so.conf contents to the search path
9807 if test -f /etc/ld.so.conf; then
52327858 9808 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' ' '`
d7f09764
DN
9809 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9810 fi
9811
9812 # We used to test for /lib/ld.so.1 and disable shared libraries on
9813 # powerpc, because MkLinux only supported shared libraries with the
9814 # GNU dynamic linker. Since this was broken with cross compilers,
9815 # most powerpc-linux boxes support dynamic linking these days and
9816 # people can always --disable-shared, the test was removed, and we
9817 # assume the GNU/Linux dynamic linker is in use.
9818 dynamic_linker='GNU/Linux ld.so'
9819 ;;
9820
9821netbsd*)
9822 version_type=sunos
9823 need_lib_prefix=no
9824 need_version=no
9825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9828 dynamic_linker='NetBSD (a.out) ld.so'
9829 else
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 dynamic_linker='NetBSD ld.elf_so'
9833 fi
9834 shlibpath_var=LD_LIBRARY_PATH
9835 shlibpath_overrides_runpath=yes
9836 hardcode_into_libs=yes
9837 ;;
9838
9839newsos6)
9840 version_type=linux
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9844 ;;
9845
9846*nto* | *qnx*)
9847 version_type=qnx
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='ldqnx.so'
9856 ;;
9857
9858openbsd*)
9859 version_type=sunos
9860 sys_lib_dlsearch_path_spec="/usr/lib"
9861 need_lib_prefix=no
9862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9863 case $host_os in
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9866 esac
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 case $host_os in
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9874 ;;
9875 *)
9876 shlibpath_overrides_runpath=yes
9877 ;;
9878 esac
9879 else
9880 shlibpath_overrides_runpath=yes
9881 fi
9882 ;;
9883
9884os2*)
9885 libname_spec='$name'
9886 shrext_cmds=".dll"
9887 need_lib_prefix=no
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9891 ;;
9892
9893osf3* | osf4* | osf5*)
9894 version_type=osf
9895 need_lib_prefix=no
9896 need_version=no
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9902 ;;
9903
9904rdos*)
9905 dynamic_linker=no
9906 ;;
9907
9908solaris*)
9909 version_type=linux
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 hardcode_into_libs=yes
9917 # ldd complains unless libraries are executable
9918 postinstall_cmds='chmod +x $lib'
9919 ;;
9920
9921sunos4*)
9922 version_type=sunos
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=yes
9927 if test "$with_gnu_ld" = yes; then
9928 need_lib_prefix=no
9929 fi
9930 need_version=yes
9931 ;;
9932
9933sysv4 | sysv4.3*)
9934 version_type=linux
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 case $host_vendor in
9939 sni)
9940 shlibpath_overrides_runpath=no
9941 need_lib_prefix=no
9942 runpath_var=LD_RUN_PATH
9943 ;;
9944 siemens)
9945 need_lib_prefix=no
9946 ;;
9947 motorola)
9948 need_lib_prefix=no
9949 need_version=no
9950 shlibpath_overrides_runpath=no
9951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9952 ;;
9953 esac
9954 ;;
9955
9956sysv4*MP*)
9957 if test -d /usr/nec ;then
9958 version_type=linux
9959 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9960 soname_spec='$libname${shared_ext}.$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 fi
9963 ;;
9964
9965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9966 version_type=freebsd-elf
9967 need_lib_prefix=no
9968 need_version=no
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 shlibpath_var=LD_LIBRARY_PATH
9972 shlibpath_overrides_runpath=yes
9973 hardcode_into_libs=yes
9974 if test "$with_gnu_ld" = yes; then
9975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9976 else
9977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9978 case $host_os in
9979 sco3.2v5*)
9980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9981 ;;
9982 esac
9983 fi
9984 sys_lib_dlsearch_path_spec='/usr/lib'
9985 ;;
9986
9987tpf*)
9988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9989 version_type=linux
9990 need_lib_prefix=no
9991 need_version=no
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9996 ;;
9997
9998uts4*)
9999 version_type=linux
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 ;;
10004
10005*)
10006 dynamic_linker=no
10007 ;;
10008esac
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10010$as_echo "$dynamic_linker" >&6; }
10011test "$dynamic_linker" = no && can_build_shared=no
10012
10013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10014if test "$GCC" = yes; then
10015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10016fi
10017
10018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10019 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10020fi
10021if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10022 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10023fi
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
52327858
L
10105
10106
10107
10108
10109
d7f09764
DN
10110
10111
10112
10113
10114
10115
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10117$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10118hardcode_action=
10119if test -n "$hardcode_libdir_flag_spec" ||
10120 test -n "$runpath_var" ||
10121 test "X$hardcode_automatic" = "Xyes" ; then
10122
10123 # We can hardcode non-existent directories.
10124 if test "$hardcode_direct" != no &&
10125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10126 # have to relink, otherwise we might link with an installed library
10127 # when we should be linking with a yet-to-be-installed one
10128 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10129 test "$hardcode_minus_L" != no; then
10130 # Linking always hardcodes the temporary library directory.
10131 hardcode_action=relink
10132 else
10133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10134 hardcode_action=immediate
10135 fi
10136else
10137 # We cannot hardcode anything, or else we can only hardcode existing
10138 # directories.
10139 hardcode_action=unsupported
10140fi
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10142$as_echo "$hardcode_action" >&6; }
10143
10144if test "$hardcode_action" = relink ||
10145 test "$inherit_rpath" = yes; then
10146 # Fast installation is not supported
10147 enable_fast_install=no
10148elif test "$shlibpath_overrides_runpath" = yes ||
10149 test "$enable_shared" = no; then
10150 # Fast installation is not necessary
10151 enable_fast_install=needless
10152fi
10153
10154
10155
10156
10157
10158
10159 if test "x$enable_dlopen" != xyes; then
10160 enable_dlopen=unknown
10161 enable_dlopen_self=unknown
10162 enable_dlopen_self_static=unknown
10163else
10164 lt_cv_dlopen=no
10165 lt_cv_dlopen_libs=
10166
10167 case $host_os in
10168 beos*)
10169 lt_cv_dlopen="load_add_on"
10170 lt_cv_dlopen_libs=
10171 lt_cv_dlopen_self=yes
10172 ;;
10173
10174 mingw* | pw32* | cegcc*)
10175 lt_cv_dlopen="LoadLibrary"
10176 lt_cv_dlopen_libs=
10177 ;;
10178
10179 cygwin*)
10180 lt_cv_dlopen="dlopen"
10181 lt_cv_dlopen_libs=
10182 ;;
10183
10184 darwin*)
10185 # if libdl is installed we need to link against it
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10187$as_echo_n "checking for dlopen in -ldl... " >&6; }
10188if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190else
10191 ac_check_lib_save_LIBS=$LIBS
10192LIBS="-ldl $LIBS"
10193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h. */
10195
10196/* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199#ifdef __cplusplus
10200extern "C"
10201#endif
10202char dlopen ();
10203int
10204main ()
10205{
10206return dlopen ();
10207 ;
10208 return 0;
10209}
10210_ACEOF
10211if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_dl_dlopen=yes
10213else
10214 ac_cv_lib_dl_dlopen=no
10215fi
10216rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218LIBS=$ac_check_lib_save_LIBS
10219fi
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10221$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10222if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10224else
10225
10226 lt_cv_dlopen="dyld"
10227 lt_cv_dlopen_libs=
10228 lt_cv_dlopen_self=yes
10229
10230fi
10231
10232 ;;
10233
10234 *)
10235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10236if test "x$ac_cv_func_shl_load" = x""yes; then :
10237 lt_cv_dlopen="shl_load"
10238else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10240$as_echo_n "checking for shl_load in -ldld... " >&6; }
10241if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243else
10244 ac_check_lib_save_LIBS=$LIBS
10245LIBS="-ldld $LIBS"
10246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h. */
10248
10249/* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252#ifdef __cplusplus
10253extern "C"
10254#endif
10255char shl_load ();
10256int
10257main ()
10258{
10259return shl_load ();
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_dld_shl_load=yes
10266else
10267 ac_cv_lib_dld_shl_load=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10274$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10275if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10277else
10278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10279if test "x$ac_cv_func_dlopen" = x""yes; then :
10280 lt_cv_dlopen="dlopen"
10281else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10283$as_echo_n "checking for dlopen in -ldl... " >&6; }
10284if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286else
10287 ac_check_lib_save_LIBS=$LIBS
10288LIBS="-ldl $LIBS"
10289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h. */
10291
10292/* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295#ifdef __cplusplus
10296extern "C"
10297#endif
10298char dlopen ();
10299int
10300main ()
10301{
10302return dlopen ();
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dl_dlopen=yes
10309else
10310 ac_cv_lib_dl_dlopen=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314LIBS=$ac_check_lib_save_LIBS
10315fi
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10322$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10323if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325else
10326 ac_check_lib_save_LIBS=$LIBS
10327LIBS="-lsvld $LIBS"
10328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h. */
10330
10331/* Override any GCC internal prototype to avoid an error.
10332 Use char because int might match the return type of a GCC
10333 builtin and then its argument prototype would still apply. */
10334#ifdef __cplusplus
10335extern "C"
10336#endif
10337char dlopen ();
10338int
10339main ()
10340{
10341return dlopen ();
10342 ;
10343 return 0;
10344}
10345_ACEOF
10346if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_lib_svld_dlopen=yes
10348else
10349 ac_cv_lib_svld_dlopen=no
10350fi
10351rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353LIBS=$ac_check_lib_save_LIBS
10354fi
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10356$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10357if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10359else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10361$as_echo_n "checking for dld_link in -ldld... " >&6; }
10362if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 ac_check_lib_save_LIBS=$LIBS
10366LIBS="-ldld $LIBS"
10367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h. */
10369
10370/* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10373#ifdef __cplusplus
10374extern "C"
10375#endif
10376char dld_link ();
10377int
10378main ()
10379{
10380return dld_link ();
10381 ;
10382 return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_lib_dld_dld_link=yes
10387else
10388 ac_cv_lib_dld_dld_link=no
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392LIBS=$ac_check_lib_save_LIBS
10393fi
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10395$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10396if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10398fi
10399
10400
10401fi
10402
10403
10404fi
10405
10406
10407fi
10408
10409
10410fi
10411
10412
10413fi
10414
10415 ;;
10416 esac
10417
10418 if test "x$lt_cv_dlopen" != xno; then
10419 enable_dlopen=yes
10420 else
10421 enable_dlopen=no
10422 fi
10423
10424 case $lt_cv_dlopen in
10425 dlopen)
10426 save_CPPFLAGS="$CPPFLAGS"
10427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10428
10429 save_LDFLAGS="$LDFLAGS"
10430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10431
10432 save_LIBS="$LIBS"
10433 LIBS="$lt_cv_dlopen_libs $LIBS"
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10436$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10437if test "${lt_cv_dlopen_self+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439else
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self=cross
10442else
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<_LT_EOF
73d5e770 10446#line 10446 "configure"
d7f09764
DN
10447#include "confdefs.h"
10448
10449#if HAVE_DLFCN_H
10450#include <dlfcn.h>
10451#endif
10452
10453#include <stdio.h>
10454
10455#ifdef RTLD_GLOBAL
10456# define LT_DLGLOBAL RTLD_GLOBAL
10457#else
10458# ifdef DL_GLOBAL
10459# define LT_DLGLOBAL DL_GLOBAL
10460# else
10461# define LT_DLGLOBAL 0
10462# endif
10463#endif
10464
10465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467#ifndef LT_DLLAZY_OR_NOW
10468# ifdef RTLD_LAZY
10469# define LT_DLLAZY_OR_NOW RTLD_LAZY
10470# else
10471# ifdef DL_LAZY
10472# define LT_DLLAZY_OR_NOW DL_LAZY
10473# else
10474# ifdef RTLD_NOW
10475# define LT_DLLAZY_OR_NOW RTLD_NOW
10476# else
10477# ifdef DL_NOW
10478# define LT_DLLAZY_OR_NOW DL_NOW
10479# else
10480# define LT_DLLAZY_OR_NOW 0
10481# endif
10482# endif
10483# endif
10484# endif
10485#endif
10486
52327858
L
10487/* When -fvisbility=hidden is used, assume the code has been annotated
10488 correspondingly for the symbols needed. */
10489#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10490void fnord () __attribute__((visibility("default")));
10491#endif
10492
10493void fnord () { int i=42; }
d7f09764
DN
10494int main ()
10495{
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10498
10499 if (self)
10500 {
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
10502 else
10503 {
10504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10505 else puts (dlerror ());
10506 }
d7f09764
DN
10507 /* dlclose (self); */
10508 }
10509 else
10510 puts (dlerror ());
10511
10512 return status;
10513}
10514_LT_EOF
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self=no
10530 fi
10531fi
10532rm -fr conftest*
10533
10534
10535fi
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10537$as_echo "$lt_cv_dlopen_self" >&6; }
10538
10539 if test "x$lt_cv_dlopen_self" = xyes; then
10540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10542$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10543if test "${lt_cv_dlopen_self_static+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545else
10546 if test "$cross_compiling" = yes; then :
10547 lt_cv_dlopen_self_static=cross
10548else
10549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550 lt_status=$lt_dlunknown
10551 cat > conftest.$ac_ext <<_LT_EOF
73d5e770 10552#line 10552 "configure"
d7f09764
DN
10553#include "confdefs.h"
10554
10555#if HAVE_DLFCN_H
10556#include <dlfcn.h>
10557#endif
10558
10559#include <stdio.h>
10560
10561#ifdef RTLD_GLOBAL
10562# define LT_DLGLOBAL RTLD_GLOBAL
10563#else
10564# ifdef DL_GLOBAL
10565# define LT_DLGLOBAL DL_GLOBAL
10566# else
10567# define LT_DLGLOBAL 0
10568# endif
10569#endif
10570
10571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572 find out it does not work in some platform. */
10573#ifndef LT_DLLAZY_OR_NOW
10574# ifdef RTLD_LAZY
10575# define LT_DLLAZY_OR_NOW RTLD_LAZY
10576# else
10577# ifdef DL_LAZY
10578# define LT_DLLAZY_OR_NOW DL_LAZY
10579# else
10580# ifdef RTLD_NOW
10581# define LT_DLLAZY_OR_NOW RTLD_NOW
10582# else
10583# ifdef DL_NOW
10584# define LT_DLLAZY_OR_NOW DL_NOW
10585# else
10586# define LT_DLLAZY_OR_NOW 0
10587# endif
10588# endif
10589# endif
10590# endif
10591#endif
10592
52327858
L
10593/* When -fvisbility=hidden is used, assume the code has been annotated
10594 correspondingly for the symbols needed. */
10595#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10596void fnord () __attribute__((visibility("default")));
10597#endif
10598
10599void fnord () { int i=42; }
d7f09764
DN
10600int main ()
10601{
10602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603 int status = $lt_dlunknown;
10604
10605 if (self)
10606 {
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
10608 else
10609 {
10610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10611 else puts (dlerror ());
10612 }
d7f09764
DN
10613 /* dlclose (self); */
10614 }
10615 else
10616 puts (dlerror ());
10617
10618 return status;
10619}
10620_LT_EOF
10621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10622 (eval $ac_link) 2>&5
10623 ac_status=$?
10624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10625 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10626 (./conftest; exit; ) >&5 2>/dev/null
10627 lt_status=$?
10628 case x$lt_status in
10629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10631 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10632 esac
10633 else :
10634 # compilation failed
10635 lt_cv_dlopen_self_static=no
10636 fi
10637fi
10638rm -fr conftest*
10639
10640
10641fi
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10643$as_echo "$lt_cv_dlopen_self_static" >&6; }
10644 fi
10645
10646 CPPFLAGS="$save_CPPFLAGS"
10647 LDFLAGS="$save_LDFLAGS"
10648 LIBS="$save_LIBS"
10649 ;;
10650 esac
10651
10652 case $lt_cv_dlopen_self in
10653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10654 *) enable_dlopen_self=unknown ;;
10655 esac
10656
10657 case $lt_cv_dlopen_self_static in
10658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10659 *) enable_dlopen_self_static=unknown ;;
10660 esac
10661fi
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679striplib=
10680old_striplib=
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10682$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10683if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10684 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10685 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687$as_echo "yes" >&6; }
10688else
10689# FIXME - insert some real tests, host_os isn't really good enough
10690 case $host_os in
10691 darwin*)
10692 if test -n "$STRIP" ; then
10693 striplib="$STRIP -x"
10694 old_striplib="$STRIP -S"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696$as_echo "yes" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699$as_echo "no" >&6; }
10700 fi
10701 ;;
10702 *)
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704$as_echo "no" >&6; }
10705 ;;
10706 esac
10707fi
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 # Report which library types will actually be built
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10722$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10724$as_echo "$can_build_shared" >&6; }
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10727$as_echo_n "checking whether to build shared libraries... " >&6; }
10728 test "$can_build_shared" = "no" && enable_shared=no
10729
10730 # On AIX, shared libraries and static libraries use the same namespace, and
10731 # are all built from PIC.
10732 case $host_os in
10733 aix3*)
10734 test "$enable_shared" = yes && enable_static=no
10735 if test -n "$RANLIB"; then
10736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10737 postinstall_cmds='$RANLIB $lib'
10738 fi
10739 ;;
10740
10741 aix[4-9]*)
10742 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10743 test "$enable_shared" = yes && enable_static=no
10744 fi
10745 ;;
10746 esac
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10748$as_echo "$enable_shared" >&6; }
10749
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10751$as_echo_n "checking whether to build static libraries... " >&6; }
10752 # Make sure either enable_shared or enable_static is yes.
10753 test "$enable_shared" = yes || enable_static=yes
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10755$as_echo "$enable_static" >&6; }
10756
10757
10758
10759
10760fi
10761ac_ext=c
10762ac_cpp='$CPP $CPPFLAGS'
10763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10765ac_compiler_gnu=$ac_cv_c_compiler_gnu
10766
10767CC="$lt_save_CC"
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 ac_config_commands="$ac_config_commands libtool"
10782
10783
10784
10785
10786# Only expand once:
10787
10788
10789
1cd0b716
DK
10790. ${srcdir}/../gcc/config.gcc
10791case ${lto_binary_reader} in
10792 *coff*) LTO_FORMAT=coff ;;
10793 *elf*) LTO_FORMAT=elf ;;
10794 *) as_fn_error "LTO plugin is not supported on this target." "$LINENO" 5 ;;
10795esac
10796
10797
21750c78
RE
10798ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10799case $ac_cv_c_uint64_t in #(
10800 no|yes) ;; #(
10801 *)
10802
10803$as_echo "#define _UINT64_T 1" >>confdefs.h
10804
10805
10806cat >>confdefs.h <<_ACEOF
10807#define uint64_t $ac_cv_c_uint64_t
10808_ACEOF
10809;;
10810 esac
10811
d7f09764
DN
10812ac_config_files="$ac_config_files Makefile"
10813
10814cat >confcache <<\_ACEOF
10815# This file is a shell script that caches the results of configure
10816# tests run on this system so they can be shared between configure
10817# scripts and configure runs, see configure's option --config-cache.
10818# It is not useful on other systems. If it contains results you don't
10819# want to keep, you may remove or edit it.
10820#
10821# config.status only pays attention to the cache file if you give it
10822# the --recheck option to rerun configure.
10823#
10824# `ac_cv_env_foo' variables (set or unset) will be overridden when
10825# loading this file, other *unset* `ac_cv_foo' will be assigned the
10826# following values.
10827
10828_ACEOF
10829
10830# The following way of writing the cache mishandles newlines in values,
10831# but we know of no workaround that is simple, portable, and efficient.
10832# So, we kill variables containing newlines.
10833# Ultrix sh set writes to stderr and can't be redirected directly,
10834# and sets the high bit in the cache file unless we assign to the vars.
10835(
10836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10837 eval ac_val=\$$ac_var
10838 case $ac_val in #(
10839 *${as_nl}*)
10840 case $ac_var in #(
10841 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10842$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10843 esac
10844 case $ac_var in #(
10845 _ | IFS | as_nl) ;; #(
10846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10847 *) { eval $ac_var=; unset $ac_var;} ;;
10848 esac ;;
10849 esac
10850 done
10851
10852 (set) 2>&1 |
10853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10854 *${as_nl}ac_space=\ *)
10855 # `set' does not quote correctly, so add quotes: double-quote
10856 # substitution turns \\\\ into \\, and sed turns \\ into \.
10857 sed -n \
10858 "s/'/'\\\\''/g;
10859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10860 ;; #(
10861 *)
10862 # `set' quotes correctly as required by POSIX, so do not add quotes.
10863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10864 ;;
10865 esac |
10866 sort
10867) |
10868 sed '
10869 /^ac_cv_env_/b end
10870 t clear
10871 :clear
10872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10873 t end
10874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10875 :end' >>confcache
10876if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10877 if test -w "$cache_file"; then
10878 test "x$cache_file" != "x/dev/null" &&
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10880$as_echo "$as_me: updating cache $cache_file" >&6;}
10881 cat confcache >$cache_file
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10884$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10885 fi
10886fi
10887rm -f confcache
10888
10889test "x$prefix" = xNONE && prefix=$ac_default_prefix
10890# Let make expand exec_prefix.
10891test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10892
10893# Transform confdefs.h into DEFS.
10894# Protect against shell expansion while executing Makefile rules.
10895# Protect against Makefile macro expansion.
10896#
10897# If the first sed substitution is executed (which looks for macros that
10898# take arguments), then branch to the quote section. Otherwise,
10899# look for a macro that doesn't take arguments.
10900ac_script='
10901:mline
10902/\\$/{
10903 N
10904 s,\\\n,,
10905 b mline
10906}
10907t clear
10908:clear
10909s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10910t quote
10911s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10912t quote
10913b any
10914:quote
10915s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10916s/\[/\\&/g
10917s/\]/\\&/g
10918s/\$/$$/g
10919H
10920:any
10921${
10922 g
10923 s/^\n//
10924 s/\n/ /g
10925 p
10926}
10927'
10928DEFS=`sed -n "$ac_script" confdefs.h`
10929
10930
10931ac_libobjs=
10932ac_ltlibobjs=
10933for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10934 # 1. Remove the extension, and $U if already installed.
10935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10938 # will be set to the directory where LIBOBJS objects are built.
10939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10941done
10942LIBOBJS=$ac_libobjs
10943
10944LTLIBOBJS=$ac_ltlibobjs
10945
10946
10947 if test -n "$EXEEXT"; then
10948 am__EXEEXT_TRUE=
10949 am__EXEEXT_FALSE='#'
10950else
10951 am__EXEEXT_TRUE='#'
10952 am__EXEEXT_FALSE=
10953fi
10954
03428d41
RG
10955if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10956 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10957Usually this means the macro was only invoked conditionally." "$LINENO" 5
10958fi
d7f09764
DN
10959if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10960 as_fn_error "conditional \"AMDEP\" was never defined.
10961Usually this means the macro was only invoked conditionally." "$LINENO" 5
10962fi
10963if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10964 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10965Usually this means the macro was only invoked conditionally." "$LINENO" 5
10966fi
10967
10968: ${CONFIG_STATUS=./config.status}
10969ac_write_fail=0
10970ac_clean_files_save=$ac_clean_files
10971ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10973$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10974as_write_fail=0
10975cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10976#! $SHELL
10977# Generated by $as_me.
10978# Run this file to recreate the current configuration.
10979# Compiler output produced by configure, useful for debugging
10980# configure, is in config.log if it exists.
10981
10982debug=false
10983ac_cs_recheck=false
10984ac_cs_silent=false
10985
10986SHELL=\${CONFIG_SHELL-$SHELL}
10987export SHELL
10988_ASEOF
10989cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10990## -------------------- ##
10991## M4sh Initialization. ##
10992## -------------------- ##
10993
10994# Be more Bourne compatible
10995DUALCASE=1; export DUALCASE # for MKS sh
10996if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10997 emulate sh
10998 NULLCMD=:
10999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11000 # is contrary to our usage. Disable this feature.
11001 alias -g '${1+"$@"}'='"$@"'
11002 setopt NO_GLOB_SUBST
11003else
11004 case `(set -o) 2>/dev/null` in #(
11005 *posix*) :
11006 set -o posix ;; #(
11007 *) :
11008 ;;
11009esac
11010fi
11011
11012
11013as_nl='
11014'
11015export as_nl
11016# Printing a long string crashes Solaris 7 /usr/bin/printf.
11017as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11018as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11019as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11020# Prefer a ksh shell builtin over an external printf program on Solaris,
11021# but without wasting forks for bash or zsh.
11022if test -z "$BASH_VERSION$ZSH_VERSION" \
11023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11024 as_echo='print -r --'
11025 as_echo_n='print -rn --'
11026elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11027 as_echo='printf %s\n'
11028 as_echo_n='printf %s'
11029else
11030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11032 as_echo_n='/usr/ucb/echo -n'
11033 else
11034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11035 as_echo_n_body='eval
11036 arg=$1;
11037 case $arg in #(
11038 *"$as_nl"*)
11039 expr "X$arg" : "X\\(.*\\)$as_nl";
11040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11041 esac;
11042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11043 '
11044 export as_echo_n_body
11045 as_echo_n='sh -c $as_echo_n_body as_echo'
11046 fi
11047 export as_echo_body
11048 as_echo='sh -c $as_echo_body as_echo'
11049fi
11050
11051# The user is always right.
11052if test "${PATH_SEPARATOR+set}" != set; then
11053 PATH_SEPARATOR=:
11054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11056 PATH_SEPARATOR=';'
11057 }
11058fi
11059
11060
11061# IFS
11062# We need space, tab and new line, in precisely that order. Quoting is
11063# there to prevent editors from complaining about space-tab.
11064# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11065# splitting by setting IFS to empty value.)
11066IFS=" "" $as_nl"
11067
11068# Find who we are. Look in the path if we contain no directory separator.
11069case $0 in #((
11070 *[\\/]* ) as_myself=$0 ;;
11071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11077 done
11078IFS=$as_save_IFS
11079
11080 ;;
11081esac
11082# We did not find ourselves, most probably we were run as `sh COMMAND'
11083# in which case we are not to be found in the path.
11084if test "x$as_myself" = x; then
11085 as_myself=$0
11086fi
11087if test ! -f "$as_myself"; then
11088 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11089 exit 1
11090fi
11091
11092# Unset variables that we do not need and which cause bugs (e.g. in
11093# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11094# suppresses any "Segmentation fault" message there. '((' could
11095# trigger a bug in pdksh 5.2.14.
11096for as_var in BASH_ENV ENV MAIL MAILPATH
11097do eval test x\${$as_var+set} = xset \
11098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11099done
11100PS1='$ '
11101PS2='> '
11102PS4='+ '
11103
11104# NLS nuisances.
11105LC_ALL=C
11106export LC_ALL
11107LANGUAGE=C
11108export LANGUAGE
11109
11110# CDPATH.
11111(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11112
11113
11114# as_fn_error ERROR [LINENO LOG_FD]
11115# ---------------------------------
11116# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11117# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11118# script with status $?, using 1 if that was 0.
11119as_fn_error ()
11120{
11121 as_status=$?; test $as_status -eq 0 && as_status=1
11122 if test "$3"; then
11123 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11124 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11125 fi
11126 $as_echo "$as_me: error: $1" >&2
11127 as_fn_exit $as_status
11128} # as_fn_error
11129
11130
11131# as_fn_set_status STATUS
11132# -----------------------
11133# Set $? to STATUS, without forking.
11134as_fn_set_status ()
11135{
11136 return $1
11137} # as_fn_set_status
11138
11139# as_fn_exit STATUS
11140# -----------------
11141# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11142as_fn_exit ()
11143{
11144 set +e
11145 as_fn_set_status $1
11146 exit $1
11147} # as_fn_exit
11148
11149# as_fn_unset VAR
11150# ---------------
11151# Portably unset VAR.
11152as_fn_unset ()
11153{
11154 { eval $1=; unset $1;}
11155}
11156as_unset=as_fn_unset
11157# as_fn_append VAR VALUE
11158# ----------------------
11159# Append the text in VALUE to the end of the definition contained in VAR. Take
11160# advantage of any shell optimizations that allow amortized linear growth over
11161# repeated appends, instead of the typical quadratic growth present in naive
11162# implementations.
11163if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11164 eval 'as_fn_append ()
11165 {
11166 eval $1+=\$2
11167 }'
11168else
11169 as_fn_append ()
11170 {
11171 eval $1=\$$1\$2
11172 }
11173fi # as_fn_append
11174
11175# as_fn_arith ARG...
11176# ------------------
11177# Perform arithmetic evaluation on the ARGs, and store the result in the
11178# global $as_val. Take advantage of shells that can avoid forks. The arguments
11179# must be portable across $(()) and expr.
11180if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11181 eval 'as_fn_arith ()
11182 {
11183 as_val=$(( $* ))
11184 }'
11185else
11186 as_fn_arith ()
11187 {
11188 as_val=`expr "$@" || test $? -eq 1`
11189 }
11190fi # as_fn_arith
11191
11192
11193if expr a : '\(a\)' >/dev/null 2>&1 &&
11194 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11195 as_expr=expr
11196else
11197 as_expr=false
11198fi
11199
11200if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11201 as_basename=basename
11202else
11203 as_basename=false
11204fi
11205
11206if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11207 as_dirname=dirname
11208else
11209 as_dirname=false
11210fi
11211
11212as_me=`$as_basename -- "$0" ||
11213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11214 X"$0" : 'X\(//\)$' \| \
11215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11216$as_echo X/"$0" |
11217 sed '/^.*\/\([^/][^/]*\)\/*$/{
11218 s//\1/
11219 q
11220 }
11221 /^X\/\(\/\/\)$/{
11222 s//\1/
11223 q
11224 }
11225 /^X\/\(\/\).*/{
11226 s//\1/
11227 q
11228 }
11229 s/.*/./; q'`
11230
11231# Avoid depending upon Character Ranges.
11232as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11233as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11234as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11235as_cr_digits='0123456789'
11236as_cr_alnum=$as_cr_Letters$as_cr_digits
11237
11238ECHO_C= ECHO_N= ECHO_T=
11239case `echo -n x` in #(((((
11240-n*)
11241 case `echo 'xy\c'` in
11242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11243 xy) ECHO_C='\c';;
11244 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11245 ECHO_T=' ';;
11246 esac;;
11247*)
11248 ECHO_N='-n';;
11249esac
11250
11251rm -f conf$$ conf$$.exe conf$$.file
11252if test -d conf$$.dir; then
11253 rm -f conf$$.dir/conf$$.file
11254else
11255 rm -f conf$$.dir
11256 mkdir conf$$.dir 2>/dev/null
11257fi
11258if (echo >conf$$.file) 2>/dev/null; then
11259 if ln -s conf$$.file conf$$ 2>/dev/null; then
11260 as_ln_s='ln -s'
11261 # ... but there are two gotchas:
11262 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11263 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11264 # In both cases, we have to default to `cp -p'.
11265 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11266 as_ln_s='cp -p'
11267 elif ln conf$$.file conf$$ 2>/dev/null; then
11268 as_ln_s=ln
11269 else
11270 as_ln_s='cp -p'
11271 fi
11272else
11273 as_ln_s='cp -p'
11274fi
11275rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11276rmdir conf$$.dir 2>/dev/null
11277
11278
11279# as_fn_mkdir_p
11280# -------------
11281# Create "$as_dir" as a directory, including parents if necessary.
11282as_fn_mkdir_p ()
11283{
11284
11285 case $as_dir in #(
11286 -*) as_dir=./$as_dir;;
11287 esac
11288 test -d "$as_dir" || eval $as_mkdir_p || {
11289 as_dirs=
11290 while :; do
11291 case $as_dir in #(
11292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11293 *) as_qdir=$as_dir;;
11294 esac
11295 as_dirs="'$as_qdir' $as_dirs"
11296 as_dir=`$as_dirname -- "$as_dir" ||
11297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11298 X"$as_dir" : 'X\(//\)[^/]' \| \
11299 X"$as_dir" : 'X\(//\)$' \| \
11300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11301$as_echo X"$as_dir" |
11302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11303 s//\1/
11304 q
11305 }
11306 /^X\(\/\/\)[^/].*/{
11307 s//\1/
11308 q
11309 }
11310 /^X\(\/\/\)$/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\).*/{
11315 s//\1/
11316 q
11317 }
11318 s/.*/./; q'`
11319 test -d "$as_dir" && break
11320 done
11321 test -z "$as_dirs" || eval "mkdir $as_dirs"
11322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11323
11324
11325} # as_fn_mkdir_p
11326if mkdir -p . 2>/dev/null; then
11327 as_mkdir_p='mkdir -p "$as_dir"'
11328else
11329 test -d ./-p && rmdir ./-p
11330 as_mkdir_p=false
11331fi
11332
11333if test -x / >/dev/null 2>&1; then
11334 as_test_x='test -x'
11335else
11336 if ls -dL / >/dev/null 2>&1; then
11337 as_ls_L_option=L
11338 else
11339 as_ls_L_option=
11340 fi
11341 as_test_x='
11342 eval sh -c '\''
11343 if test -d "$1"; then
11344 test -d "$1/.";
11345 else
11346 case $1 in #(
11347 -*)set "./$1";;
11348 esac;
11349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11350 ???[sx]*):;;*)false;;esac;fi
11351 '\'' sh
11352 '
11353fi
11354as_executable_p=$as_test_x
11355
11356# Sed expression to map a string onto a valid CPP name.
11357as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11358
11359# Sed expression to map a string onto a valid variable name.
11360as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11361
11362
11363exec 6>&1
11364## ----------------------------------- ##
11365## Main body of $CONFIG_STATUS script. ##
11366## ----------------------------------- ##
11367_ASEOF
11368test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11369
11370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11371# Save the log message, to keep $0 and so on meaningful, and to
11372# report actual input values of CONFIG_FILES etc. instead of their
11373# values after options handling.
11374ac_log="
11375This file was extended by LTO plugin for ld $as_me 0.1, which was
11376generated by GNU Autoconf 2.64. Invocation command line was
11377
11378 CONFIG_FILES = $CONFIG_FILES
11379 CONFIG_HEADERS = $CONFIG_HEADERS
11380 CONFIG_LINKS = $CONFIG_LINKS
11381 CONFIG_COMMANDS = $CONFIG_COMMANDS
11382 $ $0 $@
11383
11384on `(hostname || uname -n) 2>/dev/null | sed 1q`
11385"
11386
11387_ACEOF
11388
11389case $ac_config_files in *"
11390"*) set x $ac_config_files; shift; ac_config_files=$*;;
11391esac
11392
11393
11394
11395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11396# Files that config.status was made for.
11397config_files="$ac_config_files"
11398config_commands="$ac_config_commands"
11399
11400_ACEOF
11401
11402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403ac_cs_usage="\
11404\`$as_me' instantiates files and other configuration actions
11405from templates according to the current configuration. Unless the files
11406and actions are specified as TAGs, all are instantiated by default.
11407
11408Usage: $0 [OPTION]... [TAG]...
11409
11410 -h, --help print this help, then exit
11411 -V, --version print version number and configuration settings, then exit
11412 -q, --quiet, --silent
11413 do not print progress messages
11414 -d, --debug don't remove temporary files
11415 --recheck update $as_me by reconfiguring in the same conditions
11416 --file=FILE[:TEMPLATE]
11417 instantiate the configuration file FILE
11418
11419Configuration files:
11420$config_files
11421
11422Configuration commands:
11423$config_commands
11424
11425Report bugs to the package provider."
11426
11427_ACEOF
11428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11429ac_cs_version="\\
11430LTO plugin for ld config.status 0.1
11431configured by $0, generated by GNU Autoconf 2.64,
11432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11433
11434Copyright (C) 2009 Free Software Foundation, Inc.
11435This config.status script is free software; the Free Software Foundation
11436gives unlimited permission to copy, distribute and modify it."
11437
11438ac_pwd='$ac_pwd'
11439srcdir='$srcdir'
11440INSTALL='$INSTALL'
11441MKDIR_P='$MKDIR_P'
11442AWK='$AWK'
11443test -n "\$AWK" || AWK=awk
11444_ACEOF
11445
11446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11447# The default lists apply if the user does not specify any file.
11448ac_need_defaults=:
11449while test $# != 0
11450do
11451 case $1 in
11452 --*=*)
11453 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11454 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11455 ac_shift=:
11456 ;;
11457 *)
11458 ac_option=$1
11459 ac_optarg=$2
11460 ac_shift=shift
11461 ;;
11462 esac
11463
11464 case $ac_option in
11465 # Handling of the options.
11466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11467 ac_cs_recheck=: ;;
11468 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11469 $as_echo "$ac_cs_version"; exit ;;
11470 --debug | --debu | --deb | --de | --d | -d )
11471 debug=: ;;
11472 --file | --fil | --fi | --f )
11473 $ac_shift
11474 case $ac_optarg in
11475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11476 esac
11477 as_fn_append CONFIG_FILES " '$ac_optarg'"
11478 ac_need_defaults=false;;
11479 --he | --h | --help | --hel | -h )
11480 $as_echo "$ac_cs_usage"; exit ;;
11481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11483 ac_cs_silent=: ;;
11484
11485 # This is an error.
11486 -*) as_fn_error "unrecognized option: \`$1'
11487Try \`$0 --help' for more information." ;;
11488
11489 *) as_fn_append ac_config_targets " $1"
11490 ac_need_defaults=false ;;
11491
11492 esac
11493 shift
11494done
11495
11496ac_configure_extra_args=
11497
11498if $ac_cs_silent; then
11499 exec 6>/dev/null
11500 ac_configure_extra_args="$ac_configure_extra_args --silent"
11501fi
11502
11503_ACEOF
11504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505if \$ac_cs_recheck; then
11506 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11507 shift
11508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11509 CONFIG_SHELL='$SHELL'
11510 export CONFIG_SHELL
11511 exec "\$@"
11512fi
11513
11514_ACEOF
11515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11516exec 5>>config.log
11517{
11518 echo
11519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11520## Running $as_me. ##
11521_ASBOX
11522 $as_echo "$ac_log"
11523} >&5
11524
11525_ACEOF
11526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527#
11528# INIT-COMMANDS
11529#
11530AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11531
11532
11533# The HP-UX ksh and POSIX shell print the target directory to stdout
11534# if CDPATH is set.
11535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11536
11537sed_quote_subst='$sed_quote_subst'
11538double_quote_subst='$double_quote_subst'
11539delay_variable_subst='$delay_variable_subst'
52327858
L
11540macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11541macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11542enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11543enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11544pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11545enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11546SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11547ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11548host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11549host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11550host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11551build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11552build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11553build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11554SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11555Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11556GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11557EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11558FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11559LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11560NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11561LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11562max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11563ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11564exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11565lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11566lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11567lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11568reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11569reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11570OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11571deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11572file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11573AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11574AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11575STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11576RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11577old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11578old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11579old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11580lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11581CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11582CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11583compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11584GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11585lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11586lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11587lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11588lt_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"`'
11589objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11590MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11591lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11592lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11593lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11594lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11595lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11596need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11597DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11598NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11599LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11600OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11601OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11602libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11603shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11604extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11605archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11606enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11607export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11608whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11609compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11610old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11611old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11612archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11613archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11614module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11615module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11616with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11617allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11618no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11619hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11620hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11621hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11622hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11623hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11624hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11625hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11626hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11627inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11628link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11629fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11630always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11631export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11632exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11633include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11634prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11635file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11636variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11637need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11638need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11639version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11640runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11641shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11642shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11643libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11644library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11645soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11646install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11647postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11648postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11649finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11650finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11651hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11652sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11653sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11654hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11655enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11656enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11657enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11658old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11659striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
11660
11661LTCC='$LTCC'
11662LTCFLAGS='$LTCFLAGS'
11663compiler='$compiler_DEFAULT'
11664
52327858
L
11665# A function that is used when there is no print builtin or printf.
11666func_fallback_echo ()
11667{
11668 eval 'cat <<_LTECHO_EOF
11669\$1
11670_LTECHO_EOF'
11671}
11672
d7f09764 11673# Quote evaled strings.
52327858
L
11674for var in SHELL \
11675ECHO \
11676SED \
d7f09764
DN
11677GREP \
11678EGREP \
11679FGREP \
11680LD \
11681NM \
11682LN_S \
11683lt_SP2NL \
11684lt_NL2SP \
11685reload_flag \
11686OBJDUMP \
11687deplibs_check_method \
11688file_magic_cmd \
11689AR \
11690AR_FLAGS \
11691STRIP \
11692RANLIB \
11693CC \
11694CFLAGS \
11695compiler \
11696lt_cv_sys_global_symbol_pipe \
11697lt_cv_sys_global_symbol_to_cdecl \
11698lt_cv_sys_global_symbol_to_c_name_address \
11699lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
11700lt_prog_compiler_no_builtin_flag \
11701lt_prog_compiler_wl \
11702lt_prog_compiler_pic \
11703lt_prog_compiler_static \
11704lt_cv_prog_compiler_c_o \
11705need_locks \
11706DSYMUTIL \
11707NMEDIT \
11708LIPO \
11709OTOOL \
11710OTOOL64 \
11711shrext_cmds \
11712export_dynamic_flag_spec \
11713whole_archive_flag_spec \
11714compiler_needs_object \
11715with_gnu_ld \
11716allow_undefined_flag \
11717no_undefined_flag \
11718hardcode_libdir_flag_spec \
11719hardcode_libdir_flag_spec_ld \
11720hardcode_libdir_separator \
11721fix_srcfile_path \
11722exclude_expsyms \
11723include_expsyms \
11724file_list_spec \
11725variables_saved_for_relink \
11726libname_spec \
11727library_names_spec \
11728soname_spec \
52327858 11729install_override_mode \
d7f09764
DN
11730finish_eval \
11731old_striplib \
11732striplib; do
52327858 11733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 11734 *[\\\\\\\`\\"\\\$]*)
52327858 11735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
11736 ;;
11737 *)
11738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11739 ;;
11740 esac
11741done
11742
11743# Double-quote double-evaled strings.
11744for var in reload_cmds \
11745old_postinstall_cmds \
11746old_postuninstall_cmds \
11747old_archive_cmds \
11748extract_expsyms_cmds \
11749old_archive_from_new_cmds \
11750old_archive_from_expsyms_cmds \
11751archive_cmds \
11752archive_expsym_cmds \
11753module_cmds \
11754module_expsym_cmds \
11755export_symbols_cmds \
11756prelink_cmds \
11757postinstall_cmds \
11758postuninstall_cmds \
11759finish_cmds \
11760sys_lib_search_path_spec \
11761sys_lib_dlsearch_path_spec; do
52327858 11762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 11763 *[\\\\\\\`\\"\\\$]*)
52327858 11764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
11765 ;;
11766 *)
11767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11768 ;;
11769 esac
11770done
11771
d7f09764
DN
11772ac_aux_dir='$ac_aux_dir'
11773xsi_shell='$xsi_shell'
11774lt_shell_append='$lt_shell_append'
11775
11776# See if we are running on zsh, and set the options which allow our
11777# commands through without removal of \ escapes INIT.
11778if test -n "\${ZSH_VERSION+set}" ; then
11779 setopt NO_GLOB_SUBST
11780fi
11781
11782
11783 PACKAGE='$PACKAGE'
11784 VERSION='$VERSION'
11785 TIMESTAMP='$TIMESTAMP'
11786 RM='$RM'
11787 ofile='$ofile'
11788
11789
11790
11791
11792_ACEOF
11793
11794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11795
11796# Handling of arguments.
11797for ac_config_target in $ac_config_targets
11798do
11799 case $ac_config_target in
11800 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11801 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11803
11804 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11805 esac
11806done
11807
11808
11809# If the user did not use the arguments to specify the items to instantiate,
11810# then the envvar interface is used. Set only those that are not.
11811# We use the long form for the default assignment because of an extremely
11812# bizarre bug on SunOS 4.1.3.
11813if $ac_need_defaults; then
11814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11816fi
11817
11818# Have a temporary directory for convenience. Make it in the build tree
11819# simply because there is no reason against having it here, and in addition,
11820# creating and moving files from /tmp can sometimes cause problems.
11821# Hook for its removal unless debugging.
11822# Note that there is a small window in which the directory will not be cleaned:
11823# after its creation but before its name has been assigned to `$tmp'.
11824$debug ||
11825{
11826 tmp=
11827 trap 'exit_status=$?
11828 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11829' 0
11830 trap 'as_fn_exit 1' 1 2 13 15
11831}
11832# Create a (secure) tmp directory for tmp files.
11833
11834{
11835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11836 test -n "$tmp" && test -d "$tmp"
11837} ||
11838{
11839 tmp=./conf$$-$RANDOM
11840 (umask 077 && mkdir "$tmp")
11841} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11842
11843# Set up the scripts for CONFIG_FILES section.
11844# No need to generate them if there are no CONFIG_FILES.
11845# This happens for instance with `./config.status config.h'.
11846if test -n "$CONFIG_FILES"; then
11847
11848
11849ac_cr=`echo X | tr X '\015'`
11850# On cygwin, bash can eat \r inside `` if the user requested igncr.
11851# But we know of no other shell where ac_cr would be empty at this
11852# point, so we can use a bashism as a fallback.
11853if test "x$ac_cr" = x; then
11854 eval ac_cr=\$\'\\r\'
11855fi
11856ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11857if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11858 ac_cs_awk_cr='\r'
11859else
11860 ac_cs_awk_cr=$ac_cr
11861fi
11862
11863echo 'BEGIN {' >"$tmp/subs1.awk" &&
11864_ACEOF
11865
11866
11867{
11868 echo "cat >conf$$subs.awk <<_ACEOF" &&
11869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11870 echo "_ACEOF"
11871} >conf$$subs.sh ||
11872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11873ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11874ac_delim='%!_!# '
11875for ac_last_try in false false false false false :; do
11876 . ./conf$$subs.sh ||
11877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11878
11879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11880 if test $ac_delim_n = $ac_delim_num; then
11881 break
11882 elif $ac_last_try; then
11883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11884 else
11885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11886 fi
11887done
11888rm -f conf$$subs.sh
11889
11890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11891cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11892_ACEOF
11893sed -n '
11894h
11895s/^/S["/; s/!.*/"]=/
11896p
11897g
11898s/^[^!]*!//
11899:repl
11900t repl
11901s/'"$ac_delim"'$//
11902t delim
11903:nl
11904h
11905s/\(.\{148\}\).*/\1/
11906t more1
11907s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11908p
11909n
11910b repl
11911:more1
11912s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11913p
11914g
11915s/.\{148\}//
11916t nl
11917:delim
11918h
11919s/\(.\{148\}\).*/\1/
11920t more2
11921s/["\\]/\\&/g; s/^/"/; s/$/"/
11922p
11923b
11924:more2
11925s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11926p
11927g
11928s/.\{148\}//
11929t delim
11930' <conf$$subs.awk | sed '
11931/^[^""]/{
11932 N
11933 s/\n//
11934}
11935' >>$CONFIG_STATUS || ac_write_fail=1
11936rm -f conf$$subs.awk
11937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11938_ACAWK
11939cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11940 for (key in S) S_is_set[key] = 1
11941 FS = "\a"
11942
11943}
11944{
11945 line = $ 0
11946 nfields = split(line, field, "@")
11947 substed = 0
11948 len = length(field[1])
11949 for (i = 2; i < nfields; i++) {
11950 key = field[i]
11951 keylen = length(key)
11952 if (S_is_set[key]) {
11953 value = S[key]
11954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11955 len += length(value) + length(field[++i])
11956 substed = 1
11957 } else
11958 len += 1 + keylen
11959 }
11960
11961 print line
11962}
11963
11964_ACAWK
11965_ACEOF
11966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11967if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11969else
11970 cat
11971fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11972 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11973_ACEOF
11974
11975# VPATH may cause trouble with some makes, so we remove $(srcdir),
11976# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11977# trailing colons and then remove the whole line if VPATH becomes empty
11978# (actually we leave an empty line to preserve line numbers).
11979if test "x$srcdir" = x.; then
11980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11981s/:*\$(srcdir):*/:/
11982s/:*\${srcdir}:*/:/
11983s/:*@srcdir@:*/:/
11984s/^\([^=]*=[ ]*\):*/\1/
11985s/:*$//
11986s/^[^=]*=[ ]*$//
11987}'
11988fi
11989
11990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11991fi # test -n "$CONFIG_FILES"
11992
11993
11994eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11995shift
11996for ac_tag
11997do
11998 case $ac_tag in
11999 :[FHLC]) ac_mode=$ac_tag; continue;;
12000 esac
12001 case $ac_mode$ac_tag in
12002 :[FHL]*:*);;
12003 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12004 :[FH]-) ac_tag=-:-;;
12005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12006 esac
12007 ac_save_IFS=$IFS
12008 IFS=:
12009 set x $ac_tag
12010 IFS=$ac_save_IFS
12011 shift
12012 ac_file=$1
12013 shift
12014
12015 case $ac_mode in
12016 :L) ac_source=$1;;
12017 :[FH])
12018 ac_file_inputs=
12019 for ac_f
12020 do
12021 case $ac_f in
12022 -) ac_f="$tmp/stdin";;
12023 *) # Look for the file first in the build tree, then in the source tree
12024 # (if the path is not absolute). The absolute path cannot be DOS-style,
12025 # because $ac_f cannot contain `:'.
12026 test -f "$ac_f" ||
12027 case $ac_f in
12028 [\\/$]*) false;;
12029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12030 esac ||
12031 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12032 esac
12033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12034 as_fn_append ac_file_inputs " '$ac_f'"
12035 done
12036
12037 # Let's still pretend it is `configure' which instantiates (i.e., don't
12038 # use $as_me), people would be surprised to read:
12039 # /* config.h. Generated by config.status. */
12040 configure_input='Generated from '`
12041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12042 `' by configure.'
12043 if test x"$ac_file" != x-; then
12044 configure_input="$ac_file. $configure_input"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12046$as_echo "$as_me: creating $ac_file" >&6;}
12047 fi
12048 # Neutralize special characters interpreted by sed in replacement strings.
12049 case $configure_input in #(
12050 *\&* | *\|* | *\\* )
12051 ac_sed_conf_input=`$as_echo "$configure_input" |
12052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12053 *) ac_sed_conf_input=$configure_input;;
12054 esac
12055
12056 case $ac_tag in
12057 *:-:* | *:-) cat >"$tmp/stdin" \
12058 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12059 esac
12060 ;;
12061 esac
12062
12063 ac_dir=`$as_dirname -- "$ac_file" ||
12064$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12065 X"$ac_file" : 'X\(//\)[^/]' \| \
12066 X"$ac_file" : 'X\(//\)$' \| \
12067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12068$as_echo X"$ac_file" |
12069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12070 s//\1/
12071 q
12072 }
12073 /^X\(\/\/\)[^/].*/{
12074 s//\1/
12075 q
12076 }
12077 /^X\(\/\/\)$/{
12078 s//\1/
12079 q
12080 }
12081 /^X\(\/\).*/{
12082 s//\1/
12083 q
12084 }
12085 s/.*/./; q'`
12086 as_dir="$ac_dir"; as_fn_mkdir_p
12087 ac_builddir=.
12088
12089case "$ac_dir" in
12090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12091*)
12092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12093 # A ".." for each directory in $ac_dir_suffix.
12094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12095 case $ac_top_builddir_sub in
12096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12098 esac ;;
12099esac
12100ac_abs_top_builddir=$ac_pwd
12101ac_abs_builddir=$ac_pwd$ac_dir_suffix
12102# for backward compatibility:
12103ac_top_builddir=$ac_top_build_prefix
12104
12105case $srcdir in
12106 .) # We are building in place.
12107 ac_srcdir=.
12108 ac_top_srcdir=$ac_top_builddir_sub
12109 ac_abs_top_srcdir=$ac_pwd ;;
12110 [\\/]* | ?:[\\/]* ) # Absolute name.
12111 ac_srcdir=$srcdir$ac_dir_suffix;
12112 ac_top_srcdir=$srcdir
12113 ac_abs_top_srcdir=$srcdir ;;
12114 *) # Relative name.
12115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12116 ac_top_srcdir=$ac_top_build_prefix$srcdir
12117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12118esac
12119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12120
12121
12122 case $ac_mode in
12123 :F)
12124 #
12125 # CONFIG_FILE
12126 #
12127
12128 case $INSTALL in
12129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12131 esac
12132 ac_MKDIR_P=$MKDIR_P
12133 case $MKDIR_P in
12134 [\\/$]* | ?:[\\/]* ) ;;
12135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12136 esac
12137_ACEOF
12138
12139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140# If the template does not know about datarootdir, expand it.
12141# FIXME: This hack should be removed a few years after 2.60.
12142ac_datarootdir_hack=; ac_datarootdir_seen=
12143ac_sed_dataroot='
12144/datarootdir/ {
12145 p
12146 q
12147}
12148/@datadir@/p
12149/@docdir@/p
12150/@infodir@/p
12151/@localedir@/p
12152/@mandir@/p'
12153case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12154*datarootdir*) ac_datarootdir_seen=yes;;
12155*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12157$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12158_ACEOF
12159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160 ac_datarootdir_hack='
12161 s&@datadir@&$datadir&g
12162 s&@docdir@&$docdir&g
12163 s&@infodir@&$infodir&g
12164 s&@localedir@&$localedir&g
12165 s&@mandir@&$mandir&g
12166 s&\\\${datarootdir}&$datarootdir&g' ;;
12167esac
12168_ACEOF
12169
12170# Neutralize VPATH when `$srcdir' = `.'.
12171# Shell code in configure.ac might set extrasub.
12172# FIXME: do we really want to maintain this feature?
12173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174ac_sed_extra="$ac_vpsub
12175$extrasub
12176_ACEOF
12177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12178:t
12179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12180s|@configure_input@|$ac_sed_conf_input|;t t
12181s&@top_builddir@&$ac_top_builddir_sub&;t t
12182s&@top_build_prefix@&$ac_top_build_prefix&;t t
12183s&@srcdir@&$ac_srcdir&;t t
12184s&@abs_srcdir@&$ac_abs_srcdir&;t t
12185s&@top_srcdir@&$ac_top_srcdir&;t t
12186s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12187s&@builddir@&$ac_builddir&;t t
12188s&@abs_builddir@&$ac_abs_builddir&;t t
12189s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12190s&@INSTALL@&$ac_INSTALL&;t t
12191s&@MKDIR_P@&$ac_MKDIR_P&;t t
12192$ac_datarootdir_hack
12193"
12194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12195 || as_fn_error "could not create $ac_file" "$LINENO" 5
12196
12197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12201which seems to be undefined. Please make sure it is defined." >&5
12202$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203which seems to be undefined. Please make sure it is defined." >&2;}
12204
12205 rm -f "$tmp/stdin"
12206 case $ac_file in
12207 -) cat "$tmp/out" && rm -f "$tmp/out";;
12208 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12209 esac \
12210 || as_fn_error "could not create $ac_file" "$LINENO" 5
12211 ;;
12212
12213
12214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12215$as_echo "$as_me: executing $ac_file commands" >&6;}
12216 ;;
12217 esac
12218
12219
12220 case $ac_file$ac_mode in
12221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12222 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12223 # are listed without --file. Let's play safe and only enable the eval
12224 # if we detect the quoting.
12225 case $CONFIG_FILES in
12226 *\'*) eval set x "$CONFIG_FILES" ;;
12227 *) set x $CONFIG_FILES ;;
12228 esac
12229 shift
12230 for mf
12231 do
12232 # Strip MF so we end up with the name of the file.
12233 mf=`echo "$mf" | sed -e 's/:.*$//'`
12234 # Check whether this is an Automake generated Makefile or not.
12235 # We used to match only the files named `Makefile.in', but
12236 # some people rename them; so instead we look at the file content.
12237 # Grep'ing the first line is not enough: some people post-process
12238 # each Makefile.in and add a new line on top of each file to say so.
12239 # Grep'ing the whole file is not good either: AIX grep has a line
12240 # limit of 2048, but all sed's we know have understand at least 4000.
12241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12242 dirpart=`$as_dirname -- "$mf" ||
12243$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12244 X"$mf" : 'X\(//\)[^/]' \| \
12245 X"$mf" : 'X\(//\)$' \| \
12246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12247$as_echo X"$mf" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12249 s//\1/
12250 q
12251 }
12252 /^X\(\/\/\)[^/].*/{
12253 s//\1/
12254 q
12255 }
12256 /^X\(\/\/\)$/{
12257 s//\1/
12258 q
12259 }
12260 /^X\(\/\).*/{
12261 s//\1/
12262 q
12263 }
12264 s/.*/./; q'`
12265 else
12266 continue
12267 fi
12268 # Extract the definition of DEPDIR, am__include, and am__quote
12269 # from the Makefile without running `make'.
12270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12271 test -z "$DEPDIR" && continue
12272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12273 test -z "am__include" && continue
12274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12275 # When using ansi2knr, U may be empty or an underscore; expand it
12276 U=`sed -n 's/^U = //p' < "$mf"`
12277 # Find all dependency output files, they are included files with
12278 # $(DEPDIR) in their names. We invoke sed twice because it is the
12279 # simplest approach to changing $(DEPDIR) to its actual value in the
12280 # expansion.
12281 for file in `sed -n "
12282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12284 # Make sure the directory exists.
12285 test -f "$dirpart/$file" && continue
12286 fdir=`$as_dirname -- "$file" ||
12287$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288 X"$file" : 'X\(//\)[^/]' \| \
12289 X"$file" : 'X\(//\)$' \| \
12290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12291$as_echo X"$file" |
12292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12293 s//\1/
12294 q
12295 }
12296 /^X\(\/\/\)[^/].*/{
12297 s//\1/
12298 q
12299 }
12300 /^X\(\/\/\)$/{
12301 s//\1/
12302 q
12303 }
12304 /^X\(\/\).*/{
12305 s//\1/
12306 q
12307 }
12308 s/.*/./; q'`
12309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12310 # echo "creating $dirpart/$file"
12311 echo '# dummy' > "$dirpart/$file"
12312 done
12313 done
12314}
12315 ;;
12316 "libtool":C)
12317
12318 # See if we are running on zsh, and set the options which allow our
12319 # commands through without removal of \ escapes.
12320 if test -n "${ZSH_VERSION+set}" ; then
12321 setopt NO_GLOB_SUBST
12322 fi
12323
12324 cfgfile="${ofile}T"
12325 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12326 $RM "$cfgfile"
12327
12328 cat <<_LT_EOF >> "$cfgfile"
12329#! $SHELL
12330
12331# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12332# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12333# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12334# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12335#
12336# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 12337# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
12338# Written by Gordon Matzigkeit, 1996
12339#
12340# This file is part of GNU Libtool.
12341#
12342# GNU Libtool is free software; you can redistribute it and/or
12343# modify it under the terms of the GNU General Public License as
12344# published by the Free Software Foundation; either version 2 of
12345# the License, or (at your option) any later version.
12346#
12347# As a special exception to the GNU General Public License,
12348# if you distribute this file as part of a program or library that
12349# is built using GNU Libtool, you may include this file under the
12350# same distribution terms that you use for the rest of that program.
12351#
12352# GNU Libtool is distributed in the hope that it will be useful,
12353# but WITHOUT ANY WARRANTY; without even the implied warranty of
12354# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12355# GNU General Public License for more details.
12356#
12357# You should have received a copy of the GNU General Public License
12358# along with GNU Libtool; see the file COPYING. If not, a copy
12359# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12360# obtained by writing to the Free Software Foundation, Inc.,
12361# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12362
12363
12364# The names of the tagged configurations supported by this script.
12365available_tags=""
12366
12367# ### BEGIN LIBTOOL CONFIG
12368
12369# Which release of libtool.m4 was used?
12370macro_version=$macro_version
12371macro_revision=$macro_revision
12372
12373# Whether or not to build shared libraries.
12374build_libtool_libs=$enable_shared
12375
12376# Whether or not to build static libraries.
12377build_old_libs=$enable_static
12378
12379# What type of objects to build.
12380pic_mode=$pic_mode
12381
12382# Whether or not to optimize for fast installation.
12383fast_install=$enable_fast_install
12384
52327858
L
12385# Shell to use when invoking shell scripts.
12386SHELL=$lt_SHELL
12387
12388# An echo program that protects backslashes.
12389ECHO=$lt_ECHO
12390
d7f09764
DN
12391# The host system.
12392host_alias=$host_alias
12393host=$host
12394host_os=$host_os
12395
12396# The build system.
12397build_alias=$build_alias
12398build=$build
12399build_os=$build_os
12400
12401# A sed program that does not truncate output.
12402SED=$lt_SED
12403
12404# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12405Xsed="\$SED -e 1s/^X//"
12406
12407# A grep program that handles long lines.
12408GREP=$lt_GREP
12409
12410# An ERE matcher.
12411EGREP=$lt_EGREP
12412
12413# A literal string matcher.
12414FGREP=$lt_FGREP
12415
12416# A BSD- or MS-compatible name lister.
12417NM=$lt_NM
12418
12419# Whether we need soft or hard links.
12420LN_S=$lt_LN_S
12421
12422# What is the maximum length of a command?
12423max_cmd_len=$max_cmd_len
12424
12425# Object file suffix (normally "o").
12426objext=$ac_objext
12427
12428# Executable file suffix (normally "").
12429exeext=$exeext
12430
12431# whether the shell understands "unset".
12432lt_unset=$lt_unset
12433
12434# turn spaces into newlines.
12435SP2NL=$lt_lt_SP2NL
12436
12437# turn newlines into spaces.
12438NL2SP=$lt_lt_NL2SP
12439
d7f09764
DN
12440# An object symbol dumper.
12441OBJDUMP=$lt_OBJDUMP
12442
12443# Method to check whether dependent libraries are shared objects.
12444deplibs_check_method=$lt_deplibs_check_method
12445
12446# Command to use when deplibs_check_method == "file_magic".
12447file_magic_cmd=$lt_file_magic_cmd
12448
12449# The archiver.
12450AR=$lt_AR
12451AR_FLAGS=$lt_AR_FLAGS
12452
12453# A symbol stripping program.
12454STRIP=$lt_STRIP
12455
12456# Commands used to install an old-style archive.
12457RANLIB=$lt_RANLIB
12458old_postinstall_cmds=$lt_old_postinstall_cmds
12459old_postuninstall_cmds=$lt_old_postuninstall_cmds
12460
52327858
L
12461# Whether to use a lock for old archive extraction.
12462lock_old_archive_extraction=$lock_old_archive_extraction
12463
d7f09764
DN
12464# A C compiler.
12465LTCC=$lt_CC
12466
12467# LTCC compiler flags.
12468LTCFLAGS=$lt_CFLAGS
12469
12470# Take the output of nm and produce a listing of raw symbols and C names.
12471global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12472
12473# Transform the output of nm in a proper C declaration.
12474global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12475
12476# Transform the output of nm in a C name address pair.
12477global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12478
12479# Transform the output of nm in a C name address pair when lib prefix is needed.
12480global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12481
12482# The name of the directory that contains temporary libtool files.
12483objdir=$objdir
12484
d7f09764
DN
12485# Used to examine libraries when file_magic_cmd begins with "file".
12486MAGIC_CMD=$MAGIC_CMD
12487
12488# Must we lock files when doing compilation?
12489need_locks=$lt_need_locks
12490
12491# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12492DSYMUTIL=$lt_DSYMUTIL
12493
12494# Tool to change global to local symbols on Mac OS X.
12495NMEDIT=$lt_NMEDIT
12496
12497# Tool to manipulate fat objects and archives on Mac OS X.
12498LIPO=$lt_LIPO
12499
12500# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12501OTOOL=$lt_OTOOL
12502
12503# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12504OTOOL64=$lt_OTOOL64
12505
12506# Old archive suffix (normally "a").
12507libext=$libext
12508
12509# Shared library suffix (normally ".so").
12510shrext_cmds=$lt_shrext_cmds
12511
12512# The commands to extract the exported symbol list from a shared archive.
12513extract_expsyms_cmds=$lt_extract_expsyms_cmds
12514
12515# Variables whose values should be saved in libtool wrapper scripts and
12516# restored at link time.
12517variables_saved_for_relink=$lt_variables_saved_for_relink
12518
12519# Do we need the "lib" prefix for modules?
12520need_lib_prefix=$need_lib_prefix
12521
12522# Do we need a version for libraries?
12523need_version=$need_version
12524
12525# Library versioning type.
12526version_type=$version_type
12527
12528# Shared library runtime path variable.
12529runpath_var=$runpath_var
12530
12531# Shared library path variable.
12532shlibpath_var=$shlibpath_var
12533
12534# Is shlibpath searched before the hard-coded library search path?
12535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12536
12537# Format of library name prefix.
12538libname_spec=$lt_libname_spec
12539
12540# List of archive names. First name is the real one, the rest are links.
12541# The last name is the one that the linker finds with -lNAME
12542library_names_spec=$lt_library_names_spec
12543
12544# The coded name of the library, if different from the real name.
12545soname_spec=$lt_soname_spec
12546
52327858
L
12547# Permission mode override for installation of shared libraries.
12548install_override_mode=$lt_install_override_mode
12549
d7f09764
DN
12550# Command to use after installation of a shared archive.
12551postinstall_cmds=$lt_postinstall_cmds
12552
12553# Command to use after uninstallation of a shared archive.
12554postuninstall_cmds=$lt_postuninstall_cmds
12555
12556# Commands used to finish a libtool library installation in a directory.
12557finish_cmds=$lt_finish_cmds
12558
12559# As "finish_cmds", except a single script fragment to be evaled but
12560# not shown.
12561finish_eval=$lt_finish_eval
12562
12563# Whether we should hardcode library paths into libraries.
12564hardcode_into_libs=$hardcode_into_libs
12565
12566# Compile-time system search path for libraries.
12567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12568
12569# Run-time system search path for libraries.
12570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12571
12572# Whether dlopen is supported.
12573dlopen_support=$enable_dlopen
12574
12575# Whether dlopen of programs is supported.
12576dlopen_self=$enable_dlopen_self
12577
12578# Whether dlopen of statically linked programs is supported.
12579dlopen_self_static=$enable_dlopen_self_static
12580
12581# Commands to strip libraries.
12582old_striplib=$lt_old_striplib
12583striplib=$lt_striplib
12584
12585
12586# The linker used to build libraries.
12587LD=$lt_LD
12588
52327858
L
12589# How to create reloadable object files.
12590reload_flag=$lt_reload_flag
12591reload_cmds=$lt_reload_cmds
12592
d7f09764
DN
12593# Commands used to build an old-style archive.
12594old_archive_cmds=$lt_old_archive_cmds
12595
12596# A language specific compiler.
12597CC=$lt_compiler
12598
12599# Is the compiler the GNU compiler?
12600with_gcc=$GCC
12601
12602# Compiler flag to turn off builtin functions.
12603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12604
12605# How to pass a linker flag through the compiler.
12606wl=$lt_lt_prog_compiler_wl
12607
12608# Additional compiler flags for building library objects.
12609pic_flag=$lt_lt_prog_compiler_pic
12610
12611# Compiler flag to prevent dynamic linking.
12612link_static_flag=$lt_lt_prog_compiler_static
12613
12614# Does compiler simultaneously support -c and -o options?
12615compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12616
12617# Whether or not to add -lc for building shared libraries.
12618build_libtool_need_lc=$archive_cmds_need_lc
12619
12620# Whether or not to disallow shared libs when runtime libs are static.
12621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12622
12623# Compiler flag to allow reflexive dlopens.
12624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12625
12626# Compiler flag to generate shared objects directly from archives.
12627whole_archive_flag_spec=$lt_whole_archive_flag_spec
12628
12629# Whether the compiler copes with passing no objects directly.
12630compiler_needs_object=$lt_compiler_needs_object
12631
12632# Create an old-style archive from a shared archive.
12633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12634
12635# Create a temporary old-style archive to link instead of a shared archive.
12636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12637
12638# Commands used to build a shared archive.
12639archive_cmds=$lt_archive_cmds
12640archive_expsym_cmds=$lt_archive_expsym_cmds
12641
12642# Commands used to build a loadable module if different from building
12643# a shared archive.
12644module_cmds=$lt_module_cmds
12645module_expsym_cmds=$lt_module_expsym_cmds
12646
12647# Whether we are building with GNU ld or not.
12648with_gnu_ld=$lt_with_gnu_ld
12649
12650# Flag that allows shared libraries with undefined symbols to be built.
12651allow_undefined_flag=$lt_allow_undefined_flag
12652
12653# Flag that enforces no undefined symbols.
12654no_undefined_flag=$lt_no_undefined_flag
12655
12656# Flag to hardcode \$libdir into a binary during linking.
12657# This must work even if \$libdir does not exist
12658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12659
12660# If ld is used when linking, flag to hardcode \$libdir into a binary
12661# during linking. This must work even if \$libdir does not exist.
12662hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12663
12664# Whether we need a single "-rpath" flag with a separated argument.
12665hardcode_libdir_separator=$lt_hardcode_libdir_separator
12666
12667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12668# DIR into the resulting binary.
12669hardcode_direct=$hardcode_direct
12670
12671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12672# DIR into the resulting binary and the resulting library dependency is
12673# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12674# library is relocated.
12675hardcode_direct_absolute=$hardcode_direct_absolute
12676
12677# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12678# into the resulting binary.
12679hardcode_minus_L=$hardcode_minus_L
12680
12681# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12682# into the resulting binary.
12683hardcode_shlibpath_var=$hardcode_shlibpath_var
12684
12685# Set to "yes" if building a shared library automatically hardcodes DIR
12686# into the library and all subsequent libraries and executables linked
12687# against it.
12688hardcode_automatic=$hardcode_automatic
12689
12690# Set to yes if linker adds runtime paths of dependent libraries
12691# to runtime path list.
12692inherit_rpath=$inherit_rpath
12693
12694# Whether libtool must link a program against all its dependency libraries.
12695link_all_deplibs=$link_all_deplibs
12696
12697# Fix the shell variable \$srcfile for the compiler.
12698fix_srcfile_path=$lt_fix_srcfile_path
12699
12700# Set to "yes" if exported symbols are required.
12701always_export_symbols=$always_export_symbols
12702
12703# The commands to list exported symbols.
12704export_symbols_cmds=$lt_export_symbols_cmds
12705
12706# Symbols that should not be listed in the preloaded symbols.
12707exclude_expsyms=$lt_exclude_expsyms
12708
12709# Symbols that must always be exported.
12710include_expsyms=$lt_include_expsyms
12711
12712# Commands necessary for linking programs (against libraries) with templates.
12713prelink_cmds=$lt_prelink_cmds
12714
12715# Specify filename containing input files.
12716file_list_spec=$lt_file_list_spec
12717
12718# How to hardcode a shared library path into an executable.
12719hardcode_action=$hardcode_action
12720
12721# ### END LIBTOOL CONFIG
12722
12723_LT_EOF
12724
12725 case $host_os in
12726 aix3*)
12727 cat <<\_LT_EOF >> "$cfgfile"
12728# AIX sometimes has problems with the GCC collect2 program. For some
12729# reason, if we set the COLLECT_NAMES environment variable, the problems
12730# vanish in a puff of smoke.
12731if test "X${COLLECT_NAMES+set}" != Xset; then
12732 COLLECT_NAMES=
12733 export COLLECT_NAMES
12734fi
12735_LT_EOF
12736 ;;
12737 esac
12738
12739
12740ltmain="$ac_aux_dir/ltmain.sh"
12741
12742
12743 # We use sed instead of cat because bash on DJGPP gets confused if
12744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12745 # text mode, it properly converts lines to CR/LF. This bash problem
12746 # is reportedly fixed, but why not run on old versions too?
12747 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12748 || (rm -f "$cfgfile"; exit 1)
12749
12750 case $xsi_shell in
12751 yes)
12752 cat << \_LT_EOF >> "$cfgfile"
12753
12754# func_dirname file append nondir_replacement
12755# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12756# otherwise set result to NONDIR_REPLACEMENT.
12757func_dirname ()
12758{
12759 case ${1} in
12760 */*) func_dirname_result="${1%/*}${2}" ;;
12761 * ) func_dirname_result="${3}" ;;
12762 esac
12763}
12764
12765# func_basename file
12766func_basename ()
12767{
12768 func_basename_result="${1##*/}"
12769}
12770
12771# func_dirname_and_basename file append nondir_replacement
12772# perform func_basename and func_dirname in a single function
12773# call:
12774# dirname: Compute the dirname of FILE. If nonempty,
12775# add APPEND to the result, otherwise set result
12776# to NONDIR_REPLACEMENT.
12777# value returned in "$func_dirname_result"
12778# basename: Compute filename of FILE.
12779# value retuned in "$func_basename_result"
12780# Implementation must be kept synchronized with func_dirname
12781# and func_basename. For efficiency, we do not delegate to
12782# those functions but instead duplicate the functionality here.
12783func_dirname_and_basename ()
12784{
12785 case ${1} in
12786 */*) func_dirname_result="${1%/*}${2}" ;;
12787 * ) func_dirname_result="${3}" ;;
12788 esac
12789 func_basename_result="${1##*/}"
12790}
12791
12792# func_stripname prefix suffix name
12793# strip PREFIX and SUFFIX off of NAME.
12794# PREFIX and SUFFIX must not contain globbing or regex special
12795# characters, hashes, percent signs, but SUFFIX may contain a leading
12796# dot (in which case that matches only a dot).
12797func_stripname ()
12798{
12799 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12800 # positional parameters, so assign one to ordinary parameter first.
12801 func_stripname_result=${3}
12802 func_stripname_result=${func_stripname_result#"${1}"}
12803 func_stripname_result=${func_stripname_result%"${2}"}
12804}
12805
12806# func_opt_split
12807func_opt_split ()
12808{
12809 func_opt_split_opt=${1%%=*}
12810 func_opt_split_arg=${1#*=}
12811}
12812
12813# func_lo2o object
12814func_lo2o ()
12815{
12816 case ${1} in
12817 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12818 *) func_lo2o_result=${1} ;;
12819 esac
12820}
12821
12822# func_xform libobj-or-source
12823func_xform ()
12824{
12825 func_xform_result=${1%.*}.lo
12826}
12827
12828# func_arith arithmetic-term...
12829func_arith ()
12830{
12831 func_arith_result=$(( $* ))
12832}
12833
12834# func_len string
12835# STRING may not start with a hyphen.
12836func_len ()
12837{
12838 func_len_result=${#1}
12839}
12840
12841_LT_EOF
12842 ;;
12843 *) # Bourne compatible functions.
12844 cat << \_LT_EOF >> "$cfgfile"
12845
12846# func_dirname file append nondir_replacement
12847# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12848# otherwise set result to NONDIR_REPLACEMENT.
12849func_dirname ()
12850{
12851 # Extract subdirectory from the argument.
52327858 12852 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
12853 if test "X$func_dirname_result" = "X${1}"; then
12854 func_dirname_result="${3}"
12855 else
12856 func_dirname_result="$func_dirname_result${2}"
12857 fi
12858}
12859
12860# func_basename file
12861func_basename ()
12862{
52327858 12863 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
12864}
12865
12866
12867# func_stripname prefix suffix name
12868# strip PREFIX and SUFFIX off of NAME.
12869# PREFIX and SUFFIX must not contain globbing or regex special
12870# characters, hashes, percent signs, but SUFFIX may contain a leading
12871# dot (in which case that matches only a dot).
12872# func_strip_suffix prefix name
12873func_stripname ()
12874{
12875 case ${2} in
52327858
L
12876 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12877 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
12878 esac
12879}
12880
12881# sed scripts:
12882my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12883my_sed_long_arg='1s/^-[^=]*=//'
12884
12885# func_opt_split
12886func_opt_split ()
12887{
52327858
L
12888 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12889 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
12890}
12891
12892# func_lo2o object
12893func_lo2o ()
12894{
52327858 12895 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
12896}
12897
12898# func_xform libobj-or-source
12899func_xform ()
12900{
52327858 12901 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
12902}
12903
12904# func_arith arithmetic-term...
12905func_arith ()
12906{
12907 func_arith_result=`expr "$@"`
12908}
12909
12910# func_len string
12911# STRING may not start with a hyphen.
12912func_len ()
12913{
12914 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12915}
12916
12917_LT_EOF
12918esac
12919
12920case $lt_shell_append in
12921 yes)
12922 cat << \_LT_EOF >> "$cfgfile"
12923
12924# func_append var value
12925# Append VALUE to the end of shell variable VAR.
12926func_append ()
12927{
12928 eval "$1+=\$2"
12929}
12930_LT_EOF
12931 ;;
12932 *)
12933 cat << \_LT_EOF >> "$cfgfile"
12934
12935# func_append var value
12936# Append VALUE to the end of shell variable VAR.
12937func_append ()
12938{
12939 eval "$1=\$$1\$2"
12940}
12941
12942_LT_EOF
12943 ;;
12944 esac
12945
12946
12947 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12948 || (rm -f "$cfgfile"; exit 1)
12949
12950 mv -f "$cfgfile" "$ofile" ||
12951 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12952 chmod +x "$ofile"
12953
12954 ;;
12955
12956 esac
12957done # for ac_tag
12958
12959
12960as_fn_exit 0
12961_ACEOF
12962ac_clean_files=$ac_clean_files_save
12963
12964test $ac_write_fail = 0 ||
12965 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12966
12967
12968# configure is writing to config.log, and then calls config.status.
12969# config.status does its own redirection, appending to config.log.
12970# Unfortunately, on DOS this fails, as config.log is still kept open
12971# by configure, so config.status won't be able to write to it; its
12972# output is simply discarded. So we exec the FD to /dev/null,
12973# effectively closing config.log, so it can be properly (re)opened and
12974# appended to by config.status. When coming back to configure, we
12975# need to make the FD available again.
12976if test "$no_create" != yes; then
12977 ac_cs_success=:
12978 ac_config_status_args=
12979 test "$silent" = yes &&
12980 ac_config_status_args="$ac_config_status_args --quiet"
12981 exec 5>/dev/null
12982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12983 exec 5>>config.log
12984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12985 # would make configure fail if this is the last instruction.
12986 $ac_cs_success || as_fn_exit $?
12987fi
12988if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12990$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12991fi
12992