]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure
configure.ac (build_lto_plugin): New shell variable.
[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
624host_os
625host_vendor
626host_cpu
627host
628LIBTOOL
629LIBELFINC
630LIBELFLIBS
631am__fastdepCC_FALSE
632am__fastdepCC_TRUE
633CCDEPMODE
634AMDEPBACKSLASH
635AMDEP_FALSE
636AMDEP_TRUE
637am__quote
638am__include
639DEPDIR
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
03428d41
RG
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
d7f09764
DN
650am__untar
651am__tar
652AMTAR
653am__leading_dot
654SET_MAKE
655AWK
656mkdir_p
657MKDIR_P
658INSTALL_STRIP_PROGRAM
659STRIP
660install_sh
661MAKEINFO
662AUTOHEADER
663AUTOMAKE
664AUTOCONF
665ACLOCAL
666VERSION
667PACKAGE
668CYGPATH_W
669am__isrc
670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
677build_os
678build_vendor
679build_cpu
680build
681target_alias
682host_alias
683build_alias
684LIBS
685ECHO_T
686ECHO_N
687ECHO_C
688DEFS
689mandir
690localedir
691libdir
692psdir
693pdfdir
694dvidir
695htmldir
696infodir
697docdir
698oldincludedir
699includedir
700localstatedir
701sharedstatedir
702sysconfdir
703datadir
704datarootdir
705libexecdir
706sbindir
707bindir
708program_transform_name
709prefix
710exec_prefix
711PACKAGE_URL
712PACKAGE_BUGREPORT
713PACKAGE_STRING
714PACKAGE_VERSION
715PACKAGE_TARNAME
716PACKAGE_NAME
717PATH_SEPARATOR
718SHELL'
719ac_subst_files=''
720ac_user_opts='
721enable_option_checking
722with_build_libsubdir
03428d41 723enable_maintainer_mode
d7f09764 724enable_dependency_tracking
4c0f4b0b 725enable_largefile
d7f09764
DN
726enable_shared
727enable_static
728with_pic
729enable_fast_install
730with_gnu_ld
731enable_libtool_lock
d7f09764
DN
732'
733 ac_precious_vars='build_alias
734host_alias
735target_alias
736CC
737CFLAGS
738LDFLAGS
739LIBS
740CPPFLAGS
741LIBELFLIBS
742LIBELFINC
743CPP'
744
745
746# Initialize some variables set by options.
747ac_init_help=
748ac_init_version=false
749ac_unrecognized_opts=
750ac_unrecognized_sep=
751# The variables have the same names as the options, with
752# dashes changed to underlines.
753cache_file=/dev/null
754exec_prefix=NONE
755no_create=
756no_recursion=
757prefix=NONE
758program_prefix=NONE
759program_suffix=NONE
760program_transform_name=s,x,x,
761silent=
762site=
763srcdir=
764verbose=
765x_includes=NONE
766x_libraries=NONE
767
768# Installation directory options.
769# These are left unexpanded so users can "make install exec_prefix=/foo"
770# and all the variables that are supposed to be based on exec_prefix
771# by default will actually change.
772# Use braces instead of parens because sh, perl, etc. also accept them.
773# (The list follows the same order as the GNU Coding Standards.)
774bindir='${exec_prefix}/bin'
775sbindir='${exec_prefix}/sbin'
776libexecdir='${exec_prefix}/libexec'
777datarootdir='${prefix}/share'
778datadir='${datarootdir}'
779sysconfdir='${prefix}/etc'
780sharedstatedir='${prefix}/com'
781localstatedir='${prefix}/var'
782includedir='${prefix}/include'
783oldincludedir='/usr/include'
784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785infodir='${datarootdir}/info'
786htmldir='${docdir}'
787dvidir='${docdir}'
788pdfdir='${docdir}'
789psdir='${docdir}'
790libdir='${exec_prefix}/lib'
791localedir='${datarootdir}/locale'
792mandir='${datarootdir}/man'
793
794ac_prev=
795ac_dashdash=
796for ac_option
797do
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
803 fi
804
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
809
810 # Accept the important Cygnus configure options, so we can diagnose typos.
811
812 case $ac_dashdash$ac_option in
813 --)
814 ac_dashdash=yes ;;
815
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
820
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
825
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
832
833 --config-cache | -C)
834 cache_file=config.cache ;;
835
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
840
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
847
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883"enable_$ac_useropt"
884"*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=\$ac_optarg ;;
889
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
898
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
901 with_gas=yes ;;
902
903 -help | --help | --hel | --he | -h)
904 ac_init_help=long ;;
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
909
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
914
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 ac_prev=htmldir ;;
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 | --ht=*)
919 htmldir=$ac_optarg ;;
920
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
927
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 ac_prev=infodir ;;
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
932
933 -libdir | --libdir | --libdi | --libd)
934 ac_prev=libdir ;;
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 libdir=$ac_optarg ;;
937
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
944
945 -localedir | --localedir | --localedi | --localed | --locale)
946 ac_prev=localedir ;;
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
949
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
956
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 ac_prev=mandir ;;
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 mandir=$ac_optarg ;;
961
962 -nfp | --nfp | --nf)
963 # Obsolete; use --without-fp.
964 with_fp=no ;;
965
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
968 no_create=yes ;;
969
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 no_recursion=yes ;;
973
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
982
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 ac_prev=prefix ;;
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 prefix=$ac_optarg ;;
987
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
994
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1001
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1018
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 ac_prev=pdfdir ;;
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1023
1024 -psdir | --psdir | --psdi | --psd | --ps)
1025 ac_prev=psdir ;;
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 psdir=$ac_optarg ;;
1028
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 silent=yes ;;
1032
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 ac_prev=sbindir ;;
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 | --sbi=* | --sb=*)
1037 sbindir=$ac_optarg ;;
1038
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1042 | --sha | --sh)
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 | --sha=* | --sh=*)
1048 sharedstatedir=$ac_optarg ;;
1049
1050 -site | --site | --sit)
1051 ac_prev=site ;;
1052 -site=* | --site=* | --sit=*)
1053 site=$ac_optarg ;;
1054
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 ac_prev=srcdir ;;
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1059
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1066
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1071
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 verbose=yes ;;
1074
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1077
1078 -with-* | --with-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087"with_$ac_useropt"
1088"*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1093
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103"with_$ac_useropt"
1104"*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=no ;;
1109
1110 --x)
1111 # Obsolete; use --with-x.
1112 with_x=yes ;;
1113
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1120
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1127
1128 -*) as_fn_error "unrecognized option: \`$ac_option'
1129Try \`$0 --help' for more information."
1130 ;;
1131
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 esac
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1141
1142 *)
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 ;;
1149
1150 esac
1151done
1152
1153if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error "missing argument to $ac_option"
1156fi
1157
1158if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1164fi
1165
1166# Check all directory arguments for consistency.
1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1171do
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185done
1186
1187# There might be people who depend on the old broken behavior: `$host'
1188# used to hold the argument of --host etc.
1189# FIXME: To remove some day.
1190build=$build_alias
1191host=$host_alias
1192target=$target_alias
1193
1194# FIXME: To remove some day.
1195if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1202 fi
1203fi
1204
1205ac_tool_prefix=
1206test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208test "$silent" = yes && exec 6>/dev/null
1209
1210
1211ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212ac_ls_di=`ls -di .` &&
1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error "working directory cannot be determined"
1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error "pwd does not report name of working directory"
1217
1218
1219# Find the source files, if location was not specified.
1220if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228$as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\).*/{
1242 s//\1/
1243 q
1244 }
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1249 fi
1250else
1251 ac_srcdir_defaulted=no
1252fi
1253if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256fi
1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 pwd)`
1261# When building in place, set srcdir=.
1262if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1264fi
1265# Remove unnecessary trailing slashes from srcdir.
1266# Double slashes in file names in object file debugging info
1267# mess up M-x gdb in Emacs.
1268case $srcdir in
1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270esac
1271for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276done
1277
1278#
1279# Report the --help message.
1280#
1281if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1286
1287Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290VAR=VALUE. See below for descriptions of some of the useful variables.
1291
1292Defaults for the options are specified in brackets.
1293
1294Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304
1305Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1310
1311By default, \`make install' will install all the files in
1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314for instance \`--prefix=\$HOME'.
1315
1316For better control, use the options below.
1317
1318Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338_ACEOF
1339
1340 cat <<\_ACEOF
1341
1342Program names:
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346
1347System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350_ACEOF
1351fi
1352
1353if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1356 esac
1357 cat <<\_ACEOF
1358
1359Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
03428d41
RG
1363 --enable-maintainer-mode enable make rules and dependencies not useful
1364 (and sometimes confusing) to the casual installer
d7f09764
DN
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
4c0f4b0b 1367 --disable-largefile omit support for large files
d7f09764
DN
1368 --enable-shared[=PKGS] build shared libraries [default=yes]
1369 --enable-static[=PKGS] build static libraries [default=yes]
1370 --enable-fast-install[=PKGS]
1371 optimize for fast installation [default=yes]
1372 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1373
1374Optional Packages:
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1377 --with-build-libsubdir=DIR Directory where to find libraries for build system
1378 --with-pic try to use only PIC/non-PIC objects [default=use
1379 both]
1380 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1381
1382Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 LIBELFLIBS How to link libelf
1391 LIBELFINC How to find libelf include files
1392 CPP C preprocessor
1393
1394Use these variables to override the choices made by `configure' or to help
1395it to find libraries and programs with nonstandard names/locations.
1396
1397Report bugs to the package provider.
1398_ACEOF
1399ac_status=$?
1400fi
1401
1402if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
1408 ac_builddir=.
1409
1410case "$ac_dir" in
1411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412*)
1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420esac
1421ac_abs_top_builddir=$ac_pwd
1422ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423# for backward compatibility:
1424ac_top_builddir=$ac_top_build_prefix
1425
1426case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439esac
1440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1455fi
1456
1457test -n "$ac_init_help" && exit $ac_status
1458if $ac_init_version; then
1459 cat <<\_ACEOF
1460LTO plugin for ld configure 0.1
1461generated by GNU Autoconf 2.64
1462
1463Copyright (C) 2009 Free Software Foundation, Inc.
1464This configure script is free software; the Free Software Foundation
1465gives unlimited permission to copy, distribute and modify it.
1466_ACEOF
1467 exit
1468fi
1469
1470## ------------------------ ##
1471## Autoconf initialization. ##
1472## ------------------------ ##
1473
1474# ac_fn_c_try_compile LINENO
1475# --------------------------
1476# Try to compile conftest.$ac_ext, and return whether this succeeded.
1477ac_fn_c_try_compile ()
1478{
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1482case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485esac
1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487$as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1494 fi
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1500 ac_retval=0
1501else
1502 $as_echo "$as_me: failed program was:" >&5
1503sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1
1506fi
1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 return $ac_retval
1509
1510} # ac_fn_c_try_compile
1511
1512# ac_fn_c_try_link LINENO
1513# -----------------------
1514# Try to link conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_link ()
1516{
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext conftest$ac_exeext
1519 if { { ac_try="$ac_link"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_link") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest$ac_exeext && {
1538 test "$cross_compiling" = yes ||
1539 $as_test_x conftest$ac_exeext
1540 }; then :
1541 ac_retval=0
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547fi
1548 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1549 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1550 # interfere with the next link command; also delete a directory that is
1551 # left behind by Apple's compiler. We do this before executing the actions.
1552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 return $ac_retval
1555
1556} # ac_fn_c_try_link
1557
1558# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1559# -------------------------------------------------------
1560# Tests whether HEADER exists and can be compiled using the include files in
1561# INCLUDES, setting the cache variable VAR accordingly.
1562ac_fn_c_check_header_compile ()
1563{
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1566$as_echo_n "checking for $2... " >&6; }
1567if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 $as_echo_n "(cached) " >&6
1569else
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571/* end confdefs.h. */
1572$4
1573#include <$2>
1574_ACEOF
1575if ac_fn_c_try_compile "$LINENO"; then :
1576 eval "$3=yes"
1577else
1578 eval "$3=no"
1579fi
1580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581fi
1582eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584$as_echo "$ac_res" >&6; }
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586
1587} # ac_fn_c_check_header_compile
1588
1589# ac_fn_c_try_cpp LINENO
1590# ----------------------
1591# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_cpp ()
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } >/dev/null && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620fi
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 return $ac_retval
1623
1624} # ac_fn_c_try_cpp
1625
1626# ac_fn_c_try_run LINENO
1627# ----------------------
1628# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1629# that executables *can* be run.
1630ac_fn_c_try_run ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_link"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1644 { { case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_try") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; }; }; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: program exited with status $ac_status" >&5
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=$ac_status
1661fi
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 return $ac_retval
1665
1666} # ac_fn_c_try_run
1667
1668# ac_fn_c_check_func LINENO FUNC VAR
1669# ----------------------------------
1670# Tests whether FUNC exists, setting the cache variable VAR accordingly
1671ac_fn_c_check_func ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1678else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680/* end confdefs.h. */
1681/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1683#define $2 innocuous_$2
1684
1685/* System header to define __stub macros and hopefully few prototypes,
1686 which can conflict with char $2 (); below.
1687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1688 <limits.h> exists even on freestanding compilers. */
1689
1690#ifdef __STDC__
1691# include <limits.h>
1692#else
1693# include <assert.h>
1694#endif
1695
1696#undef $2
1697
1698/* Override any GCC internal prototype to avoid an error.
1699 Use char because int might match the return type of a GCC
1700 builtin and then its argument prototype would still apply. */
1701#ifdef __cplusplus
1702extern "C"
1703#endif
1704char $2 ();
1705/* The GNU C library defines this for functions which it implements
1706 to always fail with ENOSYS. Some functions are actually named
1707 something starting with __ and the normal name is an alias. */
1708#if defined __stub_$2 || defined __stub___$2
1709choke me
1710#endif
1711
1712int
1713main ()
1714{
1715return $2 ();
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720if ac_fn_c_try_link "$LINENO"; then :
1721 eval "$3=yes"
1722else
1723 eval "$3=no"
1724fi
1725rm -f core conftest.err conftest.$ac_objext \
1726 conftest$ac_exeext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732
1733} # ac_fn_c_check_func
21750c78
RE
1734
1735# ac_fn_c_find_uintX_t LINENO BITS VAR
1736# ------------------------------------
1737# Finds an unsigned integer type with width BITS, setting cache variable VAR
1738# accordingly.
1739ac_fn_c_find_uintX_t ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1743$as_echo_n "checking for uint$2_t... " >&6; }
1744if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746else
1747 eval "$3=no"
1748 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1749 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h. */
1752$ac_includes_default
1753int
1754main ()
1755{
1756static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1757test_array [0] = 0
1758
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 case $ac_type in #(
1765 uint$2_t) :
1766 eval "$3=yes" ;; #(
1767 *) :
1768 eval "$3=\$ac_type" ;;
1769esac
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 eval as_val=\$$3
1773 if test "x$as_val" = x""no; then :
1774
1775else
1776 break
1777fi
1778 done
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785} # ac_fn_c_find_uintX_t
d7f09764
DN
1786cat >config.log <<_ACEOF
1787This file contains any messages produced by compilers while
1788running configure, to aid debugging if configure makes a mistake.
1789
1790It was created by LTO plugin for ld $as_me 0.1, which was
1791generated by GNU Autoconf 2.64. Invocation command line was
1792
1793 $ $0 $@
1794
1795_ACEOF
1796exec 5>>config.log
1797{
1798cat <<_ASUNAME
1799## --------- ##
1800## Platform. ##
1801## --------- ##
1802
1803hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808
1809/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1811
1812/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1813/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1814/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1816/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1817/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1818/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1819
1820_ASUNAME
1821
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 $as_echo "PATH: $as_dir"
1828 done
1829IFS=$as_save_IFS
1830
1831} >&5
1832
1833cat >&5 <<_ACEOF
1834
1835
1836## ----------- ##
1837## Core tests. ##
1838## ----------- ##
1839
1840_ACEOF
1841
1842
1843# Keep a trace of the command line.
1844# Strip out --no-create and --no-recursion so they do not pile up.
1845# Strip out --silent because we don't want to record it for future runs.
1846# Also quote any args containing shell meta-characters.
1847# Make two passes to allow for proper duplicate-argument suppression.
1848ac_configure_args=
1849ac_configure_args0=
1850ac_configure_args1=
1851ac_must_keep_next=false
1852for ac_pass in 1 2
1853do
1854 for ac_arg
1855 do
1856 case $ac_arg in
1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859 | -silent | --silent | --silen | --sile | --sil)
1860 continue ;;
1861 *\'*)
1862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 esac
1864 case $ac_pass in
1865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866 2)
1867 as_fn_append ac_configure_args1 " '$ac_arg'"
1868 if test $ac_must_keep_next = true; then
1869 ac_must_keep_next=false # Got value, back to normal.
1870 else
1871 case $ac_arg in
1872 *=* | --config-cache | -C | -disable-* | --disable-* \
1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875 | -with-* | --with-* | -without-* | --without-* | --x)
1876 case "$ac_configure_args0 " in
1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878 esac
1879 ;;
1880 -* ) ac_must_keep_next=true ;;
1881 esac
1882 fi
1883 as_fn_append ac_configure_args " '$ac_arg'"
1884 ;;
1885 esac
1886 done
1887done
1888{ ac_configure_args0=; unset ac_configure_args0;}
1889{ ac_configure_args1=; unset ac_configure_args1;}
1890
1891# When interrupted or exit'd, cleanup temporary files, and complete
1892# config.log. We remove comments because anyway the quotes in there
1893# would cause problems or look ugly.
1894# WARNING: Use '\'' to represent an apostrophe within the trap.
1895# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896trap 'exit_status=$?
1897 # Save into config.log some information that might help in debugging.
1898 {
1899 echo
1900
1901 cat <<\_ASBOX
1902## ---------------- ##
1903## Cache variables. ##
1904## ---------------- ##
1905_ASBOX
1906 echo
1907 # The following way of writing the cache mishandles newlines in values,
1908(
1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in #(
1912 *${as_nl}*)
1913 case $ac_var in #(
1914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 esac
1917 case $ac_var in #(
1918 _ | IFS | as_nl) ;; #(
1919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920 *) { eval $ac_var=; unset $ac_var;} ;;
1921 esac ;;
1922 esac
1923 done
1924 (set) 2>&1 |
1925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926 *${as_nl}ac_space=\ *)
1927 sed -n \
1928 "s/'\''/'\''\\\\'\'''\''/g;
1929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 ;; #(
1931 *)
1932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933 ;;
1934 esac |
1935 sort
1936)
1937 echo
1938
1939 cat <<\_ASBOX
1940## ----------------- ##
1941## Output variables. ##
1942## ----------------- ##
1943_ASBOX
1944 echo
1945 for ac_var in $ac_subst_vars
1946 do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in
1949 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 esac
1951 $as_echo "$ac_var='\''$ac_val'\''"
1952 done | sort
1953 echo
1954
1955 if test -n "$ac_subst_files"; then
1956 cat <<\_ASBOX
1957## ------------------- ##
1958## File substitutions. ##
1959## ------------------- ##
1960_ASBOX
1961 echo
1962 for ac_var in $ac_subst_files
1963 do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 $as_echo "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1971 fi
1972
1973 if test -s confdefs.h; then
1974 cat <<\_ASBOX
1975## ----------- ##
1976## confdefs.h. ##
1977## ----------- ##
1978_ASBOX
1979 echo
1980 cat confdefs.h
1981 echo
1982 fi
1983 test "$ac_signal" != 0 &&
1984 $as_echo "$as_me: caught signal $ac_signal"
1985 $as_echo "$as_me: exit $exit_status"
1986 } >&5
1987 rm -f core *.core core.conftest.* &&
1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989 exit $exit_status
1990' 0
1991for ac_signal in 1 2 13 15; do
1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993done
1994ac_signal=0
1995
1996# confdefs.h avoids OS command line length limits that DEFS can exceed.
1997rm -f -r conftest* confdefs.h
1998
1999$as_echo "/* confdefs.h */" > confdefs.h
2000
2001# Predefined preprocessor variables.
2002
2003cat >>confdefs.h <<_ACEOF
2004#define PACKAGE_NAME "$PACKAGE_NAME"
2005_ACEOF
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2009_ACEOF
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_VERSION "$PACKAGE_VERSION"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_STRING "$PACKAGE_STRING"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_URL "$PACKAGE_URL"
2025_ACEOF
2026
2027
2028# Let the site file select an alternate cache file if it wants to.
2029# Prefer an explicitly selected file to automatically selected ones.
2030ac_site_file1=NONE
2031ac_site_file2=NONE
2032if test -n "$CONFIG_SITE"; then
2033 ac_site_file1=$CONFIG_SITE
2034elif test "x$prefix" != xNONE; then
2035 ac_site_file1=$prefix/share/config.site
2036 ac_site_file2=$prefix/etc/config.site
2037else
2038 ac_site_file1=$ac_default_prefix/share/config.site
2039 ac_site_file2=$ac_default_prefix/etc/config.site
2040fi
2041for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042do
2043 test "x$ac_site_file" = xNONE && continue
2044 if test -r "$ac_site_file"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2046$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2047 sed 's/^/| /' "$ac_site_file" >&5
2048 . "$ac_site_file"
2049 fi
2050done
2051
2052if test -r "$cache_file"; then
2053 # Some versions of bash will fail to source /dev/null (special
2054 # files actually), so we avoid doing that.
2055 if test -f "$cache_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2057$as_echo "$as_me: loading cache $cache_file" >&6;}
2058 case $cache_file in
2059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060 *) . "./$cache_file";;
2061 esac
2062 fi
2063else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2065$as_echo "$as_me: creating cache $cache_file" >&6;}
2066 >$cache_file
2067fi
2068
2069# Check that the precious variables saved in the cache have kept the same
2070# value.
2071ac_cache_corrupted=false
2072for ac_var in $ac_precious_vars; do
2073 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074 eval ac_new_set=\$ac_env_${ac_var}_set
2075 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076 eval ac_new_val=\$ac_env_${ac_var}_value
2077 case $ac_old_set,$ac_new_set in
2078 set,)
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2082 ,set)
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2084$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2086 ,);;
2087 *)
2088 if test "x$ac_old_val" != "x$ac_new_val"; then
2089 # differences in whitespace do not lead to failure.
2090 ac_old_val_w=`echo x $ac_old_val`
2091 ac_new_val_w=`echo x $ac_new_val`
2092 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2094$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095 ac_cache_corrupted=:
2096 else
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099 eval $ac_var=\$ac_old_val
2100 fi
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2102$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2104$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2105 fi;;
2106 esac
2107 # Pass precious variables to config.status.
2108 if test "$ac_new_set" = set; then
2109 case $ac_new_val in
2110 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111 *) ac_arg=$ac_var=$ac_new_val ;;
2112 esac
2113 case " $ac_configure_args " in
2114 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2115 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2116 esac
2117 fi
2118done
2119if $ac_cache_corrupted; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2123$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2125fi
2126## -------------------- ##
2127## Main body of script. ##
2128## -------------------- ##
2129
2130ac_ext=c
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135
2136
2137
2138
2139
2140ac_aux_dir=
2141for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2142 for ac_t in install-sh install.sh shtool; do
2143 if test -f "$ac_dir/$ac_t"; then
2144 ac_aux_dir=$ac_dir
2145 ac_install_sh="$ac_aux_dir/$ac_t -c"
2146 break 2
2147 fi
2148 done
2149done
2150if test -z "$ac_aux_dir"; then
2151 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2152fi
2153
2154# These three variables are undocumented and unsupported,
2155# and are intended to be withdrawn in a future Autoconf release.
2156# They can cause serious problems if a builder's source tree is in a directory
2157# whose full name contains unusual characters.
2158ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2159ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2160ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2161
2162
2163# Make sure we can run config.sub.
2164$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2165 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2166
2167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2168$as_echo_n "checking build system type... " >&6; }
2169if test "${ac_cv_build+set}" = set; then :
2170 $as_echo_n "(cached) " >&6
2171else
2172 ac_build_alias=$build_alias
2173test "x$ac_build_alias" = x &&
2174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2175test "x$ac_build_alias" = x &&
2176 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2177ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2178 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2179
2180fi
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2182$as_echo "$ac_cv_build" >&6; }
2183case $ac_cv_build in
2184*-*-*) ;;
2185*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2186esac
2187build=$ac_cv_build
2188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_build
2190shift
2191build_cpu=$1
2192build_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196build_os=$*
2197IFS=$ac_save_IFS
2198case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2199
2200
2201 case ${build_alias} in
2202 "") build_noncanonical=${build} ;;
2203 *) build_noncanonical=${build_alias} ;;
2204esac
2205
2206 case ${host_alias} in
2207 "") host_noncanonical=${build_noncanonical} ;;
2208 *) host_noncanonical=${host_alias} ;;
2209esac
2210
2211 case ${target_alias} in
2212 "") target_noncanonical=${host_noncanonical} ;;
2213 *) target_noncanonical=${target_alias} ;;
2214esac
2215
2216
2217# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2218# have matching libraries, they should use host libraries: Makefile.tpl
2219# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2220# However, they still use the build modules, because the corresponding
2221# host modules (e.g. bison) are only built for the host when bootstrap
2222# finishes. So:
2223# - build_subdir is where we find build modules, and never changes.
2224# - build_libsubdir is where we find build libraries, and can be overridden.
2225
2226# Prefix 'build-' so this never conflicts with target_subdir.
2227build_subdir="build-${build_noncanonical}"
2228
2229# Check whether --with-build-libsubdir was given.
2230if test "${with_build_libsubdir+set}" = set; then :
2231 withval=$with_build_libsubdir; build_libsubdir="$withval"
2232else
2233 build_libsubdir="$build_subdir"
2234fi
2235
2236# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2237if ( test $srcdir = . && test -d gcc ) \
2238 || test -d $srcdir/../host-${host_noncanonical}; then
2239 host_subdir="host-${host_noncanonical}"
2240else
2241 host_subdir=.
2242fi
2243# No prefix.
2244target_subdir=${target_noncanonical}
2245
2246am__api_version='1.11'
2247
2248# Find a good install program. We prefer a C program (faster),
2249# so one script is as good as another. But avoid the broken or
2250# incompatible versions:
2251# SysV /etc/install, /usr/sbin/install
2252# SunOS /usr/etc/install
2253# IRIX /sbin/install
2254# AIX /bin/install
2255# AmigaOS /C/install, which installs bootblocks on floppy discs
2256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259# OS/2's system install, which has a completely different semantic
2260# ./install, which can be erroneously created by make from ./install.sh.
2261# Reject install programs that cannot install multiple files.
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2263$as_echo_n "checking for a BSD-compatible install... " >&6; }
2264if test -z "$INSTALL"; then
2265if test "${ac_cv_path_install+set}" = set; then :
2266 $as_echo_n "(cached) " >&6
2267else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 # Account for people who put trailing slashes in PATH elements.
2274case $as_dir/ in #((
2275 ./ | .// | /[cC]/* | \
2276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2277 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2278 /usr/ucb/* ) ;;
2279 *)
2280 # OSF1 and SCO ODT 3.0 have their own names for install.
2281 # Don't use installbsd from OSF since it installs stuff as root
2282 # by default.
2283 for ac_prog in ginstall scoinst install; do
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2286 if test $ac_prog = install &&
2287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288 # AIX install. It has an incompatible calling convention.
2289 :
2290 elif test $ac_prog = install &&
2291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2292 # program-specific install script used by HP pwplus--don't use.
2293 :
2294 else
2295 rm -rf conftest.one conftest.two conftest.dir
2296 echo one > conftest.one
2297 echo two > conftest.two
2298 mkdir conftest.dir
2299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2300 test -s conftest.one && test -s conftest.two &&
2301 test -s conftest.dir/conftest.one &&
2302 test -s conftest.dir/conftest.two
2303 then
2304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2305 break 3
2306 fi
2307 fi
2308 fi
2309 done
2310 done
2311 ;;
2312esac
2313
2314 done
2315IFS=$as_save_IFS
2316
2317rm -rf conftest.one conftest.two conftest.dir
2318
2319fi
2320 if test "${ac_cv_path_install+set}" = set; then
2321 INSTALL=$ac_cv_path_install
2322 else
2323 # As a last resort, use the slow shell script. Don't cache a
2324 # value for INSTALL within a source directory, because that will
2325 # break other packages using the cache if that directory is
2326 # removed, or if the value is a relative name.
2327 INSTALL=$ac_install_sh
2328 fi
2329fi
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2331$as_echo "$INSTALL" >&6; }
2332
2333# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2334# It thinks the first close brace ends the variable substitution.
2335test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2336
2337test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2338
2339test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2340
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2342$as_echo_n "checking whether build environment is sane... " >&6; }
2343# Just in case
2344sleep 1
2345echo timestamp > conftest.file
2346# Reject unsafe characters in $srcdir or the absolute working directory
2347# name. Accept space and tab only in the latter.
2348am_lf='
2349'
2350case `pwd` in
2351 *[\\\"\#\$\&\'\`$am_lf]*)
2352 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2353esac
2354case $srcdir in
2355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2356 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2357esac
2358
2359# Do `set' in a subshell so we don't clobber the current shell's
2360# arguments. Must try -L first in case configure is actually a
2361# symlink; some systems play weird games with the mod time of symlinks
2362# (eg FreeBSD returns the mod time of the symlink's containing
2363# directory).
2364if (
2365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2366 if test "$*" = "X"; then
2367 # -L didn't work.
2368 set X `ls -t "$srcdir/configure" conftest.file`
2369 fi
2370 rm -f conftest.file
2371 if test "$*" != "X $srcdir/configure conftest.file" \
2372 && test "$*" != "X conftest.file $srcdir/configure"; then
2373
2374 # If neither matched, then we have a broken ls. This can happen
2375 # if, for instance, CONFIG_SHELL is bash and it inherits a
2376 # broken ls alias from the environment. This has actually
2377 # happened. Such a system could not be considered "sane".
2378 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2379alias in your environment" "$LINENO" 5
2380 fi
2381
2382 test "$2" = conftest.file
2383 )
2384then
2385 # Ok.
2386 :
2387else
2388 as_fn_error "newly created file is older than distributed files!
2389Check your system clock" "$LINENO" 5
2390fi
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2392$as_echo "yes" >&6; }
2393test "$program_prefix" != NONE &&
2394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2395# Use a double $ so make ignores it.
2396test "$program_suffix" != NONE &&
2397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2398# Double any \ or $.
2399# By default was `s,x,x', remove it if useless.
2400ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2401program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2402
2403# expand $ac_aux_dir to an absolute path
2404am_aux_dir=`cd $ac_aux_dir && pwd`
2405
2406if test x"${MISSING+set}" != xset; then
2407 case $am_aux_dir in
2408 *\ * | *\ *)
2409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2410 *)
2411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2412 esac
2413fi
2414# Use eval to expand $SHELL
2415if eval "$MISSING --run true"; then
2416 am_missing_run="$MISSING --run "
2417else
2418 am_missing_run=
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2420$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2421fi
2422
2423if test x"${install_sh}" != xset; then
2424 case $am_aux_dir in
2425 *\ * | *\ *)
2426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2427 *)
2428 install_sh="\${SHELL} $am_aux_dir/install-sh"
2429 esac
2430fi
2431
2432# Installed binaries are usually stripped using `strip' when the user
2433# run `make install-strip'. However `strip' might not be the right
2434# tool to use in cross-compilation environments, therefore Automake
2435# will honor the `STRIP' environment variable to overrule this program.
2436if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439set dummy ${ac_tool_prefix}strip; ac_word=$2
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if test "${ac_cv_prog_STRIP+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444else
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460 done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465STRIP=$ac_cv_prog_STRIP
2466if test -n "$STRIP"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2468$as_echo "$STRIP" >&6; }
2469else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474
2475fi
2476if test -z "$ac_cv_prog_STRIP"; then
2477 ac_ct_STRIP=$STRIP
2478 # Extract the first word of "strip", so it can be a program name with args.
2479set dummy strip; ac_word=$2
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
2484else
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500 done
2501IFS=$as_save_IFS
2502
2503fi
2504fi
2505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506if test -n "$ac_ct_STRIP"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2508$as_echo "$ac_ct_STRIP" >&6; }
2509else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511$as_echo "no" >&6; }
2512fi
2513
2514 if test "x$ac_ct_STRIP" = x; then
2515 STRIP=":"
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518yes:)
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 STRIP=$ac_ct_STRIP
2524 fi
2525else
2526 STRIP="$ac_cv_prog_STRIP"
2527fi
2528
2529fi
2530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2531
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2533$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2534if test -z "$MKDIR_P"; then
2535 if test "${ac_cv_path_mkdir+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_prog in mkdir gmkdir; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2547 'mkdir (GNU coreutils) '* | \
2548 'mkdir (coreutils) '* | \
2549 'mkdir (fileutils) '4.1*)
2550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2551 break 3;;
2552 esac
2553 done
2554 done
2555 done
2556IFS=$as_save_IFS
2557
2558fi
2559
2560 if test "${ac_cv_path_mkdir+set}" = set; then
2561 MKDIR_P="$ac_cv_path_mkdir -p"
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for MKDIR_P within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 test -d ./--version && rmdir ./--version
2568 MKDIR_P="$ac_install_sh -d"
2569 fi
2570fi
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2572$as_echo "$MKDIR_P" >&6; }
2573
2574mkdir_p="$MKDIR_P"
2575case $mkdir_p in
2576 [\\/$]* | ?:[\\/]*) ;;
2577 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2578esac
2579
2580for ac_prog in gawk mawk nawk awk
2581do
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583set dummy $ac_prog; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
2586if test "${ac_cv_prog_AWK+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588else
2589 if test -n "$AWK"; then
2590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_AWK="$ac_prog"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603done
2604 done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609AWK=$ac_cv_prog_AWK
2610if test -n "$AWK"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2612$as_echo "$AWK" >&6; }
2613else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619 test -n "$AWK" && break
2620done
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2623$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2624set x ${MAKE-make}
2625ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2626if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2628else
2629 cat >conftest.make <<\_ACEOF
2630SHELL = /bin/sh
2631all:
2632 @echo '@@@%%%=$(MAKE)=@@@%%%'
2633_ACEOF
2634# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2635case `${MAKE-make} -f conftest.make 2>/dev/null` in
2636 *@@@%%%=?*=@@@%%%*)
2637 eval ac_cv_prog_make_${ac_make}_set=yes;;
2638 *)
2639 eval ac_cv_prog_make_${ac_make}_set=no;;
2640esac
2641rm -f conftest.make
2642fi
2643if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645$as_echo "yes" >&6; }
2646 SET_MAKE=
2647else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650 SET_MAKE="MAKE=${MAKE-make}"
2651fi
2652
2653rm -rf .tst 2>/dev/null
2654mkdir .tst 2>/dev/null
2655if test -d .tst; then
2656 am__leading_dot=.
2657else
2658 am__leading_dot=_
2659fi
2660rmdir .tst 2>/dev/null
2661
2662if test "`cd $srcdir && pwd`" != "`pwd`"; then
2663 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2664 # is not polluted with repeated "-I."
2665 am__isrc=' -I$(srcdir)'
2666 # test to see if srcdir already configured
2667 if test -f $srcdir/config.status; then
2668 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2669 fi
2670fi
2671
2672# test whether we have cygpath
2673if test -z "$CYGPATH_W"; then
2674 if (cygpath --version) >/dev/null 2>/dev/null; then
2675 CYGPATH_W='cygpath -w'
2676 else
2677 CYGPATH_W=echo
2678 fi
2679fi
2680
2681
2682# Define the identity of the package.
2683 PACKAGE='lto-plugin'
2684 VERSION='0.1'
2685
2686
2687cat >>confdefs.h <<_ACEOF
2688#define PACKAGE "$PACKAGE"
2689_ACEOF
2690
2691
2692cat >>confdefs.h <<_ACEOF
2693#define VERSION "$VERSION"
2694_ACEOF
2695
2696# Some tools Automake needs.
2697
2698ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2699
2700
2701AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2702
2703
2704AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2705
2706
2707AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2708
2709
2710MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2711
2712# We need awk for the "check" target. The system "awk" is bad on
2713# some platforms.
2714# Always define AMTAR for backward compatibility.
2715
2716AMTAR=${AMTAR-"${am_missing_run}tar"}
2717
2718am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2719
2720
2721
2722
2723
03428d41
RG
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2726$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2727 # Check whether --enable-maintainer-mode was given.
2728if test "${enable_maintainer_mode+set}" = set; then :
2729 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2730else
2731 USE_MAINTAINER_MODE=no
2732fi
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2735$as_echo "$USE_MAINTAINER_MODE" >&6; }
2736 if test $USE_MAINTAINER_MODE = yes; then
2737 MAINTAINER_MODE_TRUE=
2738 MAINTAINER_MODE_FALSE='#'
2739else
2740 MAINTAINER_MODE_TRUE='#'
2741 MAINTAINER_MODE_FALSE=
2742fi
2743
2744 MAINT=$MAINTAINER_MODE_TRUE
2745
2746
d7f09764
DN
2747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775 done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783$as_echo "$CC" >&6; }
2784else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790fi
2791if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794set dummy gcc; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2799else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814done
2815 done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
2824else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829 if test "x$ac_ct_CC" = x; then
2830 CC=""
2831 else
2832 case $cross_compiling:$ac_tool_warned in
2833yes:)
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836ac_tool_warned=yes ;;
2837esac
2838 CC=$ac_ct_CC
2839 fi
2840else
2841 CC="$ac_cv_prog_CC"
2842fi
2843
2844if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868 done
2869IFS=$as_save_IFS
2870
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876$as_echo "$CC" >&6; }
2877else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
2881
2882
2883 fi
2884fi
2885if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887set dummy cc; ac_word=$2
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895else
2896 ac_prog_rejected=no
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2906 continue
2907 fi
2908 ac_cv_prog_CC="cc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912done
2913 done
2914IFS=$as_save_IFS
2915
2916if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2919 shift
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2924 shift
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 fi
2927fi
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940fi
2941if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl.exe
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966done
2967 done
2968IFS=$as_save_IFS
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975$as_echo "$CC" >&6; }
2976else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981
2982 test -n "$CC" && break
2983 done
2984fi
2985if test -z "$CC"; then
2986 ac_ct_CC=$CC
2987 for ac_prog in cl.exe
2988do
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990set dummy $ac_prog; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="$ac_prog"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010done
3011 done
3012IFS=$as_save_IFS
3013
3014fi
3015fi
3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019$as_echo "$ac_ct_CC" >&6; }
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
3026 test -n "$ac_ct_CC" && break
3027done
3028
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033yes:)
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036ac_tool_warned=yes ;;
3037esac
3038 CC=$ac_ct_CC
3039 fi
3040fi
3041
3042fi
3043
3044
3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047as_fn_error "no acceptable C compiler found in \$PATH
3048See \`config.log' for more details." "$LINENO" 5; }
3049
3050# Provide some information about the compiler.
3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052set X $ac_compile
3053ac_compiler=$2
3054for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063 ac_status=$?
3064 if test -s conftest.err; then
3065 sed '10a\
3066... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3070 fi
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073done
3074
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086ac_clean_files_save=$ac_clean_files
3087ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3088# Try to create an executable without -o first, disregard a.out.
3089# It will help us diagnose broken compilers, and finding out an intuition
3090# of exeext.
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094
3095# The possible output files:
3096ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097
3098ac_rmfiles=
3099for ac_file in $ac_files
3100do
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 esac
3105done
3106rm -f $ac_rmfiles
3107
3108if { { ac_try="$ac_link_default"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121# in a Makefile. We should not override ac_cv_exeext if it was cached,
3122# so that the user can short-circuit this test for compilers unknown to
3123# Autoconf.
3124for ac_file in $ac_files ''
3125do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129 ;;
3130 [ab].out )
3131 # We found the default executable, but exeext='' is most
3132 # certainly right.
3133 break;;
3134 *.* )
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136 then :; else
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 fi
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3143 # actually working.
3144 break;;
3145 * )
3146 break;;
3147 esac
3148done
3149test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
3151else
3152 ac_file=''
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156if test -z "$ac_file"; then :
3157 $as_echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162{ as_fn_set_status 77
3163as_fn_error "C compiler cannot create executables
3164See \`config.log' for more details." "$LINENO" 5; }; }
3165fi
3166ac_exeext=$ac_cv_exeext
3167
3168# Check that the compiler produces executables we can run. If not, either
3169# the compiler is broken, or we cross compile.
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171$as_echo_n "checking whether the C compiler works... " >&6; }
3172# If not cross compiling, check that we can run a simple program.
3173if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error "cannot run C compiled programs.
3193If you meant to cross compile, use \`--host'.
3194See \`config.log' for more details." "$LINENO" 5; }
3195 fi
3196 fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200
3201rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3202ac_clean_files=$ac_clean_files_save
3203# Check that the compiler produces executables we can run. If not, either
3204# the compiler is broken, or we cross compile.
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206$as_echo_n "checking whether we are cross compiling... " >&6; }
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208$as_echo "$cross_compiling" >&6; }
3209
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211$as_echo_n "checking for suffix of executables... " >&6; }
3212if { { ac_try="$ac_link"
3213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225# work properly (i.e., refer to `conftest.exe'), while it won't with
3226# `rm'.
3227for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235done
3236else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error "cannot compute suffix of executables: cannot compile and link
3240See \`config.log' for more details." "$LINENO" 5; }
3241fi
3242rm -f conftest$ac_cv_exeext
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244$as_echo "$ac_cv_exeext" >&6; }
3245
3246rm -f conftest.$ac_ext
3247EXEEXT=$ac_cv_exeext
3248ac_exeext=$EXEEXT
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250$as_echo_n "checking for suffix of object files... " >&6; }
3251if test "${ac_cv_objext+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253else
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
3266if { { ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compile") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284done
3285else
3286 $as_echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error "cannot compute suffix of object files: cannot compile
3292See \`config.log' for more details." "$LINENO" 5; }
3293fi
3294rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297$as_echo "$ac_cv_objext" >&6; }
3298OBJEXT=$ac_cv_objext
3299ac_objext=$OBJEXT
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304else
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311#ifndef __GNUC__
3312 choke me
3313#endif
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_compiler_gnu=yes
3321else
3322 ac_compiler_gnu=no
3323fi
3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325ac_cv_c_compiler_gnu=$ac_compiler_gnu
3326
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330if test $ac_compiler_gnu = yes; then
3331 GCC=yes
3332else
3333 GCC=
3334fi
3335ac_test_CFLAGS=${CFLAGS+set}
3336ac_save_CFLAGS=$CFLAGS
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338$as_echo_n "checking whether $CC accepts -g... " >&6; }
3339if test "${ac_cv_prog_cc_g+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 ac_save_c_werror_flag=$ac_c_werror_flag
3343 ac_c_werror_flag=yes
3344 ac_cv_prog_cc_g=no
3345 CFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h. */
3348
3349int
3350main ()
3351{
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_g=yes
3359else
3360 CFLAGS=""
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363
3364int
3365main ()
3366{
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372if ac_fn_c_try_compile "$LINENO"; then :
3373
3374else
3375 ac_c_werror_flag=$ac_save_c_werror_flag
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379
3380int
3381main ()
3382{
3383
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399$as_echo "$ac_cv_prog_cc_g" >&6; }
3400if test "$ac_test_CFLAGS" = set; then
3401 CFLAGS=$ac_save_CFLAGS
3402elif test $ac_cv_prog_cc_g = yes; then
3403 if test "$GCC" = yes; then
3404 CFLAGS="-g -O2"
3405 else
3406 CFLAGS="-g"
3407 fi
3408else
3409 if test "$GCC" = yes; then
3410 CFLAGS="-O2"
3411 else
3412 CFLAGS=
3413 fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419else
3420 ac_cv_prog_cc_c89=no
3421ac_save_CC=$CC
3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h. */
3424#include <stdarg.h>
3425#include <stdio.h>
3426#include <sys/types.h>
3427#include <sys/stat.h>
3428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429struct buf { int x; };
3430FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431static char *e (p, i)
3432 char **p;
3433 int i;
3434{
3435 return p[i];
3436}
3437static char *f (char * (*g) (char **, int), char **p, ...)
3438{
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445}
3446
3447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458#define FOO(x) 'x'
3459int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461int test (int i, double x);
3462struct s1 {int (*f) (int a);};
3463struct s2 {int (*f) (double a);};
3464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465int argc;
3466char **argv;
3467int
3468main ()
3469{
3470return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477do
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
3481fi
3482rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3484done
3485rm -f conftest.$ac_ext
3486CC=$ac_save_CC
3487
3488fi
3489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493$as_echo "none needed" >&6; } ;;
3494 xno)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496$as_echo "unsupported" >&6; } ;;
3497 *)
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3501esac
3502if test "x$ac_cv_prog_cc_c89" != xno; then :
3503
3504fi
3505
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511DEPDIR="${am__leading_dot}deps"
3512
3513ac_config_commands="$ac_config_commands depfiles"
3514
3515
3516am_make=${MAKE-make}
3517cat > confinc << 'END'
3518am__doit:
3519 @echo this is the am__doit target
3520.PHONY: am__doit
3521END
3522# If we don't find an include directive, just comment out the code.
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3524$as_echo_n "checking for style of include used by $am_make... " >&6; }
3525am__include="#"
3526am__quote=
3527_am_result=none
3528# First try GNU make style include.
3529echo "include confinc" > confmf
3530# Ignore all kinds of additional output from `make'.
3531case `$am_make -s -f confmf 2> /dev/null` in #(
3532*the\ am__doit\ target*)
3533 am__include=include
3534 am__quote=
3535 _am_result=GNU
3536 ;;
3537esac
3538# Now try BSD make style include.
3539if test "$am__include" = "#"; then
3540 echo '.include "confinc"' > confmf
3541 case `$am_make -s -f confmf 2> /dev/null` in #(
3542 *the\ am__doit\ target*)
3543 am__include=.include
3544 am__quote="\""
3545 _am_result=BSD
3546 ;;
3547 esac
3548fi
3549
3550
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3552$as_echo "$_am_result" >&6; }
3553rm -f confinc confmf
3554
3555# Check whether --enable-dependency-tracking was given.
3556if test "${enable_dependency_tracking+set}" = set; then :
3557 enableval=$enable_dependency_tracking;
3558fi
3559
3560if test "x$enable_dependency_tracking" != xno; then
3561 am_depcomp="$ac_aux_dir/depcomp"
3562 AMDEPBACKSLASH='\'
3563fi
3564 if test "x$enable_dependency_tracking" != xno; then
3565 AMDEP_TRUE=
3566 AMDEP_FALSE='#'
3567else
3568 AMDEP_TRUE='#'
3569 AMDEP_FALSE=
3570fi
3571
3572
3573
3574depcc="$CC" am_compiler_list=
3575
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3577$as_echo_n "checking dependency style of $depcc... " >&6; }
3578if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3582 # We make a subdir and do the tests there. Otherwise we can end up
3583 # making bogus files that we don't know about and never remove. For
3584 # instance it was reported that on HP-UX the gcc test will end up
3585 # making a dummy file named `D' -- because `-MD' means `put the output
3586 # in D'.
3587 mkdir conftest.dir
3588 # Copy depcomp to subdir because otherwise we won't find it if we're
3589 # using a relative directory.
3590 cp "$am_depcomp" conftest.dir
3591 cd conftest.dir
3592 # We will build objects and dependencies in a subdirectory because
3593 # it helps to detect inapplicable dependency modes. For instance
3594 # both Tru64's cc and ICC support -MD to output dependencies as a
3595 # side effect of compilation, but ICC will put the dependencies in
3596 # the current directory while Tru64 will put them in the object
3597 # directory.
3598 mkdir sub
3599
3600 am_cv_CC_dependencies_compiler_type=none
3601 if test "$am_compiler_list" = ""; then
3602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 fi
3604 am__universal=false
3605 case " $depcc " in #(
3606 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3607 esac
3608
3609 for depmode in $am_compiler_list; do
3610 # Setup a source with many dependencies, because some compilers
3611 # like to wrap large dependency lists on column 80 (with \), and
3612 # we should not choose a depcomp mode which is confused by this.
3613 #
3614 # We need to recreate these files for each test, as the compiler may
3615 # overwrite some of them when testing with obscure command lines.
3616 # This happens at least with the AIX C compiler.
3617 : > sub/conftest.c
3618 for i in 1 2 3 4 5 6; do
3619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3620 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3621 # Solaris 8's {/usr,}/bin/sh.
3622 touch sub/conftst$i.h
3623 done
3624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3625
3626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3627 # mode. It turns out that the SunPro C++ compiler does not properly
3628 # handle `-M -o', and we need to detect this. Also, some Intel
3629 # versions had trouble with output in subdirs
3630 am__obj=sub/conftest.${OBJEXT-o}
3631 am__minus_obj="-o $am__obj"
3632 case $depmode in
3633 gcc)
3634 # This depmode causes a compiler race in universal mode.
3635 test "$am__universal" = false || continue
3636 ;;
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3644 fi
3645 ;;
3646 msvisualcpp | msvcmsys)
3647 # This compiler won't grok `-c -o', but also, the minuso test has
3648 # not run yet. These depmodes are late enough in the game, and
3649 # so weak that their functioning should not be impacted.
3650 am__obj=conftest.${OBJEXT-o}
3651 am__minus_obj=
3652 ;;
3653 none) break ;;
3654 esac
3655 if depmode=$depmode \
3656 source=sub/conftest.c object=$am__obj \
3657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3659 >/dev/null 2>conftest.err &&
3660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3664 # icc doesn't choke on unknown options, it will just issue warnings
3665 # or remarks (even with -Werror). So we grep stderr for any message
3666 # that says an option was ignored or not supported.
3667 # When given -MP, icc 7.0 and 7.1 complain thusly:
3668 # icc: Command line warning: ignoring option '-M'; no argument required
3669 # The diagnosis changed in icc 8.0:
3670 # icc: Command line remark: option '-MP' not supported
3671 if (grep 'ignoring option' conftest.err ||
3672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3673 am_cv_CC_dependencies_compiler_type=$depmode
3674 break
3675 fi
3676 fi
3677 done
3678
3679 cd ..
3680 rm -rf conftest.dir
3681else
3682 am_cv_CC_dependencies_compiler_type=none
3683fi
3684
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3687$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3688CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3689
3690 if
3691 test "x$enable_dependency_tracking" != xno \
3692 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3693 am__fastdepCC_TRUE=
3694 am__fastdepCC_FALSE='#'
3695else
3696 am__fastdepCC_TRUE='#'
3697 am__fastdepCC_FALSE=
3698fi
3699
3700
3701
4c0f4b0b
DG
3702# Check whether --enable-largefile was given.
3703if test "${enable_largefile+set}" = set; then :
3704 enableval=$enable_largefile;
3705fi
3706
3707if test "$enable_largefile" != no; then
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3710$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3711if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713else
3714 ac_cv_sys_largefile_CC=no
3715 if test "$GCC" != yes; then
3716 ac_save_CC=$CC
3717 while :; do
3718 # IRIX 6.2 and later do not support large files by default,
3719 # so use the C compiler's -n32 option if that helps.
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h. */
3722#include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725 since some C++ compilers masquerading as C compilers
3726 incorrectly reject 9223372036854775807. */
3727#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729 && LARGE_OFF_T % 2147483647 == 1)
3730 ? 1 : -1];
3731int
3732main ()
3733{
3734
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 break
3741fi
3742rm -f core conftest.err conftest.$ac_objext
3743 CC="$CC -n32"
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_sys_largefile_CC=' -n32'; break
3746fi
3747rm -f core conftest.err conftest.$ac_objext
3748 break
3749 done
3750 CC=$ac_save_CC
3751 rm -f conftest.$ac_ext
3752 fi
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3755$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3756 if test "$ac_cv_sys_largefile_CC" != no; then
3757 CC=$CC$ac_cv_sys_largefile_CC
3758 fi
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3761$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3762if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764else
3765 while :; do
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h. */
3768#include <sys/types.h>
3769 /* Check that off_t can represent 2**63 - 1 correctly.
3770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3771 since some C++ compilers masquerading as C compilers
3772 incorrectly reject 9223372036854775807. */
3773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3775 && LARGE_OFF_T % 2147483647 == 1)
3776 ? 1 : -1];
3777int
3778main ()
3779{
3780
3781 ;
3782 return 0;
3783}
3784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_sys_file_offset_bits=no; break
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h. */
3791#define _FILE_OFFSET_BITS 64
3792#include <sys/types.h>
3793 /* Check that off_t can represent 2**63 - 1 correctly.
3794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3795 since some C++ compilers masquerading as C compilers
3796 incorrectly reject 9223372036854775807. */
3797#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3799 && LARGE_OFF_T % 2147483647 == 1)
3800 ? 1 : -1];
3801int
3802main ()
3803{
3804
3805 ;
3806 return 0;
3807}
3808_ACEOF
3809if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_sys_file_offset_bits=64; break
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_sys_file_offset_bits=unknown
3814 break
3815done
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3818$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3819case $ac_cv_sys_file_offset_bits in #(
3820 no | unknown) ;;
3821 *)
3822cat >>confdefs.h <<_ACEOF
3823#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3824_ACEOF
3825;;
3826esac
3827rm -rf conftest*
3828 if test $ac_cv_sys_file_offset_bits = unknown; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3830$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3831if test "${ac_cv_sys_large_files+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3833else
3834 while :; do
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h. */
3837#include <sys/types.h>
3838 /* Check that off_t can represent 2**63 - 1 correctly.
3839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3840 since some C++ compilers masquerading as C compilers
3841 incorrectly reject 9223372036854775807. */
3842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3844 && LARGE_OFF_T % 2147483647 == 1)
3845 ? 1 : -1];
3846int
3847main ()
3848{
3849
3850 ;
3851 return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_sys_large_files=no; break
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860#define _LARGE_FILES 1
3861#include <sys/types.h>
3862 /* Check that off_t can represent 2**63 - 1 correctly.
3863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3864 since some C++ compilers masquerading as C compilers
3865 incorrectly reject 9223372036854775807. */
3866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3868 && LARGE_OFF_T % 2147483647 == 1)
3869 ? 1 : -1];
3870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_sys_large_files=1; break
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_sys_large_files=unknown
3883 break
3884done
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3887$as_echo "$ac_cv_sys_large_files" >&6; }
3888case $ac_cv_sys_large_files in #(
3889 no | unknown) ;;
3890 *)
3891cat >>confdefs.h <<_ACEOF
3892#define _LARGE_FILES $ac_cv_sys_large_files
3893_ACEOF
3894;;
3895esac
3896rm -rf conftest*
3897 fi
3898fi
3899
3900
d7f09764
DN
3901
3902case `pwd` in
3903 *\ * | *\ *)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3905$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3906esac
3907
3908
3909
52327858
L
3910macro_version='2.2.7a'
3911macro_revision='1.3134'
d7f09764
DN
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925ltmain="$ac_aux_dir/ltmain.sh"
3926
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3928$as_echo_n "checking host system type... " >&6; }
3929if test "${ac_cv_host+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931else
3932 if test "x$host_alias" = x; then
3933 ac_cv_host=$ac_cv_build
3934else
3935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3936 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3937fi
3938
3939fi
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3941$as_echo "$ac_cv_host" >&6; }
3942case $ac_cv_host in
3943*-*-*) ;;
3944*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3945esac
3946host=$ac_cv_host
3947ac_save_IFS=$IFS; IFS='-'
3948set x $ac_cv_host
3949shift
3950host_cpu=$1
3951host_vendor=$2
3952shift; shift
3953# Remember, the first character of IFS is used to create $*,
3954# except with old shells:
3955host_os=$*
3956IFS=$ac_save_IFS
3957case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3958
3959
52327858
L
3960# Backslashify metacharacters that are still active within
3961# double-quoted strings.
3962sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3963
3964# Same as above, but do not quote variable references.
3965double_quote_subst='s/\(["`\\]\)/\\\1/g'
3966
3967# Sed substitution to delay expansion of an escaped shell variable in a
3968# double_quote_subst'ed string.
3969delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3970
3971# Sed substitution to delay expansion of an escaped single quote.
3972delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3973
3974# Sed substitution to avoid accidental globbing in evaled expressions
3975no_glob_subst='s/\*/\\\*/g'
3976
3977ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3978ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3979ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3980
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3982$as_echo_n "checking how to print strings... " >&6; }
3983# Test print first, because it will be a builtin if present.
3984if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3985 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3986 ECHO='print -r --'
3987elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3988 ECHO='printf %s\n'
3989else
3990 # Use this function as a fallback that always works.
3991 func_fallback_echo ()
3992 {
3993 eval 'cat <<_LTECHO_EOF
3994$1
3995_LTECHO_EOF'
3996 }
3997 ECHO='func_fallback_echo'
3998fi
3999
4000# func_echo_all arg...
4001# Invoke $ECHO with all args, space-separated.
4002func_echo_all ()
4003{
4004 $ECHO ""
4005}
4006
4007case "$ECHO" in
4008 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4009$as_echo "printf" >&6; } ;;
4010 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4011$as_echo "print -r" >&6; } ;;
4012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4013$as_echo "cat" >&6; } ;;
4014esac
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
d7f09764
DN
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4030$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4031if test "${ac_cv_path_SED+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033else
4034 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4035 for ac_i in 1 2 3 4 5 6 7; do
4036 ac_script="$ac_script$as_nl$ac_script"
4037 done
4038 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4039 { ac_script=; unset ac_script;}
4040 if test -z "$SED"; then
4041 ac_path_SED_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_prog in sed gsed; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4051 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4052# Check for GNU ac_path_SED and select it if it is found.
4053 # Check for GNU $ac_path_SED
4054case `"$ac_path_SED" --version 2>&1` in
4055*GNU*)
4056 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4057*)
4058 ac_count=0
4059 $as_echo_n 0123456789 >"conftest.in"
4060 while :
4061 do
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
4065 $as_echo '' >> "conftest.nl"
4066 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068 as_fn_arith $ac_count + 1 && ac_count=$as_val
4069 if test $ac_count -gt ${ac_path_SED_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_SED="$ac_path_SED"
4072 ac_path_SED_max=$ac_count
4073 fi
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4076 done
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078esac
4079
4080 $ac_path_SED_found && break 3
4081 done
4082 done
4083 done
4084IFS=$as_save_IFS
4085 if test -z "$ac_cv_path_SED"; then
4086 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4087 fi
4088else
4089 ac_cv_path_SED=$SED
4090fi
4091
4092fi
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4094$as_echo "$ac_cv_path_SED" >&6; }
4095 SED="$ac_cv_path_SED"
4096 rm -f conftest.sed
4097
4098test -z "$SED" && SED=sed
4099Xsed="$SED -e 1s/^X//"
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4112$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4113if test "${ac_cv_path_GREP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if test -z "$GREP"; then
4117 ac_path_GREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in grep ggrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4128# Check for GNU ac_path_GREP and select it if it is found.
4129 # Check for GNU $ac_path_GREP
4130case `"$ac_path_GREP" --version 2>&1` in
4131*GNU*)
4132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4133*)
4134 ac_count=0
4135 $as_echo_n 0123456789 >"conftest.in"
4136 while :
4137 do
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'GREP' >> "conftest.nl"
4142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 as_fn_arith $ac_count + 1 && ac_count=$as_val
4145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_GREP="$ac_path_GREP"
4148 ac_path_GREP_max=$ac_count
4149 fi
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4152 done
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154esac
4155
4156 $ac_path_GREP_found && break 3
4157 done
4158 done
4159 done
4160IFS=$as_save_IFS
4161 if test -z "$ac_cv_path_GREP"; then
4162 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4163 fi
4164else
4165 ac_cv_path_GREP=$GREP
4166fi
4167
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4170$as_echo "$ac_cv_path_GREP" >&6; }
4171 GREP="$ac_cv_path_GREP"
4172
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4175$as_echo_n "checking for egrep... " >&6; }
4176if test "${ac_cv_path_EGREP+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 if test -z "$EGREP"; then
4183 ac_path_EGREP_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194# Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196case `"$ac_path_EGREP" --version 2>&1` in
4197*GNU*)
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4199*)
4200 ac_count=0
4201 $as_echo_n 0123456789 >"conftest.in"
4202 while :
4203 do
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4215 fi
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220esac
4221
4222 $ac_path_EGREP_found && break 3
4223 done
4224 done
4225 done
4226IFS=$as_save_IFS
4227 if test -z "$ac_cv_path_EGREP"; then
4228 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4229 fi
4230else
4231 ac_cv_path_EGREP=$EGREP
4232fi
4233
4234 fi
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4237$as_echo "$ac_cv_path_EGREP" >&6; }
4238 EGREP="$ac_cv_path_EGREP"
4239
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4242$as_echo_n "checking for fgrep... " >&6; }
4243if test "${ac_cv_path_FGREP+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4247 then ac_cv_path_FGREP="$GREP -F"
4248 else
4249 if test -z "$FGREP"; then
4250 ac_path_FGREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in fgrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4261# Check for GNU ac_path_FGREP and select it if it is found.
4262 # Check for GNU $ac_path_FGREP
4263case `"$ac_path_FGREP" --version 2>&1` in
4264*GNU*)
4265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4266*)
4267 ac_count=0
4268 $as_echo_n 0123456789 >"conftest.in"
4269 while :
4270 do
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo 'FGREP' >> "conftest.nl"
4275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_FGREP="$ac_path_FGREP"
4281 ac_path_FGREP_max=$ac_count
4282 fi
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4285 done
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287esac
4288
4289 $ac_path_FGREP_found && break 3
4290 done
4291 done
4292 done
4293IFS=$as_save_IFS
4294 if test -z "$ac_cv_path_FGREP"; then
4295 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 fi
4297else
4298 ac_cv_path_FGREP=$FGREP
4299fi
4300
4301 fi
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4304$as_echo "$ac_cv_path_FGREP" >&6; }
4305 FGREP="$ac_cv_path_FGREP"
4306
4307
4308test -z "$GREP" && GREP=grep
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328# Check whether --with-gnu-ld was given.
4329if test "${with_gnu_ld+set}" = set; then :
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4331else
4332 with_gnu_ld=no
4333fi
4334
4335ac_prog=ld
4336if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4339$as_echo_n "checking for ld used by $CC... " >&6; }
4340 case $host in
4341 *-*-mingw*)
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4344 *)
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 esac
4347 case $ac_prog in
4348 # Accept absolute paths.
4349 [\\/]* | ?:[\\/]*)
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4355 done
4356 test -z "$LD" && LD="$ac_prog"
4357 ;;
4358 "")
4359 # If it fails, then pretend we aren't using GCC.
4360 ac_prog=ld
4361 ;;
4362 *)
4363 # If it is relative, then search for the first ld in PATH.
4364 with_gnu_ld=unknown
4365 ;;
4366 esac
4367elif test "$with_gnu_ld" = yes; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4369$as_echo_n "checking for GNU ld... " >&6; }
4370else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4372$as_echo_n "checking for non-GNU ld... " >&6; }
4373fi
4374if test "${lt_cv_path_LD+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4380 IFS="$lt_save_ifs"
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4390 ;;
4391 *)
4392 test "$with_gnu_ld" != yes && break
4393 ;;
4394 esac
4395 fi
4396 done
4397 IFS="$lt_save_ifs"
4398else
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4400fi
4401fi
4402
4403LD="$lt_cv_path_LD"
4404if test -n "$LD"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4406$as_echo "$LD" >&6; }
4407else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410fi
4411test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4413$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4414if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416else
4417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4418case `$LD -v 2>&1 </dev/null` in
4419*GNU* | *'with BFD'*)
4420 lt_cv_prog_gnu_ld=yes
4421 ;;
4422*)
4423 lt_cv_prog_gnu_ld=no
4424 ;;
4425esac
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4428$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4429with_gnu_ld=$lt_cv_prog_gnu_ld
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4440$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4441if test "${lt_cv_path_NM+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443else
4444 if test -n "$NM"; then
4445 # Let the user override the test.
4446 lt_cv_path_NM="$NM"
4447else
4448 lt_nm_to_check="${ac_tool_prefix}nm"
4449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4450 lt_nm_to_check="$lt_nm_to_check nm"
4451 fi
4452 for lt_tmp_nm in $lt_nm_to_check; do
4453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4455 IFS="$lt_save_ifs"
4456 test -z "$ac_dir" && ac_dir=.
4457 tmp_nm="$ac_dir/$lt_tmp_nm"
4458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4459 # Check to see if the nm accepts a BSD-compat flag.
4460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4461 # nm: unknown option "B" ignored
4462 # Tru64's nm complains that /dev/null is an invalid object file
4463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4464 */dev/null* | *'Invalid file or object type'*)
4465 lt_cv_path_NM="$tmp_nm -B"
4466 break
4467 ;;
4468 *)
4469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4470 */dev/null*)
4471 lt_cv_path_NM="$tmp_nm -p"
4472 break
4473 ;;
4474 *)
4475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4476 continue # so that we can try to find one that supports BSD flags
4477 ;;
4478 esac
4479 ;;
4480 esac
4481 fi
4482 done
4483 IFS="$lt_save_ifs"
4484 done
4485 : ${lt_cv_path_NM=no}
4486fi
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4489$as_echo "$lt_cv_path_NM" >&6; }
4490if test "$lt_cv_path_NM" != "no"; then
4491 NM="$lt_cv_path_NM"
4492else
4493 # Didn't find any BSD compatible name lister, look for dumpbin.
52327858
L
4494 if test -n "$DUMPBIN"; then :
4495 # Let the user override the test.
4496 else
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in dumpbin "link -dump"
d7f09764
DN
4499 do
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4506else
4507 if test -n "$DUMPBIN"; then
4508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521done
4522 done
4523IFS=$as_save_IFS
4524
4525fi
4526fi
4527DUMPBIN=$ac_cv_prog_DUMPBIN
4528if test -n "$DUMPBIN"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4530$as_echo "$DUMPBIN" >&6; }
4531else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534fi
4535
4536
4537 test -n "$DUMPBIN" && break
4538 done
4539fi
4540if test -z "$DUMPBIN"; then
4541 ac_ct_DUMPBIN=$DUMPBIN
52327858 4542 for ac_prog in dumpbin "link -dump"
d7f09764
DN
4543do
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545set dummy $ac_prog; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$ac_ct_DUMPBIN"; then
4552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4572if test -n "$ac_ct_DUMPBIN"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4574$as_echo "$ac_ct_DUMPBIN" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581 test -n "$ac_ct_DUMPBIN" && break
4582done
4583
4584 if test "x$ac_ct_DUMPBIN" = x; then
4585 DUMPBIN=":"
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588yes:)
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593 DUMPBIN=$ac_ct_DUMPBIN
4594 fi
4595fi
4596
52327858
L
4597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4598 *COFF*)
4599 DUMPBIN="$DUMPBIN -symbols"
4600 ;;
4601 *)
4602 DUMPBIN=:
4603 ;;
4604 esac
4605 fi
d7f09764
DN
4606
4607 if test "$DUMPBIN" != ":"; then
4608 NM="$DUMPBIN"
4609 fi
4610fi
4611test -z "$NM" && NM=nm
4612
4613
4614
4615
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4619$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4620if test "${lt_cv_nm_interface+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622else
4623 lt_cv_nm_interface="BSD nm"
4624 echo "int some_variable = 0;" > conftest.$ac_ext
52327858 4625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7f09764
DN
4626 (eval "$ac_compile" 2>conftest.err)
4627 cat conftest.err >&5
52327858 4628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7f09764
DN
4629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4630 cat conftest.err >&5
52327858 4631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7f09764
DN
4632 cat conftest.out >&5
4633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4634 lt_cv_nm_interface="MS dumpbin"
4635 fi
4636 rm -f conftest*
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4639$as_echo "$lt_cv_nm_interface" >&6; }
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4642$as_echo_n "checking whether ln -s works... " >&6; }
4643LN_S=$as_ln_s
4644if test "$LN_S" = "ln -s"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646$as_echo "yes" >&6; }
4647else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4649$as_echo "no, using $LN_S" >&6; }
4650fi
4651
4652# find the maximum length of command line arguments
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4654$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4655if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657else
4658 i=0
4659 teststring="ABCD"
4660
4661 case $build_os in
4662 msdosdjgpp*)
4663 # On DJGPP, this test can blow up pretty badly due to problems in libc
4664 # (any single argument exceeding 2000 bytes causes a buffer overrun
4665 # during glob expansion). Even if it were fixed, the result of this
4666 # check would be larger than it should be.
4667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4668 ;;
4669
4670 gnu*)
4671 # Under GNU Hurd, this test is not required because there is
4672 # no limit to the length of command line arguments.
4673 # Libtool will interpret -1 as no limit whatsoever
4674 lt_cv_sys_max_cmd_len=-1;
4675 ;;
4676
4677 cygwin* | mingw* | cegcc*)
4678 # On Win9x/ME, this test blows up -- it succeeds, but takes
4679 # about 5 minutes as the teststring grows exponentially.
4680 # Worse, since 9x/ME are not pre-emptively multitasking,
4681 # you end up with a "frozen" computer, even though with patience
4682 # the test eventually succeeds (with a max line length of 256k).
4683 # Instead, let's just punt: use the minimum linelength reported by
4684 # all of the supported platforms: 8192 (on NT/2K/XP).
4685 lt_cv_sys_max_cmd_len=8192;
4686 ;;
4687
52327858
L
4688 mint*)
4689 # On MiNT this can take a long time and run out of memory.
4690 lt_cv_sys_max_cmd_len=8192;
4691 ;;
4692
d7f09764
DN
4693 amigaos*)
4694 # On AmigaOS with pdksh, this test takes hours, literally.
4695 # So we just punt and use a minimum line length of 8192.
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
4699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4700 # This has been around since 386BSD, at least. Likely further.
4701 if test -x /sbin/sysctl; then
4702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4703 elif test -x /usr/sbin/sysctl; then
4704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4705 else
4706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4707 fi
4708 # And add a safety zone
4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4711 ;;
4712
4713 interix*)
4714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4715 lt_cv_sys_max_cmd_len=196608
4716 ;;
4717
4718 osf*)
4719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4721 # nice to cause kernel panics so lets avoid the loop below.
4722 # First set a reasonable default.
4723 lt_cv_sys_max_cmd_len=16384
4724 #
4725 if test -x /sbin/sysconfig; then
4726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4728 esac
4729 fi
4730 ;;
4731 sco3.2v5*)
4732 lt_cv_sys_max_cmd_len=102400
4733 ;;
4734 sysv5* | sco5v6* | sysv4.2uw2*)
4735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4736 if test -n "$kargmax"; then
4737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4738 else
4739 lt_cv_sys_max_cmd_len=32768
4740 fi
4741 ;;
4742 *)
4743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4744 if test -n "$lt_cv_sys_max_cmd_len"; then
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747 else
4748 # Make teststring a little bigger before we do anything with it.
4749 # a 1K string should be a reasonable start.
4750 for i in 1 2 3 4 5 6 7 8 ; do
4751 teststring=$teststring$teststring
4752 done
4753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754 # If test is not a shell built-in, we'll probably end up computing a
4755 # maximum length that is only half of the actual maximum length, but
4756 # we can't tell.
52327858
L
4757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d7f09764
DN
4759 test $i != 17 # 1/2 MB should be enough
4760 do
4761 i=`expr $i + 1`
4762 teststring=$teststring$teststring
4763 done
4764 # Only check the string length outside the loop.
4765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4766 teststring=
4767 # Add a significant safety factor because C++ compilers can tack on
4768 # massive amounts of additional arguments before passing them to the
4769 # linker. It appears as though 1/2 is a usable value.
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771 fi
4772 ;;
4773 esac
4774
4775fi
4776
4777if test -n $lt_cv_sys_max_cmd_len ; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4779$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4780else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4782$as_echo "none" >&6; }
4783fi
4784max_cmd_len=$lt_cv_sys_max_cmd_len
4785
4786
4787
4788
4789
4790
4791: ${CP="cp -f"}
4792: ${MV="mv -f"}
4793: ${RM="rm -f"}
4794
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4796$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4797# Try some XSI features
4798xsi_shell=no
4799( _lt_dummy="a/b/c"
4800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4801 = c,a/b,, \
4802 && eval 'test $(( 1 + 1 )) -eq 2 \
4803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4804 && xsi_shell=yes
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4806$as_echo "$xsi_shell" >&6; }
4807
4808
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4810$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4811lt_shell_append=no
4812( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4813 >/dev/null 2>&1 \
4814 && lt_shell_append=yes
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4816$as_echo "$lt_shell_append" >&6; }
4817
4818
4819if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4820 lt_unset=unset
4821else
4822 lt_unset=false
4823fi
4824
4825
4826
4827
4828
4829# test EBCDIC or ASCII
4830case `echo X|tr X '\101'` in
4831 A) # ASCII based system
4832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4833 lt_SP2NL='tr \040 \012'
4834 lt_NL2SP='tr \015\012 \040\040'
4835 ;;
4836 *) # EBCDIC based system
4837 lt_SP2NL='tr \100 \n'
4838 lt_NL2SP='tr \r\n \100\100'
4839 ;;
4840esac
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4851$as_echo_n "checking for $LD option to reload object files... " >&6; }
4852if test "${lt_cv_ld_reload_flag+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854else
4855 lt_cv_ld_reload_flag='-r'
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4858$as_echo "$lt_cv_ld_reload_flag" >&6; }
4859reload_flag=$lt_cv_ld_reload_flag
4860case $reload_flag in
4861"" | " "*) ;;
4862*) reload_flag=" $reload_flag" ;;
4863esac
4864reload_cmds='$LD$reload_flag -o $output$reload_objs'
4865case $host_os in
4866 darwin*)
4867 if test "$GCC" = yes; then
4868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4869 else
4870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4871 fi
4872 ;;
4873esac
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885set dummy ${ac_tool_prefix}objdump; ac_word=$2
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
4888if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890else
4891 if test -n "$OBJDUMP"; then
4892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905done
4906 done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911OBJDUMP=$ac_cv_prog_OBJDUMP
4912if test -n "$OBJDUMP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914$as_echo "$OBJDUMP" >&6; }
4915else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918fi
4919
4920
4921fi
4922if test -z "$ac_cv_prog_OBJDUMP"; then
4923 ac_ct_OBJDUMP=$OBJDUMP
4924 # Extract the first word of "objdump", so it can be a program name with args.
4925set dummy objdump; ac_word=$2
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930else
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945done
4946 done
4947IFS=$as_save_IFS
4948
4949fi
4950fi
4951ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952if test -n "$ac_ct_OBJDUMP"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954$as_echo "$ac_ct_OBJDUMP" >&6; }
4955else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960 if test "x$ac_ct_OBJDUMP" = x; then
4961 OBJDUMP="false"
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964yes:)
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967ac_tool_warned=yes ;;
4968esac
4969 OBJDUMP=$ac_ct_OBJDUMP
4970 fi
4971else
4972 OBJDUMP="$ac_cv_prog_OBJDUMP"
4973fi
4974
4975test -z "$OBJDUMP" && OBJDUMP=objdump
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987if test "${lt_cv_deplibs_check_method+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989else
4990 lt_cv_file_magic_cmd='$MAGIC_CMD'
4991lt_cv_file_magic_test_file=
4992lt_cv_deplibs_check_method='unknown'
4993# Need to set the preceding variable on all platforms that support
4994# interlibrary dependencies.
4995# 'none' -- dependencies not supported.
4996# `unknown' -- same as none, but documents that we really don't know.
4997# 'pass_all' -- all dependencies passed with no checks.
4998# 'test_compile' -- check by making test program.
4999# 'file_magic [[regex]]' -- check by looking for files in library path
5000# which responds to the $file_magic_cmd with a given extended regex.
5001# If you have `file' or equivalent on your system and you're not sure
5002# whether `pass_all' will *always* work, you probably want this one.
5003
5004case $host_os in
5005aix[4-9]*)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008
5009beos*)
5010 lt_cv_deplibs_check_method=pass_all
5011 ;;
5012
5013bsdi[45]*)
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015 lt_cv_file_magic_cmd='/usr/bin/file -L'
5016 lt_cv_file_magic_test_file=/shlib/libc.so
5017 ;;
5018
5019cygwin*)
5020 # func_win32_libid is a shell function defined in ltmain.sh
5021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022 lt_cv_file_magic_cmd='func_win32_libid'
5023 ;;
5024
5025mingw* | pw32*)
5026 # Base MSYS/MinGW do not provide the 'file' command needed by
5027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028 # unless we find 'file', for example because we are cross-compiling.
52327858
L
5029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032 lt_cv_file_magic_cmd='func_win32_libid'
5033 else
5034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5035 lt_cv_file_magic_cmd='$OBJDUMP -f'
5036 fi
5037 ;;
5038
52327858 5039cegcc*)
d7f09764
DN
5040 # use the weaker test based on 'objdump'. See mingw*.
5041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5042 lt_cv_file_magic_cmd='$OBJDUMP -f'
5043 ;;
5044
5045darwin* | rhapsody*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048
5049freebsd* | dragonfly*)
5050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5051 case $host_cpu in
5052 i*86 )
5053 # Not sure whether the presence of OpenBSD here was a mistake.
5054 # Let's accept both of them until this is cleared up.
5055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5056 lt_cv_file_magic_cmd=/usr/bin/file
5057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5058 ;;
5059 esac
5060 else
5061 lt_cv_deplibs_check_method=pass_all
5062 fi
5063 ;;
5064
5065gnu*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
52327858
L
5069haiku*)
5070 lt_cv_deplibs_check_method=pass_all
5071 ;;
5072
d7f09764
DN
5073hpux10.20* | hpux11*)
5074 lt_cv_file_magic_cmd=/usr/bin/file
5075 case $host_cpu in
5076 ia64*)
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5079 ;;
5080 hppa*64*)
52327858 5081 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
5082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5083 ;;
5084 *)
52327858 5085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
5086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5087 ;;
5088 esac
5089 ;;
5090
5091interix[3-9]*)
5092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5094 ;;
5095
5096irix5* | irix6* | nonstopux*)
5097 case $LD in
5098 *-32|*"-32 ") libmagic=32-bit;;
5099 *-n32|*"-n32 ") libmagic=N32;;
5100 *-64|*"-64 ") libmagic=64-bit;;
5101 *) libmagic=never-match;;
5102 esac
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105
5106# This must be Linux ELF.
5107linux* | k*bsd*-gnu | kopensolaris*-gnu)
5108 lt_cv_deplibs_check_method=pass_all
5109 ;;
5110
5111netbsd*)
5112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5114 else
5115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5116 fi
5117 ;;
5118
5119newos6*)
5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5121 lt_cv_file_magic_cmd=/usr/bin/file
5122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5123 ;;
5124
5125*nto* | *qnx*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129openbsd*)
5130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5132 else
5133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5134 fi
5135 ;;
5136
5137osf3* | osf4* | osf5*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141rdos*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145solaris*)
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
5148
5149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
5152
5153sysv4 | sysv4.3*)
5154 case $host_vendor in
5155 motorola)
5156 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]'
5157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5158 ;;
5159 ncr)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162 sequent)
5163 lt_cv_file_magic_cmd='/bin/file'
5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5165 ;;
5166 sni)
5167 lt_cv_file_magic_cmd='/bin/file'
5168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5169 lt_cv_file_magic_test_file=/lib/libc.so
5170 ;;
5171 siemens)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174 pc)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177 esac
5178 ;;
5179
5180tpf*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183esac
5184
5185fi
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5187$as_echo "$lt_cv_deplibs_check_method" >&6; }
5188file_magic_cmd=$lt_cv_file_magic_cmd
5189deplibs_check_method=$lt_cv_deplibs_check_method
5190test -z "$deplibs_check_method" && deplibs_check_method=unknown
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5205set dummy ${ac_tool_prefix}ar; ac_word=$2
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
5208if test "${ac_cv_prog_AR+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210else
5211 if test -n "$AR"; then
5212 ac_cv_prog_AR="$AR" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_AR="${ac_tool_prefix}ar"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226 done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231AR=$ac_cv_prog_AR
5232if test -n "$AR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5234$as_echo "$AR" >&6; }
5235else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
5238fi
5239
5240
5241fi
5242if test -z "$ac_cv_prog_AR"; then
5243 ac_ct_AR=$AR
5244 # Extract the first word of "ar", so it can be a program name with args.
5245set dummy ar; ac_word=$2
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
5248if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250else
5251 if test -n "$ac_ct_AR"; then
5252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_ac_ct_AR="ar"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266 done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271ac_ct_AR=$ac_cv_prog_ac_ct_AR
5272if test -n "$ac_ct_AR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5274$as_echo "$ac_ct_AR" >&6; }
5275else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
5280 if test "x$ac_ct_AR" = x; then
5281 AR="false"
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284yes:)
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287ac_tool_warned=yes ;;
5288esac
5289 AR=$ac_ct_AR
5290 fi
5291else
5292 AR="$ac_cv_prog_AR"
5293fi
5294
5295test -z "$AR" && AR=ar
5296test -z "$AR_FLAGS" && AR_FLAGS=cru
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5310set dummy ${ac_tool_prefix}strip; ac_word=$2
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if test "${ac_cv_prog_STRIP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 if test -n "$STRIP"; then
5317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330done
5331 done
5332IFS=$as_save_IFS
5333
5334fi
5335fi
5336STRIP=$ac_cv_prog_STRIP
5337if test -n "$STRIP"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5339$as_echo "$STRIP" >&6; }
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343fi
5344
5345
5346fi
5347if test -z "$ac_cv_prog_STRIP"; then
5348 ac_ct_STRIP=$STRIP
5349 # Extract the first word of "strip", so it can be a program name with args.
5350set dummy strip; ac_word=$2
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352$as_echo_n "checking for $ac_word... " >&6; }
5353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355else
5356 if test -n "$ac_ct_STRIP"; then
5357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_ac_ct_STRIP="strip"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370done
5371 done
5372IFS=$as_save_IFS
5373
5374fi
5375fi
5376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5377if test -n "$ac_ct_STRIP"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5379$as_echo "$ac_ct_STRIP" >&6; }
5380else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383fi
5384
5385 if test "x$ac_ct_STRIP" = x; then
5386 STRIP=":"
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389yes:)
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392ac_tool_warned=yes ;;
5393esac
5394 STRIP=$ac_ct_STRIP
5395 fi
5396else
5397 STRIP="$ac_cv_prog_STRIP"
5398fi
5399
5400test -z "$STRIP" && STRIP=:
5401
5402
5403
5404
5405
5406
5407if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if test "${ac_cv_prog_RANLIB+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 if test -n "$RANLIB"; then
5416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5417else
5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429done
5430 done
5431IFS=$as_save_IFS
5432
5433fi
5434fi
5435RANLIB=$ac_cv_prog_RANLIB
5436if test -n "$RANLIB"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5438$as_echo "$RANLIB" >&6; }
5439else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442fi
5443
5444
5445fi
5446if test -z "$ac_cv_prog_RANLIB"; then
5447 ac_ct_RANLIB=$RANLIB
5448 # Extract the first word of "ranlib", so it can be a program name with args.
5449set dummy ranlib; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454else
5455 if test -n "$ac_ct_RANLIB"; then
5456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_RANLIB="ranlib"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470 done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5476if test -n "$ac_ct_RANLIB"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5478$as_echo "$ac_ct_RANLIB" >&6; }
5479else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484 if test "x$ac_ct_RANLIB" = x; then
5485 RANLIB=":"
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488yes:)
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491ac_tool_warned=yes ;;
5492esac
5493 RANLIB=$ac_ct_RANLIB
5494 fi
5495else
5496 RANLIB="$ac_cv_prog_RANLIB"
5497fi
5498
5499test -z "$RANLIB" && RANLIB=:
5500
5501
5502
5503
5504
5505
5506# Determine commands to create old-style static archives.
5507old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5508old_postinstall_cmds='chmod 644 $oldlib'
5509old_postuninstall_cmds=
5510
5511if test -n "$RANLIB"; then
5512 case $host_os in
5513 openbsd*)
5514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5515 ;;
5516 *)
5517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5518 ;;
5519 esac
5520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5521fi
5522
52327858
L
5523case $host_os in
5524 darwin*)
5525 lock_old_archive_extraction=yes ;;
5526 *)
5527 lock_old_archive_extraction=no ;;
5528esac
5529
5530
5531
5532
5533
5534
d7f09764
DN
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568# If no C compiler was specified, use CC.
5569LTCC=${LTCC-"$CC"}
5570
5571# If no C compiler flags were specified, use CFLAGS.
5572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5573
5574# Allow CC to be a program name with arguments.
5575compiler=$CC
5576
5577
5578# Check for command to grab the raw symbol name followed by C symbol from nm.
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583else
5584
5585# These are sane defaults that work on at least a few old systems.
5586# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5587
5588# Character class describing NM global symbol codes.
5589symcode='[BCDEGRST]'
5590
5591# Regexp to match symbols that can be accessed directly from C.
5592sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5593
5594# Define system-specific variables.
5595case $host_os in
5596aix*)
5597 symcode='[BCDT]'
5598 ;;
5599cygwin* | mingw* | pw32* | cegcc*)
5600 symcode='[ABCDGISTW]'
5601 ;;
5602hpux*)
5603 if test "$host_cpu" = ia64; then
5604 symcode='[ABCDEGRST]'
5605 fi
5606 ;;
5607irix* | nonstopux*)
5608 symcode='[BCDEGRST]'
5609 ;;
5610osf*)
5611 symcode='[BCDEGQRST]'
5612 ;;
5613solaris*)
5614 symcode='[BDRT]'
5615 ;;
5616sco3.2v5*)
5617 symcode='[DT]'
5618 ;;
5619sysv4.2uw2*)
5620 symcode='[DT]'
5621 ;;
5622sysv5* | sco5v6* | unixware* | OpenUNIX*)
5623 symcode='[ABDT]'
5624 ;;
5625sysv4)
5626 symcode='[DFNSTU]'
5627 ;;
5628esac
5629
5630# If we're using GNU nm, then use its standard symbol codes.
5631case `$NM -V 2>&1` in
5632*GNU* | *'with BFD'*)
5633 symcode='[ABCDGIRSTW]' ;;
5634esac
5635
5636# Transform an extracted symbol line into a proper C declaration.
5637# Some systems (esp. on ia64) link data and code symbols differently,
5638# so use this general approach.
5639lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5640
5641# Transform an extracted symbol line into symbol name and symbol address
5642lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5643lt_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'"
5644
5645# Handle CRLF in mingw tool chain
5646opt_cr=
5647case $build_os in
5648mingw*)
5649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5650 ;;
5651esac
5652
5653# Try without a prefix underscore, then with it.
5654for ac_symprfx in "" "_"; do
5655
5656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5657 symxfrm="\\1 $ac_symprfx\\2 \\2"
5658
5659 # Write the raw and C identifiers.
5660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5661 # Fake it for dumpbin and say T for any non-static function
5662 # and D for any global variable.
5663 # Also find C++ and __fastcall symbols from MSVC++,
5664 # which start with @ or ?.
5665 lt_cv_sys_global_symbol_pipe="$AWK '"\
5666" {last_section=section; section=\$ 3};"\
5667" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668" \$ 0!~/External *\|/{next};"\
5669" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5670" {if(hide[section]) next};"\
5671" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5672" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5673" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5674" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5675" ' prfx=^$ac_symprfx"
5676 else
5677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5678 fi
5679
5680 # Check to see that the pipe works correctly.
5681 pipe_works=no
5682
5683 rm -f conftest*
5684 cat > conftest.$ac_ext <<_LT_EOF
5685#ifdef __cplusplus
5686extern "C" {
5687#endif
5688char nm_test_var;
5689void nm_test_func(void);
5690void nm_test_func(void){}
5691#ifdef __cplusplus
5692}
5693#endif
5694int main(){nm_test_var='a';nm_test_func();return(0);}
5695_LT_EOF
5696
5697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698 (eval $ac_compile) 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; then
5702 # Now try to grab the symbols.
5703 nlist=conftest.nm
52327858
L
5704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
5706 ac_status=$?
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; } && test -s "$nlist"; then
5709 # Try sorting and uniquifying the output.
5710 if sort "$nlist" | uniq > "$nlist"T; then
5711 mv -f "$nlist"T "$nlist"
5712 else
5713 rm -f "$nlist"T
5714 fi
5715
5716 # Make sure that we snagged all the symbols we need.
5717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5719 cat <<_LT_EOF > conftest.$ac_ext
5720#ifdef __cplusplus
5721extern "C" {
5722#endif
5723
5724_LT_EOF
5725 # Now generate the symbol file.
5726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5727
5728 cat <<_LT_EOF >> conftest.$ac_ext
5729
5730/* The mapping between symbol names and symbols. */
5731const struct {
5732 const char *name;
5733 void *address;
5734}
5735lt__PROGRAM__LTX_preloaded_symbols[] =
5736{
5737 { "@PROGRAM@", (void *) 0 },
5738_LT_EOF
5739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5740 cat <<\_LT_EOF >> conftest.$ac_ext
5741 {0, (void *) 0}
5742};
5743
5744/* This works around a problem in FreeBSD linker */
5745#ifdef FREEBSD_WORKAROUND
5746static const void *lt_preloaded_setup() {
5747 return lt__PROGRAM__LTX_preloaded_symbols;
5748}
5749#endif
5750
5751#ifdef __cplusplus
5752}
5753#endif
5754_LT_EOF
5755 # Now try linking the two files.
5756 mv conftest.$ac_objext conftstm.$ac_objext
5757 lt_save_LIBS="$LIBS"
5758 lt_save_CFLAGS="$CFLAGS"
5759 LIBS="conftstm.$ac_objext"
5760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5762 (eval $ac_link) 2>&5
5763 ac_status=$?
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5766 pipe_works=yes
5767 fi
5768 LIBS="$lt_save_LIBS"
5769 CFLAGS="$lt_save_CFLAGS"
5770 else
5771 echo "cannot find nm_test_func in $nlist" >&5
5772 fi
5773 else
5774 echo "cannot find nm_test_var in $nlist" >&5
5775 fi
5776 else
5777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778 fi
5779 else
5780 echo "$progname: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 fi
5783 rm -rf conftest* conftst*
5784
5785 # Do not use the global_symbol_pipe unless it works.
5786 if test "$pipe_works" = yes; then
5787 break
5788 else
5789 lt_cv_sys_global_symbol_pipe=
5790 fi
5791done
5792
5793fi
5794
5795if test -z "$lt_cv_sys_global_symbol_pipe"; then
5796 lt_cv_sys_global_symbol_to_cdecl=
5797fi
5798if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5800$as_echo "failed" >&6; }
5801else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5803$as_echo "ok" >&6; }
5804fi
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
d7f09764
DN
5825
5826
5827# Check whether --enable-libtool-lock was given.
5828if test "${enable_libtool_lock+set}" = set; then :
5829 enableval=$enable_libtool_lock;
5830fi
5831
5832test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5833
5834# Some flags need to be propagated to the compiler or linker for good
5835# libtool support.
5836case $host in
5837ia64-*-hpux*)
5838 # Find out which ABI we are using.
5839 echo 'int i;' > conftest.$ac_ext
5840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5841 (eval $ac_compile) 2>&5
5842 ac_status=$?
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }; then
5845 case `/usr/bin/file conftest.$ac_objext` in
5846 *ELF-32*)
5847 HPUX_IA64_MODE="32"
5848 ;;
5849 *ELF-64*)
5850 HPUX_IA64_MODE="64"
5851 ;;
5852 esac
5853 fi
5854 rm -rf conftest*
5855 ;;
5856*-*-irix6*)
5857 # Find out which ABI we are using.
52327858 5858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 if test "$lt_cv_prog_gnu_ld" = yes; then
5865 case `/usr/bin/file conftest.$ac_objext` in
5866 *32-bit*)
5867 LD="${LD-ld} -melf32bsmip"
5868 ;;
5869 *N32*)
5870 LD="${LD-ld} -melf32bmipn32"
5871 ;;
5872 *64-bit*)
5873 LD="${LD-ld} -melf64bmip"
5874 ;;
5875 esac
5876 else
5877 case `/usr/bin/file conftest.$ac_objext` in
5878 *32-bit*)
5879 LD="${LD-ld} -32"
5880 ;;
5881 *N32*)
5882 LD="${LD-ld} -n32"
5883 ;;
5884 *64-bit*)
5885 LD="${LD-ld} -64"
5886 ;;
5887 esac
5888 fi
5889 fi
5890 rm -rf conftest*
5891 ;;
5892
5893x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5894s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; then
5902 case `/usr/bin/file conftest.o` in
5903 *32-bit*)
5904 case $host in
5905 x86_64-*kfreebsd*-gnu)
5906 LD="${LD-ld} -m elf_i386_fbsd"
5907 ;;
5908 x86_64-*linux*)
5909 LD="${LD-ld} -m elf_i386"
5910 ;;
5911 ppc64-*linux*|powerpc64-*linux*)
5912 LD="${LD-ld} -m elf32ppclinux"
5913 ;;
5914 s390x-*linux*)
5915 LD="${LD-ld} -m elf_s390"
5916 ;;
5917 sparc64-*linux*)
5918 LD="${LD-ld} -m elf32_sparc"
5919 ;;
5920 esac
5921 ;;
5922 *64-bit*)
5923 case $host in
5924 x86_64-*kfreebsd*-gnu)
5925 LD="${LD-ld} -m elf_x86_64_fbsd"
5926 ;;
5927 x86_64-*linux*)
5928 LD="${LD-ld} -m elf_x86_64"
5929 ;;
5930 ppc*-*linux*|powerpc*-*linux*)
5931 LD="${LD-ld} -m elf64ppc"
5932 ;;
5933 s390*-*linux*|s390*-*tpf*)
5934 LD="${LD-ld} -m elf64_s390"
5935 ;;
5936 sparc*-*linux*)
5937 LD="${LD-ld} -m elf64_sparc"
5938 ;;
5939 esac
5940 ;;
5941 esac
5942 fi
5943 rm -rf conftest*
5944 ;;
5945
5946*-*-sco3.2v5*)
5947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948 SAVE_CFLAGS="$CFLAGS"
5949 CFLAGS="$CFLAGS -belf"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5951$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5952if test "${lt_cv_cc_needs_belf+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954else
5955 ac_ext=c
5956ac_cpp='$CPP $CPPFLAGS'
5957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h. */
5963
5964int
5965main ()
5966{
5967
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"; then :
5973 lt_cv_cc_needs_belf=yes
5974else
5975 lt_cv_cc_needs_belf=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
5979 ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5987$as_echo "$lt_cv_cc_needs_belf" >&6; }
5988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5990 CFLAGS="$SAVE_CFLAGS"
5991 fi
5992 ;;
5993sparc*-*solaris*)
5994 # Find out which ABI we are using.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997 (eval $ac_compile) 2>&5
5998 ac_status=$?
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }; then
6001 case `/usr/bin/file conftest.o` in
6002 *64-bit*)
6003 case $lt_cv_prog_gnu_ld in
6004 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6005 *)
6006 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6007 LD="${LD-ld} -64"
6008 fi
6009 ;;
6010 esac
6011 ;;
6012 esac
6013 fi
6014 rm -rf conftest*
6015 ;;
6016esac
6017
6018need_locks="$enable_libtool_lock"
6019
6020
6021 case $host_os in
6022 rhapsody* | darwin*)
6023 if test -n "$ac_tool_prefix"; then
6024 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6025set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027$as_echo_n "checking for $ac_word... " >&6; }
6028if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030else
6031 if test -n "$DSYMUTIL"; then
6032 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6033else
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045done
6046 done
6047IFS=$as_save_IFS
6048
6049fi
6050fi
6051DSYMUTIL=$ac_cv_prog_DSYMUTIL
6052if test -n "$DSYMUTIL"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6054$as_echo "$DSYMUTIL" >&6; }
6055else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061fi
6062if test -z "$ac_cv_prog_DSYMUTIL"; then
6063 ac_ct_DSYMUTIL=$DSYMUTIL
6064 # Extract the first word of "dsymutil", so it can be a program name with args.
6065set dummy dsymutil; ac_word=$2
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
6068if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071 if test -n "$ac_ct_DSYMUTIL"; then
6072 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085done
6086 done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6092if test -n "$ac_ct_DSYMUTIL"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6094$as_echo "$ac_ct_DSYMUTIL" >&6; }
6095else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099
6100 if test "x$ac_ct_DSYMUTIL" = x; then
6101 DSYMUTIL=":"
6102 else
6103 case $cross_compiling:$ac_tool_warned in
6104yes:)
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107ac_tool_warned=yes ;;
6108esac
6109 DSYMUTIL=$ac_ct_DSYMUTIL
6110 fi
6111else
6112 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6113fi
6114
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6117set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$NMEDIT"; then
6124 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143NMEDIT=$ac_cv_prog_NMEDIT
6144if test -n "$NMEDIT"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6146$as_echo "$NMEDIT" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153fi
6154if test -z "$ac_cv_prog_NMEDIT"; then
6155 ac_ct_NMEDIT=$NMEDIT
6156 # Extract the first word of "nmedit", so it can be a program name with args.
6157set dummy nmedit; ac_word=$2
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162else
6163 if test -n "$ac_ct_NMEDIT"; then
6164 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177done
6178 done
6179IFS=$as_save_IFS
6180
6181fi
6182fi
6183ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6184if test -n "$ac_ct_NMEDIT"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6186$as_echo "$ac_ct_NMEDIT" >&6; }
6187else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192 if test "x$ac_ct_NMEDIT" = x; then
6193 NMEDIT=":"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201 NMEDIT=$ac_ct_NMEDIT
6202 fi
6203else
6204 NMEDIT="$ac_cv_prog_NMEDIT"
6205fi
6206
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6209set dummy ${ac_tool_prefix}lipo; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_LIPO+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 if test -n "$LIPO"; then
6216 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230 done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235LIPO=$ac_cv_prog_LIPO
6236if test -n "$LIPO"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6238$as_echo "$LIPO" >&6; }
6239else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244
6245fi
6246if test -z "$ac_cv_prog_LIPO"; then
6247 ac_ct_LIPO=$LIPO
6248 # Extract the first word of "lipo", so it can be a program name with args.
6249set dummy lipo; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254else
6255 if test -n "$ac_ct_LIPO"; then
6256 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_LIPO="lipo"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270 done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6276if test -n "$ac_ct_LIPO"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6278$as_echo "$ac_ct_LIPO" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284 if test "x$ac_ct_LIPO" = x; then
6285 LIPO=":"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293 LIPO=$ac_ct_LIPO
6294 fi
6295else
6296 LIPO="$ac_cv_prog_LIPO"
6297fi
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6301set dummy ${ac_tool_prefix}otool; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if test "${ac_cv_prog_OTOOL+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 if test -n "$OTOOL"; then
6308 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327OTOOL=$ac_cv_prog_OTOOL
6328if test -n "$OTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6330$as_echo "$OTOOL" >&6; }
6331else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337fi
6338if test -z "$ac_cv_prog_OTOOL"; then
6339 ac_ct_OTOOL=$OTOOL
6340 # Extract the first word of "otool", so it can be a program name with args.
6341set dummy otool; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
6344if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346else
6347 if test -n "$ac_ct_OTOOL"; then
6348 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_ac_ct_OTOOL="otool"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362 done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6368if test -n "$ac_ct_OTOOL"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6370$as_echo "$ac_ct_OTOOL" >&6; }
6371else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376 if test "x$ac_ct_OTOOL" = x; then
6377 OTOOL=":"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380yes:)
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383ac_tool_warned=yes ;;
6384esac
6385 OTOOL=$ac_ct_OTOOL
6386 fi
6387else
6388 OTOOL="$ac_cv_prog_OTOOL"
6389fi
6390
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6393set dummy ${ac_tool_prefix}otool64; ac_word=$2
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398else
6399 if test -n "$OTOOL64"; then
6400 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413done
6414 done
6415IFS=$as_save_IFS
6416
6417fi
6418fi
6419OTOOL64=$ac_cv_prog_OTOOL64
6420if test -n "$OTOOL64"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6422$as_echo "$OTOOL64" >&6; }
6423else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426fi
6427
6428
6429fi
6430if test -z "$ac_cv_prog_OTOOL64"; then
6431 ac_ct_OTOOL64=$OTOOL64
6432 # Extract the first word of "otool64", so it can be a program name with args.
6433set dummy otool64; ac_word=$2
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435$as_echo_n "checking for $ac_word... " >&6; }
6436if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438else
6439 if test -n "$ac_ct_OTOOL64"; then
6440 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_OTOOL64="otool64"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454 done
6455IFS=$as_save_IFS
6456
6457fi
6458fi
6459ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6460if test -n "$ac_ct_OTOOL64"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6462$as_echo "$ac_ct_OTOOL64" >&6; }
6463else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468 if test "x$ac_ct_OTOOL64" = x; then
6469 OTOOL64=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472yes:)
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475ac_tool_warned=yes ;;
6476esac
6477 OTOOL64=$ac_ct_OTOOL64
6478 fi
6479else
6480 OTOOL64="$ac_cv_prog_OTOOL64"
6481fi
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6510$as_echo_n "checking for -single_module linker flag... " >&6; }
6511if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513else
6514 lt_cv_apple_cc_single_mod=no
6515 if test -z "${LT_MULTI_MODULE}"; then
6516 # By default we will add the -single_module flag. You can override
6517 # by either setting the environment variable LT_MULTI_MODULE
6518 # non-empty at configure time, or by adding -multi_module to the
6519 # link flags.
6520 rm -rf libconftest.dylib*
6521 echo "int foo(void){return 1;}" > conftest.c
6522 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6523-dynamiclib -Wl,-single_module conftest.c" >&5
6524 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6525 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6526 _lt_result=$?
6527 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6528 lt_cv_apple_cc_single_mod=yes
6529 else
6530 cat conftest.err >&5
6531 fi
6532 rm -rf libconftest.dylib*
6533 rm -f conftest.*
6534 fi
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6537$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6539$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6540if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 lt_cv_ld_exported_symbols_list=no
6544 save_LDFLAGS=$LDFLAGS
6545 echo "_main" > conftest.sym
6546 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549
6550int
6551main ()
6552{
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558if ac_fn_c_try_link "$LINENO"; then :
6559 lt_cv_ld_exported_symbols_list=yes
6560else
6561 lt_cv_ld_exported_symbols_list=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 LDFLAGS="$save_LDFLAGS"
6566
6567fi
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6569$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
52327858
L
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6571$as_echo_n "checking for -force_load linker flag... " >&6; }
6572if test "${lt_cv_ld_force_load+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574else
6575 lt_cv_ld_force_load=no
6576 cat > conftest.c << _LT_EOF
6577int forced_loaded() { return 2;}
6578_LT_EOF
6579 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6580 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6581 echo "$AR cru libconftest.a conftest.o" >&5
6582 $AR cru libconftest.a conftest.o 2>&5
6583 cat > conftest.c << _LT_EOF
6584int main() { return 0;}
6585_LT_EOF
6586 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6587 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6588 _lt_result=$?
6589 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6590 lt_cv_ld_force_load=yes
6591 else
6592 cat conftest.err >&5
6593 fi
6594 rm -f conftest.err libconftest.a conftest conftest.c
6595 rm -rf conftest.dSYM
6596
6597fi
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6599$as_echo "$lt_cv_ld_force_load" >&6; }
d7f09764
DN
6600 case $host_os in
6601 rhapsody* | darwin1.[012])
6602 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6603 darwin1.*)
6604 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6605 darwin*) # darwin 5.x on
6606 # if running on 10.5 or later, the deployment target defaults
6607 # to the OS version, if on x86, and 10.4, the deployment
6608 # target defaults to 10.4. Don't you love it?
6609 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6610 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6611 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6612 10.[012]*)
6613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6614 10.*)
6615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6616 esac
6617 ;;
6618 esac
6619 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6620 _lt_dar_single_mod='$single_module'
6621 fi
6622 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6623 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6624 else
6625 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6626 fi
52327858 6627 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
d7f09764
DN
6628 _lt_dsymutil='~$DSYMUTIL $lib || :'
6629 else
6630 _lt_dsymutil=
6631 fi
6632 ;;
6633 esac
6634
6635ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6641$as_echo_n "checking how to run the C preprocessor... " >&6; }
6642# On Suns, sometimes $CPP names a directory.
6643if test -n "$CPP" && test -d "$CPP"; then
6644 CPP=
6645fi
6646if test -z "$CPP"; then
6647 if test "${ac_cv_prog_CPP+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649else
6650 # Double quotes because CPP needs to be expanded
6651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6652 do
6653 ac_preproc_ok=false
6654for ac_c_preproc_warn_flag in '' yes
6655do
6656 # Use a header file that comes with gcc, so configuring glibc
6657 # with a fresh cross-compiler works.
6658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659 # <limits.h> exists even on freestanding compilers.
6660 # On the NeXT, cc -E runs the code through the compiler's parser,
6661 # not just through cpp. "Syntax error" is here to catch this case.
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h. */
6664#ifdef __STDC__
6665# include <limits.h>
6666#else
6667# include <assert.h>
6668#endif
6669 Syntax error
6670_ACEOF
6671if ac_fn_c_try_cpp "$LINENO"; then :
6672
6673else
6674 # Broken: fails on valid input.
6675continue
6676fi
6677rm -f conftest.err conftest.$ac_ext
6678
6679 # OK, works on sane cases. Now check whether nonexistent headers
6680 # can be detected and how.
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h. */
6683#include <ac_nonexistent.h>
6684_ACEOF
6685if ac_fn_c_try_cpp "$LINENO"; then :
6686 # Broken: success on invalid input.
6687continue
6688else
6689 # Passes both tests.
6690ac_preproc_ok=:
6691break
6692fi
6693rm -f conftest.err conftest.$ac_ext
6694
6695done
6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697rm -f conftest.err conftest.$ac_ext
6698if $ac_preproc_ok; then :
6699 break
6700fi
6701
6702 done
6703 ac_cv_prog_CPP=$CPP
6704
6705fi
6706 CPP=$ac_cv_prog_CPP
6707else
6708 ac_cv_prog_CPP=$CPP
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6711$as_echo "$CPP" >&6; }
6712ac_preproc_ok=false
6713for ac_c_preproc_warn_flag in '' yes
6714do
6715 # Use a header file that comes with gcc, so configuring glibc
6716 # with a fresh cross-compiler works.
6717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 # <limits.h> exists even on freestanding compilers.
6719 # On the NeXT, cc -E runs the code through the compiler's parser,
6720 # not just through cpp. "Syntax error" is here to catch this case.
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723#ifdef __STDC__
6724# include <limits.h>
6725#else
6726# include <assert.h>
6727#endif
6728 Syntax error
6729_ACEOF
6730if ac_fn_c_try_cpp "$LINENO"; then :
6731
6732else
6733 # Broken: fails on valid input.
6734continue
6735fi
6736rm -f conftest.err conftest.$ac_ext
6737
6738 # OK, works on sane cases. Now check whether nonexistent headers
6739 # can be detected and how.
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h. */
6742#include <ac_nonexistent.h>
6743_ACEOF
6744if ac_fn_c_try_cpp "$LINENO"; then :
6745 # Broken: success on invalid input.
6746continue
6747else
6748 # Passes both tests.
6749ac_preproc_ok=:
6750break
6751fi
6752rm -f conftest.err conftest.$ac_ext
6753
6754done
6755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756rm -f conftest.err conftest.$ac_ext
6757if $ac_preproc_ok; then :
6758
6759else
6760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762as_fn_error "C preprocessor \"$CPP\" fails sanity check
6763See \`config.log' for more details." "$LINENO" 5; }
6764fi
6765
6766ac_ext=c
6767ac_cpp='$CPP $CPPFLAGS'
6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6774$as_echo_n "checking for ANSI C header files... " >&6; }
6775if test "${ac_cv_header_stdc+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777else
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h. */
6780#include <stdlib.h>
6781#include <stdarg.h>
6782#include <string.h>
6783#include <float.h>
6784
6785int
6786main ()
6787{
6788
6789 ;
6790 return 0;
6791}
6792_ACEOF
6793if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_header_stdc=yes
6795else
6796 ac_cv_header_stdc=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799
6800if test $ac_cv_header_stdc = yes; then
6801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h. */
6804#include <string.h>
6805
6806_ACEOF
6807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808 $EGREP "memchr" >/dev/null 2>&1; then :
6809
6810else
6811 ac_cv_header_stdc=no
6812fi
6813rm -f conftest*
6814
6815fi
6816
6817if test $ac_cv_header_stdc = yes; then
6818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h. */
6821#include <stdlib.h>
6822
6823_ACEOF
6824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "free" >/dev/null 2>&1; then :
6826
6827else
6828 ac_cv_header_stdc=no
6829fi
6830rm -f conftest*
6831
6832fi
6833
6834if test $ac_cv_header_stdc = yes; then
6835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6836 if test "$cross_compiling" = yes; then :
6837 :
6838else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h. */
6841#include <ctype.h>
6842#include <stdlib.h>
6843#if ((' ' & 0x0FF) == 0x020)
6844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6846#else
6847# define ISLOWER(c) \
6848 (('a' <= (c) && (c) <= 'i') \
6849 || ('j' <= (c) && (c) <= 'r') \
6850 || ('s' <= (c) && (c) <= 'z'))
6851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6852#endif
6853
6854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6855int
6856main ()
6857{
6858 int i;
6859 for (i = 0; i < 256; i++)
6860 if (XOR (islower (i), ISLOWER (i))
6861 || toupper (i) != TOUPPER (i))
6862 return 2;
6863 return 0;
6864}
6865_ACEOF
6866if ac_fn_c_try_run "$LINENO"; then :
6867
6868else
6869 ac_cv_header_stdc=no
6870fi
6871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6872 conftest.$ac_objext conftest.beam conftest.$ac_ext
6873fi
6874
6875fi
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6878$as_echo "$ac_cv_header_stdc" >&6; }
6879if test $ac_cv_header_stdc = yes; then
6880
6881$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6882
6883fi
6884
6885# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6887 inttypes.h stdint.h unistd.h
6888do :
6889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6891"
6892eval as_val=\$$as_ac_Header
6893 if test "x$as_val" = x""yes; then :
6894 cat >>confdefs.h <<_ACEOF
6895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6896_ACEOF
6897
6898fi
6899
6900done
6901
6902
6903for ac_header in dlfcn.h
6904do :
6905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6906"
6907if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6908 cat >>confdefs.h <<_ACEOF
6909#define HAVE_DLFCN_H 1
6910_ACEOF
6911
6912fi
6913
6914done
6915
6916
6917
52327858
L
6918
6919
d7f09764
DN
6920# Set options
6921
6922
6923
6924 enable_dlopen=no
6925
6926
6927 enable_win32_dll=no
6928
6929
6930 # Check whether --enable-shared was given.
6931if test "${enable_shared+set}" = set; then :
6932 enableval=$enable_shared; p=${PACKAGE-default}
6933 case $enableval in
6934 yes) enable_shared=yes ;;
6935 no) enable_shared=no ;;
6936 *)
6937 enable_shared=no
6938 # Look at the argument we got. We use all the common list separators.
6939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6940 for pkg in $enableval; do
6941 IFS="$lt_save_ifs"
6942 if test "X$pkg" = "X$p"; then
6943 enable_shared=yes
6944 fi
6945 done
6946 IFS="$lt_save_ifs"
6947 ;;
6948 esac
6949else
6950 enable_shared=yes
6951fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 # Check whether --enable-static was given.
6962if test "${enable_static+set}" = set; then :
6963 enableval=$enable_static; p=${PACKAGE-default}
6964 case $enableval in
6965 yes) enable_static=yes ;;
6966 no) enable_static=no ;;
6967 *)
6968 enable_static=no
6969 # Look at the argument we got. We use all the common list separators.
6970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6971 for pkg in $enableval; do
6972 IFS="$lt_save_ifs"
6973 if test "X$pkg" = "X$p"; then
6974 enable_static=yes
6975 fi
6976 done
6977 IFS="$lt_save_ifs"
6978 ;;
6979 esac
6980else
6981 enable_static=yes
6982fi
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993# Check whether --with-pic was given.
6994if test "${with_pic+set}" = set; then :
6995 withval=$with_pic; pic_mode="$withval"
6996else
6997 pic_mode=default
6998fi
6999
7000
7001test -z "$pic_mode" && pic_mode=default
7002
7003
7004
7005
7006
7007
7008
7009 # Check whether --enable-fast-install was given.
7010if test "${enable_fast_install+set}" = set; then :
7011 enableval=$enable_fast_install; p=${PACKAGE-default}
7012 case $enableval in
7013 yes) enable_fast_install=yes ;;
7014 no) enable_fast_install=no ;;
7015 *)
7016 enable_fast_install=no
7017 # Look at the argument we got. We use all the common list separators.
7018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7019 for pkg in $enableval; do
7020 IFS="$lt_save_ifs"
7021 if test "X$pkg" = "X$p"; then
7022 enable_fast_install=yes
7023 fi
7024 done
7025 IFS="$lt_save_ifs"
7026 ;;
7027 esac
7028else
7029 enable_fast_install=yes
7030fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042# This can be used to rebuild libtool when needed
7043LIBTOOL_DEPS="$ltmain"
7044
7045# Always use our own libtool.
7046LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
52327858 7070
d7f09764
DN
7071
7072
7073test -z "$LN_S" && LN_S="ln -s"
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088if test -n "${ZSH_VERSION+set}" ; then
7089 setopt NO_GLOB_SUBST
7090fi
7091
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7093$as_echo_n "checking for objdir... " >&6; }
7094if test "${lt_cv_objdir+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096else
7097 rm -f .libs 2>/dev/null
7098mkdir .libs 2>/dev/null
7099if test -d .libs; then
7100 lt_cv_objdir=.libs
7101else
7102 # MS-DOS does not allow filenames that begin with a dot.
7103 lt_cv_objdir=_libs
7104fi
7105rmdir .libs 2>/dev/null
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7108$as_echo "$lt_cv_objdir" >&6; }
7109objdir=$lt_cv_objdir
7110
7111
7112
7113
7114
7115cat >>confdefs.h <<_ACEOF
7116#define LT_OBJDIR "$lt_cv_objdir/"
7117_ACEOF
7118
7119
7120
7121
d7f09764
DN
7122case $host_os in
7123aix3*)
7124 # AIX sometimes has problems with the GCC collect2 program. For some
7125 # reason, if we set the COLLECT_NAMES environment variable, the problems
7126 # vanish in a puff of smoke.
7127 if test "X${COLLECT_NAMES+set}" != Xset; then
7128 COLLECT_NAMES=
7129 export COLLECT_NAMES
7130 fi
7131 ;;
7132esac
7133
d7f09764
DN
7134# Global variables:
7135ofile=libtool
7136can_build_shared=yes
7137
7138# All known linkers require a `.a' archive for static linking (except MSVC,
7139# which needs '.lib').
7140libext=a
7141
7142with_gnu_ld="$lt_cv_prog_gnu_ld"
7143
7144old_CC="$CC"
7145old_CFLAGS="$CFLAGS"
7146
7147# Set sane defaults for various variables
7148test -z "$CC" && CC=cc
7149test -z "$LTCC" && LTCC=$CC
7150test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7151test -z "$LD" && LD=ld
7152test -z "$ac_objext" && ac_objext=o
7153
7154for cc_temp in $compiler""; do
7155 case $cc_temp in
7156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7158 \-*) ;;
7159 *) break;;
7160 esac
7161done
52327858 7162cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
7163
7164
7165# Only perform the check for file, if the check method requires it
7166test -z "$MAGIC_CMD" && MAGIC_CMD=file
7167case $deplibs_check_method in
7168file_magic*)
7169 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7171$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7172if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174else
7175 case $MAGIC_CMD in
7176[\\/*] | ?:[\\/]*)
7177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7178 ;;
7179*)
7180 lt_save_MAGIC_CMD="$MAGIC_CMD"
7181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7183 for ac_dir in $ac_dummy; do
7184 IFS="$lt_save_ifs"
7185 test -z "$ac_dir" && ac_dir=.
7186 if test -f $ac_dir/${ac_tool_prefix}file; then
7187 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7188 if test -n "$file_magic_test_file"; then
7189 case $deplibs_check_method in
7190 "file_magic "*)
7191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7194 $EGREP "$file_magic_regex" > /dev/null; then
7195 :
7196 else
7197 cat <<_LT_EOF 1>&2
7198
7199*** Warning: the command libtool uses to detect shared libraries,
7200*** $file_magic_cmd, produces output that libtool cannot recognize.
7201*** The result is that libtool may fail to recognize shared libraries
7202*** as such. This will affect the creation of libtool libraries that
7203*** depend on shared libraries, but programs linked with such libtool
7204*** libraries will work regardless of this problem. Nevertheless, you
7205*** may want to report the problem to your system manager and/or to
7206*** bug-libtool@gnu.org
7207
7208_LT_EOF
7209 fi ;;
7210 esac
7211 fi
7212 break
7213 fi
7214 done
7215 IFS="$lt_save_ifs"
7216 MAGIC_CMD="$lt_save_MAGIC_CMD"
7217 ;;
7218esac
7219fi
7220
7221MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222if test -n "$MAGIC_CMD"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7224$as_echo "$MAGIC_CMD" >&6; }
7225else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231
7232
7233
7234if test -z "$lt_cv_path_MAGIC_CMD"; then
7235 if test -n "$ac_tool_prefix"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7237$as_echo_n "checking for file... " >&6; }
7238if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240else
7241 case $MAGIC_CMD in
7242[\\/*] | ?:[\\/]*)
7243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7244 ;;
7245*)
7246 lt_save_MAGIC_CMD="$MAGIC_CMD"
7247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7249 for ac_dir in $ac_dummy; do
7250 IFS="$lt_save_ifs"
7251 test -z "$ac_dir" && ac_dir=.
7252 if test -f $ac_dir/file; then
7253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7254 if test -n "$file_magic_test_file"; then
7255 case $deplibs_check_method in
7256 "file_magic "*)
7257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260 $EGREP "$file_magic_regex" > /dev/null; then
7261 :
7262 else
7263 cat <<_LT_EOF 1>&2
7264
7265*** Warning: the command libtool uses to detect shared libraries,
7266*** $file_magic_cmd, produces output that libtool cannot recognize.
7267*** The result is that libtool may fail to recognize shared libraries
7268*** as such. This will affect the creation of libtool libraries that
7269*** depend on shared libraries, but programs linked with such libtool
7270*** libraries will work regardless of this problem. Nevertheless, you
7271*** may want to report the problem to your system manager and/or to
7272*** bug-libtool@gnu.org
7273
7274_LT_EOF
7275 fi ;;
7276 esac
7277 fi
7278 break
7279 fi
7280 done
7281 IFS="$lt_save_ifs"
7282 MAGIC_CMD="$lt_save_MAGIC_CMD"
7283 ;;
7284esac
7285fi
7286
7287MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288if test -n "$MAGIC_CMD"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7290$as_echo "$MAGIC_CMD" >&6; }
7291else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297 else
7298 MAGIC_CMD=:
7299 fi
7300fi
7301
7302 fi
7303 ;;
7304esac
7305
7306# Use C for the default configuration in the libtool script
7307
7308lt_save_CC="$CC"
7309ac_ext=c
7310ac_cpp='$CPP $CPPFLAGS'
7311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
7315
7316# Source file extension for C test sources.
7317ac_ext=c
7318
7319# Object file extension for compiled C test sources.
7320objext=o
7321objext=$objext
7322
7323# Code to be used in simple compile tests
7324lt_simple_compile_test_code="int some_variable = 0;"
7325
7326# Code to be used in simple link tests
7327lt_simple_link_test_code='int main(){return(0);}'
7328
7329
7330
7331
7332
7333
7334
7335# If no C compiler was specified, use CC.
7336LTCC=${LTCC-"$CC"}
7337
7338# If no C compiler flags were specified, use CFLAGS.
7339LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7340
7341# Allow CC to be a program name with arguments.
7342compiler=$CC
7343
7344# Save the default compiler, since it gets overwritten when the other
7345# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7346compiler_DEFAULT=$CC
7347
7348# save warnings/boilerplate of simple test code
7349ac_outfile=conftest.$ac_objext
7350echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7351eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7352_lt_compiler_boilerplate=`cat conftest.err`
7353$RM conftest*
7354
7355ac_outfile=conftest.$ac_objext
7356echo "$lt_simple_link_test_code" >conftest.$ac_ext
7357eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7358_lt_linker_boilerplate=`cat conftest.err`
7359$RM -r conftest*
7360
7361
7362## CAVEAT EMPTOR:
7363## There is no encapsulation within the following macros, do not change
7364## the running order or otherwise move them around unless you know exactly
7365## what you are doing...
7366if test -n "$compiler"; then
7367
7368lt_prog_compiler_no_builtin_flag=
7369
7370if test "$GCC" = yes; then
52327858
L
7371 case $cc_basename in
7372 nvcc*)
7373 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7374 *)
7375 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7376 esac
d7f09764
DN
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7379$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7380if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382else
7383 lt_cv_prog_compiler_rtti_exceptions=no
7384 ac_outfile=conftest.$ac_objext
7385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7386 lt_compiler_flag="-fno-rtti -fno-exceptions"
7387 # Insert the option either (1) after the last *FLAGS variable, or
7388 # (2) before a word containing "conftest.", or (3) at the end.
7389 # Note that $ac_compile itself does not contain backslashes and begins
7390 # with a dollar sign (not a hyphen), so the echo should work correctly.
7391 # The option is referenced via a variable to avoid confusing sed.
7392 lt_compile=`echo "$ac_compile" | $SED \
7393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7395 -e 's:$: $lt_compiler_flag:'`
52327858 7396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7397 (eval "$lt_compile" 2>conftest.err)
7398 ac_status=$?
7399 cat conftest.err >&5
52327858 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7401 if (exit $ac_status) && test -s "$ac_outfile"; then
7402 # The compiler can only warn and ignore the option if not recognized
7403 # So say no if there are warnings other than the usual output.
52327858 7404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
7405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7407 lt_cv_prog_compiler_rtti_exceptions=yes
7408 fi
7409 fi
7410 $RM conftest*
7411
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7414$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7415
7416if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7417 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7418else
7419 :
7420fi
7421
7422fi
7423
7424
7425
7426
7427
7428
7429 lt_prog_compiler_wl=
7430lt_prog_compiler_pic=
7431lt_prog_compiler_static=
7432
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7434$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7435
7436 if test "$GCC" = yes; then
7437 lt_prog_compiler_wl='-Wl,'
7438 lt_prog_compiler_static='-static'
7439
7440 case $host_os in
7441 aix*)
7442 # All AIX code is PIC.
7443 if test "$host_cpu" = ia64; then
7444 # AIX 5 now supports IA64 processor
7445 lt_prog_compiler_static='-Bstatic'
7446 fi
7447 ;;
7448
7449 amigaos*)
7450 case $host_cpu in
7451 powerpc)
7452 # see comment about AmigaOS4 .so support
7453 lt_prog_compiler_pic='-fPIC'
7454 ;;
7455 m68k)
7456 # FIXME: we need at least 68020 code to build shared libraries, but
7457 # adding the `-m68020' flag to GCC prevents building anything better,
7458 # like `-m68040'.
7459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7460 ;;
7461 esac
7462 ;;
7463
7464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7465 # PIC is the default for these OSes.
7466 ;;
7467
7468 mingw* | cygwin* | pw32* | os2* | cegcc*)
7469 # This hack is so that the source file can tell whether it is being
7470 # built for inclusion in a dll (and should export symbols for example).
7471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7472 # (--disable-auto-import) libraries
7473 lt_prog_compiler_pic='-DDLL_EXPORT'
7474 ;;
7475
7476 darwin* | rhapsody*)
7477 # PIC is the default on this platform
7478 # Common symbols not allowed in MH_DYLIB files
7479 lt_prog_compiler_pic='-fno-common'
7480 ;;
7481
52327858
L
7482 haiku*)
7483 # PIC is the default for Haiku.
7484 # The "-static" flag exists, but is broken.
7485 lt_prog_compiler_static=
7486 ;;
7487
d7f09764
DN
7488 hpux*)
7489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7491 # sets the default TLS model and affects inlining.
7492 case $host_cpu in
7493 hppa*64*)
7494 # +Z the default
7495 ;;
7496 *)
7497 lt_prog_compiler_pic='-fPIC'
7498 ;;
7499 esac
7500 ;;
7501
7502 interix[3-9]*)
7503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7504 # Instead, we relocate shared libraries at runtime.
7505 ;;
7506
7507 msdosdjgpp*)
7508 # Just because we use GCC doesn't mean we suddenly get shared libraries
7509 # on systems that don't support them.
7510 lt_prog_compiler_can_build_shared=no
7511 enable_shared=no
7512 ;;
7513
7514 *nto* | *qnx*)
7515 # QNX uses GNU C++, but need to define -shared option too, otherwise
7516 # it will coredump.
7517 lt_prog_compiler_pic='-fPIC -shared'
7518 ;;
7519
7520 sysv4*MP*)
7521 if test -d /usr/nec; then
7522 lt_prog_compiler_pic=-Kconform_pic
7523 fi
7524 ;;
7525
7526 *)
7527 lt_prog_compiler_pic='-fPIC'
7528 ;;
7529 esac
52327858
L
7530
7531 case $cc_basename in
7532 nvcc*) # Cuda Compiler Driver 2.2
7533 lt_prog_compiler_wl='-Xlinker '
7534 lt_prog_compiler_pic='-Xcompiler -fPIC'
7535 ;;
7536 esac
d7f09764
DN
7537 else
7538 # PORTME Check for flag to pass linker flags through the system compiler.
7539 case $host_os in
7540 aix*)
7541 lt_prog_compiler_wl='-Wl,'
7542 if test "$host_cpu" = ia64; then
7543 # AIX 5 now supports IA64 processor
7544 lt_prog_compiler_static='-Bstatic'
7545 else
7546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7547 fi
7548 ;;
7549
7550 mingw* | cygwin* | pw32* | os2* | cegcc*)
7551 # This hack is so that the source file can tell whether it is being
7552 # built for inclusion in a dll (and should export symbols for example).
7553 lt_prog_compiler_pic='-DDLL_EXPORT'
7554 ;;
7555
7556 hpux9* | hpux10* | hpux11*)
7557 lt_prog_compiler_wl='-Wl,'
7558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7559 # not for PA HP-UX.
7560 case $host_cpu in
7561 hppa*64*|ia64*)
7562 # +Z the default
7563 ;;
7564 *)
7565 lt_prog_compiler_pic='+Z'
7566 ;;
7567 esac
7568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7569 lt_prog_compiler_static='${wl}-a ${wl}archive'
7570 ;;
7571
7572 irix5* | irix6* | nonstopux*)
7573 lt_prog_compiler_wl='-Wl,'
7574 # PIC (with -KPIC) is the default.
7575 lt_prog_compiler_static='-non_shared'
7576 ;;
7577
7578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7579 case $cc_basename in
7580 # old Intel for x86_64 which still supported -KPIC.
7581 ecc*)
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-static'
7585 ;;
7586 # icc used to be incompatible with GCC.
7587 # ICC 10 doesn't accept -KPIC any more.
7588 icc* | ifort*)
7589 lt_prog_compiler_wl='-Wl,'
7590 lt_prog_compiler_pic='-fPIC'
7591 lt_prog_compiler_static='-static'
7592 ;;
7593 # Lahey Fortran 8.1.
7594 lf95*)
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='--shared'
7597 lt_prog_compiler_static='--static'
7598 ;;
52327858 7599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
7600 # Portland Group compilers (*not* the Pentium gcc compiler,
7601 # which looks to be a dead project)
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-fpic'
7604 lt_prog_compiler_static='-Bstatic'
7605 ;;
7606 ccc*)
7607 lt_prog_compiler_wl='-Wl,'
7608 # All Alpha code is PIC.
7609 lt_prog_compiler_static='-non_shared'
7610 ;;
52327858
L
7611 xl* | bgxl* | bgf* | mpixl*)
7612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_pic='-qpic'
7615 lt_prog_compiler_static='-qstaticlink'
7616 ;;
7617 *)
7618 case `$CC -V 2>&1 | sed 5q` in
52327858
L
7619 *Sun\ F* | *Sun*Fortran*)
7620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
7621 lt_prog_compiler_pic='-KPIC'
7622 lt_prog_compiler_static='-Bstatic'
52327858 7623 lt_prog_compiler_wl=''
d7f09764 7624 ;;
52327858
L
7625 *Sun\ C*)
7626 # Sun C 5.9
d7f09764
DN
7627 lt_prog_compiler_pic='-KPIC'
7628 lt_prog_compiler_static='-Bstatic'
52327858 7629 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
7630 ;;
7631 esac
7632 ;;
7633 esac
7634 ;;
7635
7636 newsos6)
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 ;;
7640
7641 *nto* | *qnx*)
7642 # QNX uses GNU C++, but need to define -shared option too, otherwise
7643 # it will coredump.
7644 lt_prog_compiler_pic='-fPIC -shared'
7645 ;;
7646
7647 osf3* | osf4* | osf5*)
7648 lt_prog_compiler_wl='-Wl,'
7649 # All OSF/1 code is PIC.
7650 lt_prog_compiler_static='-non_shared'
7651 ;;
7652
7653 rdos*)
7654 lt_prog_compiler_static='-non_shared'
7655 ;;
7656
7657 solaris*)
7658 lt_prog_compiler_pic='-KPIC'
7659 lt_prog_compiler_static='-Bstatic'
7660 case $cc_basename in
7661 f77* | f90* | f95*)
7662 lt_prog_compiler_wl='-Qoption ld ';;
7663 *)
7664 lt_prog_compiler_wl='-Wl,';;
7665 esac
7666 ;;
7667
7668 sunos4*)
7669 lt_prog_compiler_wl='-Qoption ld '
7670 lt_prog_compiler_pic='-PIC'
7671 lt_prog_compiler_static='-Bstatic'
7672 ;;
7673
7674 sysv4 | sysv4.2uw2* | sysv4.3*)
7675 lt_prog_compiler_wl='-Wl,'
7676 lt_prog_compiler_pic='-KPIC'
7677 lt_prog_compiler_static='-Bstatic'
7678 ;;
7679
7680 sysv4*MP*)
7681 if test -d /usr/nec ;then
7682 lt_prog_compiler_pic='-Kconform_pic'
7683 lt_prog_compiler_static='-Bstatic'
7684 fi
7685 ;;
7686
7687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 ;;
7692
7693 unicos*)
7694 lt_prog_compiler_wl='-Wl,'
7695 lt_prog_compiler_can_build_shared=no
7696 ;;
7697
7698 uts4*)
7699 lt_prog_compiler_pic='-pic'
7700 lt_prog_compiler_static='-Bstatic'
7701 ;;
7702
7703 *)
7704 lt_prog_compiler_can_build_shared=no
7705 ;;
7706 esac
7707 fi
7708
7709case $host_os in
7710 # For platforms which do not support PIC, -DPIC is meaningless:
7711 *djgpp*)
7712 lt_prog_compiler_pic=
7713 ;;
7714 *)
7715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7716 ;;
7717esac
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7719$as_echo "$lt_prog_compiler_pic" >&6; }
7720
7721
7722
7723
7724
7725
7726#
7727# Check to make sure the PIC flag actually works.
7728#
7729if test -n "$lt_prog_compiler_pic"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7731$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7732if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 lt_cv_prog_compiler_pic_works=no
7736 ac_outfile=conftest.$ac_objext
7737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7739 # Insert the option either (1) after the last *FLAGS variable, or
7740 # (2) before a word containing "conftest.", or (3) at the end.
7741 # Note that $ac_compile itself does not contain backslashes and begins
7742 # with a dollar sign (not a hyphen), so the echo should work correctly.
7743 # The option is referenced via a variable to avoid confusing sed.
7744 lt_compile=`echo "$ac_compile" | $SED \
7745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7747 -e 's:$: $lt_compiler_flag:'`
52327858 7748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7749 (eval "$lt_compile" 2>conftest.err)
7750 ac_status=$?
7751 cat conftest.err >&5
52327858 7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7753 if (exit $ac_status) && test -s "$ac_outfile"; then
7754 # The compiler can only warn and ignore the option if not recognized
7755 # So say no if there are warnings other than the usual output.
52327858 7756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
7757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7759 lt_cv_prog_compiler_pic_works=yes
7760 fi
7761 fi
7762 $RM conftest*
7763
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7766$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7767
7768if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7769 case $lt_prog_compiler_pic in
7770 "" | " "*) ;;
7771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7772 esac
7773else
7774 lt_prog_compiler_pic=
7775 lt_prog_compiler_can_build_shared=no
7776fi
7777
7778fi
7779
7780
7781
7782
7783
7784
7785#
7786# Check to make sure the static flag actually works.
7787#
7788wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7790$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7791if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7793else
7794 lt_cv_prog_compiler_static_works=no
7795 save_LDFLAGS="$LDFLAGS"
7796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7799 # The linker can only warn and ignore the option if not recognized
7800 # So say no if there are warnings
7801 if test -s conftest.err; then
7802 # Append any errors to the config.log.
7803 cat conftest.err 1>&5
52327858 7804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
7805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7806 if diff conftest.exp conftest.er2 >/dev/null; then
7807 lt_cv_prog_compiler_static_works=yes
7808 fi
7809 else
7810 lt_cv_prog_compiler_static_works=yes
7811 fi
7812 fi
7813 $RM -r conftest*
7814 LDFLAGS="$save_LDFLAGS"
7815
7816fi
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7818$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7819
7820if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7821 :
7822else
7823 lt_prog_compiler_static=
7824fi
7825
7826
7827
7828
7829
7830
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7833$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7834if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836else
7837 lt_cv_prog_compiler_c_o=no
7838 $RM -r conftest 2>/dev/null
7839 mkdir conftest
7840 cd conftest
7841 mkdir out
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843
7844 lt_compiler_flag="-o out/conftest2.$ac_objext"
7845 # Insert the option either (1) after the last *FLAGS variable, or
7846 # (2) before a word containing "conftest.", or (3) at the end.
7847 # Note that $ac_compile itself does not contain backslashes and begins
7848 # with a dollar sign (not a hyphen), so the echo should work correctly.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
52327858 7853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7854 (eval "$lt_compile" 2>out/conftest.err)
7855 ac_status=$?
7856 cat out/conftest.err >&5
52327858 7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7859 then
7860 # The compiler can only warn and ignore the option if not recognized
7861 # So say no if there are warnings
52327858 7862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
7863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7865 lt_cv_prog_compiler_c_o=yes
7866 fi
7867 fi
7868 chmod u+w . 2>&5
7869 $RM conftest*
7870 # SGI C++ compiler will create directory out/ii_files/ for
7871 # template instantiation
7872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7873 $RM out/* && rmdir out
7874 cd ..
7875 $RM -r conftest
7876 $RM conftest*
7877
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7880$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7881
7882
7883
7884
7885
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7888$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7889if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891else
7892 lt_cv_prog_compiler_c_o=no
7893 $RM -r conftest 2>/dev/null
7894 mkdir conftest
7895 cd conftest
7896 mkdir out
7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898
7899 lt_compiler_flag="-o out/conftest2.$ac_objext"
7900 # Insert the option either (1) after the last *FLAGS variable, or
7901 # (2) before a word containing "conftest.", or (3) at the end.
7902 # Note that $ac_compile itself does not contain backslashes and begins
7903 # with a dollar sign (not a hyphen), so the echo should work correctly.
7904 lt_compile=`echo "$ac_compile" | $SED \
7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907 -e 's:$: $lt_compiler_flag:'`
52327858 7908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
7909 (eval "$lt_compile" 2>out/conftest.err)
7910 ac_status=$?
7911 cat out/conftest.err >&5
52327858 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
7913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7914 then
7915 # The compiler can only warn and ignore the option if not recognized
7916 # So say no if there are warnings
52327858 7917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
7918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7920 lt_cv_prog_compiler_c_o=yes
7921 fi
7922 fi
7923 chmod u+w . 2>&5
7924 $RM conftest*
7925 # SGI C++ compiler will create directory out/ii_files/ for
7926 # template instantiation
7927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7928 $RM out/* && rmdir out
7929 cd ..
7930 $RM -r conftest
7931 $RM conftest*
7932
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7935$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7936
7937
7938
7939
7940hard_links="nottested"
7941if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7942 # do not overwrite the value of need_locks provided by the user
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7944$as_echo_n "checking if we can lock with hard links... " >&6; }
7945 hard_links=yes
7946 $RM conftest*
7947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7948 touch conftest.a
7949 ln conftest.a conftest.b 2>&5 || hard_links=no
7950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7952$as_echo "$hard_links" >&6; }
7953 if test "$hard_links" = no; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7955$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7956 need_locks=warn
7957 fi
7958else
7959 need_locks=no
7960fi
7961
7962
7963
7964
7965
7966
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7969
7970 runpath_var=
7971 allow_undefined_flag=
7972 always_export_symbols=no
7973 archive_cmds=
7974 archive_expsym_cmds=
7975 compiler_needs_object=no
7976 enable_shared_with_static_runtimes=no
7977 export_dynamic_flag_spec=
7978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7979 hardcode_automatic=no
7980 hardcode_direct=no
7981 hardcode_direct_absolute=no
7982 hardcode_libdir_flag_spec=
7983 hardcode_libdir_flag_spec_ld=
7984 hardcode_libdir_separator=
7985 hardcode_minus_L=no
7986 hardcode_shlibpath_var=unsupported
7987 inherit_rpath=no
7988 link_all_deplibs=unknown
7989 module_cmds=
7990 module_expsym_cmds=
7991 old_archive_from_new_cmds=
7992 old_archive_from_expsyms_cmds=
7993 thread_safe_flag_spec=
7994 whole_archive_flag_spec=
7995 # include_expsyms should be a list of space-separated symbols to be *always*
7996 # included in the symbol list
7997 include_expsyms=
7998 # exclude_expsyms can be an extended regexp of symbols to exclude
7999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8001 # as well as any symbol that contains `d'.
8002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8004 # platforms (ab)use it in PIC code, but their linkers get confused if
8005 # the symbol is explicitly referenced. Since portable code cannot
8006 # rely on this symbol name, it's probably fine to never include it in
8007 # preloaded symbol tables.
8008 # Exclude shared library initialization/finalization symbols.
8009 extract_expsyms_cmds=
8010
8011 case $host_os in
8012 cygwin* | mingw* | pw32* | cegcc*)
8013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8014 # When not using gcc, we currently assume that we are using
8015 # Microsoft Visual C++.
8016 if test "$GCC" != yes; then
8017 with_gnu_ld=no
8018 fi
8019 ;;
8020 interix*)
8021 # we just hope/assume this is gcc and not c89 (= MSVC++)
8022 with_gnu_ld=yes
8023 ;;
8024 openbsd*)
8025 with_gnu_ld=no
8026 ;;
8027 esac
8028
8029 ld_shlibs=yes
52327858
L
8030
8031 # On some targets, GNU ld is compatible enough with the native linker
8032 # that we're better off using the native interface for both.
8033 lt_use_gnu_ld_interface=no
d7f09764 8034 if test "$with_gnu_ld" = yes; then
52327858
L
8035 case $host_os in
8036 aix*)
8037 # The AIX port of GNU ld has always aspired to compatibility
8038 # with the native linker. However, as the warning in the GNU ld
8039 # block says, versions before 2.19.5* couldn't really create working
8040 # shared libraries, regardless of the interface used.
8041 case `$LD -v 2>&1` in
8042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8045 *)
8046 lt_use_gnu_ld_interface=yes
8047 ;;
8048 esac
8049 ;;
8050 *)
8051 lt_use_gnu_ld_interface=yes
8052 ;;
8053 esac
8054 fi
8055
8056 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
8057 # If archive_cmds runs LD, not CC, wlarc should be empty
8058 wlarc='${wl}'
8059
8060 # Set some defaults for GNU ld with shared library support. These
8061 # are reset later if shared libraries are not supported. Putting them
8062 # here allows them to be overridden if necessary.
8063 runpath_var=LD_RUN_PATH
8064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8065 export_dynamic_flag_spec='${wl}--export-dynamic'
8066 # ancient GNU ld didn't support --whole-archive et. al.
8067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8069 else
8070 whole_archive_flag_spec=
8071 fi
8072 supports_anon_versioning=no
8073 case `$LD -v 2>&1` in
52327858 8074 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
8075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8078 *\ 2.11.*) ;; # other 2.11 versions
8079 *) supports_anon_versioning=yes ;;
8080 esac
8081
8082 # See if GNU ld supports shared libraries.
8083 case $host_os in
8084 aix[3-9]*)
8085 # On AIX/PPC, the GNU linker is very broken
8086 if test "$host_cpu" != ia64; then
8087 ld_shlibs=no
8088 cat <<_LT_EOF 1>&2
8089
52327858 8090*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
8091*** to be unable to reliably create shared libraries on AIX.
8092*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
8093*** really care for shared libraries, you may want to install binutils
8094*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8095*** You will then need to restart the configuration process.
d7f09764
DN
8096
8097_LT_EOF
8098 fi
8099 ;;
8100
8101 amigaos*)
8102 case $host_cpu in
8103 powerpc)
8104 # see comment about AmigaOS4 .so support
8105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106 archive_expsym_cmds=''
8107 ;;
8108 m68k)
8109 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)'
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_minus_L=yes
8112 ;;
8113 esac
8114 ;;
8115
8116 beos*)
8117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8118 allow_undefined_flag=unsupported
8119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8120 # support --undefined. This deserves some investigation. FIXME
8121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 else
8123 ld_shlibs=no
8124 fi
8125 ;;
8126
8127 cygwin* | mingw* | pw32* | cegcc*)
8128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8129 # as there is no search path for DLLs.
8130 hardcode_libdir_flag_spec='-L$libdir'
52327858 8131 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
8132 allow_undefined_flag=unsupported
8133 always_export_symbols=no
8134 enable_shared_with_static_runtimes=yes
8135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8136
8137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8139 # If the export-symbols file already is a .def file (1st line
8140 # is EXPORTS), use it as is; otherwise, prepend...
8141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8142 cp $export_symbols $output_objdir/$soname.def;
8143 else
8144 echo EXPORTS > $output_objdir/$soname.def;
8145 cat $export_symbols >> $output_objdir/$soname.def;
8146 fi~
8147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8148 else
8149 ld_shlibs=no
8150 fi
8151 ;;
8152
52327858
L
8153 haiku*)
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 link_all_deplibs=yes
8156 ;;
8157
d7f09764
DN
8158 interix[3-9]*)
8159 hardcode_direct=no
8160 hardcode_shlibpath_var=no
8161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8162 export_dynamic_flag_spec='${wl}-E'
8163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8164 # Instead, shared libraries are loaded at an image base (0x10000000 by
8165 # default) and relocated if they conflict, which is a slow very memory
8166 # consuming and fragmenting process. To avoid this, we pick a random,
8167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8170 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'
8171 ;;
8172
8173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8174 tmp_diet=no
8175 if test "$host_os" = linux-dietlibc; then
8176 case $cc_basename in
8177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8178 esac
8179 fi
8180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8181 && test "$tmp_diet" = no
8182 then
8183 tmp_addflag=
8184 tmp_sharedflag='-shared'
8185 case $cc_basename,$host_cpu in
8186 pgcc*) # Portland Group C compiler
52327858 8187 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
8188 tmp_addflag=' $pic_flag'
8189 ;;
52327858
L
8190 pgf77* | pgf90* | pgf95* | pgfortran*)
8191 # Portland Group f77 and f90 compilers
8192 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
8193 tmp_addflag=' $pic_flag -Mnomain' ;;
8194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8195 tmp_addflag=' -i_dynamic' ;;
8196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8197 tmp_addflag=' -i_dynamic -nofor_main' ;;
8198 ifc* | ifort*) # Intel Fortran compiler
8199 tmp_addflag=' -nofor_main' ;;
8200 lf95*) # Lahey Fortran 8.1
8201 whole_archive_flag_spec=
8202 tmp_sharedflag='--shared' ;;
52327858 8203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
8204 tmp_sharedflag='-qmkshrobj'
8205 tmp_addflag= ;;
52327858
L
8206 nvcc*) # Cuda Compiler Driver 2.2
8207 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'
8208 compiler_needs_object=yes
8209 ;;
d7f09764
DN
8210 esac
8211 case `$CC -V 2>&1 | sed 5q` in
8212 *Sun\ C*) # Sun C 5.9
52327858 8213 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
8214 compiler_needs_object=yes
8215 tmp_sharedflag='-G' ;;
8216 *Sun\ F*) # Sun Fortran 8.3
8217 tmp_sharedflag='-G' ;;
8218 esac
8219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220
8221 if test "x$supports_anon_versioning" = xyes; then
8222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8224 echo "local: *; };" >> $output_objdir/$libname.ver~
8225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8226 fi
8227
8228 case $cc_basename in
52327858 8229 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
8230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8232 hardcode_libdir_flag_spec=
8233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8234 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8235 if test "x$supports_anon_versioning" = xyes; then
8236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8238 echo "local: *; };" >> $output_objdir/$libname.ver~
8239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8240 fi
8241 ;;
8242 esac
8243 else
8244 ld_shlibs=no
8245 fi
8246 ;;
8247
8248 netbsd*)
8249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8251 wlarc=
8252 else
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8255 fi
8256 ;;
8257
8258 solaris*)
8259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8260 ld_shlibs=no
8261 cat <<_LT_EOF 1>&2
8262
8263*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8264*** create shared libraries on Solaris systems. Therefore, libtool
8265*** is disabling shared libraries support. We urge you to upgrade GNU
8266*** binutils to release 2.9.1 or newer. Another option is to modify
8267*** your PATH or compiler configuration so that the native linker is
8268*** used, and then restart.
8269
8270_LT_EOF
8271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8274 else
8275 ld_shlibs=no
8276 fi
8277 ;;
8278
8279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8280 case `$LD -v 2>&1` in
8281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8282 ld_shlibs=no
8283 cat <<_LT_EOF 1>&2
8284
8285*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8286*** reliably create shared libraries on SCO systems. Therefore, libtool
8287*** is disabling shared libraries support. We urge you to upgrade GNU
8288*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8289*** your PATH or compiler configuration so that the native linker is
8290*** used, and then restart.
8291
8292_LT_EOF
8293 ;;
8294 *)
8295 # For security reasons, it is highly recommended that you always
8296 # use absolute paths for naming shared libraries, and exclude the
8297 # DT_RUNPATH tag from executables and libraries. But doing so
8298 # requires that you compile everything twice, which is a pain.
8299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303 else
8304 ld_shlibs=no
8305 fi
8306 ;;
8307 esac
8308 ;;
8309
8310 sunos4*)
8311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 wlarc=
8313 hardcode_direct=yes
8314 hardcode_shlibpath_var=no
8315 ;;
8316
8317 *)
8318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 else
8322 ld_shlibs=no
8323 fi
8324 ;;
8325 esac
8326
8327 if test "$ld_shlibs" = no; then
8328 runpath_var=
8329 hardcode_libdir_flag_spec=
8330 export_dynamic_flag_spec=
8331 whole_archive_flag_spec=
8332 fi
8333 else
8334 # PORTME fill in a description of your system's linker (not GNU ld)
8335 case $host_os in
8336 aix3*)
8337 allow_undefined_flag=unsupported
8338 always_export_symbols=yes
8339 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'
8340 # Note: this linker hardcodes the directories in LIBPATH if there
8341 # are no directories specified by -L.
8342 hardcode_minus_L=yes
8343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8344 # Neither direct hardcoding nor static linking is supported with a
8345 # broken collect2.
8346 hardcode_direct=unsupported
8347 fi
8348 ;;
8349
8350 aix[4-9]*)
8351 if test "$host_cpu" = ia64; then
8352 # On IA64, the linker does run time linking by default, so we don't
8353 # have to do anything special.
8354 aix_use_runtimelinking=no
8355 exp_sym_flag='-Bexport'
8356 no_entry_flag=""
8357 else
8358 # If we're using GNU nm, then we don't want the "-C" option.
8359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
8360 # Also, AIX nm treats weak defined symbols like other global
8361 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 8362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 8363 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
8364 else
8365 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'
8366 fi
8367 aix_use_runtimelinking=no
8368
8369 # Test if we are trying to use run time linking or normal
8370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8371 # need to do runtime linking.
8372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8373 for ld_flag in $LDFLAGS; do
8374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8375 aix_use_runtimelinking=yes
8376 break
8377 fi
8378 done
8379 ;;
8380 esac
8381
8382 exp_sym_flag='-bexport'
8383 no_entry_flag='-bnoentry'
8384 fi
8385
8386 # When large executables or shared objects are built, AIX ld can
8387 # have problems creating the table of contents. If linking a library
8388 # or program results in "error TOC overflow" add -mminimal-toc to
8389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8391
8392 archive_cmds=''
8393 hardcode_direct=yes
8394 hardcode_direct_absolute=yes
8395 hardcode_libdir_separator=':'
8396 link_all_deplibs=yes
8397 file_list_spec='${wl}-f,'
8398
8399 if test "$GCC" = yes; then
8400 case $host_os in aix4.[012]|aix4.[012].*)
8401 # We only want to do this on AIX 4.2 and lower, the check
8402 # below for broken collect2 doesn't work under 4.3+
8403 collect2name=`${CC} -print-prog-name=collect2`
8404 if test -f "$collect2name" &&
8405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8406 then
8407 # We have reworked collect2
8408 :
8409 else
8410 # We have old collect2
8411 hardcode_direct=unsupported
8412 # It fails to find uninstalled libraries when the uninstalled
8413 # path is not listed in the libpath. Setting hardcode_minus_L
8414 # to unsupported forces relinking
8415 hardcode_minus_L=yes
8416 hardcode_libdir_flag_spec='-L$libdir'
8417 hardcode_libdir_separator=
8418 fi
8419 ;;
8420 esac
8421 shared_flag='-shared'
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag="$shared_flag "'${wl}-G'
8424 fi
8425 else
8426 # not using gcc
8427 if test "$host_cpu" = ia64; then
8428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8429 # chokes on -Wl,-G. The following line is correct:
8430 shared_flag='-G'
8431 else
8432 if test "$aix_use_runtimelinking" = yes; then
8433 shared_flag='${wl}-G'
8434 else
8435 shared_flag='${wl}-bM:SRE'
8436 fi
8437 fi
8438 fi
8439
8440 export_dynamic_flag_spec='${wl}-bexpall'
8441 # It seems that -bexpall does not export symbols beginning with
8442 # underscore (_), so it is better to generate a list of symbols to export.
8443 always_export_symbols=yes
8444 if test "$aix_use_runtimelinking" = yes; then
8445 # Warning - without using the other runtime loading flags (-brtl),
8446 # -berok will link without error, but may produce a broken library.
8447 allow_undefined_flag='-berok'
8448 # Determine the default libpath from the value encoded in an
8449 # empty executable.
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h. */
8452
8453int
8454main ()
8455{
8456
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461if ac_fn_c_try_link "$LINENO"; then :
8462
8463lt_aix_libpath_sed='
8464 /Import File Strings/,/^$/ {
8465 /^0/ {
8466 s/^0 *\(.*\)$/\1/
8467 p
8468 }
8469 }'
8470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8471# Check for a 64-bit object if we didn't find anything.
8472if test -z "$aix_libpath"; then
8473 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8474fi
8475fi
8476rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 8481 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
8482 else
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 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"
8487 else
8488 # Determine the default libpath from the value encoded in an
8489 # empty executable.
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
8492
8493int
8494main ()
8495{
8496
8497 ;
8498 return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_link "$LINENO"; then :
8502
8503lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8505 /^0/ {
8506 s/^0 *\(.*\)$/\1/
8507 p
8508 }
8509 }'
8510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511# Check for a 64-bit object if we didn't find anything.
8512if test -z "$aix_libpath"; then
8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514fi
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519
8520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8521 # Warning - without using the other run time loading flags,
8522 # -berok will link without error, but may produce a broken library.
8523 no_undefined_flag=' ${wl}-bernotok'
8524 allow_undefined_flag=' ${wl}-berok'
52327858
L
8525 if test "$with_gnu_ld" = yes; then
8526 # We only use this code for GNU lds that support --whole-archive.
8527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8528 else
8529 # Exported symbols can be pulled into shared objects from archives
8530 whole_archive_flag_spec='$convenience'
8531 fi
d7f09764
DN
8532 archive_cmds_need_lc=yes
8533 # This is similar to how AIX traditionally builds its shared libraries.
8534 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'
8535 fi
8536 fi
8537 ;;
8538
8539 amigaos*)
8540 case $host_cpu in
8541 powerpc)
8542 # see comment about AmigaOS4 .so support
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 archive_expsym_cmds=''
8545 ;;
8546 m68k)
8547 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)'
8548 hardcode_libdir_flag_spec='-L$libdir'
8549 hardcode_minus_L=yes
8550 ;;
8551 esac
8552 ;;
8553
8554 bsdi[45]*)
8555 export_dynamic_flag_spec=-rdynamic
8556 ;;
8557
8558 cygwin* | mingw* | pw32* | cegcc*)
8559 # When not using gcc, we currently assume that we are using
8560 # Microsoft Visual C++.
8561 # hardcode_libdir_flag_spec is actually meaningless, as there is
8562 # no search path for DLLs.
8563 hardcode_libdir_flag_spec=' '
8564 allow_undefined_flag=unsupported
8565 # Tell ltmain to make .lib files, not .a files.
8566 libext=lib
8567 # Tell ltmain to make .dll files, not .so files.
8568 shrext_cmds=".dll"
8569 # FIXME: Setting linknames here is a bad hack.
52327858 8570 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
8571 # The linker will automatically build a .lib file if we build a DLL.
8572 old_archive_from_new_cmds='true'
8573 # FIXME: Should let the user specify the lib program.
8574 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8575 fix_srcfile_path='`cygpath -w "$srcfile"`'
8576 enable_shared_with_static_runtimes=yes
8577 ;;
8578
8579 darwin* | rhapsody*)
8580
8581
8582 archive_cmds_need_lc=no
8583 hardcode_direct=no
8584 hardcode_automatic=yes
8585 hardcode_shlibpath_var=unsupported
52327858
L
8586 if test "$lt_cv_ld_force_load" = "yes"; then
8587 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\"`'
8588 else
8589 whole_archive_flag_spec=''
8590 fi
d7f09764
DN
8591 link_all_deplibs=yes
8592 allow_undefined_flag="$_lt_dar_allow_undefined"
8593 case $cc_basename in
8594 ifort*) _lt_dar_can_shared=yes ;;
8595 *) _lt_dar_can_shared=$GCC ;;
8596 esac
8597 if test "$_lt_dar_can_shared" = "yes"; then
52327858 8598 output_verbose_link_cmd=func_echo_all
d7f09764
DN
8599 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8600 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8601 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}"
8602 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}"
8603
8604 else
8605 ld_shlibs=no
8606 fi
8607
8608 ;;
8609
8610 dgux*)
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 hardcode_shlibpath_var=no
8614 ;;
8615
8616 freebsd1*)
8617 ld_shlibs=no
8618 ;;
8619
8620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8621 # support. Future versions do this automatically, but an explicit c++rt0.o
8622 # does not break anything, and helps significantly (at the cost of a little
8623 # extra space).
8624 freebsd2.2*)
8625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8626 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_direct=yes
8628 hardcode_shlibpath_var=no
8629 ;;
8630
8631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632 freebsd2*)
8633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_direct=yes
8635 hardcode_minus_L=yes
8636 hardcode_shlibpath_var=no
8637 ;;
8638
8639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8640 freebsd* | dragonfly*)
8641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8642 hardcode_libdir_flag_spec='-R$libdir'
8643 hardcode_direct=yes
8644 hardcode_shlibpath_var=no
8645 ;;
8646
8647 hpux9*)
8648 if test "$GCC" = yes; then
8649 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'
8650 else
8651 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'
8652 fi
8653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8654 hardcode_libdir_separator=:
8655 hardcode_direct=yes
8656
8657 # hardcode_minus_L: Not really in the search PATH,
8658 # but as the default location of the library.
8659 hardcode_minus_L=yes
8660 export_dynamic_flag_spec='${wl}-E'
8661 ;;
8662
8663 hpux10*)
52327858 8664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
8665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8666 else
8667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8668 fi
8669 if test "$with_gnu_ld" = no; then
8670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8671 hardcode_libdir_flag_spec_ld='+b $libdir'
8672 hardcode_libdir_separator=:
8673 hardcode_direct=yes
8674 hardcode_direct_absolute=yes
8675 export_dynamic_flag_spec='${wl}-E'
8676 # hardcode_minus_L: Not really in the search PATH,
8677 # but as the default location of the library.
8678 hardcode_minus_L=yes
8679 fi
8680 ;;
8681
8682 hpux11*)
52327858 8683 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
8684 case $host_cpu in
8685 hppa*64*)
8686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 ;;
8688 ia64*)
8689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8690 ;;
8691 *)
8692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693 ;;
8694 esac
8695 else
8696 case $host_cpu in
8697 hppa*64*)
8698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8699 ;;
8700 ia64*)
8701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8702 ;;
8703 *)
52327858
L
8704
8705 # Older versions of the 11.00 compiler do not understand -b yet
8706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8708$as_echo_n "checking if $CC understands -b... " >&6; }
8709if test "${lt_cv_prog_compiler__b+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711else
8712 lt_cv_prog_compiler__b=no
8713 save_LDFLAGS="$LDFLAGS"
8714 LDFLAGS="$LDFLAGS -b"
8715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8717 # The linker can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 if test -s conftest.err; then
8720 # Append any errors to the config.log.
8721 cat conftest.err 1>&5
8722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler__b=yes
8726 fi
8727 else
8728 lt_cv_prog_compiler__b=yes
8729 fi
8730 fi
8731 $RM -r conftest*
8732 LDFLAGS="$save_LDFLAGS"
8733
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8736$as_echo "$lt_cv_prog_compiler__b" >&6; }
8737
8738if test x"$lt_cv_prog_compiler__b" = xyes; then
8739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8740else
8741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8742fi
8743
d7f09764
DN
8744 ;;
8745 esac
8746 fi
8747 if test "$with_gnu_ld" = no; then
8748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8749 hardcode_libdir_separator=:
8750
8751 case $host_cpu in
8752 hppa*64*|ia64*)
8753 hardcode_direct=no
8754 hardcode_shlibpath_var=no
8755 ;;
8756 *)
8757 hardcode_direct=yes
8758 hardcode_direct_absolute=yes
8759 export_dynamic_flag_spec='${wl}-E'
8760
8761 # hardcode_minus_L: Not really in the search PATH,
8762 # but as the default location of the library.
8763 hardcode_minus_L=yes
8764 ;;
8765 esac
8766 fi
8767 ;;
8768
8769 irix5* | irix6* | nonstopux*)
8770 if test "$GCC" = yes; then
52327858 8771 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
8772 # Try to use the -exported_symbol ld option, if it does not
8773 # work, assume that -exports_file does not work either and
8774 # implicitly export all symbols.
8775 save_LDFLAGS="$LDFLAGS"
8776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h. */
8779int foo(void) {}
8780_ACEOF
8781if ac_fn_c_try_link "$LINENO"; then :
52327858 8782 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
8783
8784fi
8785rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 LDFLAGS="$save_LDFLAGS"
8788 else
52327858
L
8789 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'
8790 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
8791 fi
8792 archive_cmds_need_lc='no'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 inherit_rpath=yes
8796 link_all_deplibs=yes
8797 ;;
8798
8799 netbsd*)
8800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8802 else
8803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8804 fi
8805 hardcode_libdir_flag_spec='-R$libdir'
8806 hardcode_direct=yes
8807 hardcode_shlibpath_var=no
8808 ;;
8809
8810 newsos6)
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_direct=yes
8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_shlibpath_var=no
8816 ;;
8817
8818 *nto* | *qnx*)
8819 ;;
8820
8821 openbsd*)
8822 if test -f /usr/libexec/ld.so; then
8823 hardcode_direct=yes
8824 hardcode_shlibpath_var=no
8825 hardcode_direct_absolute=yes
8826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8830 export_dynamic_flag_spec='${wl}-E'
8831 else
8832 case $host_os in
8833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_libdir_flag_spec='-R$libdir'
8836 ;;
8837 *)
8838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8840 ;;
8841 esac
8842 fi
8843 else
8844 ld_shlibs=no
8845 fi
8846 ;;
8847
8848 os2*)
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_minus_L=yes
8851 allow_undefined_flag=unsupported
52327858 8852 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
8853 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8854 ;;
8855
8856 osf3*)
8857 if test "$GCC" = yes; then
8858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 8859 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
8860 else
8861 allow_undefined_flag=' -expect_unresolved \*'
52327858 8862 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
8863 fi
8864 archive_cmds_need_lc='no'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 hardcode_libdir_separator=:
8867 ;;
8868
8869 osf4* | osf5*) # as osf3* with the addition of -msym flag
8870 if test "$GCC" = yes; then
8871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 8872 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
8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874 else
8875 allow_undefined_flag=' -expect_unresolved \*'
52327858 8876 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 8877 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 8878 $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
8879
8880 # Both c and cxx compiler support -rpath directly
8881 hardcode_libdir_flag_spec='-rpath $libdir'
8882 fi
8883 archive_cmds_need_lc='no'
8884 hardcode_libdir_separator=:
8885 ;;
8886
8887 solaris*)
8888 no_undefined_flag=' -z defs'
8889 if test "$GCC" = yes; then
8890 wlarc='${wl}'
8891 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8893 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8894 else
8895 case `$CC -V 2>&1` in
8896 *"Compilers 5.0"*)
8897 wlarc=''
8898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8901 ;;
8902 *)
8903 wlarc='${wl}'
8904 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8907 ;;
8908 esac
8909 fi
8910 hardcode_libdir_flag_spec='-R$libdir'
8911 hardcode_shlibpath_var=no
8912 case $host_os in
8913 solaris2.[0-5] | solaris2.[0-5].*) ;;
8914 *)
8915 # The compiler driver will combine and reorder linker options,
8916 # but understands `-z linker_flag'. GCC discards it without `$wl',
8917 # but is careful enough not to reorder.
8918 # Supported since Solaris 2.6 (maybe 2.5.1?)
8919 if test "$GCC" = yes; then
8920 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8921 else
8922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8923 fi
8924 ;;
8925 esac
8926 link_all_deplibs=yes
8927 ;;
8928
8929 sunos4*)
8930 if test "x$host_vendor" = xsequent; then
8931 # Use $CC to link under sequent, because it throws in some extra .o
8932 # files that make .init and .fini sections work.
8933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8934 else
8935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8936 fi
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_direct=yes
8939 hardcode_minus_L=yes
8940 hardcode_shlibpath_var=no
8941 ;;
8942
8943 sysv4)
8944 case $host_vendor in
8945 sni)
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_direct=yes # is this really true???
8948 ;;
8949 siemens)
8950 ## LD is ld it makes a PLAMLIB
8951 ## CC just makes a GrossModule.
8952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8953 reload_cmds='$CC -r -o $output$reload_objs'
8954 hardcode_direct=no
8955 ;;
8956 motorola)
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8959 ;;
8960 esac
8961 runpath_var='LD_RUN_PATH'
8962 hardcode_shlibpath_var=no
8963 ;;
8964
8965 sysv4.3*)
8966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967 hardcode_shlibpath_var=no
8968 export_dynamic_flag_spec='-Bexport'
8969 ;;
8970
8971 sysv4*MP*)
8972 if test -d /usr/nec; then
8973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974 hardcode_shlibpath_var=no
8975 runpath_var=LD_RUN_PATH
8976 hardcode_runpath_var=yes
8977 ld_shlibs=yes
8978 fi
8979 ;;
8980
8981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8982 no_undefined_flag='${wl}-z,text'
8983 archive_cmds_need_lc=no
8984 hardcode_shlibpath_var=no
8985 runpath_var='LD_RUN_PATH'
8986
8987 if test "$GCC" = yes; then
8988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 else
8991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 fi
8994 ;;
8995
8996 sysv5* | sco3.2v5* | sco5v6*)
8997 # Note: We can NOT use -z defs as we might desire, because we do not
8998 # link with -lc, and that would cause any symbols used from libc to
8999 # always be unresolved, which means just about no library would
9000 # ever link correctly. If we're not using GNU ld we use -z text
9001 # though, which does catch some bad symbols but isn't as heavy-handed
9002 # as -z defs.
9003 no_undefined_flag='${wl}-z,text'
9004 allow_undefined_flag='${wl}-z,nodefs'
9005 archive_cmds_need_lc=no
9006 hardcode_shlibpath_var=no
9007 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9008 hardcode_libdir_separator=':'
9009 link_all_deplibs=yes
9010 export_dynamic_flag_spec='${wl}-Bexport'
9011 runpath_var='LD_RUN_PATH'
9012
9013 if test "$GCC" = yes; then
9014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 else
9017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019 fi
9020 ;;
9021
9022 uts4*)
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_shlibpath_var=no
9026 ;;
9027
9028 *)
9029 ld_shlibs=no
9030 ;;
9031 esac
9032
9033 if test x$host_vendor = xsni; then
9034 case $host in
9035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9036 export_dynamic_flag_spec='${wl}-Blargedynsym'
9037 ;;
9038 esac
9039 fi
9040 fi
9041
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9043$as_echo "$ld_shlibs" >&6; }
9044test "$ld_shlibs" = no && can_build_shared=no
9045
9046with_gnu_ld=$with_gnu_ld
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062#
9063# Do we need to explicitly link libc?
9064#
9065case "x$archive_cmds_need_lc" in
9066x|xyes)
9067 # Assume -lc should be added
9068 archive_cmds_need_lc=yes
9069
9070 if test "$enable_shared" = yes && test "$GCC" = yes; then
9071 case $archive_cmds in
9072 *'~'*)
9073 # FIXME: we may have to deal with multi-command sequences.
9074 ;;
9075 '$CC '*)
9076 # Test whether the compiler implicitly links with -lc since on some
9077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078 # to ld, don't add -lc before -lgcc.
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9080$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9081if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9083else
9084 $RM conftest*
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9086
9087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9088 (eval $ac_compile) 2>&5
9089 ac_status=$?
9090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9091 test $ac_status = 0; } 2>conftest.err; then
9092 soname=conftest
9093 lib=conftest
9094 libobjs=conftest.$ac_objext
9095 deplibs=
9096 wl=$lt_prog_compiler_wl
9097 pic_flag=$lt_prog_compiler_pic
9098 compiler_flags=-v
9099 linker_flags=-v
9100 verstring=
9101 output_objdir=.
9102 libname=conftest
9103 lt_save_allow_undefined_flag=$allow_undefined_flag
9104 allow_undefined_flag=
9105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9107 ac_status=$?
9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; }
9110 then
9111 lt_cv_archive_cmds_need_lc=no
9112 else
9113 lt_cv_archive_cmds_need_lc=yes
9114 fi
9115 allow_undefined_flag=$lt_save_allow_undefined_flag
9116 else
9117 cat conftest.err 1>&5
9118 fi
9119 $RM conftest*
9120
9121fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9123$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9125 ;;
9126 esac
9127 fi
9128 ;;
9129esac
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9288$as_echo_n "checking dynamic linker characteristics... " >&6; }
9289
9290if test "$GCC" = yes; then
9291 case $host_os in
9292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9293 *) lt_awk_arg="/^libraries:/" ;;
9294 esac
52327858
L
9295 case $host_os in
9296 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9297 *) lt_sed_strip_eq="s,=/,/,g" ;;
9298 esac
9299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9300 case $lt_search_path_spec in
9301 *\;*)
d7f09764
DN
9302 # if the path contains ";" then we assume it to be the separator
9303 # otherwise default to the standard path separator (i.e. ":") - it is
9304 # assumed that no part of a normal pathname contains ";" but that should
9305 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
9306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9307 ;;
9308 *)
9309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9310 ;;
9311 esac
d7f09764
DN
9312 # Ok, now we have the path, separated by spaces, we can step through it
9313 # and add multilib dir if necessary.
9314 lt_tmp_lt_search_path_spec=
9315 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9316 for lt_sys_path in $lt_search_path_spec; do
9317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9319 else
9320 test -d "$lt_sys_path" && \
9321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9322 fi
9323 done
52327858 9324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
9325BEGIN {RS=" "; FS="/|\n";} {
9326 lt_foo="";
9327 lt_count=0;
9328 for (lt_i = NF; lt_i > 0; lt_i--) {
9329 if ($lt_i != "" && $lt_i != ".") {
9330 if ($lt_i == "..") {
9331 lt_count++;
9332 } else {
9333 if (lt_count == 0) {
9334 lt_foo="/" $lt_i lt_foo;
9335 } else {
9336 lt_count--;
9337 }
9338 }
9339 }
9340 }
9341 if (lt_foo != "") { lt_freq[lt_foo]++; }
9342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9343}'`
52327858
L
9344 # AWK program above erroneously prepends '/' to C:/dos/paths
9345 # for these hosts.
9346 case $host_os in
9347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9349 esac
9350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
9351else
9352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9353fi
9354library_names_spec=
9355libname_spec='lib$name'
9356soname_spec=
9357shrext_cmds=".so"
9358postinstall_cmds=
9359postuninstall_cmds=
9360finish_cmds=
9361finish_eval=
9362shlibpath_var=
9363shlibpath_overrides_runpath=unknown
9364version_type=none
9365dynamic_linker="$host_os ld.so"
9366sys_lib_dlsearch_path_spec="/lib /usr/lib"
9367need_lib_prefix=unknown
9368hardcode_into_libs=no
9369
9370# when you set need_version to no, make sure it does not cause -set_version
9371# flags to be left without arguments
9372need_version=unknown
9373
9374case $host_os in
9375aix3*)
9376 version_type=linux
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9378 shlibpath_var=LIBPATH
9379
9380 # AIX 3 has no versioning support, so we append a major version to the name.
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 ;;
9383
9384aix[4-9]*)
9385 version_type=linux
9386 need_lib_prefix=no
9387 need_version=no
9388 hardcode_into_libs=yes
9389 if test "$host_cpu" = ia64; then
9390 # AIX 5 supports IA64
9391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 else
9394 # With GCC up to 2.95.x, collect2 would create an import file
9395 # for dependence libraries. The import file would start with
9396 # the line `#! .'. This would cause the generated library to
9397 # depend on `.', always an invalid library. This was fixed in
9398 # development snapshots of GCC prior to 3.0.
9399 case $host_os in
9400 aix4 | aix4.[01] | aix4.[01].*)
9401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9402 echo ' yes '
9403 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9404 :
9405 else
9406 can_build_shared=no
9407 fi
9408 ;;
9409 esac
9410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9411 # soname into executable. Probably we can add versioning support to
9412 # collect2, so additional links can be useful in future.
9413 if test "$aix_use_runtimelinking" = yes; then
9414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9415 # instead of lib<name>.a to let people know that these are not
9416 # typical AIX shared libraries.
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 else
9419 # We preserve .a as extension for shared libraries through AIX4.2
9420 # and later when we are not doing run time linking.
9421 library_names_spec='${libname}${release}.a $libname.a'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 fi
9424 shlibpath_var=LIBPATH
9425 fi
9426 ;;
9427
9428amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # Since July 2007 AmigaOS4 officially supports .so libraries.
9432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 ;;
9435 m68k)
9436 library_names_spec='$libname.ixlibrary $libname.a'
9437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 9438 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
9439 ;;
9440 esac
9441 ;;
9442
9443beos*)
9444 library_names_spec='${libname}${shared_ext}'
9445 dynamic_linker="$host_os ld.so"
9446 shlibpath_var=LIBRARY_PATH
9447 ;;
9448
9449bsdi[45]*)
9450 version_type=linux
9451 need_version=no
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9458 # the default ld.so.conf also contains /usr/contrib/lib and
9459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9460 # libtool to hard-code these into programs
9461 ;;
9462
9463cygwin* | mingw* | pw32* | cegcc*)
9464 version_type=windows
9465 shrext_cmds=".dll"
9466 need_version=no
9467 need_lib_prefix=no
9468
9469 case $GCC,$host_os in
9470 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9471 library_names_spec='$libname.dll.a'
9472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9473 postinstall_cmds='base_file=`basename \${file}`~
9474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9475 dldir=$destdir/`dirname \$dlpath`~
9476 test -d \$dldir || mkdir -p \$dldir~
9477 $install_prog $dir/$dlname \$dldir/$dlname~
9478 chmod a+x \$dldir/$dlname~
9479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9481 fi'
9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9483 dlpath=$dir/\$dldll~
9484 $RM \$dlpath'
9485 shlibpath_overrides_runpath=yes
9486
9487 case $host_os in
9488 cygwin*)
9489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
9491
9492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
9493 ;;
9494 mingw* | cegcc*)
9495 # MinGW DLLs use traditional 'lib' prefix
9496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
9497 ;;
9498 pw32*)
9499 # pw32 DLLs use 'pw' prefix rather than 'lib'
9500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9501 ;;
9502 esac
9503 ;;
9504
9505 *)
9506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9507 ;;
9508 esac
9509 dynamic_linker='Win32 ld.exe'
9510 # FIXME: first we should search . and the directory the executable is in
9511 shlibpath_var=PATH
9512 ;;
9513
9514darwin* | rhapsody*)
9515 dynamic_linker="$host_os dyld"
9516 version_type=darwin
9517 need_lib_prefix=no
9518 need_version=no
9519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9520 soname_spec='${libname}${release}${major}$shared_ext'
9521 shlibpath_overrides_runpath=yes
9522 shlibpath_var=DYLD_LIBRARY_PATH
9523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9524
9525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9527 ;;
9528
9529dgux*)
9530 version_type=linux
9531 need_lib_prefix=no
9532 need_version=no
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 ;;
9537
9538freebsd1*)
9539 dynamic_linker=no
9540 ;;
9541
9542freebsd* | dragonfly*)
9543 # DragonFly does not have aout. When/if they implement a new
9544 # versioning mechanism, adjust this.
9545 if test -x /usr/bin/objformat; then
9546 objformat=`/usr/bin/objformat`
9547 else
9548 case $host_os in
9549 freebsd[123]*) objformat=aout ;;
9550 *) objformat=elf ;;
9551 esac
9552 fi
9553 version_type=freebsd-$objformat
9554 case $version_type in
9555 freebsd-elf*)
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9557 need_version=no
9558 need_lib_prefix=no
9559 ;;
9560 freebsd-*)
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9562 need_version=yes
9563 ;;
9564 esac
9565 shlibpath_var=LD_LIBRARY_PATH
9566 case $host_os in
9567 freebsd2*)
9568 shlibpath_overrides_runpath=yes
9569 ;;
9570 freebsd3.[01]* | freebsdelf3.[01]*)
9571 shlibpath_overrides_runpath=yes
9572 hardcode_into_libs=yes
9573 ;;
9574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9576 shlibpath_overrides_runpath=no
9577 hardcode_into_libs=yes
9578 ;;
9579 *) # from 4.6 on, and DragonFly
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9582 ;;
9583 esac
9584 ;;
9585
9586gnu*)
9587 version_type=linux
9588 need_lib_prefix=no
9589 need_version=no
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 hardcode_into_libs=yes
9594 ;;
9595
52327858
L
9596haiku*)
9597 version_type=linux
9598 need_lib_prefix=no
9599 need_version=no
9600 dynamic_linker="$host_os runtime_loader"
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9606 hardcode_into_libs=yes
9607 ;;
9608
d7f09764
DN
9609hpux9* | hpux10* | hpux11*)
9610 # Give a soname corresponding to the major version so that dld.sl refuses to
9611 # link against other versions.
9612 version_type=sunos
9613 need_lib_prefix=no
9614 need_version=no
9615 case $host_cpu in
9616 ia64*)
9617 shrext_cmds='.so'
9618 hardcode_into_libs=yes
9619 dynamic_linker="$host_os dld.so"
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 if test "X$HPUX_IA64_MODE" = X32; then
9625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9626 else
9627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9628 fi
9629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9630 ;;
9631 hppa*64*)
9632 shrext_cmds='.sl'
9633 hardcode_into_libs=yes
9634 dynamic_linker="$host_os dld.sl"
9635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9641 ;;
9642 *)
9643 shrext_cmds='.sl'
9644 dynamic_linker="$host_os dld.sl"
9645 shlibpath_var=SHLIB_PATH
9646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 ;;
9650 esac
52327858 9651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 9652 postinstall_cmds='chmod 555 $lib'
52327858
L
9653 # or fails outright, so override atomically:
9654 install_override_mode=555
d7f09764
DN
9655 ;;
9656
9657interix[3-9]*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 ;;
9668
9669irix5* | irix6* | nonstopux*)
9670 case $host_os in
9671 nonstopux*) version_type=nonstopux ;;
9672 *)
9673 if test "$lt_cv_prog_gnu_ld" = yes; then
9674 version_type=linux
9675 else
9676 version_type=irix
9677 fi ;;
9678 esac
9679 need_lib_prefix=no
9680 need_version=no
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9683 case $host_os in
9684 irix5* | nonstopux*)
9685 libsuff= shlibsuff=
9686 ;;
9687 *)
9688 case $LD in # libtool.m4 will add one of these switches to LD
9689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9690 libsuff= shlibsuff= libmagic=32-bit;;
9691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9692 libsuff=32 shlibsuff=N32 libmagic=N32;;
9693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9695 *) libsuff= shlibsuff= libmagic=never-match;;
9696 esac
9697 ;;
9698 esac
9699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9700 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9703 hardcode_into_libs=yes
9704 ;;
9705
9706# No shared lib support for Linux oldld, aout, or coff.
9707linux*oldld* | linux*aout* | linux*coff*)
9708 dynamic_linker=no
9709 ;;
9710
9711# This must be Linux ELF.
9712linux* | k*bsd*-gnu | kopensolaris*-gnu)
9713 version_type=linux
9714 need_lib_prefix=no
9715 need_version=no
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=no
9721
9722 # Some binutils ld are patched to set DT_RUNPATH
9723 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 lt_cv_shlibpath_overrides_runpath=no
9727 save_LDFLAGS=$LDFLAGS
9728 save_libdir=$libdir
9729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h. */
9733
9734int
9735main ()
9736{
9737
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742if ac_fn_c_try_link "$LINENO"; then :
9743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9744 lt_cv_shlibpath_overrides_runpath=yes
9745fi
9746fi
9747rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LDFLAGS=$save_LDFLAGS
9750 libdir=$save_libdir
9751
9752fi
9753
9754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9755
9756 # This implies no fast_install, which is unacceptable.
9757 # Some rework will be needed to allow for fast_install
9758 # before this can be enabled.
9759 hardcode_into_libs=yes
9760
9761 # Append ld.so.conf contents to the search path
9762 if test -f /etc/ld.so.conf; then
52327858 9763 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
9764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9765 fi
9766
9767 # We used to test for /lib/ld.so.1 and disable shared libraries on
9768 # powerpc, because MkLinux only supported shared libraries with the
9769 # GNU dynamic linker. Since this was broken with cross compilers,
9770 # most powerpc-linux boxes support dynamic linking these days and
9771 # people can always --disable-shared, the test was removed, and we
9772 # assume the GNU/Linux dynamic linker is in use.
9773 dynamic_linker='GNU/Linux ld.so'
9774 ;;
9775
9776netbsd*)
9777 version_type=sunos
9778 need_lib_prefix=no
9779 need_version=no
9780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9783 dynamic_linker='NetBSD (a.out) ld.so'
9784 else
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 dynamic_linker='NetBSD ld.elf_so'
9788 fi
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=yes
9791 hardcode_into_libs=yes
9792 ;;
9793
9794newsos6)
9795 version_type=linux
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=yes
9799 ;;
9800
9801*nto* | *qnx*)
9802 version_type=qnx
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=no
9809 hardcode_into_libs=yes
9810 dynamic_linker='ldqnx.so'
9811 ;;
9812
9813openbsd*)
9814 version_type=sunos
9815 sys_lib_dlsearch_path_spec="/usr/lib"
9816 need_lib_prefix=no
9817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9818 case $host_os in
9819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9820 *) need_version=no ;;
9821 esac
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9826 case $host_os in
9827 openbsd2.[89] | openbsd2.[89].*)
9828 shlibpath_overrides_runpath=no
9829 ;;
9830 *)
9831 shlibpath_overrides_runpath=yes
9832 ;;
9833 esac
9834 else
9835 shlibpath_overrides_runpath=yes
9836 fi
9837 ;;
9838
9839os2*)
9840 libname_spec='$name'
9841 shrext_cmds=".dll"
9842 need_lib_prefix=no
9843 library_names_spec='$libname${shared_ext} $libname.a'
9844 dynamic_linker='OS/2 ld.exe'
9845 shlibpath_var=LIBPATH
9846 ;;
9847
9848osf3* | osf4* | osf5*)
9849 version_type=osf
9850 need_lib_prefix=no
9851 need_version=no
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9857 ;;
9858
9859rdos*)
9860 dynamic_linker=no
9861 ;;
9862
9863solaris*)
9864 version_type=linux
9865 need_lib_prefix=no
9866 need_version=no
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 shlibpath_overrides_runpath=yes
9871 hardcode_into_libs=yes
9872 # ldd complains unless libraries are executable
9873 postinstall_cmds='chmod +x $lib'
9874 ;;
9875
9876sunos4*)
9877 version_type=sunos
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 shlibpath_overrides_runpath=yes
9882 if test "$with_gnu_ld" = yes; then
9883 need_lib_prefix=no
9884 fi
9885 need_version=yes
9886 ;;
9887
9888sysv4 | sysv4.3*)
9889 version_type=linux
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 case $host_vendor in
9894 sni)
9895 shlibpath_overrides_runpath=no
9896 need_lib_prefix=no
9897 runpath_var=LD_RUN_PATH
9898 ;;
9899 siemens)
9900 need_lib_prefix=no
9901 ;;
9902 motorola)
9903 need_lib_prefix=no
9904 need_version=no
9905 shlibpath_overrides_runpath=no
9906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9907 ;;
9908 esac
9909 ;;
9910
9911sysv4*MP*)
9912 if test -d /usr/nec ;then
9913 version_type=linux
9914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9915 soname_spec='$libname${shared_ext}.$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 fi
9918 ;;
9919
9920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9921 version_type=freebsd-elf
9922 need_lib_prefix=no
9923 need_version=no
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 hardcode_into_libs=yes
9929 if test "$with_gnu_ld" = yes; then
9930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9931 else
9932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9933 case $host_os in
9934 sco3.2v5*)
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9936 ;;
9937 esac
9938 fi
9939 sys_lib_dlsearch_path_spec='/usr/lib'
9940 ;;
9941
9942tpf*)
9943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 ;;
9952
9953uts4*)
9954 version_type=linux
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 ;;
9959
9960*)
9961 dynamic_linker=no
9962 ;;
9963esac
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9965$as_echo "$dynamic_linker" >&6; }
9966test "$dynamic_linker" = no && can_build_shared=no
9967
9968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9969if test "$GCC" = yes; then
9970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9971fi
9972
9973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9975fi
9976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9978fi
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
52327858
L
10060
10061
10062
10063
10064
d7f09764
DN
10065
10066
10067
10068
10069
10070
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10072$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10073hardcode_action=
10074if test -n "$hardcode_libdir_flag_spec" ||
10075 test -n "$runpath_var" ||
10076 test "X$hardcode_automatic" = "Xyes" ; then
10077
10078 # We can hardcode non-existent directories.
10079 if test "$hardcode_direct" != no &&
10080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10081 # have to relink, otherwise we might link with an installed library
10082 # when we should be linking with a yet-to-be-installed one
10083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10084 test "$hardcode_minus_L" != no; then
10085 # Linking always hardcodes the temporary library directory.
10086 hardcode_action=relink
10087 else
10088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10089 hardcode_action=immediate
10090 fi
10091else
10092 # We cannot hardcode anything, or else we can only hardcode existing
10093 # directories.
10094 hardcode_action=unsupported
10095fi
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10097$as_echo "$hardcode_action" >&6; }
10098
10099if test "$hardcode_action" = relink ||
10100 test "$inherit_rpath" = yes; then
10101 # Fast installation is not supported
10102 enable_fast_install=no
10103elif test "$shlibpath_overrides_runpath" = yes ||
10104 test "$enable_shared" = no; then
10105 # Fast installation is not necessary
10106 enable_fast_install=needless
10107fi
10108
10109
10110
10111
10112
10113
10114 if test "x$enable_dlopen" != xyes; then
10115 enable_dlopen=unknown
10116 enable_dlopen_self=unknown
10117 enable_dlopen_self_static=unknown
10118else
10119 lt_cv_dlopen=no
10120 lt_cv_dlopen_libs=
10121
10122 case $host_os in
10123 beos*)
10124 lt_cv_dlopen="load_add_on"
10125 lt_cv_dlopen_libs=
10126 lt_cv_dlopen_self=yes
10127 ;;
10128
10129 mingw* | pw32* | cegcc*)
10130 lt_cv_dlopen="LoadLibrary"
10131 lt_cv_dlopen_libs=
10132 ;;
10133
10134 cygwin*)
10135 lt_cv_dlopen="dlopen"
10136 lt_cv_dlopen_libs=
10137 ;;
10138
10139 darwin*)
10140 # if libdl is installed we need to link against it
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10142$as_echo_n "checking for dlopen in -ldl... " >&6; }
10143if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145else
10146 ac_check_lib_save_LIBS=$LIBS
10147LIBS="-ldl $LIBS"
10148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h. */
10150
10151/* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154#ifdef __cplusplus
10155extern "C"
10156#endif
10157char dlopen ();
10158int
10159main ()
10160{
10161return dlopen ();
10162 ;
10163 return 0;
10164}
10165_ACEOF
10166if ac_fn_c_try_link "$LINENO"; then :
10167 ac_cv_lib_dl_dlopen=yes
10168else
10169 ac_cv_lib_dl_dlopen=no
10170fi
10171rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173LIBS=$ac_check_lib_save_LIBS
10174fi
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10176$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10177if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10179else
10180
10181 lt_cv_dlopen="dyld"
10182 lt_cv_dlopen_libs=
10183 lt_cv_dlopen_self=yes
10184
10185fi
10186
10187 ;;
10188
10189 *)
10190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10191if test "x$ac_cv_func_shl_load" = x""yes; then :
10192 lt_cv_dlopen="shl_load"
10193else
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10195$as_echo_n "checking for shl_load in -ldld... " >&6; }
10196if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198else
10199 ac_check_lib_save_LIBS=$LIBS
10200LIBS="-ldld $LIBS"
10201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202/* end confdefs.h. */
10203
10204/* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207#ifdef __cplusplus
10208extern "C"
10209#endif
10210char shl_load ();
10211int
10212main ()
10213{
10214return shl_load ();
10215 ;
10216 return 0;
10217}
10218_ACEOF
10219if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_dld_shl_load=yes
10221else
10222 ac_cv_lib_dld_shl_load=no
10223fi
10224rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226LIBS=$ac_check_lib_save_LIBS
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10229$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10230if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10232else
10233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10234if test "x$ac_cv_func_dlopen" = x""yes; then :
10235 lt_cv_dlopen="dlopen"
10236else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10238$as_echo_n "checking for dlopen in -ldl... " >&6; }
10239if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10241else
10242 ac_check_lib_save_LIBS=$LIBS
10243LIBS="-ldl $LIBS"
10244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h. */
10246
10247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char dlopen ();
10254int
10255main ()
10256{
10257return dlopen ();
10258 ;
10259 return 0;
10260}
10261_ACEOF
10262if ac_fn_c_try_link "$LINENO"; then :
10263 ac_cv_lib_dl_dlopen=yes
10264else
10265 ac_cv_lib_dl_dlopen=no
10266fi
10267rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269LIBS=$ac_check_lib_save_LIBS
10270fi
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10273if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10275else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10277$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10278if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10280else
10281 ac_check_lib_save_LIBS=$LIBS
10282LIBS="-lsvld $LIBS"
10283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h. */
10285
10286/* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10289#ifdef __cplusplus
10290extern "C"
10291#endif
10292char dlopen ();
10293int
10294main ()
10295{
10296return dlopen ();
10297 ;
10298 return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302 ac_cv_lib_svld_dlopen=yes
10303else
10304 ac_cv_lib_svld_dlopen=no
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308LIBS=$ac_check_lib_save_LIBS
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10311$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10312if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10314else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10316$as_echo_n "checking for dld_link in -ldld... " >&6; }
10317if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319else
10320 ac_check_lib_save_LIBS=$LIBS
10321LIBS="-ldld $LIBS"
10322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h. */
10324
10325/* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328#ifdef __cplusplus
10329extern "C"
10330#endif
10331char dld_link ();
10332int
10333main ()
10334{
10335return dld_link ();
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340if ac_fn_c_try_link "$LINENO"; then :
10341 ac_cv_lib_dld_dld_link=yes
10342else
10343 ac_cv_lib_dld_dld_link=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347LIBS=$ac_check_lib_save_LIBS
10348fi
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10350$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10351if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361
10362fi
10363
10364
10365fi
10366
10367
10368fi
10369
10370 ;;
10371 esac
10372
10373 if test "x$lt_cv_dlopen" != xno; then
10374 enable_dlopen=yes
10375 else
10376 enable_dlopen=no
10377 fi
10378
10379 case $lt_cv_dlopen in
10380 dlopen)
10381 save_CPPFLAGS="$CPPFLAGS"
10382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10383
10384 save_LDFLAGS="$LDFLAGS"
10385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10386
10387 save_LIBS="$LIBS"
10388 LIBS="$lt_cv_dlopen_libs $LIBS"
10389
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10391$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10392if test "${lt_cv_dlopen_self+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
10394else
10395 if test "$cross_compiling" = yes; then :
10396 lt_cv_dlopen_self=cross
10397else
10398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10399 lt_status=$lt_dlunknown
10400 cat > conftest.$ac_ext <<_LT_EOF
1cd0b716 10401#line 10401 "configure"
d7f09764
DN
10402#include "confdefs.h"
10403
10404#if HAVE_DLFCN_H
10405#include <dlfcn.h>
10406#endif
10407
10408#include <stdio.h>
10409
10410#ifdef RTLD_GLOBAL
10411# define LT_DLGLOBAL RTLD_GLOBAL
10412#else
10413# ifdef DL_GLOBAL
10414# define LT_DLGLOBAL DL_GLOBAL
10415# else
10416# define LT_DLGLOBAL 0
10417# endif
10418#endif
10419
10420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10421 find out it does not work in some platform. */
10422#ifndef LT_DLLAZY_OR_NOW
10423# ifdef RTLD_LAZY
10424# define LT_DLLAZY_OR_NOW RTLD_LAZY
10425# else
10426# ifdef DL_LAZY
10427# define LT_DLLAZY_OR_NOW DL_LAZY
10428# else
10429# ifdef RTLD_NOW
10430# define LT_DLLAZY_OR_NOW RTLD_NOW
10431# else
10432# ifdef DL_NOW
10433# define LT_DLLAZY_OR_NOW DL_NOW
10434# else
10435# define LT_DLLAZY_OR_NOW 0
10436# endif
10437# endif
10438# endif
10439# endif
10440#endif
10441
52327858
L
10442/* When -fvisbility=hidden is used, assume the code has been annotated
10443 correspondingly for the symbols needed. */
10444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10445void fnord () __attribute__((visibility("default")));
10446#endif
10447
10448void fnord () { int i=42; }
d7f09764
DN
10449int main ()
10450{
10451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10452 int status = $lt_dlunknown;
10453
10454 if (self)
10455 {
10456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
10457 else
10458 {
10459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460 else puts (dlerror ());
10461 }
d7f09764
DN
10462 /* dlclose (self); */
10463 }
10464 else
10465 puts (dlerror ());
10466
10467 return status;
10468}
10469_LT_EOF
10470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10471 (eval $ac_link) 2>&5
10472 ac_status=$?
10473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10475 (./conftest; exit; ) >&5 2>/dev/null
10476 lt_status=$?
10477 case x$lt_status in
10478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10481 esac
10482 else :
10483 # compilation failed
10484 lt_cv_dlopen_self=no
10485 fi
10486fi
10487rm -fr conftest*
10488
10489
10490fi
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10492$as_echo "$lt_cv_dlopen_self" >&6; }
10493
10494 if test "x$lt_cv_dlopen_self" = xyes; then
10495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10497$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10498if test "${lt_cv_dlopen_self_static+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500else
10501 if test "$cross_compiling" = yes; then :
10502 lt_cv_dlopen_self_static=cross
10503else
10504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10505 lt_status=$lt_dlunknown
10506 cat > conftest.$ac_ext <<_LT_EOF
1cd0b716 10507#line 10507 "configure"
d7f09764
DN
10508#include "confdefs.h"
10509
10510#if HAVE_DLFCN_H
10511#include <dlfcn.h>
10512#endif
10513
10514#include <stdio.h>
10515
10516#ifdef RTLD_GLOBAL
10517# define LT_DLGLOBAL RTLD_GLOBAL
10518#else
10519# ifdef DL_GLOBAL
10520# define LT_DLGLOBAL DL_GLOBAL
10521# else
10522# define LT_DLGLOBAL 0
10523# endif
10524#endif
10525
10526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10527 find out it does not work in some platform. */
10528#ifndef LT_DLLAZY_OR_NOW
10529# ifdef RTLD_LAZY
10530# define LT_DLLAZY_OR_NOW RTLD_LAZY
10531# else
10532# ifdef DL_LAZY
10533# define LT_DLLAZY_OR_NOW DL_LAZY
10534# else
10535# ifdef RTLD_NOW
10536# define LT_DLLAZY_OR_NOW RTLD_NOW
10537# else
10538# ifdef DL_NOW
10539# define LT_DLLAZY_OR_NOW DL_NOW
10540# else
10541# define LT_DLLAZY_OR_NOW 0
10542# endif
10543# endif
10544# endif
10545# endif
10546#endif
10547
52327858
L
10548/* When -fvisbility=hidden is used, assume the code has been annotated
10549 correspondingly for the symbols needed. */
10550#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10551void fnord () __attribute__((visibility("default")));
10552#endif
10553
10554void fnord () { int i=42; }
d7f09764
DN
10555int main ()
10556{
10557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10558 int status = $lt_dlunknown;
10559
10560 if (self)
10561 {
10562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
10563 else
10564 {
10565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10566 else puts (dlerror ());
10567 }
d7f09764
DN
10568 /* dlclose (self); */
10569 }
10570 else
10571 puts (dlerror ());
10572
10573 return status;
10574}
10575_LT_EOF
10576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10577 (eval $ac_link) 2>&5
10578 ac_status=$?
10579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10581 (./conftest; exit; ) >&5 2>/dev/null
10582 lt_status=$?
10583 case x$lt_status in
10584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10587 esac
10588 else :
10589 # compilation failed
10590 lt_cv_dlopen_self_static=no
10591 fi
10592fi
10593rm -fr conftest*
10594
10595
10596fi
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10598$as_echo "$lt_cv_dlopen_self_static" >&6; }
10599 fi
10600
10601 CPPFLAGS="$save_CPPFLAGS"
10602 LDFLAGS="$save_LDFLAGS"
10603 LIBS="$save_LIBS"
10604 ;;
10605 esac
10606
10607 case $lt_cv_dlopen_self in
10608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10609 *) enable_dlopen_self=unknown ;;
10610 esac
10611
10612 case $lt_cv_dlopen_self_static in
10613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10614 *) enable_dlopen_self_static=unknown ;;
10615 esac
10616fi
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634striplib=
10635old_striplib=
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10637$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10638if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642$as_echo "yes" >&6; }
10643else
10644# FIXME - insert some real tests, host_os isn't really good enough
10645 case $host_os in
10646 darwin*)
10647 if test -n "$STRIP" ; then
10648 striplib="$STRIP -x"
10649 old_striplib="$STRIP -S"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651$as_echo "yes" >&6; }
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654$as_echo "no" >&6; }
10655 fi
10656 ;;
10657 *)
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659$as_echo "no" >&6; }
10660 ;;
10661 esac
10662fi
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 # Report which library types will actually be built
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10679$as_echo "$can_build_shared" >&6; }
10680
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10682$as_echo_n "checking whether to build shared libraries... " >&6; }
10683 test "$can_build_shared" = "no" && enable_shared=no
10684
10685 # On AIX, shared libraries and static libraries use the same namespace, and
10686 # are all built from PIC.
10687 case $host_os in
10688 aix3*)
10689 test "$enable_shared" = yes && enable_static=no
10690 if test -n "$RANLIB"; then
10691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10692 postinstall_cmds='$RANLIB $lib'
10693 fi
10694 ;;
10695
10696 aix[4-9]*)
10697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10698 test "$enable_shared" = yes && enable_static=no
10699 fi
10700 ;;
10701 esac
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10703$as_echo "$enable_shared" >&6; }
10704
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10706$as_echo_n "checking whether to build static libraries... " >&6; }
10707 # Make sure either enable_shared or enable_static is yes.
10708 test "$enable_shared" = yes || enable_static=yes
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10710$as_echo "$enable_static" >&6; }
10711
10712
10713
10714
10715fi
10716ac_ext=c
10717ac_cpp='$CPP $CPPFLAGS'
10718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721
10722CC="$lt_save_CC"
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 ac_config_commands="$ac_config_commands libtool"
10737
10738
10739
10740
10741# Only expand once:
10742
10743
10744
1cd0b716
DK
10745. ${srcdir}/../gcc/config.gcc
10746case ${lto_binary_reader} in
10747 *coff*) LTO_FORMAT=coff ;;
10748 *elf*) LTO_FORMAT=elf ;;
10749 *) as_fn_error "LTO plugin is not supported on this target." "$LINENO" 5 ;;
10750esac
10751
10752
21750c78
RE
10753ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10754case $ac_cv_c_uint64_t in #(
10755 no|yes) ;; #(
10756 *)
10757
10758$as_echo "#define _UINT64_T 1" >>confdefs.h
10759
10760
10761cat >>confdefs.h <<_ACEOF
10762#define uint64_t $ac_cv_c_uint64_t
10763_ACEOF
10764;;
10765 esac
10766
d7f09764
DN
10767ac_config_files="$ac_config_files Makefile"
10768
10769cat >confcache <<\_ACEOF
10770# This file is a shell script that caches the results of configure
10771# tests run on this system so they can be shared between configure
10772# scripts and configure runs, see configure's option --config-cache.
10773# It is not useful on other systems. If it contains results you don't
10774# want to keep, you may remove or edit it.
10775#
10776# config.status only pays attention to the cache file if you give it
10777# the --recheck option to rerun configure.
10778#
10779# `ac_cv_env_foo' variables (set or unset) will be overridden when
10780# loading this file, other *unset* `ac_cv_foo' will be assigned the
10781# following values.
10782
10783_ACEOF
10784
10785# The following way of writing the cache mishandles newlines in values,
10786# but we know of no workaround that is simple, portable, and efficient.
10787# So, we kill variables containing newlines.
10788# Ultrix sh set writes to stderr and can't be redirected directly,
10789# and sets the high bit in the cache file unless we assign to the vars.
10790(
10791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10792 eval ac_val=\$$ac_var
10793 case $ac_val in #(
10794 *${as_nl}*)
10795 case $ac_var in #(
10796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10798 esac
10799 case $ac_var in #(
10800 _ | IFS | as_nl) ;; #(
10801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10802 *) { eval $ac_var=; unset $ac_var;} ;;
10803 esac ;;
10804 esac
10805 done
10806
10807 (set) 2>&1 |
10808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10809 *${as_nl}ac_space=\ *)
10810 # `set' does not quote correctly, so add quotes: double-quote
10811 # substitution turns \\\\ into \\, and sed turns \\ into \.
10812 sed -n \
10813 "s/'/'\\\\''/g;
10814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10815 ;; #(
10816 *)
10817 # `set' quotes correctly as required by POSIX, so do not add quotes.
10818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10819 ;;
10820 esac |
10821 sort
10822) |
10823 sed '
10824 /^ac_cv_env_/b end
10825 t clear
10826 :clear
10827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10828 t end
10829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10830 :end' >>confcache
10831if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10832 if test -w "$cache_file"; then
10833 test "x$cache_file" != "x/dev/null" &&
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10835$as_echo "$as_me: updating cache $cache_file" >&6;}
10836 cat confcache >$cache_file
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10839$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10840 fi
10841fi
10842rm -f confcache
10843
10844test "x$prefix" = xNONE && prefix=$ac_default_prefix
10845# Let make expand exec_prefix.
10846test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10847
10848# Transform confdefs.h into DEFS.
10849# Protect against shell expansion while executing Makefile rules.
10850# Protect against Makefile macro expansion.
10851#
10852# If the first sed substitution is executed (which looks for macros that
10853# take arguments), then branch to the quote section. Otherwise,
10854# look for a macro that doesn't take arguments.
10855ac_script='
10856:mline
10857/\\$/{
10858 N
10859 s,\\\n,,
10860 b mline
10861}
10862t clear
10863:clear
10864s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10865t quote
10866s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10867t quote
10868b any
10869:quote
10870s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10871s/\[/\\&/g
10872s/\]/\\&/g
10873s/\$/$$/g
10874H
10875:any
10876${
10877 g
10878 s/^\n//
10879 s/\n/ /g
10880 p
10881}
10882'
10883DEFS=`sed -n "$ac_script" confdefs.h`
10884
10885
10886ac_libobjs=
10887ac_ltlibobjs=
10888for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10889 # 1. Remove the extension, and $U if already installed.
10890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10891 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10893 # will be set to the directory where LIBOBJS objects are built.
10894 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10895 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10896done
10897LIBOBJS=$ac_libobjs
10898
10899LTLIBOBJS=$ac_ltlibobjs
10900
10901
10902 if test -n "$EXEEXT"; then
10903 am__EXEEXT_TRUE=
10904 am__EXEEXT_FALSE='#'
10905else
10906 am__EXEEXT_TRUE='#'
10907 am__EXEEXT_FALSE=
10908fi
10909
03428d41
RG
10910if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10911 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10912Usually this means the macro was only invoked conditionally." "$LINENO" 5
10913fi
d7f09764
DN
10914if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10915 as_fn_error "conditional \"AMDEP\" was never defined.
10916Usually this means the macro was only invoked conditionally." "$LINENO" 5
10917fi
10918if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10919 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10920Usually this means the macro was only invoked conditionally." "$LINENO" 5
10921fi
10922
10923: ${CONFIG_STATUS=./config.status}
10924ac_write_fail=0
10925ac_clean_files_save=$ac_clean_files
10926ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10928$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10929as_write_fail=0
10930cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10931#! $SHELL
10932# Generated by $as_me.
10933# Run this file to recreate the current configuration.
10934# Compiler output produced by configure, useful for debugging
10935# configure, is in config.log if it exists.
10936
10937debug=false
10938ac_cs_recheck=false
10939ac_cs_silent=false
10940
10941SHELL=\${CONFIG_SHELL-$SHELL}
10942export SHELL
10943_ASEOF
10944cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10945## -------------------- ##
10946## M4sh Initialization. ##
10947## -------------------- ##
10948
10949# Be more Bourne compatible
10950DUALCASE=1; export DUALCASE # for MKS sh
10951if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10952 emulate sh
10953 NULLCMD=:
10954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10955 # is contrary to our usage. Disable this feature.
10956 alias -g '${1+"$@"}'='"$@"'
10957 setopt NO_GLOB_SUBST
10958else
10959 case `(set -o) 2>/dev/null` in #(
10960 *posix*) :
10961 set -o posix ;; #(
10962 *) :
10963 ;;
10964esac
10965fi
10966
10967
10968as_nl='
10969'
10970export as_nl
10971# Printing a long string crashes Solaris 7 /usr/bin/printf.
10972as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10974as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10975# Prefer a ksh shell builtin over an external printf program on Solaris,
10976# but without wasting forks for bash or zsh.
10977if test -z "$BASH_VERSION$ZSH_VERSION" \
10978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10979 as_echo='print -r --'
10980 as_echo_n='print -rn --'
10981elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10982 as_echo='printf %s\n'
10983 as_echo_n='printf %s'
10984else
10985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10987 as_echo_n='/usr/ucb/echo -n'
10988 else
10989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10990 as_echo_n_body='eval
10991 arg=$1;
10992 case $arg in #(
10993 *"$as_nl"*)
10994 expr "X$arg" : "X\\(.*\\)$as_nl";
10995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10996 esac;
10997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10998 '
10999 export as_echo_n_body
11000 as_echo_n='sh -c $as_echo_n_body as_echo'
11001 fi
11002 export as_echo_body
11003 as_echo='sh -c $as_echo_body as_echo'
11004fi
11005
11006# The user is always right.
11007if test "${PATH_SEPARATOR+set}" != set; then
11008 PATH_SEPARATOR=:
11009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11011 PATH_SEPARATOR=';'
11012 }
11013fi
11014
11015
11016# IFS
11017# We need space, tab and new line, in precisely that order. Quoting is
11018# there to prevent editors from complaining about space-tab.
11019# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11020# splitting by setting IFS to empty value.)
11021IFS=" "" $as_nl"
11022
11023# Find who we are. Look in the path if we contain no directory separator.
11024case $0 in #((
11025 *[\\/]* ) as_myself=$0 ;;
11026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11032 done
11033IFS=$as_save_IFS
11034
11035 ;;
11036esac
11037# We did not find ourselves, most probably we were run as `sh COMMAND'
11038# in which case we are not to be found in the path.
11039if test "x$as_myself" = x; then
11040 as_myself=$0
11041fi
11042if test ! -f "$as_myself"; then
11043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11044 exit 1
11045fi
11046
11047# Unset variables that we do not need and which cause bugs (e.g. in
11048# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11049# suppresses any "Segmentation fault" message there. '((' could
11050# trigger a bug in pdksh 5.2.14.
11051for as_var in BASH_ENV ENV MAIL MAILPATH
11052do eval test x\${$as_var+set} = xset \
11053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11054done
11055PS1='$ '
11056PS2='> '
11057PS4='+ '
11058
11059# NLS nuisances.
11060LC_ALL=C
11061export LC_ALL
11062LANGUAGE=C
11063export LANGUAGE
11064
11065# CDPATH.
11066(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11067
11068
11069# as_fn_error ERROR [LINENO LOG_FD]
11070# ---------------------------------
11071# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11072# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11073# script with status $?, using 1 if that was 0.
11074as_fn_error ()
11075{
11076 as_status=$?; test $as_status -eq 0 && as_status=1
11077 if test "$3"; then
11078 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11080 fi
11081 $as_echo "$as_me: error: $1" >&2
11082 as_fn_exit $as_status
11083} # as_fn_error
11084
11085
11086# as_fn_set_status STATUS
11087# -----------------------
11088# Set $? to STATUS, without forking.
11089as_fn_set_status ()
11090{
11091 return $1
11092} # as_fn_set_status
11093
11094# as_fn_exit STATUS
11095# -----------------
11096# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11097as_fn_exit ()
11098{
11099 set +e
11100 as_fn_set_status $1
11101 exit $1
11102} # as_fn_exit
11103
11104# as_fn_unset VAR
11105# ---------------
11106# Portably unset VAR.
11107as_fn_unset ()
11108{
11109 { eval $1=; unset $1;}
11110}
11111as_unset=as_fn_unset
11112# as_fn_append VAR VALUE
11113# ----------------------
11114# Append the text in VALUE to the end of the definition contained in VAR. Take
11115# advantage of any shell optimizations that allow amortized linear growth over
11116# repeated appends, instead of the typical quadratic growth present in naive
11117# implementations.
11118if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11119 eval 'as_fn_append ()
11120 {
11121 eval $1+=\$2
11122 }'
11123else
11124 as_fn_append ()
11125 {
11126 eval $1=\$$1\$2
11127 }
11128fi # as_fn_append
11129
11130# as_fn_arith ARG...
11131# ------------------
11132# Perform arithmetic evaluation on the ARGs, and store the result in the
11133# global $as_val. Take advantage of shells that can avoid forks. The arguments
11134# must be portable across $(()) and expr.
11135if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11136 eval 'as_fn_arith ()
11137 {
11138 as_val=$(( $* ))
11139 }'
11140else
11141 as_fn_arith ()
11142 {
11143 as_val=`expr "$@" || test $? -eq 1`
11144 }
11145fi # as_fn_arith
11146
11147
11148if expr a : '\(a\)' >/dev/null 2>&1 &&
11149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11150 as_expr=expr
11151else
11152 as_expr=false
11153fi
11154
11155if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11156 as_basename=basename
11157else
11158 as_basename=false
11159fi
11160
11161if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11162 as_dirname=dirname
11163else
11164 as_dirname=false
11165fi
11166
11167as_me=`$as_basename -- "$0" ||
11168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11169 X"$0" : 'X\(//\)$' \| \
11170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11171$as_echo X/"$0" |
11172 sed '/^.*\/\([^/][^/]*\)\/*$/{
11173 s//\1/
11174 q
11175 }
11176 /^X\/\(\/\/\)$/{
11177 s//\1/
11178 q
11179 }
11180 /^X\/\(\/\).*/{
11181 s//\1/
11182 q
11183 }
11184 s/.*/./; q'`
11185
11186# Avoid depending upon Character Ranges.
11187as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11188as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11189as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11190as_cr_digits='0123456789'
11191as_cr_alnum=$as_cr_Letters$as_cr_digits
11192
11193ECHO_C= ECHO_N= ECHO_T=
11194case `echo -n x` in #(((((
11195-n*)
11196 case `echo 'xy\c'` in
11197 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11198 xy) ECHO_C='\c';;
11199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11200 ECHO_T=' ';;
11201 esac;;
11202*)
11203 ECHO_N='-n';;
11204esac
11205
11206rm -f conf$$ conf$$.exe conf$$.file
11207if test -d conf$$.dir; then
11208 rm -f conf$$.dir/conf$$.file
11209else
11210 rm -f conf$$.dir
11211 mkdir conf$$.dir 2>/dev/null
11212fi
11213if (echo >conf$$.file) 2>/dev/null; then
11214 if ln -s conf$$.file conf$$ 2>/dev/null; then
11215 as_ln_s='ln -s'
11216 # ... but there are two gotchas:
11217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11219 # In both cases, we have to default to `cp -p'.
11220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11221 as_ln_s='cp -p'
11222 elif ln conf$$.file conf$$ 2>/dev/null; then
11223 as_ln_s=ln
11224 else
11225 as_ln_s='cp -p'
11226 fi
11227else
11228 as_ln_s='cp -p'
11229fi
11230rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11231rmdir conf$$.dir 2>/dev/null
11232
11233
11234# as_fn_mkdir_p
11235# -------------
11236# Create "$as_dir" as a directory, including parents if necessary.
11237as_fn_mkdir_p ()
11238{
11239
11240 case $as_dir in #(
11241 -*) as_dir=./$as_dir;;
11242 esac
11243 test -d "$as_dir" || eval $as_mkdir_p || {
11244 as_dirs=
11245 while :; do
11246 case $as_dir in #(
11247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11248 *) as_qdir=$as_dir;;
11249 esac
11250 as_dirs="'$as_qdir' $as_dirs"
11251 as_dir=`$as_dirname -- "$as_dir" ||
11252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11253 X"$as_dir" : 'X\(//\)[^/]' \| \
11254 X"$as_dir" : 'X\(//\)$' \| \
11255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11256$as_echo X"$as_dir" |
11257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11258 s//\1/
11259 q
11260 }
11261 /^X\(\/\/\)[^/].*/{
11262 s//\1/
11263 q
11264 }
11265 /^X\(\/\/\)$/{
11266 s//\1/
11267 q
11268 }
11269 /^X\(\/\).*/{
11270 s//\1/
11271 q
11272 }
11273 s/.*/./; q'`
11274 test -d "$as_dir" && break
11275 done
11276 test -z "$as_dirs" || eval "mkdir $as_dirs"
11277 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11278
11279
11280} # as_fn_mkdir_p
11281if mkdir -p . 2>/dev/null; then
11282 as_mkdir_p='mkdir -p "$as_dir"'
11283else
11284 test -d ./-p && rmdir ./-p
11285 as_mkdir_p=false
11286fi
11287
11288if test -x / >/dev/null 2>&1; then
11289 as_test_x='test -x'
11290else
11291 if ls -dL / >/dev/null 2>&1; then
11292 as_ls_L_option=L
11293 else
11294 as_ls_L_option=
11295 fi
11296 as_test_x='
11297 eval sh -c '\''
11298 if test -d "$1"; then
11299 test -d "$1/.";
11300 else
11301 case $1 in #(
11302 -*)set "./$1";;
11303 esac;
11304 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11305 ???[sx]*):;;*)false;;esac;fi
11306 '\'' sh
11307 '
11308fi
11309as_executable_p=$as_test_x
11310
11311# Sed expression to map a string onto a valid CPP name.
11312as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11313
11314# Sed expression to map a string onto a valid variable name.
11315as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11316
11317
11318exec 6>&1
11319## ----------------------------------- ##
11320## Main body of $CONFIG_STATUS script. ##
11321## ----------------------------------- ##
11322_ASEOF
11323test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11324
11325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11326# Save the log message, to keep $0 and so on meaningful, and to
11327# report actual input values of CONFIG_FILES etc. instead of their
11328# values after options handling.
11329ac_log="
11330This file was extended by LTO plugin for ld $as_me 0.1, which was
11331generated by GNU Autoconf 2.64. Invocation command line was
11332
11333 CONFIG_FILES = $CONFIG_FILES
11334 CONFIG_HEADERS = $CONFIG_HEADERS
11335 CONFIG_LINKS = $CONFIG_LINKS
11336 CONFIG_COMMANDS = $CONFIG_COMMANDS
11337 $ $0 $@
11338
11339on `(hostname || uname -n) 2>/dev/null | sed 1q`
11340"
11341
11342_ACEOF
11343
11344case $ac_config_files in *"
11345"*) set x $ac_config_files; shift; ac_config_files=$*;;
11346esac
11347
11348
11349
11350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11351# Files that config.status was made for.
11352config_files="$ac_config_files"
11353config_commands="$ac_config_commands"
11354
11355_ACEOF
11356
11357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11358ac_cs_usage="\
11359\`$as_me' instantiates files and other configuration actions
11360from templates according to the current configuration. Unless the files
11361and actions are specified as TAGs, all are instantiated by default.
11362
11363Usage: $0 [OPTION]... [TAG]...
11364
11365 -h, --help print this help, then exit
11366 -V, --version print version number and configuration settings, then exit
11367 -q, --quiet, --silent
11368 do not print progress messages
11369 -d, --debug don't remove temporary files
11370 --recheck update $as_me by reconfiguring in the same conditions
11371 --file=FILE[:TEMPLATE]
11372 instantiate the configuration file FILE
11373
11374Configuration files:
11375$config_files
11376
11377Configuration commands:
11378$config_commands
11379
11380Report bugs to the package provider."
11381
11382_ACEOF
11383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11384ac_cs_version="\\
11385LTO plugin for ld config.status 0.1
11386configured by $0, generated by GNU Autoconf 2.64,
11387 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11388
11389Copyright (C) 2009 Free Software Foundation, Inc.
11390This config.status script is free software; the Free Software Foundation
11391gives unlimited permission to copy, distribute and modify it."
11392
11393ac_pwd='$ac_pwd'
11394srcdir='$srcdir'
11395INSTALL='$INSTALL'
11396MKDIR_P='$MKDIR_P'
11397AWK='$AWK'
11398test -n "\$AWK" || AWK=awk
11399_ACEOF
11400
11401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11402# The default lists apply if the user does not specify any file.
11403ac_need_defaults=:
11404while test $# != 0
11405do
11406 case $1 in
11407 --*=*)
11408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11410 ac_shift=:
11411 ;;
11412 *)
11413 ac_option=$1
11414 ac_optarg=$2
11415 ac_shift=shift
11416 ;;
11417 esac
11418
11419 case $ac_option in
11420 # Handling of the options.
11421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11422 ac_cs_recheck=: ;;
11423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11424 $as_echo "$ac_cs_version"; exit ;;
11425 --debug | --debu | --deb | --de | --d | -d )
11426 debug=: ;;
11427 --file | --fil | --fi | --f )
11428 $ac_shift
11429 case $ac_optarg in
11430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11431 esac
11432 as_fn_append CONFIG_FILES " '$ac_optarg'"
11433 ac_need_defaults=false;;
11434 --he | --h | --help | --hel | -h )
11435 $as_echo "$ac_cs_usage"; exit ;;
11436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11438 ac_cs_silent=: ;;
11439
11440 # This is an error.
11441 -*) as_fn_error "unrecognized option: \`$1'
11442Try \`$0 --help' for more information." ;;
11443
11444 *) as_fn_append ac_config_targets " $1"
11445 ac_need_defaults=false ;;
11446
11447 esac
11448 shift
11449done
11450
11451ac_configure_extra_args=
11452
11453if $ac_cs_silent; then
11454 exec 6>/dev/null
11455 ac_configure_extra_args="$ac_configure_extra_args --silent"
11456fi
11457
11458_ACEOF
11459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11460if \$ac_cs_recheck; then
11461 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11462 shift
11463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11464 CONFIG_SHELL='$SHELL'
11465 export CONFIG_SHELL
11466 exec "\$@"
11467fi
11468
11469_ACEOF
11470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11471exec 5>>config.log
11472{
11473 echo
11474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11475## Running $as_me. ##
11476_ASBOX
11477 $as_echo "$ac_log"
11478} >&5
11479
11480_ACEOF
11481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11482#
11483# INIT-COMMANDS
11484#
11485AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11486
11487
11488# The HP-UX ksh and POSIX shell print the target directory to stdout
11489# if CDPATH is set.
11490(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11491
11492sed_quote_subst='$sed_quote_subst'
11493double_quote_subst='$double_quote_subst'
11494delay_variable_subst='$delay_variable_subst'
52327858
L
11495macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11496macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11497enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11498enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11499pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11500enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11501SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11502ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11503host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11504host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11505host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11506build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11507build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11508build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11509SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11510Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11511GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11512EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11513FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11514LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11515NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11516LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11517max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11518ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11519exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11520lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11521lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11522lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11523reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11524reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11525OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11526deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11527file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11528AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11529AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11530STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11531RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11532old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11533old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11534old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11535lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11536CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11537CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11538compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11539GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11540lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11541lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11542lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11543lt_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"`'
11544objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11545MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11546lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11547lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11548lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11549lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11550lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11551need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11552DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11553NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11554LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11555OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11556OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11557libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11558shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11559extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11560archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11561enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11562export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11563whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11564compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11565old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11566old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11567archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11568archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11569module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11570module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11571with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11572allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11573no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11574hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11575hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11576hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11577hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11578hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11579hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11580hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11581hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11582inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11583link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11584fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11585always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11586export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11587exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11588include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11589prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11590file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11591variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11592need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11593need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11594version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11595runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11596shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11597shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11598libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11599library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11600soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11601install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11602postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11603postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11604finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11605finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11606hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11607sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11608sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11609hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11610enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11611enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11612enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11613old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11614striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
11615
11616LTCC='$LTCC'
11617LTCFLAGS='$LTCFLAGS'
11618compiler='$compiler_DEFAULT'
11619
52327858
L
11620# A function that is used when there is no print builtin or printf.
11621func_fallback_echo ()
11622{
11623 eval 'cat <<_LTECHO_EOF
11624\$1
11625_LTECHO_EOF'
11626}
11627
d7f09764 11628# Quote evaled strings.
52327858
L
11629for var in SHELL \
11630ECHO \
11631SED \
d7f09764
DN
11632GREP \
11633EGREP \
11634FGREP \
11635LD \
11636NM \
11637LN_S \
11638lt_SP2NL \
11639lt_NL2SP \
11640reload_flag \
11641OBJDUMP \
11642deplibs_check_method \
11643file_magic_cmd \
11644AR \
11645AR_FLAGS \
11646STRIP \
11647RANLIB \
11648CC \
11649CFLAGS \
11650compiler \
11651lt_cv_sys_global_symbol_pipe \
11652lt_cv_sys_global_symbol_to_cdecl \
11653lt_cv_sys_global_symbol_to_c_name_address \
11654lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
11655lt_prog_compiler_no_builtin_flag \
11656lt_prog_compiler_wl \
11657lt_prog_compiler_pic \
11658lt_prog_compiler_static \
11659lt_cv_prog_compiler_c_o \
11660need_locks \
11661DSYMUTIL \
11662NMEDIT \
11663LIPO \
11664OTOOL \
11665OTOOL64 \
11666shrext_cmds \
11667export_dynamic_flag_spec \
11668whole_archive_flag_spec \
11669compiler_needs_object \
11670with_gnu_ld \
11671allow_undefined_flag \
11672no_undefined_flag \
11673hardcode_libdir_flag_spec \
11674hardcode_libdir_flag_spec_ld \
11675hardcode_libdir_separator \
11676fix_srcfile_path \
11677exclude_expsyms \
11678include_expsyms \
11679file_list_spec \
11680variables_saved_for_relink \
11681libname_spec \
11682library_names_spec \
11683soname_spec \
52327858 11684install_override_mode \
d7f09764
DN
11685finish_eval \
11686old_striplib \
11687striplib; do
52327858 11688 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 11689 *[\\\\\\\`\\"\\\$]*)
52327858 11690 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
11691 ;;
11692 *)
11693 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11694 ;;
11695 esac
11696done
11697
11698# Double-quote double-evaled strings.
11699for var in reload_cmds \
11700old_postinstall_cmds \
11701old_postuninstall_cmds \
11702old_archive_cmds \
11703extract_expsyms_cmds \
11704old_archive_from_new_cmds \
11705old_archive_from_expsyms_cmds \
11706archive_cmds \
11707archive_expsym_cmds \
11708module_cmds \
11709module_expsym_cmds \
11710export_symbols_cmds \
11711prelink_cmds \
11712postinstall_cmds \
11713postuninstall_cmds \
11714finish_cmds \
11715sys_lib_search_path_spec \
11716sys_lib_dlsearch_path_spec; do
52327858 11717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 11718 *[\\\\\\\`\\"\\\$]*)
52327858 11719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
11720 ;;
11721 *)
11722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11723 ;;
11724 esac
11725done
11726
d7f09764
DN
11727ac_aux_dir='$ac_aux_dir'
11728xsi_shell='$xsi_shell'
11729lt_shell_append='$lt_shell_append'
11730
11731# See if we are running on zsh, and set the options which allow our
11732# commands through without removal of \ escapes INIT.
11733if test -n "\${ZSH_VERSION+set}" ; then
11734 setopt NO_GLOB_SUBST
11735fi
11736
11737
11738 PACKAGE='$PACKAGE'
11739 VERSION='$VERSION'
11740 TIMESTAMP='$TIMESTAMP'
11741 RM='$RM'
11742 ofile='$ofile'
11743
11744
11745
11746
11747_ACEOF
11748
11749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11750
11751# Handling of arguments.
11752for ac_config_target in $ac_config_targets
11753do
11754 case $ac_config_target in
11755 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11756 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11758
11759 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11760 esac
11761done
11762
11763
11764# If the user did not use the arguments to specify the items to instantiate,
11765# then the envvar interface is used. Set only those that are not.
11766# We use the long form for the default assignment because of an extremely
11767# bizarre bug on SunOS 4.1.3.
11768if $ac_need_defaults; then
11769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11771fi
11772
11773# Have a temporary directory for convenience. Make it in the build tree
11774# simply because there is no reason against having it here, and in addition,
11775# creating and moving files from /tmp can sometimes cause problems.
11776# Hook for its removal unless debugging.
11777# Note that there is a small window in which the directory will not be cleaned:
11778# after its creation but before its name has been assigned to `$tmp'.
11779$debug ||
11780{
11781 tmp=
11782 trap 'exit_status=$?
11783 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11784' 0
11785 trap 'as_fn_exit 1' 1 2 13 15
11786}
11787# Create a (secure) tmp directory for tmp files.
11788
11789{
11790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11791 test -n "$tmp" && test -d "$tmp"
11792} ||
11793{
11794 tmp=./conf$$-$RANDOM
11795 (umask 077 && mkdir "$tmp")
11796} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11797
11798# Set up the scripts for CONFIG_FILES section.
11799# No need to generate them if there are no CONFIG_FILES.
11800# This happens for instance with `./config.status config.h'.
11801if test -n "$CONFIG_FILES"; then
11802
11803
11804ac_cr=`echo X | tr X '\015'`
11805# On cygwin, bash can eat \r inside `` if the user requested igncr.
11806# But we know of no other shell where ac_cr would be empty at this
11807# point, so we can use a bashism as a fallback.
11808if test "x$ac_cr" = x; then
11809 eval ac_cr=\$\'\\r\'
11810fi
11811ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11812if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11813 ac_cs_awk_cr='\r'
11814else
11815 ac_cs_awk_cr=$ac_cr
11816fi
11817
11818echo 'BEGIN {' >"$tmp/subs1.awk" &&
11819_ACEOF
11820
11821
11822{
11823 echo "cat >conf$$subs.awk <<_ACEOF" &&
11824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11825 echo "_ACEOF"
11826} >conf$$subs.sh ||
11827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11828ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11829ac_delim='%!_!# '
11830for ac_last_try in false false false false false :; do
11831 . ./conf$$subs.sh ||
11832 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11833
11834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11835 if test $ac_delim_n = $ac_delim_num; then
11836 break
11837 elif $ac_last_try; then
11838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11839 else
11840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11841 fi
11842done
11843rm -f conf$$subs.sh
11844
11845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11846cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11847_ACEOF
11848sed -n '
11849h
11850s/^/S["/; s/!.*/"]=/
11851p
11852g
11853s/^[^!]*!//
11854:repl
11855t repl
11856s/'"$ac_delim"'$//
11857t delim
11858:nl
11859h
11860s/\(.\{148\}\).*/\1/
11861t more1
11862s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11863p
11864n
11865b repl
11866:more1
11867s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11868p
11869g
11870s/.\{148\}//
11871t nl
11872:delim
11873h
11874s/\(.\{148\}\).*/\1/
11875t more2
11876s/["\\]/\\&/g; s/^/"/; s/$/"/
11877p
11878b
11879:more2
11880s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11881p
11882g
11883s/.\{148\}//
11884t delim
11885' <conf$$subs.awk | sed '
11886/^[^""]/{
11887 N
11888 s/\n//
11889}
11890' >>$CONFIG_STATUS || ac_write_fail=1
11891rm -f conf$$subs.awk
11892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893_ACAWK
11894cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11895 for (key in S) S_is_set[key] = 1
11896 FS = "\a"
11897
11898}
11899{
11900 line = $ 0
11901 nfields = split(line, field, "@")
11902 substed = 0
11903 len = length(field[1])
11904 for (i = 2; i < nfields; i++) {
11905 key = field[i]
11906 keylen = length(key)
11907 if (S_is_set[key]) {
11908 value = S[key]
11909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11910 len += length(value) + length(field[++i])
11911 substed = 1
11912 } else
11913 len += 1 + keylen
11914 }
11915
11916 print line
11917}
11918
11919_ACAWK
11920_ACEOF
11921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11922if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11924else
11925 cat
11926fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11927 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11928_ACEOF
11929
11930# VPATH may cause trouble with some makes, so we remove $(srcdir),
11931# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11932# trailing colons and then remove the whole line if VPATH becomes empty
11933# (actually we leave an empty line to preserve line numbers).
11934if test "x$srcdir" = x.; then
11935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11936s/:*\$(srcdir):*/:/
11937s/:*\${srcdir}:*/:/
11938s/:*@srcdir@:*/:/
11939s/^\([^=]*=[ ]*\):*/\1/
11940s/:*$//
11941s/^[^=]*=[ ]*$//
11942}'
11943fi
11944
11945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11946fi # test -n "$CONFIG_FILES"
11947
11948
11949eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11950shift
11951for ac_tag
11952do
11953 case $ac_tag in
11954 :[FHLC]) ac_mode=$ac_tag; continue;;
11955 esac
11956 case $ac_mode$ac_tag in
11957 :[FHL]*:*);;
11958 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11959 :[FH]-) ac_tag=-:-;;
11960 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11961 esac
11962 ac_save_IFS=$IFS
11963 IFS=:
11964 set x $ac_tag
11965 IFS=$ac_save_IFS
11966 shift
11967 ac_file=$1
11968 shift
11969
11970 case $ac_mode in
11971 :L) ac_source=$1;;
11972 :[FH])
11973 ac_file_inputs=
11974 for ac_f
11975 do
11976 case $ac_f in
11977 -) ac_f="$tmp/stdin";;
11978 *) # Look for the file first in the build tree, then in the source tree
11979 # (if the path is not absolute). The absolute path cannot be DOS-style,
11980 # because $ac_f cannot contain `:'.
11981 test -f "$ac_f" ||
11982 case $ac_f in
11983 [\\/$]*) false;;
11984 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11985 esac ||
11986 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11987 esac
11988 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11989 as_fn_append ac_file_inputs " '$ac_f'"
11990 done
11991
11992 # Let's still pretend it is `configure' which instantiates (i.e., don't
11993 # use $as_me), people would be surprised to read:
11994 # /* config.h. Generated by config.status. */
11995 configure_input='Generated from '`
11996 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11997 `' by configure.'
11998 if test x"$ac_file" != x-; then
11999 configure_input="$ac_file. $configure_input"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12001$as_echo "$as_me: creating $ac_file" >&6;}
12002 fi
12003 # Neutralize special characters interpreted by sed in replacement strings.
12004 case $configure_input in #(
12005 *\&* | *\|* | *\\* )
12006 ac_sed_conf_input=`$as_echo "$configure_input" |
12007 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12008 *) ac_sed_conf_input=$configure_input;;
12009 esac
12010
12011 case $ac_tag in
12012 *:-:* | *:-) cat >"$tmp/stdin" \
12013 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12014 esac
12015 ;;
12016 esac
12017
12018 ac_dir=`$as_dirname -- "$ac_file" ||
12019$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020 X"$ac_file" : 'X\(//\)[^/]' \| \
12021 X"$ac_file" : 'X\(//\)$' \| \
12022 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12023$as_echo X"$ac_file" |
12024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\(\/\/\)[^/].*/{
12029 s//\1/
12030 q
12031 }
12032 /^X\(\/\/\)$/{
12033 s//\1/
12034 q
12035 }
12036 /^X\(\/\).*/{
12037 s//\1/
12038 q
12039 }
12040 s/.*/./; q'`
12041 as_dir="$ac_dir"; as_fn_mkdir_p
12042 ac_builddir=.
12043
12044case "$ac_dir" in
12045.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12046*)
12047 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12048 # A ".." for each directory in $ac_dir_suffix.
12049 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12050 case $ac_top_builddir_sub in
12051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12053 esac ;;
12054esac
12055ac_abs_top_builddir=$ac_pwd
12056ac_abs_builddir=$ac_pwd$ac_dir_suffix
12057# for backward compatibility:
12058ac_top_builddir=$ac_top_build_prefix
12059
12060case $srcdir in
12061 .) # We are building in place.
12062 ac_srcdir=.
12063 ac_top_srcdir=$ac_top_builddir_sub
12064 ac_abs_top_srcdir=$ac_pwd ;;
12065 [\\/]* | ?:[\\/]* ) # Absolute name.
12066 ac_srcdir=$srcdir$ac_dir_suffix;
12067 ac_top_srcdir=$srcdir
12068 ac_abs_top_srcdir=$srcdir ;;
12069 *) # Relative name.
12070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12071 ac_top_srcdir=$ac_top_build_prefix$srcdir
12072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12073esac
12074ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12075
12076
12077 case $ac_mode in
12078 :F)
12079 #
12080 # CONFIG_FILE
12081 #
12082
12083 case $INSTALL in
12084 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12085 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12086 esac
12087 ac_MKDIR_P=$MKDIR_P
12088 case $MKDIR_P in
12089 [\\/$]* | ?:[\\/]* ) ;;
12090 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12091 esac
12092_ACEOF
12093
12094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095# If the template does not know about datarootdir, expand it.
12096# FIXME: This hack should be removed a few years after 2.60.
12097ac_datarootdir_hack=; ac_datarootdir_seen=
12098ac_sed_dataroot='
12099/datarootdir/ {
12100 p
12101 q
12102}
12103/@datadir@/p
12104/@docdir@/p
12105/@infodir@/p
12106/@localedir@/p
12107/@mandir@/p'
12108case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12109*datarootdir*) ac_datarootdir_seen=yes;;
12110*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12112$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12113_ACEOF
12114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12115 ac_datarootdir_hack='
12116 s&@datadir@&$datadir&g
12117 s&@docdir@&$docdir&g
12118 s&@infodir@&$infodir&g
12119 s&@localedir@&$localedir&g
12120 s&@mandir@&$mandir&g
12121 s&\\\${datarootdir}&$datarootdir&g' ;;
12122esac
12123_ACEOF
12124
12125# Neutralize VPATH when `$srcdir' = `.'.
12126# Shell code in configure.ac might set extrasub.
12127# FIXME: do we really want to maintain this feature?
12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129ac_sed_extra="$ac_vpsub
12130$extrasub
12131_ACEOF
12132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12133:t
12134/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12135s|@configure_input@|$ac_sed_conf_input|;t t
12136s&@top_builddir@&$ac_top_builddir_sub&;t t
12137s&@top_build_prefix@&$ac_top_build_prefix&;t t
12138s&@srcdir@&$ac_srcdir&;t t
12139s&@abs_srcdir@&$ac_abs_srcdir&;t t
12140s&@top_srcdir@&$ac_top_srcdir&;t t
12141s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12142s&@builddir@&$ac_builddir&;t t
12143s&@abs_builddir@&$ac_abs_builddir&;t t
12144s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12145s&@INSTALL@&$ac_INSTALL&;t t
12146s&@MKDIR_P@&$ac_MKDIR_P&;t t
12147$ac_datarootdir_hack
12148"
12149eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12150 || as_fn_error "could not create $ac_file" "$LINENO" 5
12151
12152test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12156which seems to be undefined. Please make sure it is defined." >&5
12157$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12158which seems to be undefined. Please make sure it is defined." >&2;}
12159
12160 rm -f "$tmp/stdin"
12161 case $ac_file in
12162 -) cat "$tmp/out" && rm -f "$tmp/out";;
12163 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12164 esac \
12165 || as_fn_error "could not create $ac_file" "$LINENO" 5
12166 ;;
12167
12168
12169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12170$as_echo "$as_me: executing $ac_file commands" >&6;}
12171 ;;
12172 esac
12173
12174
12175 case $ac_file$ac_mode in
12176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12177 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12178 # are listed without --file. Let's play safe and only enable the eval
12179 # if we detect the quoting.
12180 case $CONFIG_FILES in
12181 *\'*) eval set x "$CONFIG_FILES" ;;
12182 *) set x $CONFIG_FILES ;;
12183 esac
12184 shift
12185 for mf
12186 do
12187 # Strip MF so we end up with the name of the file.
12188 mf=`echo "$mf" | sed -e 's/:.*$//'`
12189 # Check whether this is an Automake generated Makefile or not.
12190 # We used to match only the files named `Makefile.in', but
12191 # some people rename them; so instead we look at the file content.
12192 # Grep'ing the first line is not enough: some people post-process
12193 # each Makefile.in and add a new line on top of each file to say so.
12194 # Grep'ing the whole file is not good either: AIX grep has a line
12195 # limit of 2048, but all sed's we know have understand at least 4000.
12196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12197 dirpart=`$as_dirname -- "$mf" ||
12198$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12199 X"$mf" : 'X\(//\)[^/]' \| \
12200 X"$mf" : 'X\(//\)$' \| \
12201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12202$as_echo X"$mf" |
12203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12204 s//\1/
12205 q
12206 }
12207 /^X\(\/\/\)[^/].*/{
12208 s//\1/
12209 q
12210 }
12211 /^X\(\/\/\)$/{
12212 s//\1/
12213 q
12214 }
12215 /^X\(\/\).*/{
12216 s//\1/
12217 q
12218 }
12219 s/.*/./; q'`
12220 else
12221 continue
12222 fi
12223 # Extract the definition of DEPDIR, am__include, and am__quote
12224 # from the Makefile without running `make'.
12225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12226 test -z "$DEPDIR" && continue
12227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12228 test -z "am__include" && continue
12229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12230 # When using ansi2knr, U may be empty or an underscore; expand it
12231 U=`sed -n 's/^U = //p' < "$mf"`
12232 # Find all dependency output files, they are included files with
12233 # $(DEPDIR) in their names. We invoke sed twice because it is the
12234 # simplest approach to changing $(DEPDIR) to its actual value in the
12235 # expansion.
12236 for file in `sed -n "
12237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12239 # Make sure the directory exists.
12240 test -f "$dirpart/$file" && continue
12241 fdir=`$as_dirname -- "$file" ||
12242$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12243 X"$file" : 'X\(//\)[^/]' \| \
12244 X"$file" : 'X\(//\)$' \| \
12245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12246$as_echo X"$file" |
12247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\(\/\/\)[^/].*/{
12252 s//\1/
12253 q
12254 }
12255 /^X\(\/\/\)$/{
12256 s//\1/
12257 q
12258 }
12259 /^X\(\/\).*/{
12260 s//\1/
12261 q
12262 }
12263 s/.*/./; q'`
12264 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12265 # echo "creating $dirpart/$file"
12266 echo '# dummy' > "$dirpart/$file"
12267 done
12268 done
12269}
12270 ;;
12271 "libtool":C)
12272
12273 # See if we are running on zsh, and set the options which allow our
12274 # commands through without removal of \ escapes.
12275 if test -n "${ZSH_VERSION+set}" ; then
12276 setopt NO_GLOB_SUBST
12277 fi
12278
12279 cfgfile="${ofile}T"
12280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12281 $RM "$cfgfile"
12282
12283 cat <<_LT_EOF >> "$cfgfile"
12284#! $SHELL
12285
12286# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12287# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12288# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12289# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12290#
12291# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 12292# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
12293# Written by Gordon Matzigkeit, 1996
12294#
12295# This file is part of GNU Libtool.
12296#
12297# GNU Libtool is free software; you can redistribute it and/or
12298# modify it under the terms of the GNU General Public License as
12299# published by the Free Software Foundation; either version 2 of
12300# the License, or (at your option) any later version.
12301#
12302# As a special exception to the GNU General Public License,
12303# if you distribute this file as part of a program or library that
12304# is built using GNU Libtool, you may include this file under the
12305# same distribution terms that you use for the rest of that program.
12306#
12307# GNU Libtool is distributed in the hope that it will be useful,
12308# but WITHOUT ANY WARRANTY; without even the implied warranty of
12309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12310# GNU General Public License for more details.
12311#
12312# You should have received a copy of the GNU General Public License
12313# along with GNU Libtool; see the file COPYING. If not, a copy
12314# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12315# obtained by writing to the Free Software Foundation, Inc.,
12316# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12317
12318
12319# The names of the tagged configurations supported by this script.
12320available_tags=""
12321
12322# ### BEGIN LIBTOOL CONFIG
12323
12324# Which release of libtool.m4 was used?
12325macro_version=$macro_version
12326macro_revision=$macro_revision
12327
12328# Whether or not to build shared libraries.
12329build_libtool_libs=$enable_shared
12330
12331# Whether or not to build static libraries.
12332build_old_libs=$enable_static
12333
12334# What type of objects to build.
12335pic_mode=$pic_mode
12336
12337# Whether or not to optimize for fast installation.
12338fast_install=$enable_fast_install
12339
52327858
L
12340# Shell to use when invoking shell scripts.
12341SHELL=$lt_SHELL
12342
12343# An echo program that protects backslashes.
12344ECHO=$lt_ECHO
12345
d7f09764
DN
12346# The host system.
12347host_alias=$host_alias
12348host=$host
12349host_os=$host_os
12350
12351# The build system.
12352build_alias=$build_alias
12353build=$build
12354build_os=$build_os
12355
12356# A sed program that does not truncate output.
12357SED=$lt_SED
12358
12359# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12360Xsed="\$SED -e 1s/^X//"
12361
12362# A grep program that handles long lines.
12363GREP=$lt_GREP
12364
12365# An ERE matcher.
12366EGREP=$lt_EGREP
12367
12368# A literal string matcher.
12369FGREP=$lt_FGREP
12370
12371# A BSD- or MS-compatible name lister.
12372NM=$lt_NM
12373
12374# Whether we need soft or hard links.
12375LN_S=$lt_LN_S
12376
12377# What is the maximum length of a command?
12378max_cmd_len=$max_cmd_len
12379
12380# Object file suffix (normally "o").
12381objext=$ac_objext
12382
12383# Executable file suffix (normally "").
12384exeext=$exeext
12385
12386# whether the shell understands "unset".
12387lt_unset=$lt_unset
12388
12389# turn spaces into newlines.
12390SP2NL=$lt_lt_SP2NL
12391
12392# turn newlines into spaces.
12393NL2SP=$lt_lt_NL2SP
12394
d7f09764
DN
12395# An object symbol dumper.
12396OBJDUMP=$lt_OBJDUMP
12397
12398# Method to check whether dependent libraries are shared objects.
12399deplibs_check_method=$lt_deplibs_check_method
12400
12401# Command to use when deplibs_check_method == "file_magic".
12402file_magic_cmd=$lt_file_magic_cmd
12403
12404# The archiver.
12405AR=$lt_AR
12406AR_FLAGS=$lt_AR_FLAGS
12407
12408# A symbol stripping program.
12409STRIP=$lt_STRIP
12410
12411# Commands used to install an old-style archive.
12412RANLIB=$lt_RANLIB
12413old_postinstall_cmds=$lt_old_postinstall_cmds
12414old_postuninstall_cmds=$lt_old_postuninstall_cmds
12415
52327858
L
12416# Whether to use a lock for old archive extraction.
12417lock_old_archive_extraction=$lock_old_archive_extraction
12418
d7f09764
DN
12419# A C compiler.
12420LTCC=$lt_CC
12421
12422# LTCC compiler flags.
12423LTCFLAGS=$lt_CFLAGS
12424
12425# Take the output of nm and produce a listing of raw symbols and C names.
12426global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12427
12428# Transform the output of nm in a proper C declaration.
12429global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12430
12431# Transform the output of nm in a C name address pair.
12432global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12433
12434# Transform the output of nm in a C name address pair when lib prefix is needed.
12435global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12436
12437# The name of the directory that contains temporary libtool files.
12438objdir=$objdir
12439
d7f09764
DN
12440# Used to examine libraries when file_magic_cmd begins with "file".
12441MAGIC_CMD=$MAGIC_CMD
12442
12443# Must we lock files when doing compilation?
12444need_locks=$lt_need_locks
12445
12446# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12447DSYMUTIL=$lt_DSYMUTIL
12448
12449# Tool to change global to local symbols on Mac OS X.
12450NMEDIT=$lt_NMEDIT
12451
12452# Tool to manipulate fat objects and archives on Mac OS X.
12453LIPO=$lt_LIPO
12454
12455# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12456OTOOL=$lt_OTOOL
12457
12458# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12459OTOOL64=$lt_OTOOL64
12460
12461# Old archive suffix (normally "a").
12462libext=$libext
12463
12464# Shared library suffix (normally ".so").
12465shrext_cmds=$lt_shrext_cmds
12466
12467# The commands to extract the exported symbol list from a shared archive.
12468extract_expsyms_cmds=$lt_extract_expsyms_cmds
12469
12470# Variables whose values should be saved in libtool wrapper scripts and
12471# restored at link time.
12472variables_saved_for_relink=$lt_variables_saved_for_relink
12473
12474# Do we need the "lib" prefix for modules?
12475need_lib_prefix=$need_lib_prefix
12476
12477# Do we need a version for libraries?
12478need_version=$need_version
12479
12480# Library versioning type.
12481version_type=$version_type
12482
12483# Shared library runtime path variable.
12484runpath_var=$runpath_var
12485
12486# Shared library path variable.
12487shlibpath_var=$shlibpath_var
12488
12489# Is shlibpath searched before the hard-coded library search path?
12490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12491
12492# Format of library name prefix.
12493libname_spec=$lt_libname_spec
12494
12495# List of archive names. First name is the real one, the rest are links.
12496# The last name is the one that the linker finds with -lNAME
12497library_names_spec=$lt_library_names_spec
12498
12499# The coded name of the library, if different from the real name.
12500soname_spec=$lt_soname_spec
12501
52327858
L
12502# Permission mode override for installation of shared libraries.
12503install_override_mode=$lt_install_override_mode
12504
d7f09764
DN
12505# Command to use after installation of a shared archive.
12506postinstall_cmds=$lt_postinstall_cmds
12507
12508# Command to use after uninstallation of a shared archive.
12509postuninstall_cmds=$lt_postuninstall_cmds
12510
12511# Commands used to finish a libtool library installation in a directory.
12512finish_cmds=$lt_finish_cmds
12513
12514# As "finish_cmds", except a single script fragment to be evaled but
12515# not shown.
12516finish_eval=$lt_finish_eval
12517
12518# Whether we should hardcode library paths into libraries.
12519hardcode_into_libs=$hardcode_into_libs
12520
12521# Compile-time system search path for libraries.
12522sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12523
12524# Run-time system search path for libraries.
12525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12526
12527# Whether dlopen is supported.
12528dlopen_support=$enable_dlopen
12529
12530# Whether dlopen of programs is supported.
12531dlopen_self=$enable_dlopen_self
12532
12533# Whether dlopen of statically linked programs is supported.
12534dlopen_self_static=$enable_dlopen_self_static
12535
12536# Commands to strip libraries.
12537old_striplib=$lt_old_striplib
12538striplib=$lt_striplib
12539
12540
12541# The linker used to build libraries.
12542LD=$lt_LD
12543
52327858
L
12544# How to create reloadable object files.
12545reload_flag=$lt_reload_flag
12546reload_cmds=$lt_reload_cmds
12547
d7f09764
DN
12548# Commands used to build an old-style archive.
12549old_archive_cmds=$lt_old_archive_cmds
12550
12551# A language specific compiler.
12552CC=$lt_compiler
12553
12554# Is the compiler the GNU compiler?
12555with_gcc=$GCC
12556
12557# Compiler flag to turn off builtin functions.
12558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12559
12560# How to pass a linker flag through the compiler.
12561wl=$lt_lt_prog_compiler_wl
12562
12563# Additional compiler flags for building library objects.
12564pic_flag=$lt_lt_prog_compiler_pic
12565
12566# Compiler flag to prevent dynamic linking.
12567link_static_flag=$lt_lt_prog_compiler_static
12568
12569# Does compiler simultaneously support -c and -o options?
12570compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12571
12572# Whether or not to add -lc for building shared libraries.
12573build_libtool_need_lc=$archive_cmds_need_lc
12574
12575# Whether or not to disallow shared libs when runtime libs are static.
12576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12577
12578# Compiler flag to allow reflexive dlopens.
12579export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12580
12581# Compiler flag to generate shared objects directly from archives.
12582whole_archive_flag_spec=$lt_whole_archive_flag_spec
12583
12584# Whether the compiler copes with passing no objects directly.
12585compiler_needs_object=$lt_compiler_needs_object
12586
12587# Create an old-style archive from a shared archive.
12588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12589
12590# Create a temporary old-style archive to link instead of a shared archive.
12591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12592
12593# Commands used to build a shared archive.
12594archive_cmds=$lt_archive_cmds
12595archive_expsym_cmds=$lt_archive_expsym_cmds
12596
12597# Commands used to build a loadable module if different from building
12598# a shared archive.
12599module_cmds=$lt_module_cmds
12600module_expsym_cmds=$lt_module_expsym_cmds
12601
12602# Whether we are building with GNU ld or not.
12603with_gnu_ld=$lt_with_gnu_ld
12604
12605# Flag that allows shared libraries with undefined symbols to be built.
12606allow_undefined_flag=$lt_allow_undefined_flag
12607
12608# Flag that enforces no undefined symbols.
12609no_undefined_flag=$lt_no_undefined_flag
12610
12611# Flag to hardcode \$libdir into a binary during linking.
12612# This must work even if \$libdir does not exist
12613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12614
12615# If ld is used when linking, flag to hardcode \$libdir into a binary
12616# during linking. This must work even if \$libdir does not exist.
12617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12618
12619# Whether we need a single "-rpath" flag with a separated argument.
12620hardcode_libdir_separator=$lt_hardcode_libdir_separator
12621
12622# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12623# DIR into the resulting binary.
12624hardcode_direct=$hardcode_direct
12625
12626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12627# DIR into the resulting binary and the resulting library dependency is
12628# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12629# library is relocated.
12630hardcode_direct_absolute=$hardcode_direct_absolute
12631
12632# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12633# into the resulting binary.
12634hardcode_minus_L=$hardcode_minus_L
12635
12636# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12637# into the resulting binary.
12638hardcode_shlibpath_var=$hardcode_shlibpath_var
12639
12640# Set to "yes" if building a shared library automatically hardcodes DIR
12641# into the library and all subsequent libraries and executables linked
12642# against it.
12643hardcode_automatic=$hardcode_automatic
12644
12645# Set to yes if linker adds runtime paths of dependent libraries
12646# to runtime path list.
12647inherit_rpath=$inherit_rpath
12648
12649# Whether libtool must link a program against all its dependency libraries.
12650link_all_deplibs=$link_all_deplibs
12651
12652# Fix the shell variable \$srcfile for the compiler.
12653fix_srcfile_path=$lt_fix_srcfile_path
12654
12655# Set to "yes" if exported symbols are required.
12656always_export_symbols=$always_export_symbols
12657
12658# The commands to list exported symbols.
12659export_symbols_cmds=$lt_export_symbols_cmds
12660
12661# Symbols that should not be listed in the preloaded symbols.
12662exclude_expsyms=$lt_exclude_expsyms
12663
12664# Symbols that must always be exported.
12665include_expsyms=$lt_include_expsyms
12666
12667# Commands necessary for linking programs (against libraries) with templates.
12668prelink_cmds=$lt_prelink_cmds
12669
12670# Specify filename containing input files.
12671file_list_spec=$lt_file_list_spec
12672
12673# How to hardcode a shared library path into an executable.
12674hardcode_action=$hardcode_action
12675
12676# ### END LIBTOOL CONFIG
12677
12678_LT_EOF
12679
12680 case $host_os in
12681 aix3*)
12682 cat <<\_LT_EOF >> "$cfgfile"
12683# AIX sometimes has problems with the GCC collect2 program. For some
12684# reason, if we set the COLLECT_NAMES environment variable, the problems
12685# vanish in a puff of smoke.
12686if test "X${COLLECT_NAMES+set}" != Xset; then
12687 COLLECT_NAMES=
12688 export COLLECT_NAMES
12689fi
12690_LT_EOF
12691 ;;
12692 esac
12693
12694
12695ltmain="$ac_aux_dir/ltmain.sh"
12696
12697
12698 # We use sed instead of cat because bash on DJGPP gets confused if
12699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12700 # text mode, it properly converts lines to CR/LF. This bash problem
12701 # is reportedly fixed, but why not run on old versions too?
12702 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12703 || (rm -f "$cfgfile"; exit 1)
12704
12705 case $xsi_shell in
12706 yes)
12707 cat << \_LT_EOF >> "$cfgfile"
12708
12709# func_dirname file append nondir_replacement
12710# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12711# otherwise set result to NONDIR_REPLACEMENT.
12712func_dirname ()
12713{
12714 case ${1} in
12715 */*) func_dirname_result="${1%/*}${2}" ;;
12716 * ) func_dirname_result="${3}" ;;
12717 esac
12718}
12719
12720# func_basename file
12721func_basename ()
12722{
12723 func_basename_result="${1##*/}"
12724}
12725
12726# func_dirname_and_basename file append nondir_replacement
12727# perform func_basename and func_dirname in a single function
12728# call:
12729# dirname: Compute the dirname of FILE. If nonempty,
12730# add APPEND to the result, otherwise set result
12731# to NONDIR_REPLACEMENT.
12732# value returned in "$func_dirname_result"
12733# basename: Compute filename of FILE.
12734# value retuned in "$func_basename_result"
12735# Implementation must be kept synchronized with func_dirname
12736# and func_basename. For efficiency, we do not delegate to
12737# those functions but instead duplicate the functionality here.
12738func_dirname_and_basename ()
12739{
12740 case ${1} in
12741 */*) func_dirname_result="${1%/*}${2}" ;;
12742 * ) func_dirname_result="${3}" ;;
12743 esac
12744 func_basename_result="${1##*/}"
12745}
12746
12747# func_stripname prefix suffix name
12748# strip PREFIX and SUFFIX off of NAME.
12749# PREFIX and SUFFIX must not contain globbing or regex special
12750# characters, hashes, percent signs, but SUFFIX may contain a leading
12751# dot (in which case that matches only a dot).
12752func_stripname ()
12753{
12754 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12755 # positional parameters, so assign one to ordinary parameter first.
12756 func_stripname_result=${3}
12757 func_stripname_result=${func_stripname_result#"${1}"}
12758 func_stripname_result=${func_stripname_result%"${2}"}
12759}
12760
12761# func_opt_split
12762func_opt_split ()
12763{
12764 func_opt_split_opt=${1%%=*}
12765 func_opt_split_arg=${1#*=}
12766}
12767
12768# func_lo2o object
12769func_lo2o ()
12770{
12771 case ${1} in
12772 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12773 *) func_lo2o_result=${1} ;;
12774 esac
12775}
12776
12777# func_xform libobj-or-source
12778func_xform ()
12779{
12780 func_xform_result=${1%.*}.lo
12781}
12782
12783# func_arith arithmetic-term...
12784func_arith ()
12785{
12786 func_arith_result=$(( $* ))
12787}
12788
12789# func_len string
12790# STRING may not start with a hyphen.
12791func_len ()
12792{
12793 func_len_result=${#1}
12794}
12795
12796_LT_EOF
12797 ;;
12798 *) # Bourne compatible functions.
12799 cat << \_LT_EOF >> "$cfgfile"
12800
12801# func_dirname file append nondir_replacement
12802# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12803# otherwise set result to NONDIR_REPLACEMENT.
12804func_dirname ()
12805{
12806 # Extract subdirectory from the argument.
52327858 12807 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
12808 if test "X$func_dirname_result" = "X${1}"; then
12809 func_dirname_result="${3}"
12810 else
12811 func_dirname_result="$func_dirname_result${2}"
12812 fi
12813}
12814
12815# func_basename file
12816func_basename ()
12817{
52327858 12818 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
12819}
12820
12821
12822# func_stripname prefix suffix name
12823# strip PREFIX and SUFFIX off of NAME.
12824# PREFIX and SUFFIX must not contain globbing or regex special
12825# characters, hashes, percent signs, but SUFFIX may contain a leading
12826# dot (in which case that matches only a dot).
12827# func_strip_suffix prefix name
12828func_stripname ()
12829{
12830 case ${2} in
52327858
L
12831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
12833 esac
12834}
12835
12836# sed scripts:
12837my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12838my_sed_long_arg='1s/^-[^=]*=//'
12839
12840# func_opt_split
12841func_opt_split ()
12842{
52327858
L
12843 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12844 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
12845}
12846
12847# func_lo2o object
12848func_lo2o ()
12849{
52327858 12850 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
12851}
12852
12853# func_xform libobj-or-source
12854func_xform ()
12855{
52327858 12856 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
12857}
12858
12859# func_arith arithmetic-term...
12860func_arith ()
12861{
12862 func_arith_result=`expr "$@"`
12863}
12864
12865# func_len string
12866# STRING may not start with a hyphen.
12867func_len ()
12868{
12869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12870}
12871
12872_LT_EOF
12873esac
12874
12875case $lt_shell_append in
12876 yes)
12877 cat << \_LT_EOF >> "$cfgfile"
12878
12879# func_append var value
12880# Append VALUE to the end of shell variable VAR.
12881func_append ()
12882{
12883 eval "$1+=\$2"
12884}
12885_LT_EOF
12886 ;;
12887 *)
12888 cat << \_LT_EOF >> "$cfgfile"
12889
12890# func_append var value
12891# Append VALUE to the end of shell variable VAR.
12892func_append ()
12893{
12894 eval "$1=\$$1\$2"
12895}
12896
12897_LT_EOF
12898 ;;
12899 esac
12900
12901
12902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12903 || (rm -f "$cfgfile"; exit 1)
12904
12905 mv -f "$cfgfile" "$ofile" ||
12906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12907 chmod +x "$ofile"
12908
12909 ;;
12910
12911 esac
12912done # for ac_tag
12913
12914
12915as_fn_exit 0
12916_ACEOF
12917ac_clean_files=$ac_clean_files_save
12918
12919test $ac_write_fail = 0 ||
12920 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12921
12922
12923# configure is writing to config.log, and then calls config.status.
12924# config.status does its own redirection, appending to config.log.
12925# Unfortunately, on DOS this fails, as config.log is still kept open
12926# by configure, so config.status won't be able to write to it; its
12927# output is simply discarded. So we exec the FD to /dev/null,
12928# effectively closing config.log, so it can be properly (re)opened and
12929# appended to by config.status. When coming back to configure, we
12930# need to make the FD available again.
12931if test "$no_create" != yes; then
12932 ac_cs_success=:
12933 ac_config_status_args=
12934 test "$silent" = yes &&
12935 ac_config_status_args="$ac_config_status_args --quiet"
12936 exec 5>/dev/null
12937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12938 exec 5>>config.log
12939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12940 # would make configure fail if this is the last instruction.
12941 $ac_cs_success || as_fn_exit $?
12942fi
12943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12946fi
12947