]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure
re PR other/79046 (g++ -print-file-name=plugin uses full version number in path)
[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
dcbc9df9 172test \$(( 1 + 1 )) = 2 || exit 1
52327858
L
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
dcbc9df9 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
d7f09764
DN
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
604target_noncanonical
7de6ba7a 605lt_host_flags
d7f09764
DN
606OTOOL64
607OTOOL
608LIPO
609NMEDIT
610DSYMUTIL
d7f09764
DN
611RANLIB
612AR
613OBJDUMP
614LN_S
615NM
616ac_ct_DUMPBIN
617DUMPBIN
618LD
619FGREP
d7f09764 620SED
d7f09764 621LIBTOOL
3c36aa6b 622get_gcc_base_ver
85c64bbe
BS
623real_target_noncanonical
624accel_dir_suffix
43f4a446 625gcc_build_dir
5523efdf 626ac_lto_plugin_ldflags
f3016c47 627ac_lto_plugin_warn_cflags
dcbc9df9
UB
628EGREP
629GREP
630CPP
d7f09764
DN
631am__fastdepCC_FALSE
632am__fastdepCC_TRUE
633CCDEPMODE
ed9b4ae3 634am__nodep
d7f09764
DN
635AMDEPBACKSLASH
636AMDEP_FALSE
637AMDEP_TRUE
638am__quote
639am__include
640DEPDIR
641OBJEXT
642EXEEXT
643ac_ct_CC
644CPPFLAGS
645LDFLAGS
646CFLAGS
647CC
2a7a8388 648with_libiberty
03428d41
RG
649MAINT
650MAINTAINER_MODE_FALSE
651MAINTAINER_MODE_TRUE
d7f09764
DN
652am__untar
653am__tar
654AMTAR
655am__leading_dot
656SET_MAKE
657AWK
658mkdir_p
659MKDIR_P
660INSTALL_STRIP_PROGRAM
661STRIP
662install_sh
663MAKEINFO
664AUTOHEADER
665AUTOMAKE
666AUTOCONF
667ACLOCAL
668VERSION
669PACKAGE
670CYGPATH_W
671am__isrc
672INSTALL_DATA
673INSTALL_SCRIPT
674INSTALL_PROGRAM
675target_subdir
676host_subdir
677build_subdir
678build_libsubdir
73d5e770
L
679target_os
680target_vendor
681target_cpu
682target
683host_os
684host_vendor
685host_cpu
686host
d7f09764
DN
687build_os
688build_vendor
689build_cpu
690build
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732with_build_libsubdir
03428d41 733enable_maintainer_mode
2a7a8388 734with_libiberty
d7f09764 735enable_dependency_tracking
4c0f4b0b 736enable_largefile
3c36aa6b 737with_gcc_major_version_only
d7f09764
DN
738enable_shared
739enable_static
740with_pic
741enable_fast_install
742with_gnu_ld
743enable_libtool_lock
d7f09764
DN
744'
745 ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
d7f09764
DN
753CPP'
754
755
756# Initialize some variables set by options.
757ac_init_help=
758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_libraries=NONE
777
778# Installation directory options.
779# These are left unexpanded so users can "make install exec_prefix=/foo"
780# and all the variables that are supposed to be based on exec_prefix
781# by default will actually change.
782# Use braces instead of parens because sh, perl, etc. also accept them.
783# (The list follows the same order as the GNU Coding Standards.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *) ac_optarg=yes ;;
818 esac
819
820 # Accept the important Cygnus configure options, so we can diagnose typos.
821
822 case $ac_dashdash$ac_option in
823 --)
824 ac_dashdash=yes ;;
825
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
830
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
835
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
842
843 --config-cache | -C)
844 cache_file=config.cache ;;
845
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
850
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
857
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867"enable_$ac_useropt"
868"*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=no ;;
873
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
878
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
883
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893"enable_$ac_useropt"
894"*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=\$ac_optarg ;;
899
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
908
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
911 with_gas=yes ;;
912
913 -help | --help | --hel | --he | -h)
914 ac_init_help=long ;;
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
919
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
924
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 ac_prev=htmldir ;;
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 | --ht=*)
929 htmldir=$ac_optarg ;;
930
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
937
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 ac_prev=infodir ;;
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
942
943 -libdir | --libdir | --libdi | --libd)
944 ac_prev=libdir ;;
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 libdir=$ac_optarg ;;
947
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
954
955 -localedir | --localedir | --localedi | --localed | --locale)
956 ac_prev=localedir ;;
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
959
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
966
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 ac_prev=mandir ;;
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 mandir=$ac_optarg ;;
971
972 -nfp | --nfp | --nf)
973 # Obsolete; use --without-fp.
974 with_fp=no ;;
975
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
978 no_create=yes ;;
979
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 no_recursion=yes ;;
983
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
992
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 ac_prev=prefix ;;
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 prefix=$ac_optarg ;;
997
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1004
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1011
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1028
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 ac_prev=pdfdir ;;
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1033
1034 -psdir | --psdir | --psdi | --psd | --ps)
1035 ac_prev=psdir ;;
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 psdir=$ac_optarg ;;
1038
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 silent=yes ;;
1042
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
1103
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113"with_$ac_useropt"
1114"*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
1119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
1138 -*) as_fn_error "unrecognized option: \`$ac_option'
1139Try \`$0 --help' for more information."
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148 esac
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 ;;
1159
1160 esac
1161done
1162
1163if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error "missing argument to $ac_option"
1166fi
1167
1168if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174fi
1175
1176# Check all directory arguments for consistency.
1177for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1181do
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
1190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
1194 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1195done
1196
1197# There might be people who depend on the old broken behavior: `$host'
1198# used to hold the argument of --host etc.
1199# FIXME: To remove some day.
1200build=$build_alias
1201host=$host_alias
1202target=$target_alias
1203
1204# FIXME: To remove some day.
1205if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used." >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1212 fi
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error "working directory cannot be determined"
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error "pwd does not report name of working directory"
1227
1228
1229# Find the source files, if location was not specified.
1230if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238$as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\).*/{
1252 s//\1/
1253 q
1254 }
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1259 fi
1260else
1261 ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356
1357System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
73d5e770 1360 --target=TARGET configure for building compilers for TARGET [HOST]
d7f09764
DN
1361_ACEOF
1362fi
1363
1364if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1367 esac
1368 cat <<\_ACEOF
1369
1370Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
03428d41
RG
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
d7f09764
DN
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
4c0f4b0b 1378 --disable-largefile omit support for large files
d7f09764
DN
1379 --enable-shared[=PKGS] build shared libraries [default=yes]
1380 --enable-static[=PKGS] build static libraries [default=yes]
1381 --enable-fast-install[=PKGS]
1382 optimize for fast installation [default=yes]
1383 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1384
1385Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-build-libsubdir=DIR Directory where to find libraries for build system
2a7a8388
TS
1389 --with-libiberty=PATH specify the directory where to find libiberty
1390 [../libiberty]
3c36aa6b
JJ
1391 --with-gcc-major-version-only
1392 use only GCC major number in filesystem paths
d7f09764
DN
1393 --with-pic try to use only PIC/non-PIC objects [default=use
1394 both]
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1396
1397Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
d7f09764
DN
1405 CPP C preprocessor
1406
1407Use these variables to override the choices made by `configure' or to help
1408it to find libraries and programs with nonstandard names/locations.
1409
1410Report bugs to the package provider.
1411_ACEOF
1412ac_status=$?
1413fi
1414
1415if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 continue
1421 ac_builddir=.
1422
1423case "$ac_dir" in
1424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425*)
1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 esac ;;
1433esac
1434ac_abs_top_builddir=$ac_pwd
1435ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436# for backward compatibility:
1437ac_top_builddir=$ac_top_build_prefix
1438
1439case $srcdir in
1440 .) # We are building in place.
1441 ac_srcdir=.
1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
1445 ac_srcdir=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1448 *) # Relative name.
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452esac
1453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure" --help=recursive
1463 else
1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 fi || ac_status=$?
1466 cd "$ac_pwd" || { ac_status=$?; break; }
1467 done
1468fi
1469
1470test -n "$ac_init_help" && exit $ac_status
1471if $ac_init_version; then
1472 cat <<\_ACEOF
1473LTO plugin for ld configure 0.1
1474generated by GNU Autoconf 2.64
1475
1476Copyright (C) 2009 Free Software Foundation, Inc.
1477This configure script is free software; the Free Software Foundation
1478gives unlimited permission to copy, distribute and modify it.
1479_ACEOF
1480 exit
1481fi
1482
1483## ------------------------ ##
1484## Autoconf initialization. ##
1485## ------------------------ ##
1486
1487# ac_fn_c_try_compile LINENO
1488# --------------------------
1489# Try to compile conftest.$ac_ext, and return whether this succeeded.
1490ac_fn_c_try_compile ()
1491{
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext
1494 if { { ac_try="$ac_compile"
1495case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498esac
1499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500$as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_compile") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1507 fi
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest.$ac_objext; then :
1513 ac_retval=0
1514else
1515 $as_echo "$as_me: failed program was:" >&5
1516sed 's/^/| /' conftest.$ac_ext >&5
1517
1518 ac_retval=1
1519fi
1520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 return $ac_retval
1522
1523} # ac_fn_c_try_compile
1524
dcbc9df9
UB
1525# ac_fn_c_try_cpp LINENO
1526# ----------------------
1527# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_cpp ()
d7f09764
DN
1529{
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dcbc9df9 1531 if { { ac_try="$ac_cpp conftest.$ac_ext"
d7f09764
DN
1532case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
dcbc9df9 1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d7f09764
DN
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
dcbc9df9
UB
1546 test $ac_status = 0; } >/dev/null && {
1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d7f09764 1548 test ! -s conftest.err
d7f09764
DN
1549 }; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
dcbc9df9 1555 ac_retval=1
d7f09764 1556fi
d7f09764
DN
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 return $ac_retval
1559
dcbc9df9 1560} # ac_fn_c_try_cpp
d7f09764 1561
dcbc9df9 1562# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
d7f09764 1563# -------------------------------------------------------
dcbc9df9
UB
1564# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1565# the include files in INCLUDES and setting the cache variable VAR
1566# accordingly.
1567ac_fn_c_check_header_mongrel ()
d7f09764
DN
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dcbc9df9 1570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
d7f09764
DN
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572$as_echo_n "checking for $2... " >&6; }
1573if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 $as_echo_n "(cached) " >&6
dcbc9df9
UB
1575fi
1576eval ac_res=\$$3
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578$as_echo "$ac_res" >&6; }
d7f09764 1579else
dcbc9df9
UB
1580 # Is the header compilable?
1581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1582$as_echo_n "checking $2 usability... " >&6; }
1583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764
DN
1584/* end confdefs.h. */
1585$4
1586#include <$2>
1587_ACEOF
1588if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 1589 ac_header_compiler=yes
d7f09764 1590else
dcbc9df9 1591 ac_header_compiler=no
d7f09764
DN
1592fi
1593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcbc9df9
UB
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1595$as_echo "$ac_header_compiler" >&6; }
1596
1597# Is the header present?
1598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1599$as_echo_n "checking $2 presence... " >&6; }
1600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601/* end confdefs.h. */
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_cpp "$LINENO"; then :
1605 ac_header_preproc=yes
1606else
1607 ac_header_preproc=no
1608fi
1609rm -f conftest.err conftest.$ac_ext
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1611$as_echo "$ac_header_preproc" >&6; }
1612
1613# So? What about this header?
1614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1615 yes:no: )
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1617$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620 ;;
1621 no:yes:* )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1623$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1625$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1627$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1629$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ;;
1633esac
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635$as_echo_n "checking for $2... " >&6; }
1636if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1638else
1639 eval "$3=\$ac_header_compiler"
d7f09764
DN
1640fi
1641eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
d7f09764
DN
1644fi
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
d7f09764 1646
dcbc9df9 1647} # ac_fn_c_check_header_mongrel
d7f09764
DN
1648
1649# ac_fn_c_try_run LINENO
1650# ----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652# that executables *can* be run.
1653ac_fn_c_try_run ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=$ac_status
1684fi
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1688
1689} # ac_fn_c_try_run
1690
dcbc9df9
UB
1691# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists and can be compiled using the include files in
1694# INCLUDES, setting the cache variable VAR accordingly.
1695ac_fn_c_check_header_compile ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
1700if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1702else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709 eval "$3=yes"
1710else
1711 eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
1720} # ac_fn_c_check_header_compile
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 $as_test_x conftest$ac_exeext
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_c_try_link
1767
d7f09764
DN
1768# ac_fn_c_check_func LINENO FUNC VAR
1769# ----------------------------------
1770# Tests whether FUNC exists, setting the cache variable VAR accordingly
1771ac_fn_c_check_func ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783#define $2 innocuous_$2
1784
1785/* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790#ifdef __STDC__
1791# include <limits.h>
1792#else
1793# include <assert.h>
1794#endif
1795
1796#undef $2
1797
1798/* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801#ifdef __cplusplus
1802extern "C"
1803#endif
1804char $2 ();
1805/* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808#if defined __stub_$2 || defined __stub___$2
1809choke me
1810#endif
1811
1812int
1813main ()
1814{
1815return $2 ();
1816 ;
1817 return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822else
1823 eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832
1833} # ac_fn_c_check_func
21750c78 1834
d19e0f01
DK
1835# ac_fn_c_find_intX_t LINENO BITS VAR
1836# -----------------------------------
1837# Finds a signed integer type with width BITS, setting cache variable VAR
1838# accordingly.
1839ac_fn_c_find_intX_t ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1843$as_echo_n "checking for int$2_t... " >&6; }
1844if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846else
1847 eval "$3=no"
1848 for ac_type in int$2_t 'int' 'long int' \
1849 'long long int' 'short int' 'signed char'; do
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h. */
1852$ac_includes_default
1853int
1854main ()
1855{
1856static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1857test_array [0] = 0
1858
1859 ;
1860 return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$ac_includes_default
1867int
1868main ()
1869{
1870static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1871 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1872test_array [0] = 0
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879
1880else
1881 case $ac_type in #(
1882 int$2_t) :
1883 eval "$3=yes" ;; #(
1884 *) :
1885 eval "$3=\$ac_type" ;;
1886esac
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 eval as_val=\$$3
1892 if test "x$as_val" = x""no; then :
1893
1894else
1895 break
1896fi
1897 done
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903
1904} # ac_fn_c_find_intX_t
1905
21750c78
RE
1906# ac_fn_c_find_uintX_t LINENO BITS VAR
1907# ------------------------------------
1908# Finds an unsigned integer type with width BITS, setting cache variable VAR
1909# accordingly.
1910ac_fn_c_find_uintX_t ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1914$as_echo_n "checking for uint$2_t... " >&6; }
1915if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917else
1918 eval "$3=no"
1919 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1920 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$ac_includes_default
1924int
1925main ()
1926{
1927static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1928test_array [0] = 0
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 case $ac_type in #(
1936 uint$2_t) :
1937 eval "$3=yes" ;; #(
1938 *) :
1939 eval "$3=\$ac_type" ;;
1940esac
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 eval as_val=\$$3
1944 if test "x$as_val" = x""no; then :
1945
1946else
1947 break
1948fi
1949 done
1950fi
1951eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956} # ac_fn_c_find_uintX_t
d7f09764
DN
1957cat >config.log <<_ACEOF
1958This file contains any messages produced by compilers while
1959running configure, to aid debugging if configure makes a mistake.
1960
1961It was created by LTO plugin for ld $as_me 0.1, which was
1962generated by GNU Autoconf 2.64. Invocation command line was
1963
1964 $ $0 $@
1965
1966_ACEOF
1967exec 5>>config.log
1968{
1969cat <<_ASUNAME
1970## --------- ##
1971## Platform. ##
1972## --------- ##
1973
1974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979
1980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1982
1983/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1984/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1986/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1987/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1988/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1989/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990
1991_ASUNAME
1992
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 $as_echo "PATH: $as_dir"
1999 done
2000IFS=$as_save_IFS
2001
2002} >&5
2003
2004cat >&5 <<_ACEOF
2005
2006
2007## ----------- ##
2008## Core tests. ##
2009## ----------- ##
2010
2011_ACEOF
2012
2013
2014# Keep a trace of the command line.
2015# Strip out --no-create and --no-recursion so they do not pile up.
2016# Strip out --silent because we don't want to record it for future runs.
2017# Also quote any args containing shell meta-characters.
2018# Make two passes to allow for proper duplicate-argument suppression.
2019ac_configure_args=
2020ac_configure_args0=
2021ac_configure_args1=
2022ac_must_keep_next=false
2023for ac_pass in 1 2
2024do
2025 for ac_arg
2026 do
2027 case $ac_arg in
2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030 | -silent | --silent | --silen | --sile | --sil)
2031 continue ;;
2032 *\'*)
2033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034 esac
2035 case $ac_pass in
2036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2037 2)
2038 as_fn_append ac_configure_args1 " '$ac_arg'"
2039 if test $ac_must_keep_next = true; then
2040 ac_must_keep_next=false # Got value, back to normal.
2041 else
2042 case $ac_arg in
2043 *=* | --config-cache | -C | -disable-* | --disable-* \
2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046 | -with-* | --with-* | -without-* | --without-* | --x)
2047 case "$ac_configure_args0 " in
2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 esac
2050 ;;
2051 -* ) ac_must_keep_next=true ;;
2052 esac
2053 fi
2054 as_fn_append ac_configure_args " '$ac_arg'"
2055 ;;
2056 esac
2057 done
2058done
2059{ ac_configure_args0=; unset ac_configure_args0;}
2060{ ac_configure_args1=; unset ac_configure_args1;}
2061
2062# When interrupted or exit'd, cleanup temporary files, and complete
2063# config.log. We remove comments because anyway the quotes in there
2064# would cause problems or look ugly.
2065# WARNING: Use '\'' to represent an apostrophe within the trap.
2066# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2067trap 'exit_status=$?
2068 # Save into config.log some information that might help in debugging.
2069 {
2070 echo
2071
2072 cat <<\_ASBOX
2073## ---------------- ##
2074## Cache variables. ##
2075## ---------------- ##
2076_ASBOX
2077 echo
2078 # The following way of writing the cache mishandles newlines in values,
2079(
2080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in #(
2083 *${as_nl}*)
2084 case $ac_var in #(
2085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 esac
2088 case $ac_var in #(
2089 _ | IFS | as_nl) ;; #(
2090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2091 *) { eval $ac_var=; unset $ac_var;} ;;
2092 esac ;;
2093 esac
2094 done
2095 (set) 2>&1 |
2096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2097 *${as_nl}ac_space=\ *)
2098 sed -n \
2099 "s/'\''/'\''\\\\'\'''\''/g;
2100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 ;; #(
2102 *)
2103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 ;;
2105 esac |
2106 sort
2107)
2108 echo
2109
2110 cat <<\_ASBOX
2111## ----------------- ##
2112## Output variables. ##
2113## ----------------- ##
2114_ASBOX
2115 echo
2116 for ac_var in $ac_subst_vars
2117 do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2125
2126 if test -n "$ac_subst_files"; then
2127 cat <<\_ASBOX
2128## ------------------- ##
2129## File substitutions. ##
2130## ------------------- ##
2131_ASBOX
2132 echo
2133 for ac_var in $ac_subst_files
2134 do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 esac
2139 $as_echo "$ac_var='\''$ac_val'\''"
2140 done | sort
2141 echo
2142 fi
2143
2144 if test -s confdefs.h; then
2145 cat <<\_ASBOX
2146## ----------- ##
2147## confdefs.h. ##
2148## ----------- ##
2149_ASBOX
2150 echo
2151 cat confdefs.h
2152 echo
2153 fi
2154 test "$ac_signal" != 0 &&
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
2157 } >&5
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 exit $exit_status
2161' 0
2162for ac_signal in 1 2 13 15; do
2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164done
2165ac_signal=0
2166
2167# confdefs.h avoids OS command line length limits that DEFS can exceed.
2168rm -f -r conftest* confdefs.h
2169
2170$as_echo "/* confdefs.h */" > confdefs.h
2171
2172# Predefined preprocessor variables.
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_NAME "$PACKAGE_NAME"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_VERSION "$PACKAGE_VERSION"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_STRING "$PACKAGE_STRING"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_URL "$PACKAGE_URL"
2196_ACEOF
2197
2198
2199# Let the site file select an alternate cache file if it wants to.
2200# Prefer an explicitly selected file to automatically selected ones.
2201ac_site_file1=NONE
2202ac_site_file2=NONE
2203if test -n "$CONFIG_SITE"; then
2204 ac_site_file1=$CONFIG_SITE
2205elif test "x$prefix" != xNONE; then
2206 ac_site_file1=$prefix/share/config.site
2207 ac_site_file2=$prefix/etc/config.site
2208else
2209 ac_site_file1=$ac_default_prefix/share/config.site
2210 ac_site_file2=$ac_default_prefix/etc/config.site
2211fi
2212for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213do
2214 test "x$ac_site_file" = xNONE && continue
2215 if test -r "$ac_site_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218 sed 's/^/| /' "$ac_site_file" >&5
2219 . "$ac_site_file"
2220 fi
2221done
2222
2223if test -r "$cache_file"; then
2224 # Some versions of bash will fail to source /dev/null (special
2225 # files actually), so we avoid doing that.
2226 if test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228$as_echo "$as_me: loading cache $cache_file" >&6;}
2229 case $cache_file in
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
2232 esac
2233 fi
2234else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236$as_echo "$as_me: creating cache $cache_file" >&6;}
2237 >$cache_file
2238fi
2239
2240# Check that the precious variables saved in the cache have kept the same
2241# value.
2242ac_cache_corrupted=false
2243for ac_var in $ac_precious_vars; do
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
2248 case $ac_old_set,$ac_new_set in
2249 set,)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,set)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,);;
2258 *)
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 esac
2288 fi
2289done
2290if $ac_cache_corrupted; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296fi
2297## -------------------- ##
2298## Main body of script. ##
2299## -------------------- ##
2300
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306
2307
2308
2309
2310
2311ac_aux_dir=
2312for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 for ac_t in install-sh install.sh shtool; do
2314 if test -f "$ac_dir/$ac_t"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/$ac_t -c"
2317 break 2
2318 fi
2319 done
2320done
2321if test -z "$ac_aux_dir"; then
2322 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323fi
2324
2325# These three variables are undocumented and unsupported,
2326# and are intended to be withdrawn in a future Autoconf release.
2327# They can cause serious problems if a builder's source tree is in a directory
2328# whose full name contains unusual characters.
2329ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2330ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2331ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2332
2333
2334# Make sure we can run config.sub.
2335$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2336 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2337
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2339$as_echo_n "checking build system type... " >&6; }
2340if test "${ac_cv_build+set}" = set; then :
2341 $as_echo_n "(cached) " >&6
2342else
2343 ac_build_alias=$build_alias
2344test "x$ac_build_alias" = x &&
2345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2346test "x$ac_build_alias" = x &&
2347 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2348ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2349 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2350
2351fi
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2353$as_echo "$ac_cv_build" >&6; }
2354case $ac_cv_build in
2355*-*-*) ;;
2356*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2357esac
2358build=$ac_cv_build
2359ac_save_IFS=$IFS; IFS='-'
2360set x $ac_cv_build
2361shift
2362build_cpu=$1
2363build_vendor=$2
2364shift; shift
2365# Remember, the first character of IFS is used to create $*,
2366# except with old shells:
2367build_os=$*
2368IFS=$ac_save_IFS
2369case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2370
2371
73d5e770
L
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2373$as_echo_n "checking host system type... " >&6; }
2374if test "${ac_cv_host+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2376else
2377 if test "x$host_alias" = x; then
2378 ac_cv_host=$ac_cv_build
2379else
2380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2381 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2382fi
2383
2384fi
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2386$as_echo "$ac_cv_host" >&6; }
2387case $ac_cv_host in
2388*-*-*) ;;
2389*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2390esac
2391host=$ac_cv_host
2392ac_save_IFS=$IFS; IFS='-'
2393set x $ac_cv_host
2394shift
2395host_cpu=$1
2396host_vendor=$2
2397shift; shift
2398# Remember, the first character of IFS is used to create $*,
2399# except with old shells:
2400host_os=$*
2401IFS=$ac_save_IFS
2402case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403
2404
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2406$as_echo_n "checking target system type... " >&6; }
2407if test "${ac_cv_target+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
2409else
2410 if test "x$target_alias" = x; then
2411 ac_cv_target=$ac_cv_host
2412else
2413 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2415fi
2416
2417fi
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2419$as_echo "$ac_cv_target" >&6; }
2420case $ac_cv_target in
2421*-*-*) ;;
2422*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2423esac
2424target=$ac_cv_target
2425ac_save_IFS=$IFS; IFS='-'
2426set x $ac_cv_target
2427shift
2428target_cpu=$1
2429target_vendor=$2
2430shift; shift
2431# Remember, the first character of IFS is used to create $*,
2432# except with old shells:
2433target_os=$*
2434IFS=$ac_save_IFS
2435case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2436
2437
2438# The aliases save the names the user supplied, while $host etc.
2439# will get canonicalized.
2440test -n "$target_alias" &&
2441 test "$program_prefix$program_suffix$program_transform_name" = \
2442 NONENONEs,x,x, &&
2443 program_prefix=${target_alias}-
2444
d7f09764
DN
2445 case ${build_alias} in
2446 "") build_noncanonical=${build} ;;
2447 *) build_noncanonical=${build_alias} ;;
2448esac
2449
2450 case ${host_alias} in
2451 "") host_noncanonical=${build_noncanonical} ;;
2452 *) host_noncanonical=${host_alias} ;;
2453esac
2454
2455 case ${target_alias} in
2456 "") target_noncanonical=${host_noncanonical} ;;
2457 *) target_noncanonical=${target_alias} ;;
2458esac
2459
2460
2461# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2462# have matching libraries, they should use host libraries: Makefile.tpl
2463# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2464# However, they still use the build modules, because the corresponding
2465# host modules (e.g. bison) are only built for the host when bootstrap
2466# finishes. So:
2467# - build_subdir is where we find build modules, and never changes.
2468# - build_libsubdir is where we find build libraries, and can be overridden.
2469
2470# Prefix 'build-' so this never conflicts with target_subdir.
2471build_subdir="build-${build_noncanonical}"
2472
2473# Check whether --with-build-libsubdir was given.
2474if test "${with_build_libsubdir+set}" = set; then :
2475 withval=$with_build_libsubdir; build_libsubdir="$withval"
2476else
2477 build_libsubdir="$build_subdir"
2478fi
2479
2480# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2481if ( test $srcdir = . && test -d gcc ) \
2482 || test -d $srcdir/../host-${host_noncanonical}; then
2483 host_subdir="host-${host_noncanonical}"
2484else
2485 host_subdir=.
2486fi
2487# No prefix.
2488target_subdir=${target_noncanonical}
2489
2490am__api_version='1.11'
2491
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503# OS/2's system install, which has a completely different semantic
2504# ./install, which can be erroneously created by make from ./install.sh.
2505# Reject install programs that cannot install multiple files.
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507$as_echo_n "checking for a BSD-compatible install... " >&6; }
2508if test -z "$INSTALL"; then
2509if test "${ac_cv_path_install+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2533 :
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
2538 else
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2542 mkdir conftest.dir
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2547 then
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 break 3
2550 fi
2551 fi
2552 fi
2553 done
2554 done
2555 ;;
2556esac
2557
2558 done
2559IFS=$as_save_IFS
2560
2561rm -rf conftest.one conftest.two conftest.dir
2562
2563fi
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL=$ac_cv_path_install
2566 else
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 INSTALL=$ac_install_sh
2572 fi
2573fi
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575$as_echo "$INSTALL" >&6; }
2576
2577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578# It thinks the first close brace ends the variable substitution.
2579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2580
2581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2582
2583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2586$as_echo_n "checking whether build environment is sane... " >&6; }
2587# Just in case
2588sleep 1
2589echo timestamp > conftest.file
2590# Reject unsafe characters in $srcdir or the absolute working directory
2591# name. Accept space and tab only in the latter.
2592am_lf='
2593'
2594case `pwd` in
2595 *[\\\"\#\$\&\'\`$am_lf]*)
2596 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2597esac
2598case $srcdir in
2599 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2600 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2601esac
2602
2603# Do `set' in a subshell so we don't clobber the current shell's
2604# arguments. Must try -L first in case configure is actually a
2605# symlink; some systems play weird games with the mod time of symlinks
2606# (eg FreeBSD returns the mod time of the symlink's containing
2607# directory).
2608if (
2609 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2610 if test "$*" = "X"; then
2611 # -L didn't work.
2612 set X `ls -t "$srcdir/configure" conftest.file`
2613 fi
2614 rm -f conftest.file
2615 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2617
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2623alias in your environment" "$LINENO" 5
2624 fi
2625
2626 test "$2" = conftest.file
2627 )
2628then
2629 # Ok.
2630 :
2631else
2632 as_fn_error "newly created file is older than distributed files!
2633Check your system clock" "$LINENO" 5
2634fi
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636$as_echo "yes" >&6; }
2637test "$program_prefix" != NONE &&
2638 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2639# Use a double $ so make ignores it.
2640test "$program_suffix" != NONE &&
2641 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2642# Double any \ or $.
2643# By default was `s,x,x', remove it if useless.
2644ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2645program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2646
2647# expand $ac_aux_dir to an absolute path
2648am_aux_dir=`cd $ac_aux_dir && pwd`
2649
2650if test x"${MISSING+set}" != xset; then
2651 case $am_aux_dir in
2652 *\ * | *\ *)
2653 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2654 *)
2655 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2656 esac
2657fi
2658# Use eval to expand $SHELL
2659if eval "$MISSING --run true"; then
2660 am_missing_run="$MISSING --run "
2661else
2662 am_missing_run=
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2664$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2665fi
2666
2667if test x"${install_sh}" != xset; then
2668 case $am_aux_dir in
2669 *\ * | *\ *)
2670 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2671 *)
2672 install_sh="\${SHELL} $am_aux_dir/install-sh"
2673 esac
2674fi
2675
2676# Installed binaries are usually stripped using `strip' when the user
2677# run `make install-strip'. However `strip' might not be the right
2678# tool to use in cross-compilation environments, therefore Automake
2679# will honor the `STRIP' environment variable to overrule this program.
2680if test "$cross_compiling" != no; then
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2683set dummy ${ac_tool_prefix}strip; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if test "${ac_cv_prog_STRIP+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688else
2689 if test -n "$STRIP"; then
2690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704 done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709STRIP=$ac_cv_prog_STRIP
2710if test -n "$STRIP"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2712$as_echo "$STRIP" >&6; }
2713else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719fi
2720if test -z "$ac_cv_prog_STRIP"; then
2721 ac_ct_STRIP=$STRIP
2722 # Extract the first word of "strip", so it can be a program name with args.
2723set dummy strip; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test -n "$ac_ct_STRIP"; then
2730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_STRIP="strip"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743done
2744 done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2750if test -n "$ac_ct_STRIP"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2752$as_echo "$ac_ct_STRIP" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758 if test "x$ac_ct_STRIP" = x; then
2759 STRIP=":"
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762yes:)
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765ac_tool_warned=yes ;;
2766esac
2767 STRIP=$ac_ct_STRIP
2768 fi
2769else
2770 STRIP="$ac_cv_prog_STRIP"
2771fi
2772
2773fi
2774INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2777$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2778if test -z "$MKDIR_P"; then
2779 if test "${ac_cv_path_mkdir+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_prog in mkdir gmkdir; do
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2790 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2791 'mkdir (GNU coreutils) '* | \
2792 'mkdir (coreutils) '* | \
2793 'mkdir (fileutils) '4.1*)
2794 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2795 break 3;;
2796 esac
2797 done
2798 done
2799 done
2800IFS=$as_save_IFS
2801
2802fi
2803
2804 if test "${ac_cv_path_mkdir+set}" = set; then
2805 MKDIR_P="$ac_cv_path_mkdir -p"
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for MKDIR_P within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 test -d ./--version && rmdir ./--version
2812 MKDIR_P="$ac_install_sh -d"
2813 fi
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2816$as_echo "$MKDIR_P" >&6; }
2817
2818mkdir_p="$MKDIR_P"
2819case $mkdir_p in
2820 [\\/$]* | ?:[\\/]*) ;;
2821 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2822esac
2823
2824for ac_prog in gawk mawk nawk awk
2825do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if test "${ac_cv_prog_AWK+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832else
2833 if test -n "$AWK"; then
2834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_AWK="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848 done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853AWK=$ac_cv_prog_AWK
2854if test -n "$AWK"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2856$as_echo "$AWK" >&6; }
2857else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863 test -n "$AWK" && break
2864done
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868set x ${MAKE-make}
2869ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 cat >conftest.make <<\_ACEOF
2874SHELL = /bin/sh
2875all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877_ACEOF
2878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2882 *)
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884esac
2885rm -f conftest.make
2886fi
2887if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889$as_echo "yes" >&6; }
2890 SET_MAKE=
2891else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893$as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2895fi
2896
2897rm -rf .tst 2>/dev/null
2898mkdir .tst 2>/dev/null
2899if test -d .tst; then
2900 am__leading_dot=.
2901else
2902 am__leading_dot=_
2903fi
2904rmdir .tst 2>/dev/null
2905
2906if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status; then
2912 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913 fi
2914fi
2915
2916# test whether we have cygpath
2917if test -z "$CYGPATH_W"; then
2918 if (cygpath --version) >/dev/null 2>/dev/null; then
2919 CYGPATH_W='cygpath -w'
2920 else
2921 CYGPATH_W=echo
2922 fi
2923fi
2924
2925
2926# Define the identity of the package.
2927 PACKAGE='lto-plugin'
2928 VERSION='0.1'
2929
2930
2931cat >>confdefs.h <<_ACEOF
2932#define PACKAGE "$PACKAGE"
2933_ACEOF
2934
2935
2936cat >>confdefs.h <<_ACEOF
2937#define VERSION "$VERSION"
2938_ACEOF
2939
2940# Some tools Automake needs.
2941
2942ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
ed9b4ae3
MH
2958# Always define AMTAR for backward compatibility. Yes, it's still used
2959# in the wild :-( We should find a proper way to deprecate it ...
2960AMTAR='$${TAR-tar}'
d7f09764 2961
ed9b4ae3 2962am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d7f09764
DN
2963
2964
2965
2966
2967
03428d41
RG
2968
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2970$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2971 # Check whether --enable-maintainer-mode was given.
2972if test "${enable_maintainer_mode+set}" = set; then :
2973 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2974else
2975 USE_MAINTAINER_MODE=no
2976fi
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2979$as_echo "$USE_MAINTAINER_MODE" >&6; }
2980 if test $USE_MAINTAINER_MODE = yes; then
2981 MAINTAINER_MODE_TRUE=
2982 MAINTAINER_MODE_FALSE='#'
2983else
2984 MAINTAINER_MODE_TRUE='#'
2985 MAINTAINER_MODE_FALSE=
2986fi
2987
2988 MAINT=$MAINTAINER_MODE_TRUE
2989
2990
2a7a8388
TS
2991
2992# Check whether --with-libiberty was given.
2993if test "${with_libiberty+set}" = set; then :
2994 withval=$with_libiberty;
2995else
2996 with_libiberty=../libiberty
2997fi
2998
2999
dcbc9df9
UB
3000DEPDIR="${am__leading_dot}deps"
3001
3002ac_config_commands="$ac_config_commands depfiles"
3003
3004
3005am_make=${MAKE-make}
3006cat > confinc << 'END'
3007am__doit:
3008 @echo this is the am__doit target
3009.PHONY: am__doit
3010END
3011# If we don't find an include directive, just comment out the code.
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3013$as_echo_n "checking for style of include used by $am_make... " >&6; }
3014am__include="#"
3015am__quote=
3016_am_result=none
3017# First try GNU make style include.
3018echo "include confinc" > confmf
3019# Ignore all kinds of additional output from `make'.
3020case `$am_make -s -f confmf 2> /dev/null` in #(
3021*the\ am__doit\ target*)
3022 am__include=include
3023 am__quote=
3024 _am_result=GNU
3025 ;;
3026esac
3027# Now try BSD make style include.
3028if test "$am__include" = "#"; then
3029 echo '.include "confinc"' > confmf
3030 case `$am_make -s -f confmf 2> /dev/null` in #(
3031 *the\ am__doit\ target*)
3032 am__include=.include
3033 am__quote="\""
3034 _am_result=BSD
3035 ;;
3036 esac
3037fi
3038
3039
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3041$as_echo "$_am_result" >&6; }
3042rm -f confinc confmf
3043
3044# Check whether --enable-dependency-tracking was given.
3045if test "${enable_dependency_tracking+set}" = set; then :
3046 enableval=$enable_dependency_tracking;
3047fi
3048
3049if test "x$enable_dependency_tracking" != xno; then
3050 am_depcomp="$ac_aux_dir/depcomp"
3051 AMDEPBACKSLASH='\'
3052 am__nodep='_no'
3053fi
3054 if test "x$enable_dependency_tracking" != xno; then
3055 AMDEP_TRUE=
3056 AMDEP_FALSE='#'
3057else
3058 AMDEP_TRUE='#'
3059 AMDEP_FALSE=
3060fi
3061
3062
d7f09764
DN
3063ac_ext=c
3064ac_cpp='$CPP $CPPFLAGS'
3065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3070set dummy ${ac_tool_prefix}gcc; ac_word=$2
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
3073if test "${ac_cv_prog_CC+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075else
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090done
3091 done
3092IFS=$as_save_IFS
3093
3094fi
3095fi
3096CC=$ac_cv_prog_CC
3097if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099$as_echo "$CC" >&6; }
3100else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106fi
3107if test -z "$ac_cv_prog_CC"; then
3108 ac_ct_CC=$CC
3109 # Extract the first word of "gcc", so it can be a program name with args.
3110set dummy gcc; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115else
3116 if test -n "$ac_ct_CC"; then
3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_CC="gcc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131 done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137if test -n "$ac_ct_CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3139$as_echo "$ac_ct_CC" >&6; }
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154 CC=$ac_ct_CC
3155 fi
3156else
3157 CC="$ac_cv_prog_CC"
3158fi
3159
3160if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3163set dummy ${ac_tool_prefix}cc; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if test "${ac_cv_prog_CC+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="${ac_tool_prefix}cc"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184 done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199 fi
3200fi
3201if test -z "$CC"; then
3202 # Extract the first word of "cc", so it can be a program name with args.
3203set dummy cc; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if test "${ac_cv_prog_CC+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211else
3212 ac_prog_rejected=no
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3221 ac_prog_rejected=yes
3222 continue
3223 fi
3224 ac_cv_prog_CC="cc"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228done
3229 done
3230IFS=$as_save_IFS
3231
3232if test $ac_prog_rejected = yes; then
3233 # We found a bogon in the path, so make sure we never use it.
3234 set dummy $ac_cv_prog_CC
3235 shift
3236 if test $# != 0; then
3237 # We chose a different compiler from the bogus one.
3238 # However, it has the same basename, so the bogon will be chosen
3239 # first if we set CC to just the basename; use the full file name.
3240 shift
3241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3242 fi
3243fi
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249$as_echo "$CC" >&6; }
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256fi
3257if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 for ac_prog in cl.exe
3260 do
3261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283 done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298 test -n "$CC" && break
3299 done
3300fi
3301if test -z "$CC"; then
3302 ac_ct_CC=$CC
3303 for ac_prog in cl.exe
3304do
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306set dummy $ac_prog; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
3309if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311else
3312 if test -n "$ac_ct_CC"; then
3313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_ac_ct_CC="$ac_prog"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326done
3327 done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333if test -n "$ac_ct_CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3335$as_echo "$ac_ct_CC" >&6; }
3336else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339fi
3340
3341
3342 test -n "$ac_ct_CC" && break
3343done
3344
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349yes:)
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352ac_tool_warned=yes ;;
3353esac
3354 CC=$ac_ct_CC
3355 fi
3356fi
3357
3358fi
3359
3360
3361test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363as_fn_error "no acceptable C compiler found in \$PATH
3364See \`config.log' for more details." "$LINENO" 5; }
3365
3366# Provide some information about the compiler.
3367$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3368set X $ac_compile
3369ac_compiler=$2
3370for ac_option in --version -v -V -qversion; do
3371 { { ac_try="$ac_compiler $ac_option >&5"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3379 ac_status=$?
3380 if test -s conftest.err; then
3381 sed '10a\
3382... rest of stderr output deleted ...
3383 10q' conftest.err >conftest.er1
3384 cat conftest.er1 >&5
3385 rm -f conftest.er1 conftest.err
3386 fi
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389done
3390
3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h. */
3393
3394int
3395main ()
3396{
3397
3398 ;
3399 return 0;
3400}
3401_ACEOF
3402ac_clean_files_save=$ac_clean_files
3403ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3404# Try to create an executable without -o first, disregard a.out.
3405# It will help us diagnose broken compilers, and finding out an intuition
3406# of exeext.
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3408$as_echo_n "checking for C compiler default output file name... " >&6; }
3409ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3410
3411# The possible output files:
3412ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3413
3414ac_rmfiles=
3415for ac_file in $ac_files
3416do
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3420 esac
3421done
3422rm -f $ac_rmfiles
3423
3424if { { ac_try="$ac_link_default"
3425case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_link_default") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
3435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3436# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3437# in a Makefile. We should not override ac_cv_exeext if it was cached,
3438# so that the user can short-circuit this test for compilers unknown to
3439# Autoconf.
3440for ac_file in $ac_files ''
3441do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3445 ;;
3446 [ab].out )
3447 # We found the default executable, but exeext='' is most
3448 # certainly right.
3449 break;;
3450 *.* )
3451 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3452 then :; else
3453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454 fi
3455 # We set ac_cv_exeext here because the later test for it is not
3456 # safe: cross compilers may not add the suffix if given an `-o'
3457 # argument, so we may need to know it at that point already.
3458 # Even if this section looks crufty: it has the advantage of
3459 # actually working.
3460 break;;
3461 * )
3462 break;;
3463 esac
3464done
3465test "$ac_cv_exeext" = no && ac_cv_exeext=
3466
3467else
3468 ac_file=''
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3471$as_echo "$ac_file" >&6; }
3472if test -z "$ac_file"; then :
3473 $as_echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478{ as_fn_set_status 77
3479as_fn_error "C compiler cannot create executables
3480See \`config.log' for more details." "$LINENO" 5; }; }
3481fi
3482ac_exeext=$ac_cv_exeext
3483
3484# Check that the compiler produces executables we can run. If not, either
3485# the compiler is broken, or we cross compile.
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3487$as_echo_n "checking whether the C compiler works... " >&6; }
3488# If not cross compiling, check that we can run a simple program.
3489if test "$cross_compiling" != yes; then
3490 if { ac_try='./$ac_file'
3491 { { case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_try") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; }; then
3501 cross_compiling=no
3502 else
3503 if test "$cross_compiling" = maybe; then
3504 cross_compiling=yes
3505 else
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error "cannot run C compiled programs.
3509If you meant to cross compile, use \`--host'.
3510See \`config.log' for more details." "$LINENO" 5; }
3511 fi
3512 fi
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3515$as_echo "yes" >&6; }
3516
3517rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3518ac_clean_files=$ac_clean_files_save
3519# Check that the compiler produces executables we can run. If not, either
3520# the compiler is broken, or we cross compile.
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3522$as_echo_n "checking whether we are cross compiling... " >&6; }
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3524$as_echo "$cross_compiling" >&6; }
3525
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3527$as_echo_n "checking for suffix of executables... " >&6; }
3528if { { ac_try="$ac_link"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3540# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3541# work properly (i.e., refer to `conftest.exe'), while it won't with
3542# `rm'.
3543for ac_file in conftest.exe conftest conftest.*; do
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 break;;
3549 * ) break;;
3550 esac
3551done
3552else
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error "cannot compute suffix of executables: cannot compile and link
3556See \`config.log' for more details." "$LINENO" 5; }
3557fi
3558rm -f conftest$ac_cv_exeext
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3560$as_echo "$ac_cv_exeext" >&6; }
3561
3562rm -f conftest.$ac_ext
3563EXEEXT=$ac_cv_exeext
3564ac_exeext=$EXEEXT
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3566$as_echo_n "checking for suffix of object files... " >&6; }
3567if test "${ac_cv_objext+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h. */
3572
3573int
3574main ()
3575{
3576
3577 ;
3578 return 0;
3579}
3580_ACEOF
3581rm -f conftest.o conftest.obj
3582if { { ac_try="$ac_compile"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_compile") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 for ac_file in conftest.o conftest.obj conftest.*; do
3594 test -f "$ac_file" || continue;
3595 case $ac_file in
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3598 break;;
3599 esac
3600done
3601else
3602 $as_echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607as_fn_error "cannot compute suffix of object files: cannot compile
3608See \`config.log' for more details." "$LINENO" 5; }
3609fi
3610rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3613$as_echo "$ac_cv_objext" >&6; }
3614OBJEXT=$ac_cv_objext
3615ac_objext=$OBJEXT
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3620else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
3623
3624int
3625main ()
3626{
3627#ifndef __GNUC__
3628 choke me
3629#endif
3630
3631 ;
3632 return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_compiler_gnu=yes
3637else
3638 ac_compiler_gnu=no
3639fi
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648else
3649 GCC=
3650fi
3651ac_test_CFLAGS=${CFLAGS+set}
3652ac_save_CFLAGS=$CFLAGS
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654$as_echo_n "checking whether $CC accepts -g... " >&6; }
3655if test "${ac_cv_prog_cc_g+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_g=yes
3675else
3676 CFLAGS=""
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689
3690else
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h. */
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706fi
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708fi
3709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710fi
3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715$as_echo "$ac_cv_prog_cc_g" >&6; }
3716if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3720 CFLAGS="-g -O2"
3721 else
3722 CFLAGS="-g"
3723 fi
3724else
3725 if test "$GCC" = yes; then
3726 CFLAGS="-O2"
3727 else
3728 CFLAGS=
3729 fi
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733if test "${ac_cv_prog_cc_c89+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735else
3736 ac_cv_prog_cc_c89=no
3737ac_save_CC=$CC
3738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h. */
3740#include <stdarg.h>
3741#include <stdio.h>
3742#include <sys/types.h>
3743#include <sys/stat.h>
3744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3745struct buf { int x; };
3746FILE * (*rcsopen) (struct buf *, struct stat *, int);
3747static char *e (p, i)
3748 char **p;
3749 int i;
3750{
3751 return p[i];
3752}
3753static char *f (char * (*g) (char **, int), char **p, ...)
3754{
3755 char *s;
3756 va_list v;
3757 va_start (v,p);
3758 s = g (p, va_arg (v,int));
3759 va_end (v);
3760 return s;
3761}
3762
3763/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3764 function prototypes and stuff, but not '\xHH' hex character constants.
3765 These don't provoke an error unfortunately, instead are silently treated
3766 as 'x'. The following induces an error, until -std is added to get
3767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3768 array size at least. It's necessary to write '\x00'==0 to get something
3769 that's true only with -std. */
3770int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771
3772/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3773 inside strings and character constants. */
3774#define FOO(x) 'x'
3775int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776
3777int test (int i, double x);
3778struct s1 {int (*f) (int a);};
3779struct s2 {int (*f) (double a);};
3780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781int argc;
3782char **argv;
3783int
3784main ()
3785{
3786return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793do
3794 CC="$ac_save_CC $ac_arg"
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_c89=$ac_arg
3797fi
3798rm -f core conftest.err conftest.$ac_objext
3799 test "x$ac_cv_prog_cc_c89" != "xno" && break
3800done
3801rm -f conftest.$ac_ext
3802CC=$ac_save_CC
3803
3804fi
3805# AC_CACHE_VAL
3806case "x$ac_cv_prog_cc_c89" in
3807 x)
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3809$as_echo "none needed" >&6; } ;;
3810 xno)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3812$as_echo "unsupported" >&6; } ;;
3813 *)
3814 CC="$CC $ac_cv_prog_cc_c89"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3816$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3817esac
3818if test "x$ac_cv_prog_cc_c89" != xno; then :
3819
3820fi
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7f09764 3827
dcbc9df9 3828depcc="$CC" am_compiler_list=
d7f09764
DN
3829
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831$as_echo_n "checking dependency style of $depcc... " >&6; }
3832if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834else
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named `D' -- because `-MD' means `put the output
3840 # in D'.
ed9b4ae3 3841 rm -rf conftest.dir
d7f09764
DN
3842 mkdir conftest.dir
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3846 cd conftest.dir
3847 # We will build objects and dependencies in a subdirectory because
3848 # it helps to detect inapplicable dependency modes. For instance
3849 # both Tru64's cc and ICC support -MD to output dependencies as a
3850 # side effect of compilation, but ICC will put the dependencies in
3851 # the current directory while Tru64 will put them in the object
3852 # directory.
3853 mkdir sub
3854
3855 am_cv_CC_dependencies_compiler_type=none
3856 if test "$am_compiler_list" = ""; then
3857 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858 fi
3859 am__universal=false
3860 case " $depcc " in #(
3861 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862 esac
3863
3864 for depmode in $am_compiler_list; do
3865 # Setup a source with many dependencies, because some compilers
3866 # like to wrap large dependency lists on column 80 (with \), and
3867 # we should not choose a depcomp mode which is confused by this.
3868 #
3869 # We need to recreate these files for each test, as the compiler may
3870 # overwrite some of them when testing with obscure command lines.
3871 # This happens at least with the AIX C compiler.
3872 : > sub/conftest.c
3873 for i in 1 2 3 4 5 6; do
3874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3876 # Solaris 8's {/usr,}/bin/sh.
3877 touch sub/conftst$i.h
3878 done
3879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle `-M -o', and we need to detect this. Also, some Intel
3884 # versions had trouble with output in subdirs
3885 am__obj=sub/conftest.${OBJEXT-o}
3886 am__minus_obj="-o $am__obj"
3887 case $depmode in
3888 gcc)
3889 # This depmode causes a compiler race in universal mode.
3890 test "$am__universal" = false || continue
3891 ;;
3892 nosideeffect)
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes; then
3896 continue
3897 else
3898 break
3899 fi
3900 ;;
ed9b4ae3 3901 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d7f09764
DN
3902 # This compiler won't grok `-c -o', but also, the minuso test has
3903 # not run yet. These depmodes are late enough in the game, and
3904 # so weak that their functioning should not be impacted.
3905 am__obj=conftest.${OBJEXT-o}
3906 am__minus_obj=
3907 ;;
3908 none) break ;;
3909 esac
3910 if depmode=$depmode \
3911 source=sub/conftest.c object=$am__obj \
3912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914 >/dev/null 2>conftest.err &&
3915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919 # icc doesn't choke on unknown options, it will just issue warnings
3920 # or remarks (even with -Werror). So we grep stderr for any message
3921 # that says an option was ignored or not supported.
3922 # When given -MP, icc 7.0 and 7.1 complain thusly:
3923 # icc: Command line warning: ignoring option '-M'; no argument required
3924 # The diagnosis changed in icc 8.0:
3925 # icc: Command line remark: option '-MP' not supported
3926 if (grep 'ignoring option' conftest.err ||
3927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928 am_cv_CC_dependencies_compiler_type=$depmode
3929 break
3930 fi
3931 fi
3932 done
3933
3934 cd ..
3935 rm -rf conftest.dir
3936else
3937 am_cv_CC_dependencies_compiler_type=none
3938fi
3939
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945 if
3946 test "x$enable_dependency_tracking" != xno \
3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948 am__fastdepCC_TRUE=
3949 am__fastdepCC_FALSE='#'
3950else
3951 am__fastdepCC_TRUE='#'
3952 am__fastdepCC_FALSE=
3953fi
3954
3955
3956
dcbc9df9
UB
3957ac_ext=c
3958ac_cpp='$CPP $CPPFLAGS'
3959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3963$as_echo_n "checking how to run the C preprocessor... " >&6; }
3964# On Suns, sometimes $CPP names a directory.
3965if test -n "$CPP" && test -d "$CPP"; then
3966 CPP=
4c0f4b0b 3967fi
dcbc9df9
UB
3968if test -z "$CPP"; then
3969 if test "${ac_cv_prog_CPP+set}" = set; then :
4c0f4b0b
DG
3970 $as_echo_n "(cached) " >&6
3971else
dcbc9df9
UB
3972 # Double quotes because CPP needs to be expanded
3973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3974 do
3975 ac_preproc_ok=false
3976for ac_c_preproc_warn_flag in '' yes
3977do
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0f4b0b 3985/* end confdefs.h. */
dcbc9df9
UB
3986#ifdef __STDC__
3987# include <limits.h>
3988#else
3989# include <assert.h>
3990#endif
3991 Syntax error
4c0f4b0b 3992_ACEOF
dcbc9df9
UB
3993if ac_fn_c_try_cpp "$LINENO"; then :
3994
3995else
3996 # Broken: fails on valid input.
3997continue
4c0f4b0b 3998fi
dcbc9df9
UB
3999rm -f conftest.err conftest.$ac_ext
4000
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005#include <ac_nonexistent.h>
4006_ACEOF
4007if ac_fn_c_try_cpp "$LINENO"; then :
4008 # Broken: success on invalid input.
4009continue
4010else
4011 # Passes both tests.
4012ac_preproc_ok=:
4013break
4c0f4b0b 4014fi
dcbc9df9
UB
4015rm -f conftest.err conftest.$ac_ext
4016
4017done
4018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019rm -f conftest.err conftest.$ac_ext
4020if $ac_preproc_ok; then :
4021 break
4c0f4b0b 4022fi
4c0f4b0b 4023
dcbc9df9
UB
4024 done
4025 ac_cv_prog_CPP=$CPP
4026
4027fi
4028 CPP=$ac_cv_prog_CPP
4c0f4b0b 4029else
dcbc9df9
UB
4030 ac_cv_prog_CPP=$CPP
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4033$as_echo "$CPP" >&6; }
4034ac_preproc_ok=false
4035for ac_c_preproc_warn_flag in '' yes
4036do
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4c0f4b0b
DG
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
dcbc9df9
UB
4045#ifdef __STDC__
4046# include <limits.h>
4047#else
4048# include <assert.h>
4049#endif
4050 Syntax error
4c0f4b0b 4051_ACEOF
dcbc9df9
UB
4052if ac_fn_c_try_cpp "$LINENO"; then :
4053
4054else
4055 # Broken: fails on valid input.
4056continue
4c0f4b0b 4057fi
dcbc9df9
UB
4058rm -f conftest.err conftest.$ac_ext
4059
4060 # OK, works on sane cases. Now check whether nonexistent headers
4061 # can be detected and how.
4c0f4b0b
DG
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h. */
dcbc9df9 4064#include <ac_nonexistent.h>
4c0f4b0b 4065_ACEOF
dcbc9df9
UB
4066if ac_fn_c_try_cpp "$LINENO"; then :
4067 # Broken: success on invalid input.
4068continue
4069else
4070 # Passes both tests.
4071ac_preproc_ok=:
4072break
4c0f4b0b 4073fi
dcbc9df9
UB
4074rm -f conftest.err conftest.$ac_ext
4075
4c0f4b0b 4076done
dcbc9df9
UB
4077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078rm -f conftest.err conftest.$ac_ext
4079if $ac_preproc_ok; then :
4080
4081else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084as_fn_error "C preprocessor \"$CPP\" fails sanity check
4085See \`config.log' for more details." "$LINENO" 5; }
4c0f4b0b 4086fi
dcbc9df9
UB
4087
4088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4096$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4097if test "${ac_cv_path_GREP+set}" = set; then :
4c0f4b0b
DG
4098 $as_echo_n "(cached) " >&6
4099else
dcbc9df9
UB
4100 if test -z "$GREP"; then
4101 ac_path_GREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in grep ggrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4112# Check for GNU ac_path_GREP and select it if it is found.
4113 # Check for GNU $ac_path_GREP
4114case `"$ac_path_GREP" --version 2>&1` in
4115*GNU*)
4116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4117*)
4118 ac_count=0
4119 $as_echo_n 0123456789 >"conftest.in"
4120 while :
4121 do
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'GREP' >> "conftest.nl"
4126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_GREP="$ac_path_GREP"
4132 ac_path_GREP_max=$ac_count
4133 fi
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4136 done
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138esac
4c0f4b0b 4139
dcbc9df9
UB
4140 $ac_path_GREP_found && break 3
4141 done
4142 done
4143 done
4144IFS=$as_save_IFS
4145 if test -z "$ac_cv_path_GREP"; then
4146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 fi
4148else
4149 ac_cv_path_GREP=$GREP
4c0f4b0b 4150fi
4c0f4b0b 4151
4c0f4b0b 4152fi
dcbc9df9
UB
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4154$as_echo "$ac_cv_path_GREP" >&6; }
4155 GREP="$ac_cv_path_GREP"
4156
4157
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4159$as_echo_n "checking for egrep... " >&6; }
4160if test "${ac_cv_path_EGREP+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4164 then ac_cv_path_EGREP="$GREP -E"
4165 else
4166 if test -z "$EGREP"; then
4167 ac_path_EGREP_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in egrep; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4178# Check for GNU ac_path_EGREP and select it if it is found.
4179 # Check for GNU $ac_path_EGREP
4180case `"$ac_path_EGREP" --version 2>&1` in
4181*GNU*)
4182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4183*)
4184 ac_count=0
4185 $as_echo_n 0123456789 >"conftest.in"
4186 while :
4187 do
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo 'EGREP' >> "conftest.nl"
4192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_EGREP="$ac_path_EGREP"
4198 ac_path_EGREP_max=$ac_count
4199 fi
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4202 done
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4c0f4b0b 4204esac
dcbc9df9
UB
4205
4206 $ac_path_EGREP_found && break 3
4207 done
4208 done
4209 done
4210IFS=$as_save_IFS
4211 if test -z "$ac_cv_path_EGREP"; then
4212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4c0f4b0b 4213 fi
dcbc9df9
UB
4214else
4215 ac_cv_path_EGREP=$EGREP
4c0f4b0b
DG
4216fi
4217
dcbc9df9
UB
4218 fi
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4221$as_echo "$ac_cv_path_EGREP" >&6; }
4222 EGREP="$ac_cv_path_EGREP"
f3016c47 4223
dcbc9df9
UB
4224
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4226$as_echo_n "checking for ANSI C header files... " >&6; }
4227if test "${ac_cv_header_stdc+set}" = set; then :
f3016c47
RG
4228 $as_echo_n "(cached) " >&6
4229else
dcbc9df9 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3016c47 4231/* end confdefs.h. */
dcbc9df9
UB
4232#include <stdlib.h>
4233#include <stdarg.h>
4234#include <string.h>
4235#include <float.h>
f3016c47
RG
4236
4237int
4238main ()
4239{
4240
4241 ;
4242 return 0;
4243}
4244_ACEOF
4245if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 4246 ac_cv_header_stdc=yes
f3016c47 4247else
dcbc9df9 4248 ac_cv_header_stdc=no
f3016c47
RG
4249fi
4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251
dcbc9df9
UB
4252if test $ac_cv_header_stdc = yes; then
4253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2555c65 4255/* end confdefs.h. */
dcbc9df9 4256#include <string.h>
a2555c65 4257
a2555c65 4258_ACEOF
dcbc9df9
UB
4259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "memchr" >/dev/null 2>&1; then :
4261
a2555c65 4262else
dcbc9df9 4263 ac_cv_header_stdc=no
a2555c65 4264fi
dcbc9df9
UB
4265rm -f conftest*
4266
a2555c65
RO
4267fi
4268
dcbc9df9
UB
4269if test $ac_cv_header_stdc = yes; then
4270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h. */
4273#include <stdlib.h>
4274
4275_ACEOF
4276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "free" >/dev/null 2>&1; then :
5523efdf 4278
43f4a446 4279else
dcbc9df9 4280 ac_cv_header_stdc=no
43f4a446 4281fi
dcbc9df9 4282rm -f conftest*
43f4a446 4283
85c64bbe
BS
4284fi
4285
dcbc9df9
UB
4286if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then :
4289 :
4290else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h. */
4293#include <ctype.h>
4294#include <stdlib.h>
4295#if ((' ' & 0x0FF) == 0x020)
4296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4298#else
4299# define ISLOWER(c) \
4300 (('a' <= (c) && (c) <= 'i') \
4301 || ('j' <= (c) && (c) <= 'r') \
4302 || ('s' <= (c) && (c) <= 'z'))
4303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4304#endif
85c64bbe 4305
dcbc9df9
UB
4306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307int
4308main ()
4309{
4310 int i;
4311 for (i = 0; i < 256; i++)
4312 if (XOR (islower (i), ISLOWER (i))
4313 || toupper (i) != TOUPPER (i))
4314 return 2;
4315 return 0;
4316}
4317_ACEOF
4318if ac_fn_c_try_run "$LINENO"; then :
85c64bbe 4319
dcbc9df9
UB
4320else
4321 ac_cv_header_stdc=no
4322fi
4323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4324 conftest.$ac_objext conftest.beam conftest.$ac_ext
4325fi
d7f09764 4326
dcbc9df9
UB
4327fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4330$as_echo "$ac_cv_header_stdc" >&6; }
4331if test $ac_cv_header_stdc = yes; then
d7f09764 4332
dcbc9df9 4333$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7f09764 4334
dcbc9df9 4335fi
d7f09764 4336
dcbc9df9
UB
4337# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4338for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4339 inttypes.h stdint.h unistd.h
4340do :
4341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4343"
4344eval as_val=\$$as_ac_Header
4345 if test "x$as_val" = x""yes; then :
4346 cat >>confdefs.h <<_ACEOF
4347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348_ACEOF
d7f09764 4349
dcbc9df9 4350fi
d7f09764 4351
dcbc9df9 4352done
d7f09764
DN
4353
4354
4355
dcbc9df9
UB
4356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4358 MINIX=yes
4359else
4360 MINIX=
4361fi
d7f09764
DN
4362
4363
dcbc9df9 4364 if test "$MINIX" = yes; then
d7f09764 4365
dcbc9df9 4366$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7f09764 4367
52327858 4368
dcbc9df9 4369$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
52327858 4370
52327858 4371
dcbc9df9 4372$as_echo "#define _MINIX 1" >>confdefs.h
52327858 4373
dcbc9df9 4374 fi
52327858 4375
52327858 4376
dcbc9df9
UB
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4378$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4379if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
52327858 4381else
dcbc9df9
UB
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h. */
52327858 4384
dcbc9df9
UB
4385# define __EXTENSIONS__ 1
4386 $ac_includes_default
4387int
4388main ()
52327858 4389{
52327858 4390
dcbc9df9
UB
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_safe_to_define___extensions__=yes
4397else
4398 ac_cv_safe_to_define___extensions__=no
4399fi
4400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4403$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4404 test $ac_cv_safe_to_define___extensions__ = yes &&
4405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
52327858 4406
dcbc9df9 4407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
52327858 4408
dcbc9df9 4409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
52327858 4410
dcbc9df9 4411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
52327858 4412
dcbc9df9 4413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
52327858
L
4414
4415
dcbc9df9
UB
4416ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_prog_CC+set}" = set; then :
d7f09764
DN
4427 $as_echo_n "(cached) " >&6
4428else
dcbc9df9
UB
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d7f09764
DN
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
d7f09764 4437 for ac_exec_ext in '' $ac_executable_extensions; do
dcbc9df9
UB
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
d7f09764
DN
4444 done
4445IFS=$as_save_IFS
dcbc9df9
UB
4446
4447fi
4448fi
4449CC=$ac_cv_prog_CC
4450if test -n "$CC"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4452$as_echo "$CC" >&6; }
d7f09764 4453else
dcbc9df9
UB
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
d7f09764
DN
4456fi
4457
dcbc9df9 4458
d7f09764 4459fi
dcbc9df9
UB
4460if test -z "$ac_cv_prog_CC"; then
4461 ac_ct_CC=$CC
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463set dummy gcc; ac_word=$2
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465$as_echo_n "checking for $ac_word... " >&6; }
4466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d7f09764
DN
4467 $as_echo_n "(cached) " >&6
4468else
dcbc9df9
UB
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
d7f09764
DN
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
d7f09764 4477 for ac_exec_ext in '' $ac_executable_extensions; do
dcbc9df9
UB
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CC="gcc"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
d7f09764
DN
4484 done
4485IFS=$as_save_IFS
dcbc9df9
UB
4486
4487fi
4488fi
4489ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490if test -n "$ac_ct_CC"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4492$as_echo "$ac_ct_CC" >&6; }
d7f09764 4493else
dcbc9df9
UB
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495$as_echo "no" >&6; }
d7f09764
DN
4496fi
4497
dcbc9df9
UB
4498 if test "x$ac_ct_CC" = x; then
4499 CC=""
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502yes:)
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505ac_tool_warned=yes ;;
4506esac
4507 CC=$ac_ct_CC
4508 fi
4509else
4510 CC="$ac_cv_prog_CC"
d7f09764 4511fi
d7f09764 4512
dcbc9df9
UB
4513if test -z "$CC"; then
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4516set dummy ${ac_tool_prefix}cc; ac_word=$2
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518$as_echo_n "checking for $ac_word... " >&6; }
4519if test "${ac_cv_prog_CC+set}" = set; then :
d7f09764
DN
4520 $as_echo_n "(cached) " >&6
4521else
dcbc9df9
UB
4522 if test -n "$CC"; then
4523 ac_cv_prog_CC="$CC" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
d7f09764
DN
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
d7f09764 4530 for ac_exec_ext in '' $ac_executable_extensions; do
dcbc9df9
UB
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_CC="${ac_tool_prefix}cc"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
d7f09764
DN
4537 done
4538IFS=$as_save_IFS
d7f09764 4539
d7f09764 4540fi
dcbc9df9
UB
4541fi
4542CC=$ac_cv_prog_CC
4543if test -n "$CC"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4545$as_echo "$CC" >&6; }
4546else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548$as_echo "no" >&6; }
4549fi
d7f09764
DN
4550
4551
dcbc9df9
UB
4552 fi
4553fi
4554if test -z "$CC"; then
4555 # Extract the first word of "cc", so it can be a program name with args.
4556set dummy cc; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if test "${ac_cv_prog_CC+set}" = set; then :
d7f09764
DN
4560 $as_echo_n "(cached) " >&6
4561else
dcbc9df9
UB
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
4564else
4565 ac_prog_rejected=no
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
d7f09764
DN
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
d7f09764 4571 for ac_exec_ext in '' $ac_executable_extensions; do
dcbc9df9
UB
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4574 ac_prog_rejected=yes
4575 continue
4576 fi
4577 ac_cv_prog_CC="cc"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581done
d7f09764 4582 done
dcbc9df9 4583IFS=$as_save_IFS
d7f09764 4584
dcbc9df9
UB
4585if test $ac_prog_rejected = yes; then
4586 # We found a bogon in the path, so make sure we never use it.
4587 set dummy $ac_cv_prog_CC
4588 shift
4589 if test $# != 0; then
4590 # We chose a different compiler from the bogus one.
4591 # However, it has the same basename, so the bogon will be chosen
4592 # first if we set CC to just the basename; use the full file name.
4593 shift
4594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d7f09764 4595 fi
d7f09764 4596fi
d7f09764
DN
4597fi
4598fi
dcbc9df9
UB
4599CC=$ac_cv_prog_CC
4600if test -n "$CC"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4602$as_echo "$CC" >&6; }
d7f09764
DN
4603else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
d7f09764
DN
4607
4608
d7f09764 4609fi
dcbc9df9
UB
4610if test -z "$CC"; then
4611 if test -n "$ac_tool_prefix"; then
4612 for ac_prog in cl.exe
d7f09764
DN
4613 do
4614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 4618if test "${ac_cv_prog_CC+set}" = set; then :
d7f09764
DN
4619 $as_echo_n "(cached) " >&6
4620else
dcbc9df9
UB
4621 if test -n "$CC"; then
4622 ac_cv_prog_CC="$CC" # Let the user override the test.
d7f09764
DN
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 4631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7f09764
DN
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636 done
4637IFS=$as_save_IFS
4638
4639fi
4640fi
dcbc9df9
UB
4641CC=$ac_cv_prog_CC
4642if test -n "$CC"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4644$as_echo "$CC" >&6; }
d7f09764
DN
4645else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648fi
4649
4650
dcbc9df9 4651 test -n "$CC" && break
d7f09764
DN
4652 done
4653fi
dcbc9df9
UB
4654if test -z "$CC"; then
4655 ac_ct_CC=$CC
4656 for ac_prog in cl.exe
d7f09764
DN
4657do
4658 # Extract the first word of "$ac_prog", so it can be a program name with args.
4659set dummy $ac_prog; ac_word=$2
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 4662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d7f09764
DN
4663 $as_echo_n "(cached) " >&6
4664else
dcbc9df9
UB
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7f09764
DN
4667else
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 4675 ac_cv_prog_ac_ct_CC="$ac_prog"
d7f09764
DN
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679done
4680 done
4681IFS=$as_save_IFS
4682
4683fi
4684fi
dcbc9df9
UB
4685ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688$as_echo "$ac_ct_CC" >&6; }
d7f09764
DN
4689else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691$as_echo "no" >&6; }
4692fi
4693
4694
dcbc9df9 4695 test -n "$ac_ct_CC" && break
d7f09764
DN
4696done
4697
dcbc9df9
UB
4698 if test "x$ac_ct_CC" = x; then
4699 CC=""
d7f09764
DN
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702yes:)
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705ac_tool_warned=yes ;;
4706esac
dcbc9df9 4707 CC=$ac_ct_CC
d7f09764
DN
4708 fi
4709fi
4710
d7f09764 4711fi
d7f09764
DN
4712
4713
dcbc9df9
UB
4714test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716as_fn_error "no acceptable C compiler found in \$PATH
4717See \`config.log' for more details." "$LINENO" 5; }
d7f09764 4718
dcbc9df9
UB
4719# Provide some information about the compiler.
4720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4721set X $ac_compile
4722ac_compiler=$2
4723for ac_option in --version -v -V -qversion; do
4724 { { ac_try="$ac_compiler $ac_option >&5"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4730$as_echo "$ac_try_echo"; } >&5
4731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4732 ac_status=$?
4733 if test -s conftest.err; then
4734 sed '10a\
4735... rest of stderr output deleted ...
4736 10q' conftest.err >conftest.er1
4737 cat conftest.er1 >&5
4738 rm -f conftest.er1 conftest.err
4739 fi
4740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741 test $ac_status = 0; }
4742done
d7f09764 4743
dcbc9df9
UB
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4745$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4746if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4748else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h. */
d7f09764 4751
dcbc9df9
UB
4752int
4753main ()
4754{
4755#ifndef __GNUC__
4756 choke me
4757#endif
d7f09764 4758
dcbc9df9
UB
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_compiler_gnu=yes
d7f09764 4765else
dcbc9df9 4766 ac_compiler_gnu=no
d7f09764 4767fi
dcbc9df9
UB
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7f09764 4770
dcbc9df9
UB
4771fi
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4773$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4774if test $ac_compiler_gnu = yes; then
4775 GCC=yes
d7f09764 4776else
dcbc9df9 4777 GCC=
d7f09764 4778fi
dcbc9df9
UB
4779ac_test_CFLAGS=${CFLAGS+set}
4780ac_save_CFLAGS=$CFLAGS
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4782$as_echo_n "checking whether $CC accepts -g... " >&6; }
4783if test "${ac_cv_prog_cc_g+set}" = set; then :
d7f09764
DN
4784 $as_echo_n "(cached) " >&6
4785else
dcbc9df9
UB
4786 ac_save_c_werror_flag=$ac_c_werror_flag
4787 ac_c_werror_flag=yes
4788 ac_cv_prog_cc_g=no
4789 CFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
d7f09764 4792
dcbc9df9
UB
4793int
4794main ()
4795{
d7f09764 4796
dcbc9df9
UB
4797 ;
4798 return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_g=yes
4803else
4804 CFLAGS=""
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
d7f09764 4807
dcbc9df9
UB
4808int
4809main ()
4810{
52327858 4811
dcbc9df9
UB
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816if ac_fn_c_try_compile "$LINENO"; then :
d7f09764 4817
dcbc9df9
UB
4818else
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820 CFLAGS="-g"
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h. */
d7f09764 4823
dcbc9df9
UB
4824int
4825main ()
4826{
d7f09764 4827
dcbc9df9
UB
4828 ;
4829 return 0;
4830}
4831_ACEOF
4832if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_prog_cc_g=yes
4834fi
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 ac_c_werror_flag=$ac_save_c_werror_flag
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4843$as_echo "$ac_cv_prog_cc_g" >&6; }
4844if test "$ac_test_CFLAGS" = set; then
4845 CFLAGS=$ac_save_CFLAGS
4846elif test $ac_cv_prog_cc_g = yes; then
4847 if test "$GCC" = yes; then
4848 CFLAGS="-g -O2"
4849 else
4850 CFLAGS="-g"
4851 fi
4852else
4853 if test "$GCC" = yes; then
4854 CFLAGS="-O2"
4855 else
4856 CFLAGS=
4857 fi
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4860$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4861if test "${ac_cv_prog_cc_c89+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 ac_cv_prog_cc_c89=no
4865ac_save_CC=$CC
4866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h. */
4868#include <stdarg.h>
4869#include <stdio.h>
4870#include <sys/types.h>
4871#include <sys/stat.h>
4872/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4873struct buf { int x; };
4874FILE * (*rcsopen) (struct buf *, struct stat *, int);
4875static char *e (p, i)
4876 char **p;
4877 int i;
4878{
4879 return p[i];
4880}
4881static char *f (char * (*g) (char **, int), char **p, ...)
4882{
4883 char *s;
4884 va_list v;
4885 va_start (v,p);
4886 s = g (p, va_arg (v,int));
4887 va_end (v);
4888 return s;
4889}
4890
4891/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4892 function prototypes and stuff, but not '\xHH' hex character constants.
4893 These don't provoke an error unfortunately, instead are silently treated
4894 as 'x'. The following induces an error, until -std is added to get
4895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4896 array size at least. It's necessary to write '\x00'==0 to get something
4897 that's true only with -std. */
4898int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4899
4900/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4901 inside strings and character constants. */
4902#define FOO(x) 'x'
4903int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4904
4905int test (int i, double x);
4906struct s1 {int (*f) (int a);};
4907struct s2 {int (*f) (double a);};
4908int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4909int argc;
4910char **argv;
4911int
4912main ()
4913{
4914return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4921do
4922 CC="$ac_save_CC $ac_arg"
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_prog_cc_c89=$ac_arg
4925fi
4926rm -f core conftest.err conftest.$ac_objext
4927 test "x$ac_cv_prog_cc_c89" != "xno" && break
4928done
4929rm -f conftest.$ac_ext
4930CC=$ac_save_CC
4931
4932fi
4933# AC_CACHE_VAL
4934case "x$ac_cv_prog_cc_c89" in
4935 x)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4937$as_echo "none needed" >&6; } ;;
4938 xno)
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4940$as_echo "unsupported" >&6; } ;;
4941 *)
4942 CC="$CC $ac_cv_prog_cc_c89"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4944$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4945esac
4946if test "x$ac_cv_prog_cc_c89" != xno; then :
4947
4948fi
4949
4950ac_ext=c
4951ac_cpp='$CPP $CPPFLAGS'
4952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955
4956depcc="$CC" am_compiler_list=
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959$as_echo_n "checking dependency style of $depcc... " >&6; }
4960if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962else
4963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964 # We make a subdir and do the tests there. Otherwise we can end up
4965 # making bogus files that we don't know about and never remove. For
4966 # instance it was reported that on HP-UX the gcc test will end up
4967 # making a dummy file named `D' -- because `-MD' means `put the output
4968 # in D'.
4969 rm -rf conftest.dir
4970 mkdir conftest.dir
4971 # Copy depcomp to subdir because otherwise we won't find it if we're
4972 # using a relative directory.
4973 cp "$am_depcomp" conftest.dir
4974 cd conftest.dir
4975 # We will build objects and dependencies in a subdirectory because
4976 # it helps to detect inapplicable dependency modes. For instance
4977 # both Tru64's cc and ICC support -MD to output dependencies as a
4978 # side effect of compilation, but ICC will put the dependencies in
4979 # the current directory while Tru64 will put them in the object
4980 # directory.
4981 mkdir sub
4982
4983 am_cv_CC_dependencies_compiler_type=none
4984 if test "$am_compiler_list" = ""; then
4985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4986 fi
4987 am__universal=false
4988 case " $depcc " in #(
4989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4990 esac
4991
4992 for depmode in $am_compiler_list; do
4993 # Setup a source with many dependencies, because some compilers
4994 # like to wrap large dependency lists on column 80 (with \), and
4995 # we should not choose a depcomp mode which is confused by this.
4996 #
4997 # We need to recreate these files for each test, as the compiler may
4998 # overwrite some of them when testing with obscure command lines.
4999 # This happens at least with the AIX C compiler.
5000 : > sub/conftest.c
5001 for i in 1 2 3 4 5 6; do
5002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5003 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5004 # Solaris 8's {/usr,}/bin/sh.
5005 touch sub/conftst$i.h
5006 done
5007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5008
5009 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5010 # mode. It turns out that the SunPro C++ compiler does not properly
5011 # handle `-M -o', and we need to detect this. Also, some Intel
5012 # versions had trouble with output in subdirs
5013 am__obj=sub/conftest.${OBJEXT-o}
5014 am__minus_obj="-o $am__obj"
5015 case $depmode in
5016 gcc)
5017 # This depmode causes a compiler race in universal mode.
5018 test "$am__universal" = false || continue
5019 ;;
5020 nosideeffect)
5021 # after this tag, mechanisms are not by side-effect, so they'll
5022 # only be used when explicitly requested
5023 if test "x$enable_dependency_tracking" = xyes; then
5024 continue
5025 else
5026 break
5027 fi
5028 ;;
5029 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5030 # This compiler won't grok `-c -o', but also, the minuso test has
5031 # not run yet. These depmodes are late enough in the game, and
5032 # so weak that their functioning should not be impacted.
5033 am__obj=conftest.${OBJEXT-o}
5034 am__minus_obj=
5035 ;;
5036 none) break ;;
5037 esac
5038 if depmode=$depmode \
5039 source=sub/conftest.c object=$am__obj \
5040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5042 >/dev/null 2>conftest.err &&
5043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5047 # icc doesn't choke on unknown options, it will just issue warnings
5048 # or remarks (even with -Werror). So we grep stderr for any message
5049 # that says an option was ignored or not supported.
5050 # When given -MP, icc 7.0 and 7.1 complain thusly:
5051 # icc: Command line warning: ignoring option '-M'; no argument required
5052 # The diagnosis changed in icc 8.0:
5053 # icc: Command line remark: option '-MP' not supported
5054 if (grep 'ignoring option' conftest.err ||
5055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5056 am_cv_CC_dependencies_compiler_type=$depmode
5057 break
5058 fi
5059 fi
5060 done
5061
5062 cd ..
5063 rm -rf conftest.dir
5064else
5065 am_cv_CC_dependencies_compiler_type=none
5066fi
5067
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5070$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5071CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5072
5073 if
5074 test "x$enable_dependency_tracking" != xno \
5075 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5076 am__fastdepCC_TRUE=
5077 am__fastdepCC_FALSE='#'
5078else
5079 am__fastdepCC_TRUE='#'
5080 am__fastdepCC_FALSE=
5081fi
5082
5083
5084# Check whether --enable-largefile was given.
5085if test "${enable_largefile+set}" = set; then :
5086 enableval=$enable_largefile;
5087fi
5088
5089if test "$enable_largefile" != no; then
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5092$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5093if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 ac_cv_sys_largefile_CC=no
5097 if test "$GCC" != yes; then
5098 ac_save_CC=$CC
5099 while :; do
5100 # IRIX 6.2 and later do not support large files by default,
5101 # so use the C compiler's -n32 option if that helps.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h. */
5104#include <sys/types.h>
5105 /* Check that off_t can represent 2**63 - 1 correctly.
5106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5107 since some C++ compilers masquerading as C compilers
5108 incorrectly reject 9223372036854775807. */
5109#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5111 && LARGE_OFF_T % 2147483647 == 1)
5112 ? 1 : -1];
5113int
5114main ()
5115{
5116
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121 if ac_fn_c_try_compile "$LINENO"; then :
5122 break
5123fi
5124rm -f core conftest.err conftest.$ac_objext
5125 CC="$CC -n32"
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_sys_largefile_CC=' -n32'; break
5128fi
5129rm -f core conftest.err conftest.$ac_objext
5130 break
5131 done
5132 CC=$ac_save_CC
5133 rm -f conftest.$ac_ext
5134 fi
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5137$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5138 if test "$ac_cv_sys_largefile_CC" != no; then
5139 CC=$CC$ac_cv_sys_largefile_CC
5140 fi
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5143$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5144if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 while :; do
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h. */
5150#include <sys/types.h>
5151 /* Check that off_t can represent 2**63 - 1 correctly.
5152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5153 since some C++ compilers masquerading as C compilers
5154 incorrectly reject 9223372036854775807. */
5155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5157 && LARGE_OFF_T % 2147483647 == 1)
5158 ? 1 : -1];
5159int
5160main ()
5161{
5162
5163 ;
5164 return 0;
5165}
5166_ACEOF
5167if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_sys_file_offset_bits=no; break
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h. */
5173#define _FILE_OFFSET_BITS 64
5174#include <sys/types.h>
5175 /* Check that off_t can represent 2**63 - 1 correctly.
5176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5177 since some C++ compilers masquerading as C compilers
5178 incorrectly reject 9223372036854775807. */
5179#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5181 && LARGE_OFF_T % 2147483647 == 1)
5182 ? 1 : -1];
5183int
5184main ()
5185{
5186
5187 ;
5188 return 0;
5189}
5190_ACEOF
5191if ac_fn_c_try_compile "$LINENO"; then :
5192 ac_cv_sys_file_offset_bits=64; break
5193fi
5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 ac_cv_sys_file_offset_bits=unknown
5196 break
5197done
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5200$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5201case $ac_cv_sys_file_offset_bits in #(
5202 no | unknown) ;;
5203 *)
5204cat >>confdefs.h <<_ACEOF
5205#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5206_ACEOF
5207;;
5208esac
5209rm -rf conftest*
5210 if test $ac_cv_sys_file_offset_bits = unknown; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5212$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5213if test "${ac_cv_sys_large_files+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 while :; do
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5219#include <sys/types.h>
5220 /* Check that off_t can represent 2**63 - 1 correctly.
5221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5222 since some C++ compilers masquerading as C compilers
5223 incorrectly reject 9223372036854775807. */
5224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5226 && LARGE_OFF_T % 2147483647 == 1)
5227 ? 1 : -1];
5228int
5229main ()
5230{
5231
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237 ac_cv_sys_large_files=no; break
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#define _LARGE_FILES 1
5243#include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5251 ? 1 : -1];
5252int
5253main ()
5254{
5255
5256 ;
5257 return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_sys_large_files=1; break
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_cv_sys_large_files=unknown
5265 break
5266done
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5269$as_echo "$ac_cv_sys_large_files" >&6; }
5270case $ac_cv_sys_large_files in #(
5271 no | unknown) ;;
5272 *)
5273cat >>confdefs.h <<_ACEOF
5274#define _LARGE_FILES $ac_cv_sys_large_files
5275_ACEOF
5276;;
5277esac
5278rm -rf conftest*
5279 fi
5280fi
5281
5282ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288ac_lto_plugin_warn_cflags=
5289save_CFLAGS="$CFLAGS"
5290for real_option in -Wall; do
5291 # Do the check with the no- prefix removed since gcc silently
5292 # accepts any -Wno-* option on purpose
5293 case $real_option in
5294 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5295 *) option=$real_option ;;
5296 esac
5297 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5300$as_echo_n "checking whether $CC supports $option... " >&6; }
5301if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 CFLAGS="$option"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307
5308int
5309main ()
5310{
5311
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317 eval "$as_acx_Woption=yes"
5318else
5319 eval "$as_acx_Woption=no"
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322
5323fi
5324eval ac_res=\$$as_acx_Woption
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5326$as_echo "$ac_res" >&6; }
5327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5328 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5329fi
5330 done
5331CFLAGS="$save_CFLAGS"
5332ac_ext=c
5333ac_cpp='$CPP $CPPFLAGS'
5334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337
5338
5339
5340# Check whether -static-libgcc is supported.
5341saved_LDFLAGS="$LDFLAGS"
5342LDFLAGS="$LDFLAGS -static-libgcc"
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5344$as_echo_n "checking for -static-libgcc... " >&6; }
5345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347
5348 int main() {}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"; then :
5351 have_static_libgcc=yes
5352else
5353 have_static_libgcc=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5358$as_echo "$have_static_libgcc" >&6; };
5359LDFLAGS="$saved_LDFLAGS"
5360# Need -Wc to get it through libtool.
5361if test "x$have_static_libgcc" = xyes; then
5362 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5363fi
5364
5365
5366if test x"$host_subdir" = x.; then
5367 gcc_build_dir=../gcc
5368else
5369 gcc_build_dir=../../$host_subdir/gcc
5370fi
5371
5372
5373# Used for constructing correct paths for offload compilers.
5374accel_dir_suffix=
5375real_target_noncanonical=${target_noncanonical}
5376if test x"$enable_as_accelerator_for" != x; then
5377 accel_dir_suffix=/accel/${target_noncanonical}
5378 real_target_noncanonical=${enable_as_accelerator_for}
5379fi
5380
5381
5382
3c36aa6b
JJ
5383# Determine what GCC version number to use in filesystem paths.
5384
5385 get_gcc_base_ver="cat"
5386
5387# Check whether --with-gcc-major-version-only was given.
5388if test "${with_gcc_major_version_only+set}" = set; then :
5389 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5390 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
5391 fi
5392
5393fi
5394
5395
5396
5397
dcbc9df9
UB
5398case `pwd` in
5399 *\ * | *\ *)
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5402esac
5403
5404
5405
5406macro_version='2.2.7a'
5407macro_revision='1.3134'
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421ltmain="$ac_aux_dir/ltmain.sh"
5422
5423# Backslashify metacharacters that are still active within
5424# double-quoted strings.
5425sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5426
5427# Same as above, but do not quote variable references.
5428double_quote_subst='s/\(["`\\]\)/\\\1/g'
5429
5430# Sed substitution to delay expansion of an escaped shell variable in a
5431# double_quote_subst'ed string.
5432delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5433
5434# Sed substitution to delay expansion of an escaped single quote.
5435delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5436
5437# Sed substitution to avoid accidental globbing in evaled expressions
5438no_glob_subst='s/\*/\\\*/g'
5439
5440ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5441ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5442ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5443
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5445$as_echo_n "checking how to print strings... " >&6; }
5446# Test print first, because it will be a builtin if present.
5447if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5448 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5449 ECHO='print -r --'
5450elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5451 ECHO='printf %s\n'
5452else
5453 # Use this function as a fallback that always works.
5454 func_fallback_echo ()
5455 {
5456 eval 'cat <<_LTECHO_EOF
5457$1
5458_LTECHO_EOF'
5459 }
5460 ECHO='func_fallback_echo'
5461fi
5462
5463# func_echo_all arg...
5464# Invoke $ECHO with all args, space-separated.
5465func_echo_all ()
5466{
5467 $ECHO ""
5468}
5469
5470case "$ECHO" in
5471 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5472$as_echo "printf" >&6; } ;;
5473 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5474$as_echo "print -r" >&6; } ;;
5475 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5476$as_echo "cat" >&6; } ;;
5477esac
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5493$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5494if test "${ac_cv_path_SED+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498 for ac_i in 1 2 3 4 5 6 7; do
5499 ac_script="$ac_script$as_nl$ac_script"
5500 done
5501 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5502 { ac_script=; unset ac_script;}
5503 if test -z "$SED"; then
5504 ac_path_SED_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in sed gsed; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5514 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5515# Check for GNU ac_path_SED and select it if it is found.
5516 # Check for GNU $ac_path_SED
5517case `"$ac_path_SED" --version 2>&1` in
5518*GNU*)
5519 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5520*)
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5524 do
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo '' >> "conftest.nl"
5529 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_SED_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_SED="$ac_path_SED"
5535 ac_path_SED_max=$ac_count
5536 fi
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541esac
5542
5543 $ac_path_SED_found && break 3
5544 done
5545 done
5546 done
5547IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_SED"; then
5549 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5550 fi
5551else
5552 ac_cv_path_SED=$SED
5553fi
5554
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5557$as_echo "$ac_cv_path_SED" >&6; }
5558 SED="$ac_cv_path_SED"
5559 rm -f conftest.sed
5560
5561test -z "$SED" && SED=sed
5562Xsed="$SED -e 1s/^X//"
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5575$as_echo_n "checking for fgrep... " >&6; }
5576if test "${ac_cv_path_FGREP+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5580 then ac_cv_path_FGREP="$GREP -F"
5581 else
5582 if test -z "$FGREP"; then
5583 ac_path_FGREP_found=false
5584 # Loop through the user's path and test for each of PROGNAME-LIST
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_prog in fgrep; do
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5593 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5594# Check for GNU ac_path_FGREP and select it if it is found.
5595 # Check for GNU $ac_path_FGREP
5596case `"$ac_path_FGREP" --version 2>&1` in
5597*GNU*)
5598 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5599*)
5600 ac_count=0
5601 $as_echo_n 0123456789 >"conftest.in"
5602 while :
5603 do
5604 cat "conftest.in" "conftest.in" >"conftest.tmp"
5605 mv "conftest.tmp" "conftest.in"
5606 cp "conftest.in" "conftest.nl"
5607 $as_echo 'FGREP' >> "conftest.nl"
5608 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5610 as_fn_arith $ac_count + 1 && ac_count=$as_val
5611 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5612 # Best one so far, save it but keep looking for a better one
5613 ac_cv_path_FGREP="$ac_path_FGREP"
5614 ac_path_FGREP_max=$ac_count
5615 fi
5616 # 10*(2^10) chars as input seems more than enough
5617 test $ac_count -gt 10 && break
5618 done
5619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5620esac
5621
5622 $ac_path_FGREP_found && break 3
5623 done
5624 done
5625 done
5626IFS=$as_save_IFS
5627 if test -z "$ac_cv_path_FGREP"; then
5628 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5629 fi
5630else
5631 ac_cv_path_FGREP=$FGREP
5632fi
5633
5634 fi
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5637$as_echo "$ac_cv_path_FGREP" >&6; }
5638 FGREP="$ac_cv_path_FGREP"
5639
5640
5641test -z "$GREP" && GREP=grep
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661# Check whether --with-gnu-ld was given.
5662if test "${with_gnu_ld+set}" = set; then :
5663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5664else
5665 with_gnu_ld=no
5666fi
5667
5668ac_prog=ld
5669if test "$GCC" = yes; then
5670 # Check if gcc -print-prog-name=ld gives a path.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5672$as_echo_n "checking for ld used by $CC... " >&6; }
5673 case $host in
5674 *-*-mingw*)
5675 # gcc leaves a trailing carriage return which upsets mingw
5676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5677 *)
5678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5679 esac
5680 case $ac_prog in
5681 # Accept absolute paths.
5682 [\\/]* | ?:[\\/]*)
5683 re_direlt='/[^/][^/]*/\.\./'
5684 # Canonicalize the pathname of ld
5685 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5686 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5687 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5688 done
5689 test -z "$LD" && LD="$ac_prog"
5690 ;;
5691 "")
5692 # If it fails, then pretend we aren't using GCC.
5693 ac_prog=ld
5694 ;;
5695 *)
5696 # If it is relative, then search for the first ld in PATH.
5697 with_gnu_ld=unknown
5698 ;;
5699 esac
5700elif test "$with_gnu_ld" = yes; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5702$as_echo_n "checking for GNU ld... " >&6; }
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5705$as_echo_n "checking for non-GNU ld... " >&6; }
5706fi
5707if test "${lt_cv_path_LD+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709else
5710 if test -z "$LD"; then
5711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712 for ac_dir in $PATH; do
5713 IFS="$lt_save_ifs"
5714 test -z "$ac_dir" && ac_dir=.
5715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5716 lt_cv_path_LD="$ac_dir/$ac_prog"
5717 # Check to see if the program is GNU ld. I'd rather use --version,
5718 # but apparently some variants of GNU ld only accept -v.
5719 # Break only if it was the GNU/non-GNU ld that we prefer.
5720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5721 *GNU* | *'with BFD'*)
5722 test "$with_gnu_ld" != no && break
5723 ;;
5724 *)
5725 test "$with_gnu_ld" != yes && break
5726 ;;
5727 esac
5728 fi
5729 done
5730 IFS="$lt_save_ifs"
5731else
5732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5733fi
5734fi
5735
5736LD="$lt_cv_path_LD"
5737if test -n "$LD"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5739$as_echo "$LD" >&6; }
5740else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5746$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5747if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5751case `$LD -v 2>&1 </dev/null` in
5752*GNU* | *'with BFD'*)
5753 lt_cv_prog_gnu_ld=yes
5754 ;;
5755*)
5756 lt_cv_prog_gnu_ld=no
5757 ;;
5758esac
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5761$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5762with_gnu_ld=$lt_cv_prog_gnu_ld
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5773$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5774if test "${lt_cv_path_NM+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5776else
5777 if test -n "$NM"; then
5778 # Let the user override the test.
5779 lt_cv_path_NM="$NM"
5780else
5781 lt_nm_to_check="${ac_tool_prefix}nm"
5782 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5783 lt_nm_to_check="$lt_nm_to_check nm"
5784 fi
5785 for lt_tmp_nm in $lt_nm_to_check; do
5786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5787 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5788 IFS="$lt_save_ifs"
5789 test -z "$ac_dir" && ac_dir=.
5790 tmp_nm="$ac_dir/$lt_tmp_nm"
5791 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5792 # Check to see if the nm accepts a BSD-compat flag.
5793 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5794 # nm: unknown option "B" ignored
5795 # Tru64's nm complains that /dev/null is an invalid object file
5796 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5797 */dev/null* | *'Invalid file or object type'*)
5798 lt_cv_path_NM="$tmp_nm -B"
5799 break
5800 ;;
5801 *)
5802 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5803 */dev/null*)
5804 lt_cv_path_NM="$tmp_nm -p"
5805 break
5806 ;;
5807 *)
5808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5809 continue # so that we can try to find one that supports BSD flags
5810 ;;
5811 esac
5812 ;;
5813 esac
5814 fi
5815 done
5816 IFS="$lt_save_ifs"
5817 done
5818 : ${lt_cv_path_NM=no}
5819fi
5820fi
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5822$as_echo "$lt_cv_path_NM" >&6; }
5823if test "$lt_cv_path_NM" != "no"; then
5824 NM="$lt_cv_path_NM"
5825else
5826 # Didn't find any BSD compatible name lister, look for dumpbin.
5827 if test -n "$DUMPBIN"; then :
5828 # Let the user override the test.
5829 else
5830 if test -n "$ac_tool_prefix"; then
5831 for ac_prog in dumpbin "link -dump"
5832 do
5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 if test -n "$DUMPBIN"; then
5841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860DUMPBIN=$ac_cv_prog_DUMPBIN
5861if test -n "$DUMPBIN"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5863$as_echo "$DUMPBIN" >&6; }
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869
5870 test -n "$DUMPBIN" && break
5871 done
5872fi
5873if test -z "$DUMPBIN"; then
5874 ac_ct_DUMPBIN=$DUMPBIN
5875 for ac_prog in dumpbin "link -dump"
5876do
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878set dummy $ac_prog; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$ac_ct_DUMPBIN"; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5905if test -n "$ac_ct_DUMPBIN"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5907$as_echo "$ac_ct_DUMPBIN" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913
5914 test -n "$ac_ct_DUMPBIN" && break
5915done
5916
5917 if test "x$ac_ct_DUMPBIN" = x; then
5918 DUMPBIN=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921yes:)
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924ac_tool_warned=yes ;;
5925esac
5926 DUMPBIN=$ac_ct_DUMPBIN
5927 fi
5928fi
5929
5930 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5931 *COFF*)
5932 DUMPBIN="$DUMPBIN -symbols"
5933 ;;
5934 *)
5935 DUMPBIN=:
5936 ;;
5937 esac
5938 fi
5939
5940 if test "$DUMPBIN" != ":"; then
5941 NM="$DUMPBIN"
5942 fi
5943fi
5944test -z "$NM" && NM=nm
5945
5946
5947
5948
5949
5950
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5952$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5953if test "${lt_cv_nm_interface+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955else
5956 lt_cv_nm_interface="BSD nm"
5957 echo "int some_variable = 0;" > conftest.$ac_ext
5958 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5959 (eval "$ac_compile" 2>conftest.err)
5960 cat conftest.err >&5
5961 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5963 cat conftest.err >&5
5964 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5965 cat conftest.out >&5
5966 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5967 lt_cv_nm_interface="MS dumpbin"
5968 fi
5969 rm -f conftest*
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972$as_echo "$lt_cv_nm_interface" >&6; }
5973
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975$as_echo_n "checking whether ln -s works... " >&6; }
5976LN_S=$as_ln_s
5977if test "$LN_S" = "ln -s"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979$as_echo "yes" >&6; }
5980else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982$as_echo "no, using $LN_S" >&6; }
5983fi
5984
5985# find the maximum length of command line arguments
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5987$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5988if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990else
5991 i=0
5992 teststring="ABCD"
5993
5994 case $build_os in
5995 msdosdjgpp*)
5996 # On DJGPP, this test can blow up pretty badly due to problems in libc
5997 # (any single argument exceeding 2000 bytes causes a buffer overrun
5998 # during glob expansion). Even if it were fixed, the result of this
5999 # check would be larger than it should be.
6000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6001 ;;
6002
6003 gnu*)
6004 # Under GNU Hurd, this test is not required because there is
6005 # no limit to the length of command line arguments.
6006 # Libtool will interpret -1 as no limit whatsoever
6007 lt_cv_sys_max_cmd_len=-1;
6008 ;;
6009
6010 cygwin* | mingw* | cegcc*)
6011 # On Win9x/ME, this test blows up -- it succeeds, but takes
6012 # about 5 minutes as the teststring grows exponentially.
6013 # Worse, since 9x/ME are not pre-emptively multitasking,
6014 # you end up with a "frozen" computer, even though with patience
6015 # the test eventually succeeds (with a max line length of 256k).
6016 # Instead, let's just punt: use the minimum linelength reported by
6017 # all of the supported platforms: 8192 (on NT/2K/XP).
6018 lt_cv_sys_max_cmd_len=8192;
6019 ;;
6020
6021 mint*)
6022 # On MiNT this can take a long time and run out of memory.
6023 lt_cv_sys_max_cmd_len=8192;
6024 ;;
6025
6026 amigaos*)
6027 # On AmigaOS with pdksh, this test takes hours, literally.
6028 # So we just punt and use a minimum line length of 8192.
6029 lt_cv_sys_max_cmd_len=8192;
6030 ;;
6031
6032 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6033 # This has been around since 386BSD, at least. Likely further.
6034 if test -x /sbin/sysctl; then
6035 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6036 elif test -x /usr/sbin/sysctl; then
6037 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6038 else
6039 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6040 fi
6041 # And add a safety zone
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044 ;;
6045
6046 interix*)
6047 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6048 lt_cv_sys_max_cmd_len=196608
6049 ;;
6050
6051 osf*)
6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6054 # nice to cause kernel panics so lets avoid the loop below.
6055 # First set a reasonable default.
6056 lt_cv_sys_max_cmd_len=16384
6057 #
6058 if test -x /sbin/sysconfig; then
6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6060 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6061 esac
6062 fi
6063 ;;
6064 sco3.2v5*)
6065 lt_cv_sys_max_cmd_len=102400
6066 ;;
6067 sysv5* | sco5v6* | sysv4.2uw2*)
6068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6069 if test -n "$kargmax"; then
6070 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6071 else
6072 lt_cv_sys_max_cmd_len=32768
6073 fi
6074 ;;
6075 *)
6076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6077 if test -n "$lt_cv_sys_max_cmd_len"; then
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6080 else
6081 # Make teststring a little bigger before we do anything with it.
6082 # a 1K string should be a reasonable start.
6083 for i in 1 2 3 4 5 6 7 8 ; do
6084 teststring=$teststring$teststring
6085 done
6086 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6087 # If test is not a shell built-in, we'll probably end up computing a
6088 # maximum length that is only half of the actual maximum length, but
6089 # we can't tell.
6090 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6091 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6092 test $i != 17 # 1/2 MB should be enough
6093 do
6094 i=`expr $i + 1`
6095 teststring=$teststring$teststring
6096 done
6097 # Only check the string length outside the loop.
6098 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6099 teststring=
6100 # Add a significant safety factor because C++ compilers can tack on
6101 # massive amounts of additional arguments before passing them to the
6102 # linker. It appears as though 1/2 is a usable value.
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6104 fi
6105 ;;
d7f09764
DN
6106 esac
6107
6108fi
6109
6110if test -n $lt_cv_sys_max_cmd_len ; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6112$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6113else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6115$as_echo "none" >&6; }
6116fi
6117max_cmd_len=$lt_cv_sys_max_cmd_len
6118
6119
6120
6121
6122
6123
6124: ${CP="cp -f"}
6125: ${MV="mv -f"}
6126: ${RM="rm -f"}
6127
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6129$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6130# Try some XSI features
6131xsi_shell=no
6132( _lt_dummy="a/b/c"
6133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6134 = c,a/b,, \
6135 && eval 'test $(( 1 + 1 )) -eq 2 \
6136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6137 && xsi_shell=yes
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6139$as_echo "$xsi_shell" >&6; }
6140
6141
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6143$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6144lt_shell_append=no
6145( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6146 >/dev/null 2>&1 \
6147 && lt_shell_append=yes
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6149$as_echo "$lt_shell_append" >&6; }
6150
6151
6152if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6153 lt_unset=unset
6154else
6155 lt_unset=false
6156fi
6157
6158
6159
6160
6161
6162# test EBCDIC or ASCII
6163case `echo X|tr X '\101'` in
6164 A) # ASCII based system
6165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6166 lt_SP2NL='tr \040 \012'
6167 lt_NL2SP='tr \015\012 \040\040'
6168 ;;
6169 *) # EBCDIC based system
6170 lt_SP2NL='tr \100 \n'
6171 lt_NL2SP='tr \r\n \100\100'
6172 ;;
6173esac
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6184$as_echo_n "checking for $LD option to reload object files... " >&6; }
6185if test "${lt_cv_ld_reload_flag+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187else
6188 lt_cv_ld_reload_flag='-r'
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6191$as_echo "$lt_cv_ld_reload_flag" >&6; }
6192reload_flag=$lt_cv_ld_reload_flag
6193case $reload_flag in
6194"" | " "*) ;;
6195*) reload_flag=" $reload_flag" ;;
6196esac
6197reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198case $host_os in
6199 darwin*)
6200 if test "$GCC" = yes; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6202 else
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204 fi
6205 ;;
6206esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6218set dummy ${ac_tool_prefix}objdump; ac_word=$2
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220$as_echo_n "checking for $ac_word... " >&6; }
6221if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 if test -n "$OBJDUMP"; then
6225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239 done
6240IFS=$as_save_IFS
6241
6242fi
6243fi
6244OBJDUMP=$ac_cv_prog_OBJDUMP
6245if test -n "$OBJDUMP"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6247$as_echo "$OBJDUMP" >&6; }
6248else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251fi
6252
6253
6254fi
6255if test -z "$ac_cv_prog_OBJDUMP"; then
6256 ac_ct_OBJDUMP=$OBJDUMP
6257 # Extract the first word of "objdump", so it can be a program name with args.
6258set dummy objdump; ac_word=$2
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
6261if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6263else
6264 if test -n "$ac_ct_OBJDUMP"; then
6265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279 done
6280IFS=$as_save_IFS
6281
6282fi
6283fi
6284ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6285if test -n "$ac_ct_OBJDUMP"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6287$as_echo "$ac_ct_OBJDUMP" >&6; }
6288else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290$as_echo "no" >&6; }
6291fi
6292
6293 if test "x$ac_ct_OBJDUMP" = x; then
6294 OBJDUMP="false"
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297yes:)
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300ac_tool_warned=yes ;;
6301esac
6302 OBJDUMP=$ac_ct_OBJDUMP
6303 fi
6304else
6305 OBJDUMP="$ac_cv_prog_OBJDUMP"
6306fi
6307
6308test -z "$OBJDUMP" && OBJDUMP=objdump
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6319$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6320if test "${lt_cv_deplibs_check_method+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322else
6323 lt_cv_file_magic_cmd='$MAGIC_CMD'
6324lt_cv_file_magic_test_file=
6325lt_cv_deplibs_check_method='unknown'
6326# Need to set the preceding variable on all platforms that support
6327# interlibrary dependencies.
6328# 'none' -- dependencies not supported.
6329# `unknown' -- same as none, but documents that we really don't know.
6330# 'pass_all' -- all dependencies passed with no checks.
6331# 'test_compile' -- check by making test program.
6332# 'file_magic [[regex]]' -- check by looking for files in library path
6333# which responds to the $file_magic_cmd with a given extended regex.
6334# If you have `file' or equivalent on your system and you're not sure
6335# whether `pass_all' will *always* work, you probably want this one.
6336
6337case $host_os in
6338aix[4-9]*)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341
6342beos*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346bsdi[45]*)
6347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6348 lt_cv_file_magic_cmd='/usr/bin/file -L'
6349 lt_cv_file_magic_test_file=/shlib/libc.so
6350 ;;
6351
6352cygwin*)
6353 # func_win32_libid is a shell function defined in ltmain.sh
6354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355 lt_cv_file_magic_cmd='func_win32_libid'
6356 ;;
6357
6358mingw* | pw32*)
6359 # Base MSYS/MinGW do not provide the 'file' command needed by
6360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6361 # unless we find 'file', for example because we are cross-compiling.
52327858
L
6362 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6363 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6366 else
6367 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6368 lt_cv_file_magic_cmd='$OBJDUMP -f'
6369 fi
6370 ;;
6371
52327858 6372cegcc*)
d7f09764
DN
6373 # use the weaker test based on 'objdump'. See mingw*.
6374 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6375 lt_cv_file_magic_cmd='$OBJDUMP -f'
6376 ;;
6377
6378darwin* | rhapsody*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382freebsd* | dragonfly*)
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 case $host_cpu in
6385 i*86 )
6386 # Not sure whether the presence of OpenBSD here was a mistake.
6387 # Let's accept both of them until this is cleared up.
6388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6391 ;;
6392 esac
6393 else
6394 lt_cv_deplibs_check_method=pass_all
6395 fi
6396 ;;
6397
6398gnu*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
52327858
L
6402haiku*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
d7f09764
DN
6406hpux10.20* | hpux11*)
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 case $host_cpu in
6409 ia64*)
6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6411 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6412 ;;
6413 hppa*64*)
52327858 6414 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
6415 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6416 ;;
6417 *)
52327858 6418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
6419 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6420 ;;
6421 esac
6422 ;;
6423
6424interix[3-9]*)
6425 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6427 ;;
6428
6429irix5* | irix6* | nonstopux*)
6430 case $LD in
6431 *-32|*"-32 ") libmagic=32-bit;;
6432 *-n32|*"-n32 ") libmagic=N32;;
6433 *-64|*"-64 ") libmagic=64-bit;;
6434 *) libmagic=never-match;;
6435 esac
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439# This must be Linux ELF.
6440linux* | k*bsd*-gnu | kopensolaris*-gnu)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444netbsd*)
6445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6447 else
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6449 fi
6450 ;;
6451
6452newos6*)
6453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6454 lt_cv_file_magic_cmd=/usr/bin/file
6455 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6456 ;;
6457
6458*nto* | *qnx*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462openbsd*)
6463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6465 else
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467 fi
6468 ;;
6469
6470osf3* | osf4* | osf5*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474rdos*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478solaris*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486sysv4 | sysv4.3*)
6487 case $host_vendor in
6488 motorola)
6489 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]'
6490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6491 ;;
6492 ncr)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 sequent)
6496 lt_cv_file_magic_cmd='/bin/file'
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6498 ;;
6499 sni)
6500 lt_cv_file_magic_cmd='/bin/file'
6501 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6502 lt_cv_file_magic_test_file=/lib/libc.so
6503 ;;
6504 siemens)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507 pc)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510 esac
6511 ;;
6512
6513tpf*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516esac
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6520$as_echo "$lt_cv_deplibs_check_method" >&6; }
6521file_magic_cmd=$lt_cv_file_magic_cmd
6522deplibs_check_method=$lt_cv_deplibs_check_method
6523test -z "$deplibs_check_method" && deplibs_check_method=unknown
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6538set dummy ${ac_tool_prefix}ar; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if test "${ac_cv_prog_AR+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543else
6544 if test -n "$AR"; then
6545 ac_cv_prog_AR="$AR" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_AR="${ac_tool_prefix}ar"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558done
6559 done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564AR=$ac_cv_prog_AR
6565if test -n "$AR"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6567$as_echo "$AR" >&6; }
6568else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574fi
6575if test -z "$ac_cv_prog_AR"; then
6576 ac_ct_AR=$AR
6577 # Extract the first word of "ar", so it can be a program name with args.
6578set dummy ar; ac_word=$2
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580$as_echo_n "checking for $ac_word... " >&6; }
6581if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583else
6584 if test -n "$ac_ct_AR"; then
6585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_AR="ar"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599 done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604ac_ct_AR=$ac_cv_prog_ac_ct_AR
6605if test -n "$ac_ct_AR"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6607$as_echo "$ac_ct_AR" >&6; }
6608else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610$as_echo "no" >&6; }
6611fi
6612
6613 if test "x$ac_ct_AR" = x; then
6614 AR="false"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617yes:)
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620ac_tool_warned=yes ;;
6621esac
6622 AR=$ac_ct_AR
6623 fi
6624else
6625 AR="$ac_cv_prog_AR"
6626fi
6627
6628test -z "$AR" && AR=ar
6629test -z "$AR_FLAGS" && AR_FLAGS=cru
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6643set dummy ${ac_tool_prefix}strip; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if test "${ac_cv_prog_STRIP+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 if test -n "$STRIP"; then
6650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664 done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669STRIP=$ac_cv_prog_STRIP
6670if test -n "$STRIP"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6672$as_echo "$STRIP" >&6; }
6673else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679fi
6680if test -z "$ac_cv_prog_STRIP"; then
6681 ac_ct_STRIP=$STRIP
6682 # Extract the first word of "strip", so it can be a program name with args.
6683set dummy strip; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$ac_ct_STRIP"; then
6690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_ac_ct_STRIP="strip"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6710if test -n "$ac_ct_STRIP"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6712$as_echo "$ac_ct_STRIP" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718 if test "x$ac_ct_STRIP" = x; then
6719 STRIP=":"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722yes:)
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725ac_tool_warned=yes ;;
6726esac
6727 STRIP=$ac_ct_STRIP
6728 fi
6729else
6730 STRIP="$ac_cv_prog_STRIP"
6731fi
6732
6733test -z "$STRIP" && STRIP=:
6734
6735
6736
6737
6738
6739
6740if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if test "${ac_cv_prog_RANLIB+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747else
6748 if test -n "$RANLIB"; then
6749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763 done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768RANLIB=$ac_cv_prog_RANLIB
6769if test -n "$RANLIB"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6771$as_echo "$RANLIB" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_RANLIB"; then
6780 ac_ct_RANLIB=$RANLIB
6781 # Extract the first word of "ranlib", so it can be a program name with args.
6782set dummy ranlib; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788 if test -n "$ac_ct_RANLIB"; then
6789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_ac_ct_RANLIB="ranlib"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803 done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809if test -n "$ac_ct_RANLIB"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6811$as_echo "$ac_ct_RANLIB" >&6; }
6812else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817 if test "x$ac_ct_RANLIB" = x; then
6818 RANLIB=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826 RANLIB=$ac_ct_RANLIB
6827 fi
6828else
6829 RANLIB="$ac_cv_prog_RANLIB"
6830fi
6831
6832test -z "$RANLIB" && RANLIB=:
6833
6834
6835
6836
6837
6838
6839# Determine commands to create old-style static archives.
6840old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6841old_postinstall_cmds='chmod 644 $oldlib'
6842old_postuninstall_cmds=
6843
6844if test -n "$RANLIB"; then
6845 case $host_os in
6846 openbsd*)
6847 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6848 ;;
6849 *)
6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6851 ;;
6852 esac
6853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6854fi
6855
52327858
L
6856case $host_os in
6857 darwin*)
6858 lock_old_archive_extraction=yes ;;
6859 *)
6860 lock_old_archive_extraction=no ;;
6861esac
6862
6863
6864
6865
6866
6867
d7f09764
DN
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901# If no C compiler was specified, use CC.
6902LTCC=${LTCC-"$CC"}
6903
6904# If no C compiler flags were specified, use CFLAGS.
6905LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6906
6907# Allow CC to be a program name with arguments.
6908compiler=$CC
6909
6910
6911# Check for command to grab the raw symbol name followed by C symbol from nm.
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6913$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6914if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916else
6917
6918# These are sane defaults that work on at least a few old systems.
6919# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6920
6921# Character class describing NM global symbol codes.
6922symcode='[BCDEGRST]'
6923
6924# Regexp to match symbols that can be accessed directly from C.
6925sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6926
6927# Define system-specific variables.
6928case $host_os in
6929aix*)
6930 symcode='[BCDT]'
6931 ;;
6932cygwin* | mingw* | pw32* | cegcc*)
6933 symcode='[ABCDGISTW]'
6934 ;;
6935hpux*)
6936 if test "$host_cpu" = ia64; then
6937 symcode='[ABCDEGRST]'
6938 fi
6939 ;;
6940irix* | nonstopux*)
6941 symcode='[BCDEGRST]'
6942 ;;
6943osf*)
6944 symcode='[BCDEGQRST]'
6945 ;;
6946solaris*)
6947 symcode='[BDRT]'
6948 ;;
6949sco3.2v5*)
6950 symcode='[DT]'
6951 ;;
6952sysv4.2uw2*)
6953 symcode='[DT]'
6954 ;;
6955sysv5* | sco5v6* | unixware* | OpenUNIX*)
6956 symcode='[ABDT]'
6957 ;;
6958sysv4)
6959 symcode='[DFNSTU]'
6960 ;;
6961esac
6962
6963# If we're using GNU nm, then use its standard symbol codes.
6964case `$NM -V 2>&1` in
6965*GNU* | *'with BFD'*)
6966 symcode='[ABCDGIRSTW]' ;;
6967esac
6968
6969# Transform an extracted symbol line into a proper C declaration.
6970# Some systems (esp. on ia64) link data and code symbols differently,
6971# so use this general approach.
6972lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6973
6974# Transform an extracted symbol line into symbol name and symbol address
6975lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6976lt_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'"
6977
6978# Handle CRLF in mingw tool chain
6979opt_cr=
6980case $build_os in
6981mingw*)
6982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6983 ;;
6984esac
6985
6986# Try without a prefix underscore, then with it.
6987for ac_symprfx in "" "_"; do
6988
6989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6990 symxfrm="\\1 $ac_symprfx\\2 \\2"
6991
6992 # Write the raw and C identifiers.
6993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6994 # Fake it for dumpbin and say T for any non-static function
6995 # and D for any global variable.
6996 # Also find C++ and __fastcall symbols from MSVC++,
6997 # which start with @ or ?.
6998 lt_cv_sys_global_symbol_pipe="$AWK '"\
6999" {last_section=section; section=\$ 3};"\
7000" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7001" \$ 0!~/External *\|/{next};"\
7002" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7003" {if(hide[section]) next};"\
7004" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7005" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7006" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7007" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7008" ' prfx=^$ac_symprfx"
7009 else
7010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7011 fi
7012
7013 # Check to see that the pipe works correctly.
7014 pipe_works=no
7015
7016 rm -f conftest*
7017 cat > conftest.$ac_ext <<_LT_EOF
7018#ifdef __cplusplus
7019extern "C" {
7020#endif
7021char nm_test_var;
7022void nm_test_func(void);
7023void nm_test_func(void){}
7024#ifdef __cplusplus
7025}
7026#endif
7027int main(){nm_test_var='a';nm_test_func();return(0);}
7028_LT_EOF
7029
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7032 ac_status=$?
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 # Now try to grab the symbols.
7036 nlist=conftest.nm
52327858
L
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7038 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
7039 ac_status=$?
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; } && test -s "$nlist"; then
7042 # Try sorting and uniquifying the output.
7043 if sort "$nlist" | uniq > "$nlist"T; then
7044 mv -f "$nlist"T "$nlist"
7045 else
7046 rm -f "$nlist"T
7047 fi
7048
7049 # Make sure that we snagged all the symbols we need.
7050 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7051 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7052 cat <<_LT_EOF > conftest.$ac_ext
7053#ifdef __cplusplus
7054extern "C" {
7055#endif
7056
7057_LT_EOF
7058 # Now generate the symbol file.
7059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7060
7061 cat <<_LT_EOF >> conftest.$ac_ext
7062
7063/* The mapping between symbol names and symbols. */
7064const struct {
7065 const char *name;
7066 void *address;
7067}
7068lt__PROGRAM__LTX_preloaded_symbols[] =
7069{
7070 { "@PROGRAM@", (void *) 0 },
7071_LT_EOF
7072 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7073 cat <<\_LT_EOF >> conftest.$ac_ext
7074 {0, (void *) 0}
7075};
7076
7077/* This works around a problem in FreeBSD linker */
7078#ifdef FREEBSD_WORKAROUND
7079static const void *lt_preloaded_setup() {
7080 return lt__PROGRAM__LTX_preloaded_symbols;
7081}
7082#endif
7083
7084#ifdef __cplusplus
7085}
7086#endif
7087_LT_EOF
7088 # Now try linking the two files.
7089 mv conftest.$ac_objext conftstm.$ac_objext
7090 lt_save_LIBS="$LIBS"
7091 lt_save_CFLAGS="$CFLAGS"
7092 LIBS="conftstm.$ac_objext"
7093 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7095 (eval $ac_link) 2>&5
7096 ac_status=$?
7097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7099 pipe_works=yes
7100 fi
7101 LIBS="$lt_save_LIBS"
7102 CFLAGS="$lt_save_CFLAGS"
7103 else
7104 echo "cannot find nm_test_func in $nlist" >&5
7105 fi
7106 else
7107 echo "cannot find nm_test_var in $nlist" >&5
7108 fi
7109 else
7110 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7111 fi
7112 else
7113 echo "$progname: failed program was:" >&5
7114 cat conftest.$ac_ext >&5
7115 fi
7116 rm -rf conftest* conftst*
7117
7118 # Do not use the global_symbol_pipe unless it works.
7119 if test "$pipe_works" = yes; then
7120 break
7121 else
7122 lt_cv_sys_global_symbol_pipe=
7123 fi
7124done
7125
7126fi
7127
7128if test -z "$lt_cv_sys_global_symbol_pipe"; then
7129 lt_cv_sys_global_symbol_to_cdecl=
7130fi
7131if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7133$as_echo "failed" >&6; }
7134else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7136$as_echo "ok" >&6; }
7137fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
d7f09764
DN
7158
7159
7160# Check whether --enable-libtool-lock was given.
7161if test "${enable_libtool_lock+set}" = set; then :
7162 enableval=$enable_libtool_lock;
7163fi
7164
7165test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7166
7167# Some flags need to be propagated to the compiler or linker for good
7168# libtool support.
7169case $host in
7170ia64-*-hpux*)
7171 # Find out which ABI we are using.
7172 echo 'int i;' > conftest.$ac_ext
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }; then
7178 case `/usr/bin/file conftest.$ac_objext` in
7179 *ELF-32*)
7180 HPUX_IA64_MODE="32"
7181 ;;
7182 *ELF-64*)
7183 HPUX_IA64_MODE="64"
7184 ;;
7185 esac
7186 fi
7187 rm -rf conftest*
7188 ;;
7189*-*-irix6*)
7190 # Find out which ABI we are using.
52327858 7191 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193 (eval $ac_compile) 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; }; then
7197 if test "$lt_cv_prog_gnu_ld" = yes; then
7198 case `/usr/bin/file conftest.$ac_objext` in
7199 *32-bit*)
7200 LD="${LD-ld} -melf32bsmip"
7201 ;;
7202 *N32*)
7203 LD="${LD-ld} -melf32bmipn32"
7204 ;;
7205 *64-bit*)
7206 LD="${LD-ld} -melf64bmip"
7207 ;;
7208 esac
7209 else
7210 case `/usr/bin/file conftest.$ac_objext` in
7211 *32-bit*)
7212 LD="${LD-ld} -32"
7213 ;;
7214 *N32*)
7215 LD="${LD-ld} -n32"
7216 ;;
7217 *64-bit*)
7218 LD="${LD-ld} -64"
7219 ;;
7220 esac
7221 fi
7222 fi
7223 rm -rf conftest*
7224 ;;
7225
3cbe17f7 7226x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7f09764
DN
7227s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7228 # Find out which ABI we are using.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `/usr/bin/file conftest.o` in
7236 *32-bit*)
7237 case $host in
7238 x86_64-*kfreebsd*-gnu)
7239 LD="${LD-ld} -m elf_i386_fbsd"
7240 ;;
7241 x86_64-*linux*)
e6d5f8c9
L
7242 case `/usr/bin/file conftest.o` in
7243 *x86-64*)
7244 LD="${LD-ld} -m elf32_x86_64"
7245 ;;
7246 *)
7247 LD="${LD-ld} -m elf_i386"
7248 ;;
7249 esac
d7f09764 7250 ;;
3cbe17f7
AM
7251 powerpc64le-*linux*)
7252 LD="${LD-ld} -m elf32lppclinux"
7253 ;;
7254 powerpc64-*linux*)
d7f09764
DN
7255 LD="${LD-ld} -m elf32ppclinux"
7256 ;;
7257 s390x-*linux*)
7258 LD="${LD-ld} -m elf_s390"
7259 ;;
7260 sparc64-*linux*)
7261 LD="${LD-ld} -m elf32_sparc"
7262 ;;
7263 esac
7264 ;;
7265 *64-bit*)
7266 case $host in
7267 x86_64-*kfreebsd*-gnu)
7268 LD="${LD-ld} -m elf_x86_64_fbsd"
7269 ;;
7270 x86_64-*linux*)
7271 LD="${LD-ld} -m elf_x86_64"
7272 ;;
3cbe17f7
AM
7273 powerpcle-*linux*)
7274 LD="${LD-ld} -m elf64lppc"
7275 ;;
7276 powerpc-*linux*)
d7f09764
DN
7277 LD="${LD-ld} -m elf64ppc"
7278 ;;
7279 s390*-*linux*|s390*-*tpf*)
7280 LD="${LD-ld} -m elf64_s390"
7281 ;;
7282 sparc*-*linux*)
7283 LD="${LD-ld} -m elf64_sparc"
7284 ;;
7285 esac
7286 ;;
7287 esac
7288 fi
7289 rm -rf conftest*
7290 ;;
7291
7292*-*-sco3.2v5*)
7293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7294 SAVE_CFLAGS="$CFLAGS"
7295 CFLAGS="$CFLAGS -belf"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7297$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7298if test "${lt_cv_cc_needs_belf+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 ac_ext=c
7302ac_cpp='$CPP $CPPFLAGS'
7303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h. */
7309
7310int
7311main ()
7312{
7313
7314 ;
7315 return 0;
7316}
7317_ACEOF
7318if ac_fn_c_try_link "$LINENO"; then :
7319 lt_cv_cc_needs_belf=yes
7320else
7321 lt_cv_cc_needs_belf=no
7322fi
7323rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 ac_ext=c
7326ac_cpp='$CPP $CPPFLAGS'
7327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7333$as_echo "$lt_cv_cc_needs_belf" >&6; }
7334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7336 CFLAGS="$SAVE_CFLAGS"
7337 fi
7338 ;;
7339sparc*-*solaris*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7347 case `/usr/bin/file conftest.o` in
7348 *64-bit*)
7349 case $lt_cv_prog_gnu_ld in
7350 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7351 *)
7352 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7353 LD="${LD-ld} -64"
7354 fi
7355 ;;
7356 esac
7357 ;;
7358 esac
7359 fi
7360 rm -rf conftest*
7361 ;;
7362esac
7363
7364need_locks="$enable_libtool_lock"
7365
7366
7367 case $host_os in
7368 rhapsody* | darwin*)
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376else
7377 if test -n "$DSYMUTIL"; then
7378 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391done
7392 done
7393IFS=$as_save_IFS
7394
7395fi
7396fi
7397DSYMUTIL=$ac_cv_prog_DSYMUTIL
7398if test -n "$DSYMUTIL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7400$as_echo "$DSYMUTIL" >&6; }
7401else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
7404fi
7405
7406
7407fi
dcbc9df9
UB
7408if test -z "$ac_cv_prog_DSYMUTIL"; then
7409 ac_ct_DSYMUTIL=$DSYMUTIL
7410 # Extract the first word of "dsymutil", so it can be a program name with args.
7411set dummy dsymutil; ac_word=$2
d7f09764
DN
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 7414if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
d7f09764
DN
7415 $as_echo_n "(cached) " >&6
7416else
dcbc9df9
UB
7417 if test -n "$ac_ct_DSYMUTIL"; then
7418 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d7f09764
DN
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 7427 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
d7f09764
DN
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432 done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
dcbc9df9
UB
7437ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7438if test -n "$ac_ct_DSYMUTIL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7440$as_echo "$ac_ct_DSYMUTIL" >&6; }
d7f09764
DN
7441else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
7444fi
7445
dcbc9df9
UB
7446 if test "x$ac_ct_DSYMUTIL" = x; then
7447 DSYMUTIL=":"
d7f09764
DN
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453ac_tool_warned=yes ;;
7454esac
dcbc9df9 7455 DSYMUTIL=$ac_ct_DSYMUTIL
d7f09764
DN
7456 fi
7457else
dcbc9df9 7458 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d7f09764
DN
7459fi
7460
7461 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
7462 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}nmedit; ac_word=$2
d7f09764
DN
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 7466if test "${ac_cv_prog_NMEDIT+set}" = set; then :
d7f09764
DN
7467 $as_echo_n "(cached) " >&6
7468else
dcbc9df9
UB
7469 if test -n "$NMEDIT"; then
7470 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d7f09764
DN
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 7479 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
d7f09764
DN
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483done
7484 done
7485IFS=$as_save_IFS
7486
7487fi
7488fi
dcbc9df9
UB
7489NMEDIT=$ac_cv_prog_NMEDIT
7490if test -n "$NMEDIT"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7492$as_echo "$NMEDIT" >&6; }
d7f09764
DN
7493else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499fi
dcbc9df9
UB
7500if test -z "$ac_cv_prog_NMEDIT"; then
7501 ac_ct_NMEDIT=$NMEDIT
7502 # Extract the first word of "nmedit", so it can be a program name with args.
7503set dummy nmedit; ac_word=$2
d7f09764
DN
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 7506if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
d7f09764
DN
7507 $as_echo_n "(cached) " >&6
7508else
dcbc9df9
UB
7509 if test -n "$ac_ct_NMEDIT"; then
7510 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d7f09764
DN
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 7519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
d7f09764
DN
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524 done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
dcbc9df9
UB
7529ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7530if test -n "$ac_ct_NMEDIT"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7532$as_echo "$ac_ct_NMEDIT" >&6; }
d7f09764
DN
7533else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
dcbc9df9
UB
7538 if test "x$ac_ct_NMEDIT" = x; then
7539 NMEDIT=":"
d7f09764
DN
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
dcbc9df9 7547 NMEDIT=$ac_ct_NMEDIT
d7f09764
DN
7548 fi
7549else
dcbc9df9 7550 NMEDIT="$ac_cv_prog_NMEDIT"
d7f09764
DN
7551fi
7552
7553 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
7554 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7555set dummy ${ac_tool_prefix}lipo; ac_word=$2
d7f09764
DN
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 7558if test "${ac_cv_prog_LIPO+set}" = set; then :
d7f09764
DN
7559 $as_echo_n "(cached) " >&6
7560else
dcbc9df9
UB
7561 if test -n "$LIPO"; then
7562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d7f09764
DN
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 7571 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
d7f09764
DN
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575done
7576 done
7577IFS=$as_save_IFS
7578
7579fi
7580fi
dcbc9df9
UB
7581LIPO=$ac_cv_prog_LIPO
7582if test -n "$LIPO"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7584$as_echo "$LIPO" >&6; }
d7f09764
DN
7585else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
7588fi
7589
7590
7591fi
dcbc9df9
UB
7592if test -z "$ac_cv_prog_LIPO"; then
7593 ac_ct_LIPO=$LIPO
7594 # Extract the first word of "lipo", so it can be a program name with args.
7595set dummy lipo; ac_word=$2
d7f09764
DN
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
dcbc9df9 7598if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
d7f09764
DN
7599 $as_echo_n "(cached) " >&6
7600else
dcbc9df9
UB
7601 if test -n "$ac_ct_LIPO"; then
7602 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d7f09764
DN
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dcbc9df9 7611 ac_cv_prog_ac_ct_LIPO="lipo"
d7f09764
DN
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616 done
7617IFS=$as_save_IFS
7618
7619fi
7620fi
dcbc9df9
UB
7621ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7622if test -n "$ac_ct_LIPO"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7624$as_echo "$ac_ct_LIPO" >&6; }
d7f09764
DN
7625else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627$as_echo "no" >&6; }
7628fi
7629
dcbc9df9
UB
7630 if test "x$ac_ct_LIPO" = x; then
7631 LIPO=":"
d7f09764
DN
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634yes:)
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637ac_tool_warned=yes ;;
7638esac
dcbc9df9 7639 LIPO=$ac_ct_LIPO
d7f09764
DN
7640 fi
7641else
dcbc9df9 7642 LIPO="$ac_cv_prog_LIPO"
d7f09764
DN
7643fi
7644
dcbc9df9
UB
7645 if test -n "$ac_tool_prefix"; then
7646 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7647set dummy ${ac_tool_prefix}otool; ac_word=$2
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649$as_echo_n "checking for $ac_word... " >&6; }
7650if test "${ac_cv_prog_OTOOL+set}" = set; then :
d7f09764
DN
7651 $as_echo_n "(cached) " >&6
7652else
dcbc9df9
UB
7653 if test -n "$OTOOL"; then
7654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
52327858 7655else
dcbc9df9
UB
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667done
7668 done
7669IFS=$as_save_IFS
52327858
L
7670
7671fi
dcbc9df9
UB
7672fi
7673OTOOL=$ac_cv_prog_OTOOL
7674if test -n "$OTOOL"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7676$as_echo "$OTOOL" >&6; }
7677else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680fi
7681
d7f09764 7682
d7f09764 7683fi
dcbc9df9
UB
7684if test -z "$ac_cv_prog_OTOOL"; then
7685 ac_ct_OTOOL=$OTOOL
7686 # Extract the first word of "otool", so it can be a program name with args.
7687set dummy otool; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
d7f09764
DN
7691 $as_echo_n "(cached) " >&6
7692else
dcbc9df9
UB
7693 if test -n "$ac_ct_OTOOL"; then
7694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
d7f09764 7698do
dcbc9df9
UB
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_ac_ct_OTOOL="otool"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708 done
7709IFS=$as_save_IFS
d7f09764 7710
dcbc9df9
UB
7711fi
7712fi
7713ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7714if test -n "$ac_ct_OTOOL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7716$as_echo "$ac_ct_OTOOL" >&6; }
d7f09764 7717else
dcbc9df9
UB
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
d7f09764 7720fi
d7f09764 7721
dcbc9df9
UB
7722 if test "x$ac_ct_OTOOL" = x; then
7723 OTOOL=":"
7724 else
7725 case $cross_compiling:$ac_tool_warned in
7726yes:)
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729ac_tool_warned=yes ;;
7730esac
7731 OTOOL=$ac_ct_OTOOL
7732 fi
d7f09764 7733else
dcbc9df9 7734 OTOOL="$ac_cv_prog_OTOOL"
d7f09764 7735fi
d7f09764 7736
dcbc9df9
UB
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7739set dummy ${ac_tool_prefix}otool64; ac_word=$2
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
7742if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744else
7745 if test -n "$OTOOL64"; then
7746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
d7f09764 7759done
dcbc9df9
UB
7760 done
7761IFS=$as_save_IFS
7762
7763fi
7764fi
7765OTOOL64=$ac_cv_prog_OTOOL64
7766if test -n "$OTOOL64"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7768$as_echo "$OTOOL64" >&6; }
7769else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
d7f09764
DN
7772fi
7773
d7f09764
DN
7774
7775fi
dcbc9df9
UB
7776if test -z "$ac_cv_prog_OTOOL64"; then
7777 ac_ct_OTOOL64=$OTOOL64
7778 # Extract the first word of "otool64", so it can be a program name with args.
7779set dummy otool64; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
7782if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
d7f09764 7784else
dcbc9df9
UB
7785 if test -n "$ac_ct_OTOOL64"; then
7786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
d7f09764 7790do
dcbc9df9
UB
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_ac_ct_OTOOL64="otool64"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799done
7800 done
7801IFS=$as_save_IFS
d7f09764 7802
dcbc9df9
UB
7803fi
7804fi
7805ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7806if test -n "$ac_ct_OTOOL64"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7808$as_echo "$ac_ct_OTOOL64" >&6; }
d7f09764 7809else
dcbc9df9
UB
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
d7f09764 7812fi
d7f09764 7813
dcbc9df9
UB
7814 if test "x$ac_ct_OTOOL64" = x; then
7815 OTOOL64=":"
7816 else
7817 case $cross_compiling:$ac_tool_warned in
7818yes:)
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7821ac_tool_warned=yes ;;
7822esac
7823 OTOOL64=$ac_ct_OTOOL64
7824 fi
d7f09764 7825else
dcbc9df9 7826 OTOOL64="$ac_cv_prog_OTOOL64"
d7f09764 7827fi
d7f09764 7828
d7f09764 7829
d7f09764 7830
d7f09764
DN
7831
7832
d7f09764 7833
d7f09764 7834
d7f09764 7835
d7f09764 7836
d7f09764 7837
d7f09764 7838
d7f09764 7839
d7f09764 7840
d7f09764 7841
d7f09764 7842
d7f09764 7843
dcbc9df9
UB
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7856$as_echo_n "checking for -single_module linker flag... " >&6; }
7857if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
d7f09764 7859else
dcbc9df9
UB
7860 lt_cv_apple_cc_single_mod=no
7861 if test -z "${LT_MULTI_MODULE}"; then
7862 # By default we will add the -single_module flag. You can override
7863 # by either setting the environment variable LT_MULTI_MODULE
7864 # non-empty at configure time, or by adding -multi_module to the
7865 # link flags.
7866 rm -rf libconftest.dylib*
7867 echo "int foo(void){return 1;}" > conftest.c
7868 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7869-dynamiclib -Wl,-single_module conftest.c" >&5
7870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7872 _lt_result=$?
7873 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7874 lt_cv_apple_cc_single_mod=yes
7875 else
7876 cat conftest.err >&5
7877 fi
7878 rm -rf libconftest.dylib*
7879 rm -f conftest.*
7880 fi
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7883$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7885$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7886if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888else
7889 lt_cv_ld_exported_symbols_list=no
7890 save_LDFLAGS=$LDFLAGS
7891 echo "_main" > conftest.sym
7892 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764 7894/* end confdefs.h. */
d7f09764 7895
d7f09764
DN
7896int
7897main ()
7898{
dcbc9df9
UB
7899
7900 ;
d7f09764
DN
7901 return 0;
7902}
7903_ACEOF
dcbc9df9
UB
7904if ac_fn_c_try_link "$LINENO"; then :
7905 lt_cv_ld_exported_symbols_list=yes
d7f09764 7906else
dcbc9df9 7907 lt_cv_ld_exported_symbols_list=no
d7f09764 7908fi
dcbc9df9
UB
7909rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 LDFLAGS="$save_LDFLAGS"
d7f09764
DN
7912
7913fi
dcbc9df9
UB
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7915$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7917$as_echo_n "checking for -force_load linker flag... " >&6; }
7918if test "${lt_cv_ld_force_load+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920else
7921 lt_cv_ld_force_load=no
7922 cat > conftest.c << _LT_EOF
7923int forced_loaded() { return 2;}
7924_LT_EOF
7925 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7926 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7927 echo "$AR cru libconftest.a conftest.o" >&5
7928 $AR cru libconftest.a conftest.o 2>&5
7929 cat > conftest.c << _LT_EOF
7930int main() { return 0;}
7931_LT_EOF
7932 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7933 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7934 _lt_result=$?
7935 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7936 lt_cv_ld_force_load=yes
7937 else
7938 cat conftest.err >&5
7939 fi
7940 rm -f conftest.err libconftest.a conftest conftest.c
7941 rm -rf conftest.dSYM
d7f09764
DN
7942
7943fi
dcbc9df9
UB
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7945$as_echo "$lt_cv_ld_force_load" >&6; }
7946 case $host_os in
7947 rhapsody* | darwin1.[012])
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949 darwin1.*)
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 darwin*) # darwin 5.x on
7952 # if running on 10.5 or later, the deployment target defaults
7953 # to the OS version, if on x86, and 10.4, the deployment
7954 # target defaults to 10.4. Don't you love it?
7955 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7956 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7958 10.[012][,.]*)
7959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7960 10.*)
7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962 esac
7963 ;;
7964 esac
7965 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7966 _lt_dar_single_mod='$single_module'
7967 fi
7968 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7969 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970 else
7971 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972 fi
7973 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7974 _lt_dsymutil='~$DSYMUTIL $lib || :'
7975 else
7976 _lt_dsymutil=
7977 fi
7978 ;;
7979 esac
d7f09764
DN
7980
7981for ac_header in dlfcn.h
7982do :
7983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7984"
7985if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7986 cat >>confdefs.h <<_ACEOF
7987#define HAVE_DLFCN_H 1
7988_ACEOF
7989
7990fi
7991
7992done
7993
7994
7995
52327858
L
7996
7997
d7f09764
DN
7998# Set options
7999
8000
8001
8002 enable_dlopen=no
8003
8004
8005 enable_win32_dll=no
8006
8007
8008 # Check whether --enable-shared was given.
8009if test "${enable_shared+set}" = set; then :
8010 enableval=$enable_shared; p=${PACKAGE-default}
8011 case $enableval in
8012 yes) enable_shared=yes ;;
8013 no) enable_shared=no ;;
8014 *)
8015 enable_shared=no
8016 # Look at the argument we got. We use all the common list separators.
8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8018 for pkg in $enableval; do
8019 IFS="$lt_save_ifs"
8020 if test "X$pkg" = "X$p"; then
8021 enable_shared=yes
8022 fi
8023 done
8024 IFS="$lt_save_ifs"
8025 ;;
8026 esac
8027else
8028 enable_shared=yes
8029fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # Check whether --enable-static was given.
8040if test "${enable_static+set}" = set; then :
8041 enableval=$enable_static; p=${PACKAGE-default}
8042 case $enableval in
8043 yes) enable_static=yes ;;
8044 no) enable_static=no ;;
8045 *)
8046 enable_static=no
8047 # Look at the argument we got. We use all the common list separators.
8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049 for pkg in $enableval; do
8050 IFS="$lt_save_ifs"
8051 if test "X$pkg" = "X$p"; then
8052 enable_static=yes
8053 fi
8054 done
8055 IFS="$lt_save_ifs"
8056 ;;
8057 esac
8058else
8059 enable_static=yes
8060fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071# Check whether --with-pic was given.
8072if test "${with_pic+set}" = set; then :
8073 withval=$with_pic; pic_mode="$withval"
8074else
8075 pic_mode=default
8076fi
8077
8078
8079test -z "$pic_mode" && pic_mode=default
8080
8081
8082
8083
8084
8085
8086
8087 # Check whether --enable-fast-install was given.
8088if test "${enable_fast_install+set}" = set; then :
8089 enableval=$enable_fast_install; p=${PACKAGE-default}
8090 case $enableval in
8091 yes) enable_fast_install=yes ;;
8092 no) enable_fast_install=no ;;
8093 *)
8094 enable_fast_install=no
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8097 for pkg in $enableval; do
8098 IFS="$lt_save_ifs"
8099 if test "X$pkg" = "X$p"; then
8100 enable_fast_install=yes
8101 fi
8102 done
8103 IFS="$lt_save_ifs"
8104 ;;
8105 esac
8106else
8107 enable_fast_install=yes
8108fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120# This can be used to rebuild libtool when needed
8121LIBTOOL_DEPS="$ltmain"
8122
8123# Always use our own libtool.
8124LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
52327858 8148
d7f09764
DN
8149
8150
8151test -z "$LN_S" && LN_S="ln -s"
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166if test -n "${ZSH_VERSION+set}" ; then
8167 setopt NO_GLOB_SUBST
8168fi
8169
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8171$as_echo_n "checking for objdir... " >&6; }
8172if test "${lt_cv_objdir+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174else
8175 rm -f .libs 2>/dev/null
8176mkdir .libs 2>/dev/null
8177if test -d .libs; then
8178 lt_cv_objdir=.libs
8179else
8180 # MS-DOS does not allow filenames that begin with a dot.
8181 lt_cv_objdir=_libs
8182fi
8183rmdir .libs 2>/dev/null
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8186$as_echo "$lt_cv_objdir" >&6; }
8187objdir=$lt_cv_objdir
8188
8189
8190
8191
8192
8193cat >>confdefs.h <<_ACEOF
8194#define LT_OBJDIR "$lt_cv_objdir/"
8195_ACEOF
8196
8197
8198
8199
d7f09764
DN
8200case $host_os in
8201aix3*)
8202 # AIX sometimes has problems with the GCC collect2 program. For some
8203 # reason, if we set the COLLECT_NAMES environment variable, the problems
8204 # vanish in a puff of smoke.
8205 if test "X${COLLECT_NAMES+set}" != Xset; then
8206 COLLECT_NAMES=
8207 export COLLECT_NAMES
8208 fi
8209 ;;
8210esac
8211
d7f09764
DN
8212# Global variables:
8213ofile=libtool
8214can_build_shared=yes
8215
8216# All known linkers require a `.a' archive for static linking (except MSVC,
8217# which needs '.lib').
8218libext=a
8219
8220with_gnu_ld="$lt_cv_prog_gnu_ld"
8221
8222old_CC="$CC"
8223old_CFLAGS="$CFLAGS"
8224
8225# Set sane defaults for various variables
8226test -z "$CC" && CC=cc
8227test -z "$LTCC" && LTCC=$CC
8228test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8229test -z "$LD" && LD=ld
8230test -z "$ac_objext" && ac_objext=o
8231
8232for cc_temp in $compiler""; do
8233 case $cc_temp in
8234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8236 \-*) ;;
8237 *) break;;
8238 esac
8239done
52327858 8240cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
8241
8242
8243# Only perform the check for file, if the check method requires it
8244test -z "$MAGIC_CMD" && MAGIC_CMD=file
8245case $deplibs_check_method in
8246file_magic*)
8247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8249$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8250if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252else
8253 case $MAGIC_CMD in
8254[\\/*] | ?:[\\/]*)
8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256 ;;
8257*)
8258 lt_save_MAGIC_CMD="$MAGIC_CMD"
8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261 for ac_dir in $ac_dummy; do
8262 IFS="$lt_save_ifs"
8263 test -z "$ac_dir" && ac_dir=.
8264 if test -f $ac_dir/${ac_tool_prefix}file; then
8265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266 if test -n "$file_magic_test_file"; then
8267 case $deplibs_check_method in
8268 "file_magic "*)
8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272 $EGREP "$file_magic_regex" > /dev/null; then
8273 :
8274 else
8275 cat <<_LT_EOF 1>&2
8276
8277*** Warning: the command libtool uses to detect shared libraries,
8278*** $file_magic_cmd, produces output that libtool cannot recognize.
8279*** The result is that libtool may fail to recognize shared libraries
8280*** as such. This will affect the creation of libtool libraries that
8281*** depend on shared libraries, but programs linked with such libtool
8282*** libraries will work regardless of this problem. Nevertheless, you
8283*** may want to report the problem to your system manager and/or to
8284*** bug-libtool@gnu.org
8285
8286_LT_EOF
8287 fi ;;
8288 esac
8289 fi
8290 break
8291 fi
8292 done
8293 IFS="$lt_save_ifs"
8294 MAGIC_CMD="$lt_save_MAGIC_CMD"
8295 ;;
8296esac
8297fi
8298
8299MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300if test -n "$MAGIC_CMD"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8302$as_echo "$MAGIC_CMD" >&6; }
8303else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309
8310
8311
8312if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8315$as_echo_n "checking for file... " >&6; }
8316if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318else
8319 case $MAGIC_CMD in
8320[\\/*] | ?:[\\/]*)
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 ;;
8323*)
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8328 IFS="$lt_save_ifs"
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8334 "file_magic "*)
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8339 :
8340 else
8341 cat <<_LT_EOF 1>&2
8342
8343*** Warning: the command libtool uses to detect shared libraries,
8344*** $file_magic_cmd, produces output that libtool cannot recognize.
8345*** The result is that libtool may fail to recognize shared libraries
8346*** as such. This will affect the creation of libtool libraries that
8347*** depend on shared libraries, but programs linked with such libtool
8348*** libraries will work regardless of this problem. Nevertheless, you
8349*** may want to report the problem to your system manager and/or to
8350*** bug-libtool@gnu.org
8351
8352_LT_EOF
8353 fi ;;
8354 esac
8355 fi
8356 break
8357 fi
8358 done
8359 IFS="$lt_save_ifs"
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8361 ;;
8362esac
8363fi
8364
8365MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366if test -n "$MAGIC_CMD"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368$as_echo "$MAGIC_CMD" >&6; }
8369else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371$as_echo "no" >&6; }
8372fi
8373
8374
8375 else
8376 MAGIC_CMD=:
8377 fi
8378fi
8379
8380 fi
8381 ;;
8382esac
8383
8384# Use C for the default configuration in the libtool script
8385
8386lt_save_CC="$CC"
8387ac_ext=c
8388ac_cpp='$CPP $CPPFLAGS'
8389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391ac_compiler_gnu=$ac_cv_c_compiler_gnu
8392
8393
8394# Source file extension for C test sources.
8395ac_ext=c
8396
8397# Object file extension for compiled C test sources.
8398objext=o
8399objext=$objext
8400
8401# Code to be used in simple compile tests
8402lt_simple_compile_test_code="int some_variable = 0;"
8403
8404# Code to be used in simple link tests
8405lt_simple_link_test_code='int main(){return(0);}'
8406
8407
8408
8409
8410
8411
8412
8413# If no C compiler was specified, use CC.
8414LTCC=${LTCC-"$CC"}
8415
8416# If no C compiler flags were specified, use CFLAGS.
8417LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8418
8419# Allow CC to be a program name with arguments.
8420compiler=$CC
8421
8422# Save the default compiler, since it gets overwritten when the other
8423# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8424compiler_DEFAULT=$CC
8425
8426# save warnings/boilerplate of simple test code
8427ac_outfile=conftest.$ac_objext
8428echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8430_lt_compiler_boilerplate=`cat conftest.err`
8431$RM conftest*
8432
8433ac_outfile=conftest.$ac_objext
8434echo "$lt_simple_link_test_code" >conftest.$ac_ext
8435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8436_lt_linker_boilerplate=`cat conftest.err`
8437$RM -r conftest*
8438
8439
8440## CAVEAT EMPTOR:
8441## There is no encapsulation within the following macros, do not change
8442## the running order or otherwise move them around unless you know exactly
8443## what you are doing...
8444if test -n "$compiler"; then
8445
8446lt_prog_compiler_no_builtin_flag=
8447
8448if test "$GCC" = yes; then
52327858
L
8449 case $cc_basename in
8450 nvcc*)
8451 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8452 *)
8453 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8454 esac
d7f09764
DN
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460else
8461 lt_cv_prog_compiler_rtti_exceptions=no
8462 ac_outfile=conftest.$ac_objext
8463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-fno-rtti -fno-exceptions"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 # The option is referenced via a variable to avoid confusing sed.
8470 lt_compile=`echo "$ac_compile" | $SED \
8471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473 -e 's:$: $lt_compiler_flag:'`
52327858 8474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
8475 (eval "$lt_compile" 2>conftest.err)
8476 ac_status=$?
8477 cat conftest.err >&5
52327858 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
8479 if (exit $ac_status) && test -s "$ac_outfile"; then
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings other than the usual output.
52327858 8482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
8483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_rtti_exceptions=yes
8486 fi
8487 fi
8488 $RM conftest*
8489
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8493
8494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496else
8497 :
8498fi
8499
8500fi
8501
8502
8503
8504
8505
8506
8507 lt_prog_compiler_wl=
8508lt_prog_compiler_pic=
8509lt_prog_compiler_static=
8510
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8513
8514 if test "$GCC" = yes; then
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_static='-static'
8517
8518 case $host_os in
8519 aix*)
8520 # All AIX code is PIC.
8521 if test "$host_cpu" = ia64; then
8522 # AIX 5 now supports IA64 processor
8523 lt_prog_compiler_static='-Bstatic'
8524 fi
de973ab7 8525 lt_prog_compiler_pic='-fPIC'
d7f09764
DN
8526 ;;
8527
8528 amigaos*)
8529 case $host_cpu in
8530 powerpc)
8531 # see comment about AmigaOS4 .so support
8532 lt_prog_compiler_pic='-fPIC'
8533 ;;
8534 m68k)
8535 # FIXME: we need at least 68020 code to build shared libraries, but
8536 # adding the `-m68020' flag to GCC prevents building anything better,
8537 # like `-m68040'.
8538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8539 ;;
8540 esac
8541 ;;
8542
8543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8544 # PIC is the default for these OSes.
8545 ;;
8546
8547 mingw* | cygwin* | pw32* | os2* | cegcc*)
8548 # This hack is so that the source file can tell whether it is being
8549 # built for inclusion in a dll (and should export symbols for example).
8550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8551 # (--disable-auto-import) libraries
8552 lt_prog_compiler_pic='-DDLL_EXPORT'
8553 ;;
8554
8555 darwin* | rhapsody*)
8556 # PIC is the default on this platform
8557 # Common symbols not allowed in MH_DYLIB files
8558 lt_prog_compiler_pic='-fno-common'
8559 ;;
8560
52327858
L
8561 haiku*)
8562 # PIC is the default for Haiku.
8563 # The "-static" flag exists, but is broken.
8564 lt_prog_compiler_static=
8565 ;;
8566
d7f09764
DN
8567 hpux*)
8568 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8569 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8570 # sets the default TLS model and affects inlining.
8571 case $host_cpu in
8572 hppa*64*)
8573 # +Z the default
8574 ;;
8575 *)
8576 lt_prog_compiler_pic='-fPIC'
8577 ;;
8578 esac
8579 ;;
8580
8581 interix[3-9]*)
8582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8583 # Instead, we relocate shared libraries at runtime.
8584 ;;
8585
8586 msdosdjgpp*)
8587 # Just because we use GCC doesn't mean we suddenly get shared libraries
8588 # on systems that don't support them.
8589 lt_prog_compiler_can_build_shared=no
8590 enable_shared=no
8591 ;;
8592
8593 *nto* | *qnx*)
8594 # QNX uses GNU C++, but need to define -shared option too, otherwise
8595 # it will coredump.
8596 lt_prog_compiler_pic='-fPIC -shared'
8597 ;;
8598
8599 sysv4*MP*)
8600 if test -d /usr/nec; then
8601 lt_prog_compiler_pic=-Kconform_pic
8602 fi
8603 ;;
8604
8605 *)
8606 lt_prog_compiler_pic='-fPIC'
8607 ;;
8608 esac
52327858
L
8609
8610 case $cc_basename in
8611 nvcc*) # Cuda Compiler Driver 2.2
8612 lt_prog_compiler_wl='-Xlinker '
8613 lt_prog_compiler_pic='-Xcompiler -fPIC'
8614 ;;
8615 esac
d7f09764
DN
8616 else
8617 # PORTME Check for flag to pass linker flags through the system compiler.
8618 case $host_os in
8619 aix*)
8620 lt_prog_compiler_wl='-Wl,'
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 now supports IA64 processor
8623 lt_prog_compiler_static='-Bstatic'
8624 else
8625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8626 fi
8627 ;;
8628
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 lt_prog_compiler_pic='-DDLL_EXPORT'
8633 ;;
8634
8635 hpux9* | hpux10* | hpux11*)
8636 lt_prog_compiler_wl='-Wl,'
8637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8638 # not for PA HP-UX.
8639 case $host_cpu in
8640 hppa*64*|ia64*)
8641 # +Z the default
8642 ;;
8643 *)
8644 lt_prog_compiler_pic='+Z'
8645 ;;
8646 esac
8647 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8648 lt_prog_compiler_static='${wl}-a ${wl}archive'
8649 ;;
8650
8651 irix5* | irix6* | nonstopux*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC (with -KPIC) is the default.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8658 case $cc_basename in
8659 # old Intel for x86_64 which still supported -KPIC.
8660 ecc*)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-static'
8664 ;;
8665 # icc used to be incompatible with GCC.
8666 # ICC 10 doesn't accept -KPIC any more.
8667 icc* | ifort*)
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-fPIC'
8670 lt_prog_compiler_static='-static'
8671 ;;
8672 # Lahey Fortran 8.1.
8673 lf95*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='--shared'
8676 lt_prog_compiler_static='--static'
8677 ;;
52327858 8678 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
8679 # Portland Group compilers (*not* the Pentium gcc compiler,
8680 # which looks to be a dead project)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fpic'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685 ccc*)
8686 lt_prog_compiler_wl='-Wl,'
8687 # All Alpha code is PIC.
8688 lt_prog_compiler_static='-non_shared'
8689 ;;
52327858
L
8690 xl* | bgxl* | bgf* | mpixl*)
8691 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-qpic'
8694 lt_prog_compiler_static='-qstaticlink'
8695 ;;
8696 *)
8697 case `$CC -V 2>&1 | sed 5q` in
52327858
L
8698 *Sun\ F* | *Sun*Fortran*)
8699 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
52327858 8702 lt_prog_compiler_wl=''
d7f09764 8703 ;;
52327858
L
8704 *Sun\ C*)
8705 # Sun C 5.9
d7f09764
DN
8706 lt_prog_compiler_pic='-KPIC'
8707 lt_prog_compiler_static='-Bstatic'
52327858 8708 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
8709 ;;
8710 esac
8711 ;;
8712 esac
8713 ;;
8714
8715 newsos6)
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 ;;
8719
8720 *nto* | *qnx*)
8721 # QNX uses GNU C++, but need to define -shared option too, otherwise
8722 # it will coredump.
8723 lt_prog_compiler_pic='-fPIC -shared'
8724 ;;
8725
8726 osf3* | osf4* | osf5*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # All OSF/1 code is PIC.
8729 lt_prog_compiler_static='-non_shared'
8730 ;;
8731
8732 rdos*)
8733 lt_prog_compiler_static='-non_shared'
8734 ;;
8735
8736 solaris*)
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 case $cc_basename in
8740 f77* | f90* | f95*)
8741 lt_prog_compiler_wl='-Qoption ld ';;
8742 *)
8743 lt_prog_compiler_wl='-Wl,';;
8744 esac
8745 ;;
8746
8747 sunos4*)
8748 lt_prog_compiler_wl='-Qoption ld '
8749 lt_prog_compiler_pic='-PIC'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 sysv4 | sysv4.2uw2* | sysv4.3*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 sysv4*MP*)
8760 if test -d /usr/nec ;then
8761 lt_prog_compiler_pic='-Kconform_pic'
8762 lt_prog_compiler_static='-Bstatic'
8763 fi
8764 ;;
8765
8766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 ;;
8771
8772 unicos*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_can_build_shared=no
8775 ;;
8776
8777 uts4*)
8778 lt_prog_compiler_pic='-pic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 *)
8783 lt_prog_compiler_can_build_shared=no
8784 ;;
8785 esac
8786 fi
8787
8788case $host_os in
8789 # For platforms which do not support PIC, -DPIC is meaningless:
8790 *djgpp*)
8791 lt_prog_compiler_pic=
8792 ;;
8793 *)
8794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8795 ;;
8796esac
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8798$as_echo "$lt_prog_compiler_pic" >&6; }
8799
8800
8801
8802
8803
8804
8805#
8806# Check to make sure the PIC flag actually works.
8807#
8808if test -n "$lt_prog_compiler_pic"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8810$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8811if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813else
8814 lt_cv_prog_compiler_pic_works=no
8815 ac_outfile=conftest.$ac_objext
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 # The option is referenced via a variable to avoid confusing sed.
8823 lt_compile=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
52327858 8827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
8828 (eval "$lt_compile" 2>conftest.err)
8829 ac_status=$?
8830 cat conftest.err >&5
52327858 8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
8832 if (exit $ac_status) && test -s "$ac_outfile"; then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings other than the usual output.
52327858 8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
8836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_pic_works=yes
8839 fi
8840 fi
8841 $RM conftest*
8842
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8845$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8846
8847if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8848 case $lt_prog_compiler_pic in
8849 "" | " "*) ;;
8850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8851 esac
8852else
8853 lt_prog_compiler_pic=
8854 lt_prog_compiler_can_build_shared=no
8855fi
8856
8857fi
8858
8859
8860
8861
8862
8863
8864#
8865# Check to make sure the static flag actually works.
8866#
8867wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8869$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8870if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872else
8873 lt_cv_prog_compiler_static_works=no
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8878 # The linker can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 if test -s conftest.err; then
8881 # Append any errors to the config.log.
8882 cat conftest.err 1>&5
52327858 8883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler_static_works=yes
8887 fi
8888 else
8889 lt_cv_prog_compiler_static_works=yes
8890 fi
8891 fi
8892 $RM -r conftest*
8893 LDFLAGS="$save_LDFLAGS"
8894
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8897$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8898
8899if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8900 :
8901else
8902 lt_prog_compiler_static=
8903fi
8904
8905
8906
8907
8908
8909
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8912$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8913if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8915else
8916 lt_cv_prog_compiler_c_o=no
8917 $RM -r conftest 2>/dev/null
8918 mkdir conftest
8919 cd conftest
8920 mkdir out
8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8922
8923 lt_compiler_flag="-o out/conftest2.$ac_objext"
8924 # Insert the option either (1) after the last *FLAGS variable, or
8925 # (2) before a word containing "conftest.", or (3) at the end.
8926 # Note that $ac_compile itself does not contain backslashes and begins
8927 # with a dollar sign (not a hyphen), so the echo should work correctly.
8928 lt_compile=`echo "$ac_compile" | $SED \
8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8931 -e 's:$: $lt_compiler_flag:'`
52327858 8932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
8933 (eval "$lt_compile" 2>out/conftest.err)
8934 ac_status=$?
8935 cat out/conftest.err >&5
52327858 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
8937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8938 then
8939 # The compiler can only warn and ignore the option if not recognized
8940 # So say no if there are warnings
52327858 8941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
8942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_c_o=yes
8945 fi
8946 fi
8947 chmod u+w . 2>&5
8948 $RM conftest*
8949 # SGI C++ compiler will create directory out/ii_files/ for
8950 # template instantiation
8951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8952 $RM out/* && rmdir out
8953 cd ..
8954 $RM -r conftest
8955 $RM conftest*
8956
8957fi
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8959$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8960
8961
8962
8963
8964
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8968if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970else
8971 lt_cv_prog_compiler_c_o=no
8972 $RM -r conftest 2>/dev/null
8973 mkdir conftest
8974 cd conftest
8975 mkdir out
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977
8978 lt_compiler_flag="-o out/conftest2.$ac_objext"
8979 # Insert the option either (1) after the last *FLAGS variable, or
8980 # (2) before a word containing "conftest.", or (3) at the end.
8981 # Note that $ac_compile itself does not contain backslashes and begins
8982 # with a dollar sign (not a hyphen), so the echo should work correctly.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
52327858 8987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
8988 (eval "$lt_compile" 2>out/conftest.err)
8989 ac_status=$?
8990 cat out/conftest.err >&5
52327858 8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
8992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8993 then
8994 # The compiler can only warn and ignore the option if not recognized
8995 # So say no if there are warnings
52327858 8996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
8997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999 lt_cv_prog_compiler_c_o=yes
9000 fi
9001 fi
9002 chmod u+w . 2>&5
9003 $RM conftest*
9004 # SGI C++ compiler will create directory out/ii_files/ for
9005 # template instantiation
9006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9007 $RM out/* && rmdir out
9008 cd ..
9009 $RM -r conftest
9010 $RM conftest*
9011
9012fi
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9014$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9015
9016
9017
9018
9019hard_links="nottested"
9020if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9021 # do not overwrite the value of need_locks provided by the user
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9023$as_echo_n "checking if we can lock with hard links... " >&6; }
9024 hard_links=yes
9025 $RM conftest*
9026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9027 touch conftest.a
9028 ln conftest.a conftest.b 2>&5 || hard_links=no
9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9031$as_echo "$hard_links" >&6; }
9032 if test "$hard_links" = no; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9034$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9035 need_locks=warn
9036 fi
9037else
9038 need_locks=no
9039fi
9040
9041
9042
9043
9044
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9047$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9048
9049 runpath_var=
9050 allow_undefined_flag=
9051 always_export_symbols=no
9052 archive_cmds=
9053 archive_expsym_cmds=
9054 compiler_needs_object=no
9055 enable_shared_with_static_runtimes=no
9056 export_dynamic_flag_spec=
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9058 hardcode_automatic=no
9059 hardcode_direct=no
9060 hardcode_direct_absolute=no
9061 hardcode_libdir_flag_spec=
9062 hardcode_libdir_flag_spec_ld=
9063 hardcode_libdir_separator=
9064 hardcode_minus_L=no
9065 hardcode_shlibpath_var=unsupported
9066 inherit_rpath=no
9067 link_all_deplibs=unknown
9068 module_cmds=
9069 module_expsym_cmds=
9070 old_archive_from_new_cmds=
9071 old_archive_from_expsyms_cmds=
9072 thread_safe_flag_spec=
9073 whole_archive_flag_spec=
9074 # include_expsyms should be a list of space-separated symbols to be *always*
9075 # included in the symbol list
9076 include_expsyms=
9077 # exclude_expsyms can be an extended regexp of symbols to exclude
9078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9080 # as well as any symbol that contains `d'.
9081 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9083 # platforms (ab)use it in PIC code, but their linkers get confused if
9084 # the symbol is explicitly referenced. Since portable code cannot
9085 # rely on this symbol name, it's probably fine to never include it in
9086 # preloaded symbol tables.
9087 # Exclude shared library initialization/finalization symbols.
9088 extract_expsyms_cmds=
9089
9090 case $host_os in
9091 cygwin* | mingw* | pw32* | cegcc*)
9092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9093 # When not using gcc, we currently assume that we are using
9094 # Microsoft Visual C++.
9095 if test "$GCC" != yes; then
9096 with_gnu_ld=no
9097 fi
9098 ;;
9099 interix*)
9100 # we just hope/assume this is gcc and not c89 (= MSVC++)
9101 with_gnu_ld=yes
9102 ;;
9103 openbsd*)
9104 with_gnu_ld=no
9105 ;;
9106 esac
9107
9108 ld_shlibs=yes
52327858
L
9109
9110 # On some targets, GNU ld is compatible enough with the native linker
9111 # that we're better off using the native interface for both.
9112 lt_use_gnu_ld_interface=no
d7f09764 9113 if test "$with_gnu_ld" = yes; then
52327858
L
9114 case $host_os in
9115 aix*)
9116 # The AIX port of GNU ld has always aspired to compatibility
9117 # with the native linker. However, as the warning in the GNU ld
9118 # block says, versions before 2.19.5* couldn't really create working
9119 # shared libraries, regardless of the interface used.
9120 case `$LD -v 2>&1` in
9121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9123 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9124 *)
9125 lt_use_gnu_ld_interface=yes
9126 ;;
9127 esac
9128 ;;
9129 *)
9130 lt_use_gnu_ld_interface=yes
9131 ;;
9132 esac
9133 fi
9134
9135 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
9136 # If archive_cmds runs LD, not CC, wlarc should be empty
9137 wlarc='${wl}'
9138
9139 # Set some defaults for GNU ld with shared library support. These
9140 # are reset later if shared libraries are not supported. Putting them
9141 # here allows them to be overridden if necessary.
9142 runpath_var=LD_RUN_PATH
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 export_dynamic_flag_spec='${wl}--export-dynamic'
9145 # ancient GNU ld didn't support --whole-archive et. al.
9146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9148 else
9149 whole_archive_flag_spec=
9150 fi
9151 supports_anon_versioning=no
9152 case `$LD -v 2>&1` in
52327858 9153 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9157 *\ 2.11.*) ;; # other 2.11 versions
9158 *) supports_anon_versioning=yes ;;
9159 esac
9160
9161 # See if GNU ld supports shared libraries.
9162 case $host_os in
9163 aix[3-9]*)
9164 # On AIX/PPC, the GNU linker is very broken
9165 if test "$host_cpu" != ia64; then
9166 ld_shlibs=no
9167 cat <<_LT_EOF 1>&2
9168
52327858 9169*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
9170*** to be unable to reliably create shared libraries on AIX.
9171*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
9172*** really care for shared libraries, you may want to install binutils
9173*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9174*** You will then need to restart the configuration process.
d7f09764
DN
9175
9176_LT_EOF
9177 fi
9178 ;;
9179
9180 amigaos*)
9181 case $host_cpu in
9182 powerpc)
9183 # see comment about AmigaOS4 .so support
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds=''
9186 ;;
9187 m68k)
9188 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)'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_minus_L=yes
9191 ;;
9192 esac
9193 ;;
9194
9195 beos*)
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 allow_undefined_flag=unsupported
9198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9199 # support --undefined. This deserves some investigation. FIXME
9200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 else
9202 ld_shlibs=no
9203 fi
9204 ;;
9205
9206 cygwin* | mingw* | pw32* | cegcc*)
9207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9208 # as there is no search path for DLLs.
9209 hardcode_libdir_flag_spec='-L$libdir'
52327858 9210 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
9211 allow_undefined_flag=unsupported
9212 always_export_symbols=no
9213 enable_shared_with_static_runtimes=yes
9214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9215
9216 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9218 # If the export-symbols file already is a .def file (1st line
9219 # is EXPORTS), use it as is; otherwise, prepend...
9220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9221 cp $export_symbols $output_objdir/$soname.def;
9222 else
9223 echo EXPORTS > $output_objdir/$soname.def;
9224 cat $export_symbols >> $output_objdir/$soname.def;
9225 fi~
9226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
52327858
L
9232 haiku*)
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 link_all_deplibs=yes
9235 ;;
9236
d7f09764
DN
9237 interix[3-9]*)
9238 hardcode_direct=no
9239 hardcode_shlibpath_var=no
9240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec='${wl}-E'
9242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9243 # Instead, shared libraries are loaded at an image base (0x10000000 by
9244 # default) and relocated if they conflict, which is a slow very memory
9245 # consuming and fragmenting process. To avoid this, we pick a random,
9246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9249 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'
9250 ;;
9251
9252 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9253 tmp_diet=no
9254 if test "$host_os" = linux-dietlibc; then
9255 case $cc_basename in
9256 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9257 esac
9258 fi
9259 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9260 && test "$tmp_diet" = no
9261 then
a699d672 9262 tmp_addflag=' $pic_flag'
d7f09764
DN
9263 tmp_sharedflag='-shared'
9264 case $cc_basename,$host_cpu in
9265 pgcc*) # Portland Group C compiler
52327858 9266 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
9267 tmp_addflag=' $pic_flag'
9268 ;;
52327858
L
9269 pgf77* | pgf90* | pgf95* | pgfortran*)
9270 # Portland Group f77 and f90 compilers
9271 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
9272 tmp_addflag=' $pic_flag -Mnomain' ;;
9273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9274 tmp_addflag=' -i_dynamic' ;;
9275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9276 tmp_addflag=' -i_dynamic -nofor_main' ;;
9277 ifc* | ifort*) # Intel Fortran compiler
9278 tmp_addflag=' -nofor_main' ;;
9279 lf95*) # Lahey Fortran 8.1
9280 whole_archive_flag_spec=
9281 tmp_sharedflag='--shared' ;;
52327858 9282 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
9283 tmp_sharedflag='-qmkshrobj'
9284 tmp_addflag= ;;
52327858
L
9285 nvcc*) # Cuda Compiler Driver 2.2
9286 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'
9287 compiler_needs_object=yes
9288 ;;
d7f09764
DN
9289 esac
9290 case `$CC -V 2>&1 | sed 5q` in
9291 *Sun\ C*) # Sun C 5.9
52327858 9292 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
9293 compiler_needs_object=yes
9294 tmp_sharedflag='-G' ;;
9295 *Sun\ F*) # Sun Fortran 8.3
9296 tmp_sharedflag='-G' ;;
9297 esac
9298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299
9300 if test "x$supports_anon_versioning" = xyes; then
9301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9305 fi
9306
9307 case $cc_basename in
52327858 9308 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
9309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9310 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9311 hardcode_libdir_flag_spec=
9312 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9313 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9314 if test "x$supports_anon_versioning" = xyes; then
9315 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9317 echo "local: *; };" >> $output_objdir/$libname.ver~
9318 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9319 fi
9320 ;;
9321 esac
9322 else
9323 ld_shlibs=no
9324 fi
9325 ;;
9326
9327 netbsd*)
9328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9329 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9330 wlarc=
9331 else
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334 fi
9335 ;;
9336
9337 solaris*)
9338 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9339 ld_shlibs=no
9340 cat <<_LT_EOF 1>&2
9341
9342*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9343*** create shared libraries on Solaris systems. Therefore, libtool
9344*** is disabling shared libraries support. We urge you to upgrade GNU
9345*** binutils to release 2.9.1 or newer. Another option is to modify
9346*** your PATH or compiler configuration so that the native linker is
9347*** used, and then restart.
9348
9349_LT_EOF
9350 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357
9358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9359 case `$LD -v 2>&1` in
9360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9361 ld_shlibs=no
9362 cat <<_LT_EOF 1>&2
9363
9364*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9365*** reliably create shared libraries on SCO systems. Therefore, libtool
9366*** is disabling shared libraries support. We urge you to upgrade GNU
9367*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9368*** your PATH or compiler configuration so that the native linker is
9369*** used, and then restart.
9370
9371_LT_EOF
9372 ;;
9373 *)
9374 # For security reasons, it is highly recommended that you always
9375 # use absolute paths for naming shared libraries, and exclude the
9376 # DT_RUNPATH tag from executables and libraries. But doing so
9377 # requires that you compile everything twice, which is a pain.
9378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386 esac
9387 ;;
9388
9389 sunos4*)
9390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391 wlarc=
9392 hardcode_direct=yes
9393 hardcode_shlibpath_var=no
9394 ;;
9395
9396 *)
9397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 else
9401 ld_shlibs=no
9402 fi
9403 ;;
9404 esac
9405
9406 if test "$ld_shlibs" = no; then
9407 runpath_var=
9408 hardcode_libdir_flag_spec=
9409 export_dynamic_flag_spec=
9410 whole_archive_flag_spec=
9411 fi
9412 else
9413 # PORTME fill in a description of your system's linker (not GNU ld)
9414 case $host_os in
9415 aix3*)
9416 allow_undefined_flag=unsupported
9417 always_export_symbols=yes
9418 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'
9419 # Note: this linker hardcodes the directories in LIBPATH if there
9420 # are no directories specified by -L.
9421 hardcode_minus_L=yes
9422 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9423 # Neither direct hardcoding nor static linking is supported with a
9424 # broken collect2.
9425 hardcode_direct=unsupported
9426 fi
9427 ;;
9428
9429 aix[4-9]*)
9430 if test "$host_cpu" = ia64; then
9431 # On IA64, the linker does run time linking by default, so we don't
9432 # have to do anything special.
9433 aix_use_runtimelinking=no
9434 exp_sym_flag='-Bexport'
9435 no_entry_flag=""
9436 else
9437 # If we're using GNU nm, then we don't want the "-C" option.
9438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
9439 # Also, AIX nm treats weak defined symbols like other global
9440 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 9441 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 9442 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 9443 else
84c1b9d3 9444 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d7f09764
DN
9445 fi
9446 aix_use_runtimelinking=no
9447
9448 # Test if we are trying to use run time linking or normal
9449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9450 # need to do runtime linking.
9451 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9452 for ld_flag in $LDFLAGS; do
9453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9454 aix_use_runtimelinking=yes
9455 break
9456 fi
9457 done
9458 ;;
9459 esac
9460
9461 exp_sym_flag='-bexport'
9462 no_entry_flag='-bnoentry'
9463 fi
9464
9465 # When large executables or shared objects are built, AIX ld can
9466 # have problems creating the table of contents. If linking a library
9467 # or program results in "error TOC overflow" add -mminimal-toc to
9468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9470
9471 archive_cmds=''
9472 hardcode_direct=yes
9473 hardcode_direct_absolute=yes
9474 hardcode_libdir_separator=':'
9475 link_all_deplibs=yes
9476 file_list_spec='${wl}-f,'
9477
9478 if test "$GCC" = yes; then
9479 case $host_os in aix4.[012]|aix4.[012].*)
9480 # We only want to do this on AIX 4.2 and lower, the check
9481 # below for broken collect2 doesn't work under 4.3+
9482 collect2name=`${CC} -print-prog-name=collect2`
9483 if test -f "$collect2name" &&
9484 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9485 then
9486 # We have reworked collect2
9487 :
9488 else
9489 # We have old collect2
9490 hardcode_direct=unsupported
9491 # It fails to find uninstalled libraries when the uninstalled
9492 # path is not listed in the libpath. Setting hardcode_minus_L
9493 # to unsupported forces relinking
9494 hardcode_minus_L=yes
9495 hardcode_libdir_flag_spec='-L$libdir'
9496 hardcode_libdir_separator=
9497 fi
9498 ;;
9499 esac
9500 shared_flag='-shared'
9501 if test "$aix_use_runtimelinking" = yes; then
9502 shared_flag="$shared_flag "'${wl}-G'
9503 fi
9504 else
9505 # not using gcc
9506 if test "$host_cpu" = ia64; then
9507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508 # chokes on -Wl,-G. The following line is correct:
9509 shared_flag='-G'
9510 else
9511 if test "$aix_use_runtimelinking" = yes; then
9512 shared_flag='${wl}-G'
9513 else
9514 shared_flag='${wl}-bM:SRE'
9515 fi
9516 fi
9517 fi
9518
9519 export_dynamic_flag_spec='${wl}-bexpall'
9520 # It seems that -bexpall does not export symbols beginning with
9521 # underscore (_), so it is better to generate a list of symbols to export.
9522 always_export_symbols=yes
9523 if test "$aix_use_runtimelinking" = yes; then
9524 # Warning - without using the other runtime loading flags (-brtl),
9525 # -berok will link without error, but may produce a broken library.
9526 allow_undefined_flag='-berok'
9527 # Determine the default libpath from the value encoded in an
9528 # empty executable.
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h. */
9531
9532int
9533main ()
9534{
9535
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540if ac_fn_c_try_link "$LINENO"; then :
9541
9542lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9544 /^0/ {
9545 s/^0 *\(.*\)$/\1/
9546 p
9547 }
9548 }'
9549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550# Check for a 64-bit object if we didn't find anything.
9551if test -z "$aix_libpath"; then
9552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553fi
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9558
9559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 9560 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
9561 else
9562 if test "$host_cpu" = ia64; then
9563 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9564 allow_undefined_flag="-z nodefs"
9565 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"
9566 else
9567 # Determine the default libpath from the value encoded in an
9568 # empty executable.
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
9571
9572int
9573main ()
9574{
9575
9576 ;
9577 return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"; then :
9581
9582lt_aix_libpath_sed='
9583 /Import File Strings/,/^$/ {
9584 /^0/ {
9585 s/^0 *\(.*\)$/\1/
9586 p
9587 }
9588 }'
9589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590# Check for a 64-bit object if we didn't find anything.
9591if test -z "$aix_libpath"; then
9592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9593fi
9594fi
9595rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9598
9599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9600 # Warning - without using the other run time loading flags,
9601 # -berok will link without error, but may produce a broken library.
9602 no_undefined_flag=' ${wl}-bernotok'
9603 allow_undefined_flag=' ${wl}-berok'
52327858
L
9604 if test "$with_gnu_ld" = yes; then
9605 # We only use this code for GNU lds that support --whole-archive.
9606 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9607 else
9608 # Exported symbols can be pulled into shared objects from archives
9609 whole_archive_flag_spec='$convenience'
9610 fi
d7f09764
DN
9611 archive_cmds_need_lc=yes
9612 # This is similar to how AIX traditionally builds its shared libraries.
9613 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'
9614 fi
9615 fi
9616 ;;
9617
9618 amigaos*)
9619 case $host_cpu in
9620 powerpc)
9621 # see comment about AmigaOS4 .so support
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 archive_expsym_cmds=''
9624 ;;
9625 m68k)
9626 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)'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_minus_L=yes
9629 ;;
9630 esac
9631 ;;
9632
9633 bsdi[45]*)
9634 export_dynamic_flag_spec=-rdynamic
9635 ;;
9636
9637 cygwin* | mingw* | pw32* | cegcc*)
9638 # When not using gcc, we currently assume that we are using
9639 # Microsoft Visual C++.
9640 # hardcode_libdir_flag_spec is actually meaningless, as there is
9641 # no search path for DLLs.
9642 hardcode_libdir_flag_spec=' '
9643 allow_undefined_flag=unsupported
9644 # Tell ltmain to make .lib files, not .a files.
9645 libext=lib
9646 # Tell ltmain to make .dll files, not .so files.
9647 shrext_cmds=".dll"
9648 # FIXME: Setting linknames here is a bad hack.
52327858 9649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
9650 # The linker will automatically build a .lib file if we build a DLL.
9651 old_archive_from_new_cmds='true'
9652 # FIXME: Should let the user specify the lib program.
9653 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9654 fix_srcfile_path='`cygpath -w "$srcfile"`'
9655 enable_shared_with_static_runtimes=yes
9656 ;;
9657
9658 darwin* | rhapsody*)
9659
9660
9661 archive_cmds_need_lc=no
9662 hardcode_direct=no
9663 hardcode_automatic=yes
9664 hardcode_shlibpath_var=unsupported
52327858
L
9665 if test "$lt_cv_ld_force_load" = "yes"; then
9666 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\"`'
9667 else
9668 whole_archive_flag_spec=''
9669 fi
d7f09764
DN
9670 link_all_deplibs=yes
9671 allow_undefined_flag="$_lt_dar_allow_undefined"
9672 case $cc_basename in
9673 ifort*) _lt_dar_can_shared=yes ;;
9674 *) _lt_dar_can_shared=$GCC ;;
9675 esac
9676 if test "$_lt_dar_can_shared" = "yes"; then
52327858 9677 output_verbose_link_cmd=func_echo_all
d7f09764
DN
9678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9680 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}"
9681 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}"
9682
9683 else
9684 ld_shlibs=no
9685 fi
9686
9687 ;;
9688
9689 dgux*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_shlibpath_var=no
9693 ;;
9694
d7f09764
DN
9695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9696 # support. Future versions do this automatically, but an explicit c++rt0.o
9697 # does not break anything, and helps significantly (at the cost of a little
9698 # extra space).
9699 freebsd2.2*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9701 hardcode_libdir_flag_spec='-R$libdir'
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 9707 freebsd2.*)
d7f09764
DN
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=yes
9710 hardcode_minus_L=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9715 freebsd* | dragonfly*)
9716 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 hpux9*)
9723 if test "$GCC" = yes; then
9724 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'
9725 else
9726 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'
9727 fi
9728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9729 hardcode_libdir_separator=:
9730 hardcode_direct=yes
9731
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9735 export_dynamic_flag_spec='${wl}-E'
9736 ;;
9737
9738 hpux10*)
52327858 9739 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
9740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744 if test "$with_gnu_ld" = no; then
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_flag_spec_ld='+b $libdir'
9747 hardcode_libdir_separator=:
9748 hardcode_direct=yes
9749 hardcode_direct_absolute=yes
9750 export_dynamic_flag_spec='${wl}-E'
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L=yes
9754 fi
9755 ;;
9756
9757 hpux11*)
52327858 9758 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
9759 case $host_cpu in
9760 hppa*64*)
9761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 ;;
9763 ia64*)
9764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 esac
9770 else
9771 case $host_cpu in
9772 hppa*64*)
9773 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 ;;
9775 ia64*)
9776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 *)
52327858
L
9779
9780 # Older versions of the 11.00 compiler do not understand -b yet
9781 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9783$as_echo_n "checking if $CC understands -b... " >&6; }
9784if test "${lt_cv_prog_compiler__b+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786else
9787 lt_cv_prog_compiler__b=no
9788 save_LDFLAGS="$LDFLAGS"
9789 LDFLAGS="$LDFLAGS -b"
9790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9792 # The linker can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 if test -s conftest.err; then
9795 # Append any errors to the config.log.
9796 cat conftest.err 1>&5
9797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9799 if diff conftest.exp conftest.er2 >/dev/null; then
9800 lt_cv_prog_compiler__b=yes
9801 fi
9802 else
9803 lt_cv_prog_compiler__b=yes
9804 fi
9805 fi
9806 $RM -r conftest*
9807 LDFLAGS="$save_LDFLAGS"
9808
9809fi
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9811$as_echo "$lt_cv_prog_compiler__b" >&6; }
9812
9813if test x"$lt_cv_prog_compiler__b" = xyes; then
9814 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9815else
9816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9817fi
9818
d7f09764
DN
9819 ;;
9820 esac
9821 fi
9822 if test "$with_gnu_ld" = no; then
9823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9824 hardcode_libdir_separator=:
9825
9826 case $host_cpu in
9827 hppa*64*|ia64*)
9828 hardcode_direct=no
9829 hardcode_shlibpath_var=no
9830 ;;
9831 *)
9832 hardcode_direct=yes
9833 hardcode_direct_absolute=yes
9834 export_dynamic_flag_spec='${wl}-E'
9835
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 ;;
9840 esac
9841 fi
9842 ;;
9843
9844 irix5* | irix6* | nonstopux*)
9845 if test "$GCC" = yes; then
52327858 9846 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
9847 # Try to use the -exported_symbol ld option, if it does not
9848 # work, assume that -exports_file does not work either and
9849 # implicitly export all symbols.
9850 save_LDFLAGS="$LDFLAGS"
9851 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h. */
9854int foo(void) {}
9855_ACEOF
9856if ac_fn_c_try_link "$LINENO"; then :
52327858 9857 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
9858
9859fi
9860rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LDFLAGS="$save_LDFLAGS"
9863 else
52327858
L
9864 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'
9865 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
9866 fi
9867 archive_cmds_need_lc='no'
9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869 hardcode_libdir_separator=:
9870 inherit_rpath=yes
9871 link_all_deplibs=yes
9872 ;;
9873
9874 netbsd*)
9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9877 else
9878 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9879 fi
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 newsos6)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator=:
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 *nto* | *qnx*)
9894 ;;
9895
9896 openbsd*)
9897 if test -f /usr/libexec/ld.so; then
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 hardcode_direct_absolute=yes
9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 export_dynamic_flag_spec='${wl}-E'
9906 else
9907 case $host_os in
9908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 ;;
9912 *)
9913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9915 ;;
9916 esac
9917 fi
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922
9923 os2*)
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 allow_undefined_flag=unsupported
52327858 9927 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
9928 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9929 ;;
9930
9931 osf3*)
9932 if test "$GCC" = yes; then
9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 9934 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
9935 else
9936 allow_undefined_flag=' -expect_unresolved \*'
52327858 9937 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
9938 fi
9939 archive_cmds_need_lc='no'
9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941 hardcode_libdir_separator=:
9942 ;;
9943
9944 osf4* | osf5*) # as osf3* with the addition of -msym flag
9945 if test "$GCC" = yes; then
9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 9947 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
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
52327858 9951 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 9952 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 9953 $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
9954
9955 # Both c and cxx compiler support -rpath directly
9956 hardcode_libdir_flag_spec='-rpath $libdir'
9957 fi
9958 archive_cmds_need_lc='no'
9959 hardcode_libdir_separator=:
9960 ;;
9961
9962 solaris*)
9963 no_undefined_flag=' -z defs'
9964 if test "$GCC" = yes; then
9965 wlarc='${wl}'
9966 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9969 else
9970 case `$CC -V 2>&1` in
9971 *"Compilers 5.0"*)
9972 wlarc=''
9973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9976 ;;
9977 *)
9978 wlarc='${wl}'
9979 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9982 ;;
9983 esac
9984 fi
9985 hardcode_libdir_flag_spec='-R$libdir'
9986 hardcode_shlibpath_var=no
9987 case $host_os in
9988 solaris2.[0-5] | solaris2.[0-5].*) ;;
9989 *)
9990 # The compiler driver will combine and reorder linker options,
9991 # but understands `-z linker_flag'. GCC discards it without `$wl',
9992 # but is careful enough not to reorder.
9993 # Supported since Solaris 2.6 (maybe 2.5.1?)
9994 if test "$GCC" = yes; then
9995 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9996 else
9997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9998 fi
9999 ;;
10000 esac
10001 link_all_deplibs=yes
10002 ;;
10003
10004 sunos4*)
10005 if test "x$host_vendor" = xsequent; then
10006 # Use $CC to link under sequent, because it throws in some extra .o
10007 # files that make .init and .fini sections work.
10008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 else
10010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10011 fi
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_direct=yes
10014 hardcode_minus_L=yes
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 sysv4)
10019 case $host_vendor in
10020 sni)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct=yes # is this really true???
10023 ;;
10024 siemens)
10025 ## LD is ld it makes a PLAMLIB
10026 ## CC just makes a GrossModule.
10027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10028 reload_cmds='$CC -r -o $output$reload_objs'
10029 hardcode_direct=no
10030 ;;
10031 motorola)
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10034 ;;
10035 esac
10036 runpath_var='LD_RUN_PATH'
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 sysv4.3*)
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_shlibpath_var=no
10043 export_dynamic_flag_spec='-Bexport'
10044 ;;
10045
10046 sysv4*MP*)
10047 if test -d /usr/nec; then
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_shlibpath_var=no
10050 runpath_var=LD_RUN_PATH
10051 hardcode_runpath_var=yes
10052 ld_shlibs=yes
10053 fi
10054 ;;
10055
10056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10057 no_undefined_flag='${wl}-z,text'
10058 archive_cmds_need_lc=no
10059 hardcode_shlibpath_var=no
10060 runpath_var='LD_RUN_PATH'
10061
10062 if test "$GCC" = yes; then
10063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 fi
10069 ;;
10070
10071 sysv5* | sco3.2v5* | sco5v6*)
10072 # Note: We can NOT use -z defs as we might desire, because we do not
10073 # link with -lc, and that would cause any symbols used from libc to
10074 # always be unresolved, which means just about no library would
10075 # ever link correctly. If we're not using GNU ld we use -z text
10076 # though, which does catch some bad symbols but isn't as heavy-handed
10077 # as -z defs.
10078 no_undefined_flag='${wl}-z,text'
10079 allow_undefined_flag='${wl}-z,nodefs'
10080 archive_cmds_need_lc=no
10081 hardcode_shlibpath_var=no
10082 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10083 hardcode_libdir_separator=':'
10084 link_all_deplibs=yes
10085 export_dynamic_flag_spec='${wl}-Bexport'
10086 runpath_var='LD_RUN_PATH'
10087
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 else
10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 fi
10095 ;;
10096
10097 uts4*)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 *)
10104 ld_shlibs=no
10105 ;;
10106 esac
10107
10108 if test x$host_vendor = xsni; then
10109 case $host in
10110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10111 export_dynamic_flag_spec='${wl}-Blargedynsym'
10112 ;;
10113 esac
10114 fi
10115 fi
10116
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10118$as_echo "$ld_shlibs" >&6; }
10119test "$ld_shlibs" = no && can_build_shared=no
10120
10121with_gnu_ld=$with_gnu_ld
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137#
10138# Do we need to explicitly link libc?
10139#
10140case "x$archive_cmds_need_lc" in
10141x|xyes)
10142 # Assume -lc should be added
10143 archive_cmds_need_lc=yes
10144
10145 if test "$enable_shared" = yes && test "$GCC" = yes; then
10146 case $archive_cmds in
10147 *'~'*)
10148 # FIXME: we may have to deal with multi-command sequences.
10149 ;;
10150 '$CC '*)
10151 # Test whether the compiler implicitly links with -lc since on some
10152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10153 # to ld, don't add -lc before -lgcc.
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10155$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10156if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10158else
10159 $RM conftest*
10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161
10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10163 (eval $ac_compile) 2>&5
10164 ac_status=$?
10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10166 test $ac_status = 0; } 2>conftest.err; then
10167 soname=conftest
10168 lib=conftest
10169 libobjs=conftest.$ac_objext
10170 deplibs=
10171 wl=$lt_prog_compiler_wl
10172 pic_flag=$lt_prog_compiler_pic
10173 compiler_flags=-v
10174 linker_flags=-v
10175 verstring=
10176 output_objdir=.
10177 libname=conftest
10178 lt_save_allow_undefined_flag=$allow_undefined_flag
10179 allow_undefined_flag=
10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10182 ac_status=$?
10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184 test $ac_status = 0; }
10185 then
10186 lt_cv_archive_cmds_need_lc=no
10187 else
10188 lt_cv_archive_cmds_need_lc=yes
10189 fi
10190 allow_undefined_flag=$lt_save_allow_undefined_flag
10191 else
10192 cat conftest.err 1>&5
10193 fi
10194 $RM conftest*
10195
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10198$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10199 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10200 ;;
10201 esac
10202 fi
10203 ;;
10204esac
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10363$as_echo_n "checking dynamic linker characteristics... " >&6; }
10364
10365if test "$GCC" = yes; then
10366 case $host_os in
10367 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10368 *) lt_awk_arg="/^libraries:/" ;;
10369 esac
52327858
L
10370 case $host_os in
10371 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10372 *) lt_sed_strip_eq="s,=/,/,g" ;;
10373 esac
10374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10375 case $lt_search_path_spec in
10376 *\;*)
d7f09764
DN
10377 # if the path contains ";" then we assume it to be the separator
10378 # otherwise default to the standard path separator (i.e. ":") - it is
10379 # assumed that no part of a normal pathname contains ";" but that should
10380 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
10381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10382 ;;
10383 *)
10384 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10385 ;;
10386 esac
d7f09764
DN
10387 # Ok, now we have the path, separated by spaces, we can step through it
10388 # and add multilib dir if necessary.
10389 lt_tmp_lt_search_path_spec=
10390 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10391 for lt_sys_path in $lt_search_path_spec; do
10392 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10394 else
10395 test -d "$lt_sys_path" && \
10396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10397 fi
10398 done
52327858 10399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
10400BEGIN {RS=" "; FS="/|\n";} {
10401 lt_foo="";
10402 lt_count=0;
10403 for (lt_i = NF; lt_i > 0; lt_i--) {
10404 if ($lt_i != "" && $lt_i != ".") {
10405 if ($lt_i == "..") {
10406 lt_count++;
10407 } else {
10408 if (lt_count == 0) {
10409 lt_foo="/" $lt_i lt_foo;
10410 } else {
10411 lt_count--;
10412 }
10413 }
10414 }
10415 }
10416 if (lt_foo != "") { lt_freq[lt_foo]++; }
10417 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10418}'`
52327858
L
10419 # AWK program above erroneously prepends '/' to C:/dos/paths
10420 # for these hosts.
10421 case $host_os in
10422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10423 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10424 esac
10425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
10426else
10427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10428fi
10429library_names_spec=
10430libname_spec='lib$name'
10431soname_spec=
10432shrext_cmds=".so"
10433postinstall_cmds=
10434postuninstall_cmds=
10435finish_cmds=
10436finish_eval=
10437shlibpath_var=
10438shlibpath_overrides_runpath=unknown
10439version_type=none
10440dynamic_linker="$host_os ld.so"
10441sys_lib_dlsearch_path_spec="/lib /usr/lib"
10442need_lib_prefix=unknown
10443hardcode_into_libs=no
10444
10445# when you set need_version to no, make sure it does not cause -set_version
10446# flags to be left without arguments
10447need_version=unknown
10448
10449case $host_os in
10450aix3*)
10451 version_type=linux
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10453 shlibpath_var=LIBPATH
10454
10455 # AIX 3 has no versioning support, so we append a major version to the name.
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 ;;
10458
10459aix[4-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 hardcode_into_libs=yes
10464 if test "$host_cpu" = ia64; then
10465 # AIX 5 supports IA64
10466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 else
10469 # With GCC up to 2.95.x, collect2 would create an import file
10470 # for dependence libraries. The import file would start with
10471 # the line `#! .'. This would cause the generated library to
10472 # depend on `.', always an invalid library. This was fixed in
10473 # development snapshots of GCC prior to 3.0.
10474 case $host_os in
10475 aix4 | aix4.[01] | aix4.[01].*)
10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10477 echo ' yes '
10478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10479 :
10480 else
10481 can_build_shared=no
10482 fi
10483 ;;
10484 esac
10485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10486 # soname into executable. Probably we can add versioning support to
10487 # collect2, so additional links can be useful in future.
10488 if test "$aix_use_runtimelinking" = yes; then
10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10490 # instead of lib<name>.a to let people know that these are not
10491 # typical AIX shared libraries.
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 else
10494 # We preserve .a as extension for shared libraries through AIX4.2
10495 # and later when we are not doing run time linking.
10496 library_names_spec='${libname}${release}.a $libname.a'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 fi
10499 shlibpath_var=LIBPATH
10500 fi
10501 ;;
10502
10503amigaos*)
10504 case $host_cpu in
10505 powerpc)
10506 # Since July 2007 AmigaOS4 officially supports .so libraries.
10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 ;;
10510 m68k)
10511 library_names_spec='$libname.ixlibrary $libname.a'
10512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 10513 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
10514 ;;
10515 esac
10516 ;;
10517
10518beos*)
10519 library_names_spec='${libname}${shared_ext}'
10520 dynamic_linker="$host_os ld.so"
10521 shlibpath_var=LIBRARY_PATH
10522 ;;
10523
10524bsdi[45]*)
10525 version_type=linux
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10533 # the default ld.so.conf also contains /usr/contrib/lib and
10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10535 # libtool to hard-code these into programs
10536 ;;
10537
10538cygwin* | mingw* | pw32* | cegcc*)
10539 version_type=windows
10540 shrext_cmds=".dll"
10541 need_version=no
10542 need_lib_prefix=no
10543
10544 case $GCC,$host_os in
10545 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10546 library_names_spec='$libname.dll.a'
10547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548 postinstall_cmds='base_file=`basename \${file}`~
10549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550 dldir=$destdir/`dirname \$dlpath`~
10551 test -d \$dldir || mkdir -p \$dldir~
10552 $install_prog $dir/$dlname \$dldir/$dlname~
10553 chmod a+x \$dldir/$dlname~
10554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10556 fi'
10557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10558 dlpath=$dir/\$dldll~
10559 $RM \$dlpath'
10560 shlibpath_overrides_runpath=yes
10561
10562 case $host_os in
10563 cygwin*)
10564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
10566
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
10568 ;;
10569 mingw* | cegcc*)
10570 # MinGW DLLs use traditional 'lib' prefix
10571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
10572 ;;
10573 pw32*)
10574 # pw32 DLLs use 'pw' prefix rather than 'lib'
10575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576 ;;
10577 esac
10578 ;;
10579
10580 *)
10581 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10582 ;;
10583 esac
10584 dynamic_linker='Win32 ld.exe'
10585 # FIXME: first we should search . and the directory the executable is in
10586 shlibpath_var=PATH
10587 ;;
10588
10589darwin* | rhapsody*)
10590 dynamic_linker="$host_os dyld"
10591 version_type=darwin
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10595 soname_spec='${libname}${release}${major}$shared_ext'
10596 shlibpath_overrides_runpath=yes
10597 shlibpath_var=DYLD_LIBRARY_PATH
10598 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10599
10600 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10602 ;;
10603
10604dgux*)
10605 version_type=linux
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 ;;
10612
d7f09764
DN
10613freebsd* | dragonfly*)
10614 # DragonFly does not have aout. When/if they implement a new
10615 # versioning mechanism, adjust this.
10616 if test -x /usr/bin/objformat; then
10617 objformat=`/usr/bin/objformat`
10618 else
10619 case $host_os in
c6084f68 10620 freebsd[23].*) objformat=aout ;;
d7f09764
DN
10621 *) objformat=elf ;;
10622 esac
10623 fi
10624 version_type=freebsd-$objformat
10625 case $version_type in
10626 freebsd-elf*)
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 need_version=no
10629 need_lib_prefix=no
10630 ;;
10631 freebsd-*)
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10633 need_version=yes
10634 ;;
10635 esac
10636 shlibpath_var=LD_LIBRARY_PATH
10637 case $host_os in
c6084f68 10638 freebsd2.*)
d7f09764
DN
10639 shlibpath_overrides_runpath=yes
10640 ;;
10641 freebsd3.[01]* | freebsdelf3.[01]*)
10642 shlibpath_overrides_runpath=yes
10643 hardcode_into_libs=yes
10644 ;;
10645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10647 shlibpath_overrides_runpath=no
10648 hardcode_into_libs=yes
10649 ;;
10650 *) # from 4.6 on, and DragonFly
10651 shlibpath_overrides_runpath=yes
10652 hardcode_into_libs=yes
10653 ;;
10654 esac
10655 ;;
10656
10657gnu*)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 hardcode_into_libs=yes
10665 ;;
10666
52327858
L
10667haiku*)
10668 version_type=linux
10669 need_lib_prefix=no
10670 need_version=no
10671 dynamic_linker="$host_os runtime_loader"
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10677 hardcode_into_libs=yes
10678 ;;
10679
d7f09764
DN
10680hpux9* | hpux10* | hpux11*)
10681 # Give a soname corresponding to the major version so that dld.sl refuses to
10682 # link against other versions.
10683 version_type=sunos
10684 need_lib_prefix=no
10685 need_version=no
10686 case $host_cpu in
10687 ia64*)
10688 shrext_cmds='.so'
10689 hardcode_into_libs=yes
10690 dynamic_linker="$host_os dld.so"
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 if test "X$HPUX_IA64_MODE" = X32; then
10696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10697 else
10698 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10699 fi
10700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10701 ;;
10702 hppa*64*)
10703 shrext_cmds='.sl'
10704 hardcode_into_libs=yes
10705 dynamic_linker="$host_os dld.sl"
10706 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10712 ;;
10713 *)
10714 shrext_cmds='.sl'
10715 dynamic_linker="$host_os dld.sl"
10716 shlibpath_var=SHLIB_PATH
10717 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 ;;
10721 esac
52327858 10722 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 10723 postinstall_cmds='chmod 555 $lib'
52327858
L
10724 # or fails outright, so override atomically:
10725 install_override_mode=555
d7f09764
DN
10726 ;;
10727
10728interix[3-9]*)
10729 version_type=linux
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10738 ;;
10739
10740irix5* | irix6* | nonstopux*)
10741 case $host_os in
10742 nonstopux*) version_type=nonstopux ;;
10743 *)
10744 if test "$lt_cv_prog_gnu_ld" = yes; then
10745 version_type=linux
10746 else
10747 version_type=irix
10748 fi ;;
10749 esac
10750 need_lib_prefix=no
10751 need_version=no
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10754 case $host_os in
10755 irix5* | nonstopux*)
10756 libsuff= shlibsuff=
10757 ;;
10758 *)
10759 case $LD in # libtool.m4 will add one of these switches to LD
10760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10761 libsuff= shlibsuff= libmagic=32-bit;;
10762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10763 libsuff=32 shlibsuff=N32 libmagic=N32;;
10764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10766 *) libsuff= shlibsuff= libmagic=never-match;;
10767 esac
10768 ;;
10769 esac
10770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10771 shlibpath_overrides_runpath=no
10772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10774 hardcode_into_libs=yes
10775 ;;
10776
10777# No shared lib support for Linux oldld, aout, or coff.
10778linux*oldld* | linux*aout* | linux*coff*)
10779 dynamic_linker=no
10780 ;;
10781
10782# This must be Linux ELF.
10783linux* | k*bsd*-gnu | kopensolaris*-gnu)
10784 version_type=linux
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792
10793 # Some binutils ld are patched to set DT_RUNPATH
10794 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796else
10797 lt_cv_shlibpath_overrides_runpath=no
10798 save_LDFLAGS=$LDFLAGS
10799 save_libdir=$libdir
10800 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10801 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803/* end confdefs.h. */
10804
10805int
10806main ()
10807{
10808
10809 ;
10810 return 0;
10811}
10812_ACEOF
10813if ac_fn_c_try_link "$LINENO"; then :
10814 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10815 lt_cv_shlibpath_overrides_runpath=yes
10816fi
10817fi
10818rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LDFLAGS=$save_LDFLAGS
10821 libdir=$save_libdir
10822
10823fi
10824
10825 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10826
10827 # This implies no fast_install, which is unacceptable.
10828 # Some rework will be needed to allow for fast_install
10829 # before this can be enabled.
10830 hardcode_into_libs=yes
10831
10832 # Append ld.so.conf contents to the search path
10833 if test -f /etc/ld.so.conf; then
52327858 10834 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
10835 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10836 fi
10837
10838 # We used to test for /lib/ld.so.1 and disable shared libraries on
10839 # powerpc, because MkLinux only supported shared libraries with the
10840 # GNU dynamic linker. Since this was broken with cross compilers,
10841 # most powerpc-linux boxes support dynamic linking these days and
10842 # people can always --disable-shared, the test was removed, and we
10843 # assume the GNU/Linux dynamic linker is in use.
10844 dynamic_linker='GNU/Linux ld.so'
10845 ;;
10846
10847netbsd*)
10848 version_type=sunos
10849 need_lib_prefix=no
10850 need_version=no
10851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10854 dynamic_linker='NetBSD (a.out) ld.so'
10855 else
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 dynamic_linker='NetBSD ld.elf_so'
10859 fi
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862 hardcode_into_libs=yes
10863 ;;
10864
10865newsos6)
10866 version_type=linux
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10870 ;;
10871
10872*nto* | *qnx*)
10873 version_type=qnx
10874 need_lib_prefix=no
10875 need_version=no
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10880 hardcode_into_libs=yes
10881 dynamic_linker='ldqnx.so'
10882 ;;
10883
10884openbsd*)
10885 version_type=sunos
10886 sys_lib_dlsearch_path_spec="/usr/lib"
10887 need_lib_prefix=no
10888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10889 case $host_os in
10890 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10891 *) need_version=no ;;
10892 esac
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10897 case $host_os in
10898 openbsd2.[89] | openbsd2.[89].*)
10899 shlibpath_overrides_runpath=no
10900 ;;
10901 *)
10902 shlibpath_overrides_runpath=yes
10903 ;;
10904 esac
10905 else
10906 shlibpath_overrides_runpath=yes
10907 fi
10908 ;;
10909
10910os2*)
10911 libname_spec='$name'
10912 shrext_cmds=".dll"
10913 need_lib_prefix=no
10914 library_names_spec='$libname${shared_ext} $libname.a'
10915 dynamic_linker='OS/2 ld.exe'
10916 shlibpath_var=LIBPATH
10917 ;;
10918
10919osf3* | osf4* | osf5*)
10920 version_type=osf
10921 need_lib_prefix=no
10922 need_version=no
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10927 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10928 ;;
10929
10930rdos*)
10931 dynamic_linker=no
10932 ;;
10933
10934solaris*)
10935 version_type=linux
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10943 # ldd complains unless libraries are executable
10944 postinstall_cmds='chmod +x $lib'
10945 ;;
10946
10947sunos4*)
10948 version_type=sunos
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10953 if test "$with_gnu_ld" = yes; then
10954 need_lib_prefix=no
10955 fi
10956 need_version=yes
10957 ;;
10958
10959sysv4 | sysv4.3*)
10960 version_type=linux
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 case $host_vendor in
10965 sni)
10966 shlibpath_overrides_runpath=no
10967 need_lib_prefix=no
10968 runpath_var=LD_RUN_PATH
10969 ;;
10970 siemens)
10971 need_lib_prefix=no
10972 ;;
10973 motorola)
10974 need_lib_prefix=no
10975 need_version=no
10976 shlibpath_overrides_runpath=no
10977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10978 ;;
10979 esac
10980 ;;
10981
10982sysv4*MP*)
10983 if test -d /usr/nec ;then
10984 version_type=linux
10985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10986 soname_spec='$libname${shared_ext}.$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 fi
10989 ;;
10990
10991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10992 version_type=freebsd-elf
10993 need_lib_prefix=no
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 shlibpath_overrides_runpath=yes
10999 hardcode_into_libs=yes
11000 if test "$with_gnu_ld" = yes; then
11001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11002 else
11003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11004 case $host_os in
11005 sco3.2v5*)
11006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11007 ;;
11008 esac
11009 fi
11010 sys_lib_dlsearch_path_spec='/usr/lib'
11011 ;;
11012
11013tpf*)
11014 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11015 version_type=linux
11016 need_lib_prefix=no
11017 need_version=no
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=no
11021 hardcode_into_libs=yes
11022 ;;
11023
11024uts4*)
11025 version_type=linux
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 ;;
11030
11031*)
11032 dynamic_linker=no
11033 ;;
11034esac
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11036$as_echo "$dynamic_linker" >&6; }
11037test "$dynamic_linker" = no && can_build_shared=no
11038
11039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11040if test "$GCC" = yes; then
11041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11042fi
11043
11044if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11046fi
11047if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11048 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11049fi
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
52327858
L
11131
11132
11133
11134
11135
d7f09764
DN
11136
11137
11138
11139
11140
11141
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11143$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11144hardcode_action=
11145if test -n "$hardcode_libdir_flag_spec" ||
11146 test -n "$runpath_var" ||
11147 test "X$hardcode_automatic" = "Xyes" ; then
11148
11149 # We can hardcode non-existent directories.
11150 if test "$hardcode_direct" != no &&
11151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11152 # have to relink, otherwise we might link with an installed library
11153 # when we should be linking with a yet-to-be-installed one
11154 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11155 test "$hardcode_minus_L" != no; then
11156 # Linking always hardcodes the temporary library directory.
11157 hardcode_action=relink
11158 else
11159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11160 hardcode_action=immediate
11161 fi
11162else
11163 # We cannot hardcode anything, or else we can only hardcode existing
11164 # directories.
11165 hardcode_action=unsupported
11166fi
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11168$as_echo "$hardcode_action" >&6; }
11169
11170if test "$hardcode_action" = relink ||
11171 test "$inherit_rpath" = yes; then
11172 # Fast installation is not supported
11173 enable_fast_install=no
11174elif test "$shlibpath_overrides_runpath" = yes ||
11175 test "$enable_shared" = no; then
11176 # Fast installation is not necessary
11177 enable_fast_install=needless
11178fi
11179
11180
11181
11182
11183
11184
11185 if test "x$enable_dlopen" != xyes; then
11186 enable_dlopen=unknown
11187 enable_dlopen_self=unknown
11188 enable_dlopen_self_static=unknown
11189else
11190 lt_cv_dlopen=no
11191 lt_cv_dlopen_libs=
11192
11193 case $host_os in
11194 beos*)
11195 lt_cv_dlopen="load_add_on"
11196 lt_cv_dlopen_libs=
11197 lt_cv_dlopen_self=yes
11198 ;;
11199
11200 mingw* | pw32* | cegcc*)
11201 lt_cv_dlopen="LoadLibrary"
11202 lt_cv_dlopen_libs=
11203 ;;
11204
11205 cygwin*)
11206 lt_cv_dlopen="dlopen"
11207 lt_cv_dlopen_libs=
11208 ;;
11209
11210 darwin*)
11211 # if libdl is installed we need to link against it
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11213$as_echo_n "checking for dlopen in -ldl... " >&6; }
11214if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216else
11217 ac_check_lib_save_LIBS=$LIBS
11218LIBS="-ldl $LIBS"
11219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220/* end confdefs.h. */
11221
11222/* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228char dlopen ();
11229int
11230main ()
11231{
11232return dlopen ();
11233 ;
11234 return 0;
11235}
11236_ACEOF
11237if ac_fn_c_try_link "$LINENO"; then :
11238 ac_cv_lib_dl_dlopen=yes
11239else
11240 ac_cv_lib_dl_dlopen=no
11241fi
11242rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244LIBS=$ac_check_lib_save_LIBS
11245fi
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11247$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11248if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11250else
11251
11252 lt_cv_dlopen="dyld"
11253 lt_cv_dlopen_libs=
11254 lt_cv_dlopen_self=yes
11255
11256fi
11257
11258 ;;
11259
11260 *)
11261 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11262if test "x$ac_cv_func_shl_load" = x""yes; then :
11263 lt_cv_dlopen="shl_load"
11264else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11266$as_echo_n "checking for shl_load in -ldld... " >&6; }
11267if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269else
11270 ac_check_lib_save_LIBS=$LIBS
11271LIBS="-ldld $LIBS"
11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h. */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char shl_load ();
11282int
11283main ()
11284{
11285return shl_load ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"; then :
11291 ac_cv_lib_dld_shl_load=yes
11292else
11293 ac_cv_lib_dld_shl_load=no
11294fi
11295rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297LIBS=$ac_check_lib_save_LIBS
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11300$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11301if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11303else
11304 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11305if test "x$ac_cv_func_dlopen" = x""yes; then :
11306 lt_cv_dlopen="dlopen"
11307else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11309$as_echo_n "checking for dlopen in -ldl... " >&6; }
11310if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312else
11313 ac_check_lib_save_LIBS=$LIBS
11314LIBS="-ldl $LIBS"
11315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316/* end confdefs.h. */
11317
11318/* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11321#ifdef __cplusplus
11322extern "C"
11323#endif
11324char dlopen ();
11325int
11326main ()
11327{
11328return dlopen ();
11329 ;
11330 return 0;
11331}
11332_ACEOF
11333if ac_fn_c_try_link "$LINENO"; then :
11334 ac_cv_lib_dl_dlopen=yes
11335else
11336 ac_cv_lib_dl_dlopen=no
11337fi
11338rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340LIBS=$ac_check_lib_save_LIBS
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11343$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11344if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11346else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11348$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11349if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351else
11352 ac_check_lib_save_LIBS=$LIBS
11353LIBS="-lsvld $LIBS"
11354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355/* end confdefs.h. */
11356
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360#ifdef __cplusplus
11361extern "C"
11362#endif
11363char dlopen ();
11364int
11365main ()
11366{
11367return dlopen ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_svld_dlopen=yes
11374else
11375 ac_cv_lib_svld_dlopen=no
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379LIBS=$ac_check_lib_save_LIBS
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11382$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11383if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11385else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11387$as_echo_n "checking for dld_link in -ldld... " >&6; }
11388if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390else
11391 ac_check_lib_save_LIBS=$LIBS
11392LIBS="-ldld $LIBS"
11393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h. */
11395
11396/* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11399#ifdef __cplusplus
11400extern "C"
11401#endif
11402char dld_link ();
11403int
11404main ()
11405{
11406return dld_link ();
11407 ;
11408 return 0;
11409}
11410_ACEOF
11411if ac_fn_c_try_link "$LINENO"; then :
11412 ac_cv_lib_dld_dld_link=yes
11413else
11414 ac_cv_lib_dld_dld_link=no
11415fi
11416rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11421$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11422if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11424fi
11425
11426
11427fi
11428
11429
11430fi
11431
11432
11433fi
11434
11435
11436fi
11437
11438
11439fi
11440
11441 ;;
11442 esac
11443
11444 if test "x$lt_cv_dlopen" != xno; then
11445 enable_dlopen=yes
11446 else
11447 enable_dlopen=no
11448 fi
11449
11450 case $lt_cv_dlopen in
11451 dlopen)
11452 save_CPPFLAGS="$CPPFLAGS"
11453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11454
11455 save_LDFLAGS="$LDFLAGS"
11456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11457
11458 save_LIBS="$LIBS"
11459 LIBS="$lt_cv_dlopen_libs $LIBS"
11460
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11462$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11463if test "${lt_cv_dlopen_self+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11465else
11466 if test "$cross_compiling" = yes; then :
11467 lt_cv_dlopen_self=cross
11468else
11469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11470 lt_status=$lt_dlunknown
11471 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 11472#line 11472 "configure"
d7f09764
DN
11473#include "confdefs.h"
11474
11475#if HAVE_DLFCN_H
11476#include <dlfcn.h>
11477#endif
11478
11479#include <stdio.h>
11480
11481#ifdef RTLD_GLOBAL
11482# define LT_DLGLOBAL RTLD_GLOBAL
11483#else
11484# ifdef DL_GLOBAL
11485# define LT_DLGLOBAL DL_GLOBAL
11486# else
11487# define LT_DLGLOBAL 0
11488# endif
11489#endif
11490
11491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11492 find out it does not work in some platform. */
11493#ifndef LT_DLLAZY_OR_NOW
11494# ifdef RTLD_LAZY
11495# define LT_DLLAZY_OR_NOW RTLD_LAZY
11496# else
11497# ifdef DL_LAZY
11498# define LT_DLLAZY_OR_NOW DL_LAZY
11499# else
11500# ifdef RTLD_NOW
11501# define LT_DLLAZY_OR_NOW RTLD_NOW
11502# else
11503# ifdef DL_NOW
11504# define LT_DLLAZY_OR_NOW DL_NOW
11505# else
11506# define LT_DLLAZY_OR_NOW 0
11507# endif
11508# endif
11509# endif
11510# endif
11511#endif
11512
52327858
L
11513/* When -fvisbility=hidden is used, assume the code has been annotated
11514 correspondingly for the symbols needed. */
11515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11516void fnord () __attribute__((visibility("default")));
11517#endif
11518
11519void fnord () { int i=42; }
d7f09764
DN
11520int main ()
11521{
11522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11523 int status = $lt_dlunknown;
11524
11525 if (self)
11526 {
11527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
11528 else
11529 {
11530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11531 else puts (dlerror ());
11532 }
d7f09764
DN
11533 /* dlclose (self); */
11534 }
11535 else
11536 puts (dlerror ());
11537
11538 return status;
11539}
11540_LT_EOF
11541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11542 (eval $ac_link) 2>&5
11543 ac_status=$?
11544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11546 (./conftest; exit; ) >&5 2>/dev/null
11547 lt_status=$?
11548 case x$lt_status in
11549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11552 esac
11553 else :
11554 # compilation failed
11555 lt_cv_dlopen_self=no
11556 fi
11557fi
11558rm -fr conftest*
11559
11560
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11563$as_echo "$lt_cv_dlopen_self" >&6; }
11564
11565 if test "x$lt_cv_dlopen_self" = xyes; then
11566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11568$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11569if test "${lt_cv_dlopen_self_static+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571else
11572 if test "$cross_compiling" = yes; then :
11573 lt_cv_dlopen_self_static=cross
11574else
11575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11576 lt_status=$lt_dlunknown
11577 cat > conftest.$ac_ext <<_LT_EOF
3c36aa6b 11578#line 11578 "configure"
d7f09764
DN
11579#include "confdefs.h"
11580
11581#if HAVE_DLFCN_H
11582#include <dlfcn.h>
11583#endif
11584
11585#include <stdio.h>
11586
11587#ifdef RTLD_GLOBAL
11588# define LT_DLGLOBAL RTLD_GLOBAL
11589#else
11590# ifdef DL_GLOBAL
11591# define LT_DLGLOBAL DL_GLOBAL
11592# else
11593# define LT_DLGLOBAL 0
11594# endif
11595#endif
11596
11597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11598 find out it does not work in some platform. */
11599#ifndef LT_DLLAZY_OR_NOW
11600# ifdef RTLD_LAZY
11601# define LT_DLLAZY_OR_NOW RTLD_LAZY
11602# else
11603# ifdef DL_LAZY
11604# define LT_DLLAZY_OR_NOW DL_LAZY
11605# else
11606# ifdef RTLD_NOW
11607# define LT_DLLAZY_OR_NOW RTLD_NOW
11608# else
11609# ifdef DL_NOW
11610# define LT_DLLAZY_OR_NOW DL_NOW
11611# else
11612# define LT_DLLAZY_OR_NOW 0
11613# endif
11614# endif
11615# endif
11616# endif
11617#endif
11618
52327858
L
11619/* When -fvisbility=hidden is used, assume the code has been annotated
11620 correspondingly for the symbols needed. */
11621#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11622void fnord () __attribute__((visibility("default")));
11623#endif
11624
11625void fnord () { int i=42; }
d7f09764
DN
11626int main ()
11627{
11628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11629 int status = $lt_dlunknown;
11630
11631 if (self)
11632 {
11633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
11634 else
11635 {
11636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11637 else puts (dlerror ());
11638 }
d7f09764
DN
11639 /* dlclose (self); */
11640 }
11641 else
11642 puts (dlerror ());
11643
11644 return status;
11645}
11646_LT_EOF
11647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11648 (eval $ac_link) 2>&5
11649 ac_status=$?
11650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11652 (./conftest; exit; ) >&5 2>/dev/null
11653 lt_status=$?
11654 case x$lt_status in
11655 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11656 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11657 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11658 esac
11659 else :
11660 # compilation failed
11661 lt_cv_dlopen_self_static=no
11662 fi
11663fi
11664rm -fr conftest*
11665
11666
11667fi
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11669$as_echo "$lt_cv_dlopen_self_static" >&6; }
11670 fi
11671
11672 CPPFLAGS="$save_CPPFLAGS"
11673 LDFLAGS="$save_LDFLAGS"
11674 LIBS="$save_LIBS"
11675 ;;
11676 esac
11677
11678 case $lt_cv_dlopen_self in
11679 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11680 *) enable_dlopen_self=unknown ;;
11681 esac
11682
11683 case $lt_cv_dlopen_self_static in
11684 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11685 *) enable_dlopen_self_static=unknown ;;
11686 esac
11687fi
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705striplib=
11706old_striplib=
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11708$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11709if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11710 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11711 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713$as_echo "yes" >&6; }
11714else
11715# FIXME - insert some real tests, host_os isn't really good enough
11716 case $host_os in
11717 darwin*)
11718 if test -n "$STRIP" ; then
11719 striplib="$STRIP -x"
11720 old_striplib="$STRIP -S"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722$as_echo "yes" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
11726 fi
11727 ;;
11728 *)
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730$as_echo "no" >&6; }
11731 ;;
11732 esac
11733fi
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746 # Report which library types will actually be built
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11748$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11750$as_echo "$can_build_shared" >&6; }
11751
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11753$as_echo_n "checking whether to build shared libraries... " >&6; }
11754 test "$can_build_shared" = "no" && enable_shared=no
11755
11756 # On AIX, shared libraries and static libraries use the same namespace, and
11757 # are all built from PIC.
11758 case $host_os in
11759 aix3*)
11760 test "$enable_shared" = yes && enable_static=no
11761 if test -n "$RANLIB"; then
11762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11763 postinstall_cmds='$RANLIB $lib'
11764 fi
11765 ;;
11766
11767 aix[4-9]*)
11768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11769 test "$enable_shared" = yes && enable_static=no
11770 fi
11771 ;;
11772 esac
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11774$as_echo "$enable_shared" >&6; }
11775
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11777$as_echo_n "checking whether to build static libraries... " >&6; }
11778 # Make sure either enable_shared or enable_static is yes.
11779 test "$enable_shared" = yes || enable_static=yes
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11781$as_echo "$enable_static" >&6; }
11782
11783
11784
11785
11786fi
11787ac_ext=c
11788ac_cpp='$CPP $CPPFLAGS'
11789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791ac_compiler_gnu=$ac_cv_c_compiler_gnu
11792
11793CC="$lt_save_CC"
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 ac_config_commands="$ac_config_commands libtool"
11808
11809
11810
11811
11812# Only expand once:
11813
11814
11815
7de6ba7a
DK
11816
11817
11818case $host in
11819 *-cygwin* | *-mingw*)
11820 # 'host' will be top-level target in the case of a target lib,
11821 # we must compare to with_cross_host to decide if this is a native
11822 # or cross-compiler and select where to install dlls appropriately.
11823 if test -n "$with_cross_host" &&
11824 test x"$with_cross_host" != x"no"; then
11825 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11826 else
11827 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11828 fi
11829 ;;
11830 *)
11831 lt_host_flags=
11832 ;;
11833esac
11834
11835
11836
11837
d19e0f01
DK
11838ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
11839case $ac_cv_c_int64_t in #(
11840 no|yes) ;; #(
11841 *)
11842
11843cat >>confdefs.h <<_ACEOF
11844#define int64_t $ac_cv_c_int64_t
11845_ACEOF
11846;;
11847esac
11848
21750c78
RE
11849ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11850case $ac_cv_c_uint64_t in #(
11851 no|yes) ;; #(
11852 *)
11853
11854$as_echo "#define _UINT64_T 1" >>confdefs.h
11855
11856
11857cat >>confdefs.h <<_ACEOF
11858#define uint64_t $ac_cv_c_uint64_t
11859_ACEOF
11860;;
11861 esac
11862
ec692d5f
KT
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11864$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11865if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869/* end confdefs.h. */
11870#include <sys/types.h>
11871#include <sys/wait.h>
11872#ifndef WEXITSTATUS
11873# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11874#endif
11875#ifndef WIFEXITED
11876# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11877#endif
a2254c5d 11878
ec692d5f
KT
11879int
11880main ()
11881{
11882 int s;
11883 wait (&s);
11884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_compile "$LINENO"; then :
11890 ac_cv_header_sys_wait_h=yes
11891else
11892 ac_cv_header_sys_wait_h=no
11893fi
11894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a2254c5d 11895fi
ec692d5f
KT
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11897$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11898if test $ac_cv_header_sys_wait_h = yes; then
a2254c5d 11899
ec692d5f
KT
11900$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11901
11902fi
a2254c5d 11903
d7f09764
DN
11904ac_config_files="$ac_config_files Makefile"
11905
48215350
DK
11906ac_config_headers="$ac_config_headers config.h"
11907
d7f09764
DN
11908cat >confcache <<\_ACEOF
11909# This file is a shell script that caches the results of configure
11910# tests run on this system so they can be shared between configure
11911# scripts and configure runs, see configure's option --config-cache.
11912# It is not useful on other systems. If it contains results you don't
11913# want to keep, you may remove or edit it.
11914#
11915# config.status only pays attention to the cache file if you give it
11916# the --recheck option to rerun configure.
11917#
11918# `ac_cv_env_foo' variables (set or unset) will be overridden when
11919# loading this file, other *unset* `ac_cv_foo' will be assigned the
11920# following values.
11921
11922_ACEOF
11923
11924# The following way of writing the cache mishandles newlines in values,
11925# but we know of no workaround that is simple, portable, and efficient.
11926# So, we kill variables containing newlines.
11927# Ultrix sh set writes to stderr and can't be redirected directly,
11928# and sets the high bit in the cache file unless we assign to the vars.
11929(
11930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11931 eval ac_val=\$$ac_var
11932 case $ac_val in #(
11933 *${as_nl}*)
11934 case $ac_var in #(
11935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11937 esac
11938 case $ac_var in #(
11939 _ | IFS | as_nl) ;; #(
11940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11941 *) { eval $ac_var=; unset $ac_var;} ;;
11942 esac ;;
11943 esac
11944 done
11945
11946 (set) 2>&1 |
11947 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11948 *${as_nl}ac_space=\ *)
11949 # `set' does not quote correctly, so add quotes: double-quote
11950 # substitution turns \\\\ into \\, and sed turns \\ into \.
11951 sed -n \
11952 "s/'/'\\\\''/g;
11953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11954 ;; #(
11955 *)
11956 # `set' quotes correctly as required by POSIX, so do not add quotes.
11957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11958 ;;
11959 esac |
11960 sort
11961) |
11962 sed '
11963 /^ac_cv_env_/b end
11964 t clear
11965 :clear
11966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11967 t end
11968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11969 :end' >>confcache
11970if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11971 if test -w "$cache_file"; then
11972 test "x$cache_file" != "x/dev/null" &&
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11974$as_echo "$as_me: updating cache $cache_file" >&6;}
11975 cat confcache >$cache_file
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11978$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11979 fi
11980fi
11981rm -f confcache
11982
11983test "x$prefix" = xNONE && prefix=$ac_default_prefix
11984# Let make expand exec_prefix.
11985test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11986
48215350 11987DEFS=-DHAVE_CONFIG_H
d7f09764
DN
11988
11989ac_libobjs=
11990ac_ltlibobjs=
11991for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11992 # 1. Remove the extension, and $U if already installed.
11993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11996 # will be set to the directory where LIBOBJS objects are built.
11997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11999done
12000LIBOBJS=$ac_libobjs
12001
12002LTLIBOBJS=$ac_ltlibobjs
12003
12004
12005 if test -n "$EXEEXT"; then
12006 am__EXEEXT_TRUE=
12007 am__EXEEXT_FALSE='#'
12008else
12009 am__EXEEXT_TRUE='#'
12010 am__EXEEXT_FALSE=
12011fi
12012
03428d41
RG
12013if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12014 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12015Usually this means the macro was only invoked conditionally." "$LINENO" 5
12016fi
d7f09764
DN
12017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12018 as_fn_error "conditional \"AMDEP\" was never defined.
12019Usually this means the macro was only invoked conditionally." "$LINENO" 5
12020fi
12021if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12022 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12023Usually this means the macro was only invoked conditionally." "$LINENO" 5
12024fi
dcbc9df9
UB
12025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12026 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12027Usually this means the macro was only invoked conditionally." "$LINENO" 5
12028fi
d7f09764
DN
12029
12030: ${CONFIG_STATUS=./config.status}
12031ac_write_fail=0
12032ac_clean_files_save=$ac_clean_files
12033ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12035$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12036as_write_fail=0
12037cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12038#! $SHELL
12039# Generated by $as_me.
12040# Run this file to recreate the current configuration.
12041# Compiler output produced by configure, useful for debugging
12042# configure, is in config.log if it exists.
12043
12044debug=false
12045ac_cs_recheck=false
12046ac_cs_silent=false
12047
12048SHELL=\${CONFIG_SHELL-$SHELL}
12049export SHELL
12050_ASEOF
12051cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12052## -------------------- ##
12053## M4sh Initialization. ##
12054## -------------------- ##
12055
12056# Be more Bourne compatible
12057DUALCASE=1; export DUALCASE # for MKS sh
12058if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12059 emulate sh
12060 NULLCMD=:
12061 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12062 # is contrary to our usage. Disable this feature.
12063 alias -g '${1+"$@"}'='"$@"'
12064 setopt NO_GLOB_SUBST
12065else
12066 case `(set -o) 2>/dev/null` in #(
12067 *posix*) :
12068 set -o posix ;; #(
12069 *) :
12070 ;;
12071esac
12072fi
12073
12074
12075as_nl='
12076'
12077export as_nl
12078# Printing a long string crashes Solaris 7 /usr/bin/printf.
12079as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12080as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12081as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12082# Prefer a ksh shell builtin over an external printf program on Solaris,
12083# but without wasting forks for bash or zsh.
12084if test -z "$BASH_VERSION$ZSH_VERSION" \
12085 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12086 as_echo='print -r --'
12087 as_echo_n='print -rn --'
12088elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12089 as_echo='printf %s\n'
12090 as_echo_n='printf %s'
12091else
12092 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12093 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12094 as_echo_n='/usr/ucb/echo -n'
12095 else
12096 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12097 as_echo_n_body='eval
12098 arg=$1;
12099 case $arg in #(
12100 *"$as_nl"*)
12101 expr "X$arg" : "X\\(.*\\)$as_nl";
12102 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12103 esac;
12104 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12105 '
12106 export as_echo_n_body
12107 as_echo_n='sh -c $as_echo_n_body as_echo'
12108 fi
12109 export as_echo_body
12110 as_echo='sh -c $as_echo_body as_echo'
12111fi
12112
12113# The user is always right.
12114if test "${PATH_SEPARATOR+set}" != set; then
12115 PATH_SEPARATOR=:
12116 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12117 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12118 PATH_SEPARATOR=';'
12119 }
12120fi
12121
12122
12123# IFS
12124# We need space, tab and new line, in precisely that order. Quoting is
12125# there to prevent editors from complaining about space-tab.
12126# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12127# splitting by setting IFS to empty value.)
12128IFS=" "" $as_nl"
12129
12130# Find who we are. Look in the path if we contain no directory separator.
12131case $0 in #((
12132 *[\\/]* ) as_myself=$0 ;;
12133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12139 done
12140IFS=$as_save_IFS
12141
12142 ;;
12143esac
12144# We did not find ourselves, most probably we were run as `sh COMMAND'
12145# in which case we are not to be found in the path.
12146if test "x$as_myself" = x; then
12147 as_myself=$0
12148fi
12149if test ! -f "$as_myself"; then
12150 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12151 exit 1
12152fi
12153
12154# Unset variables that we do not need and which cause bugs (e.g. in
12155# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12156# suppresses any "Segmentation fault" message there. '((' could
12157# trigger a bug in pdksh 5.2.14.
12158for as_var in BASH_ENV ENV MAIL MAILPATH
12159do eval test x\${$as_var+set} = xset \
12160 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12161done
12162PS1='$ '
12163PS2='> '
12164PS4='+ '
12165
12166# NLS nuisances.
12167LC_ALL=C
12168export LC_ALL
12169LANGUAGE=C
12170export LANGUAGE
12171
12172# CDPATH.
12173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12174
12175
12176# as_fn_error ERROR [LINENO LOG_FD]
12177# ---------------------------------
12178# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12179# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12180# script with status $?, using 1 if that was 0.
12181as_fn_error ()
12182{
12183 as_status=$?; test $as_status -eq 0 && as_status=1
12184 if test "$3"; then
12185 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12186 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12187 fi
12188 $as_echo "$as_me: error: $1" >&2
12189 as_fn_exit $as_status
12190} # as_fn_error
12191
12192
12193# as_fn_set_status STATUS
12194# -----------------------
12195# Set $? to STATUS, without forking.
12196as_fn_set_status ()
12197{
12198 return $1
12199} # as_fn_set_status
12200
12201# as_fn_exit STATUS
12202# -----------------
12203# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12204as_fn_exit ()
12205{
12206 set +e
12207 as_fn_set_status $1
12208 exit $1
12209} # as_fn_exit
12210
12211# as_fn_unset VAR
12212# ---------------
12213# Portably unset VAR.
12214as_fn_unset ()
12215{
12216 { eval $1=; unset $1;}
12217}
12218as_unset=as_fn_unset
12219# as_fn_append VAR VALUE
12220# ----------------------
12221# Append the text in VALUE to the end of the definition contained in VAR. Take
12222# advantage of any shell optimizations that allow amortized linear growth over
12223# repeated appends, instead of the typical quadratic growth present in naive
12224# implementations.
12225if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12226 eval 'as_fn_append ()
12227 {
12228 eval $1+=\$2
12229 }'
12230else
12231 as_fn_append ()
12232 {
12233 eval $1=\$$1\$2
12234 }
12235fi # as_fn_append
12236
12237# as_fn_arith ARG...
12238# ------------------
12239# Perform arithmetic evaluation on the ARGs, and store the result in the
12240# global $as_val. Take advantage of shells that can avoid forks. The arguments
12241# must be portable across $(()) and expr.
12242if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12243 eval 'as_fn_arith ()
12244 {
12245 as_val=$(( $* ))
12246 }'
12247else
12248 as_fn_arith ()
12249 {
12250 as_val=`expr "$@" || test $? -eq 1`
12251 }
12252fi # as_fn_arith
12253
12254
12255if expr a : '\(a\)' >/dev/null 2>&1 &&
12256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12257 as_expr=expr
12258else
12259 as_expr=false
12260fi
12261
12262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12263 as_basename=basename
12264else
12265 as_basename=false
12266fi
12267
12268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12269 as_dirname=dirname
12270else
12271 as_dirname=false
12272fi
12273
12274as_me=`$as_basename -- "$0" ||
12275$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12276 X"$0" : 'X\(//\)$' \| \
12277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12278$as_echo X/"$0" |
12279 sed '/^.*\/\([^/][^/]*\)\/*$/{
12280 s//\1/
12281 q
12282 }
12283 /^X\/\(\/\/\)$/{
12284 s//\1/
12285 q
12286 }
12287 /^X\/\(\/\).*/{
12288 s//\1/
12289 q
12290 }
12291 s/.*/./; q'`
12292
12293# Avoid depending upon Character Ranges.
12294as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12296as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12297as_cr_digits='0123456789'
12298as_cr_alnum=$as_cr_Letters$as_cr_digits
12299
12300ECHO_C= ECHO_N= ECHO_T=
12301case `echo -n x` in #(((((
12302-n*)
12303 case `echo 'xy\c'` in
12304 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12305 xy) ECHO_C='\c';;
12306 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12307 ECHO_T=' ';;
12308 esac;;
12309*)
12310 ECHO_N='-n';;
12311esac
12312
12313rm -f conf$$ conf$$.exe conf$$.file
12314if test -d conf$$.dir; then
12315 rm -f conf$$.dir/conf$$.file
12316else
12317 rm -f conf$$.dir
12318 mkdir conf$$.dir 2>/dev/null
12319fi
12320if (echo >conf$$.file) 2>/dev/null; then
12321 if ln -s conf$$.file conf$$ 2>/dev/null; then
12322 as_ln_s='ln -s'
12323 # ... but there are two gotchas:
12324 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12325 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12326 # In both cases, we have to default to `cp -p'.
12327 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12328 as_ln_s='cp -p'
12329 elif ln conf$$.file conf$$ 2>/dev/null; then
12330 as_ln_s=ln
12331 else
12332 as_ln_s='cp -p'
12333 fi
12334else
12335 as_ln_s='cp -p'
12336fi
12337rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12338rmdir conf$$.dir 2>/dev/null
12339
12340
12341# as_fn_mkdir_p
12342# -------------
12343# Create "$as_dir" as a directory, including parents if necessary.
12344as_fn_mkdir_p ()
12345{
12346
12347 case $as_dir in #(
12348 -*) as_dir=./$as_dir;;
12349 esac
12350 test -d "$as_dir" || eval $as_mkdir_p || {
12351 as_dirs=
12352 while :; do
12353 case $as_dir in #(
12354 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12355 *) as_qdir=$as_dir;;
12356 esac
12357 as_dirs="'$as_qdir' $as_dirs"
12358 as_dir=`$as_dirname -- "$as_dir" ||
12359$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12360 X"$as_dir" : 'X\(//\)[^/]' \| \
12361 X"$as_dir" : 'X\(//\)$' \| \
12362 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12363$as_echo X"$as_dir" |
12364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12365 s//\1/
12366 q
12367 }
12368 /^X\(\/\/\)[^/].*/{
12369 s//\1/
12370 q
12371 }
12372 /^X\(\/\/\)$/{
12373 s//\1/
12374 q
12375 }
12376 /^X\(\/\).*/{
12377 s//\1/
12378 q
12379 }
12380 s/.*/./; q'`
12381 test -d "$as_dir" && break
12382 done
12383 test -z "$as_dirs" || eval "mkdir $as_dirs"
12384 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12385
12386
12387} # as_fn_mkdir_p
12388if mkdir -p . 2>/dev/null; then
12389 as_mkdir_p='mkdir -p "$as_dir"'
12390else
12391 test -d ./-p && rmdir ./-p
12392 as_mkdir_p=false
12393fi
12394
12395if test -x / >/dev/null 2>&1; then
12396 as_test_x='test -x'
12397else
12398 if ls -dL / >/dev/null 2>&1; then
12399 as_ls_L_option=L
12400 else
12401 as_ls_L_option=
12402 fi
12403 as_test_x='
12404 eval sh -c '\''
12405 if test -d "$1"; then
12406 test -d "$1/.";
12407 else
12408 case $1 in #(
12409 -*)set "./$1";;
12410 esac;
12411 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12412 ???[sx]*):;;*)false;;esac;fi
12413 '\'' sh
12414 '
12415fi
12416as_executable_p=$as_test_x
12417
12418# Sed expression to map a string onto a valid CPP name.
12419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12420
12421# Sed expression to map a string onto a valid variable name.
12422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12423
12424
12425exec 6>&1
12426## ----------------------------------- ##
12427## Main body of $CONFIG_STATUS script. ##
12428## ----------------------------------- ##
12429_ASEOF
12430test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12431
12432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12433# Save the log message, to keep $0 and so on meaningful, and to
12434# report actual input values of CONFIG_FILES etc. instead of their
12435# values after options handling.
12436ac_log="
12437This file was extended by LTO plugin for ld $as_me 0.1, which was
12438generated by GNU Autoconf 2.64. Invocation command line was
12439
12440 CONFIG_FILES = $CONFIG_FILES
12441 CONFIG_HEADERS = $CONFIG_HEADERS
12442 CONFIG_LINKS = $CONFIG_LINKS
12443 CONFIG_COMMANDS = $CONFIG_COMMANDS
12444 $ $0 $@
12445
12446on `(hostname || uname -n) 2>/dev/null | sed 1q`
12447"
12448
12449_ACEOF
12450
12451case $ac_config_files in *"
12452"*) set x $ac_config_files; shift; ac_config_files=$*;;
12453esac
12454
48215350
DK
12455case $ac_config_headers in *"
12456"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12457esac
d7f09764
DN
12458
12459
12460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461# Files that config.status was made for.
12462config_files="$ac_config_files"
48215350 12463config_headers="$ac_config_headers"
d7f09764
DN
12464config_commands="$ac_config_commands"
12465
12466_ACEOF
12467
12468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12469ac_cs_usage="\
12470\`$as_me' instantiates files and other configuration actions
12471from templates according to the current configuration. Unless the files
12472and actions are specified as TAGs, all are instantiated by default.
12473
12474Usage: $0 [OPTION]... [TAG]...
12475
12476 -h, --help print this help, then exit
12477 -V, --version print version number and configuration settings, then exit
12478 -q, --quiet, --silent
12479 do not print progress messages
12480 -d, --debug don't remove temporary files
12481 --recheck update $as_me by reconfiguring in the same conditions
12482 --file=FILE[:TEMPLATE]
12483 instantiate the configuration file FILE
48215350
DK
12484 --header=FILE[:TEMPLATE]
12485 instantiate the configuration header FILE
d7f09764
DN
12486
12487Configuration files:
12488$config_files
12489
48215350
DK
12490Configuration headers:
12491$config_headers
12492
d7f09764
DN
12493Configuration commands:
12494$config_commands
12495
12496Report bugs to the package provider."
12497
12498_ACEOF
12499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12500ac_cs_version="\\
12501LTO plugin for ld config.status 0.1
12502configured by $0, generated by GNU Autoconf 2.64,
12503 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12504
12505Copyright (C) 2009 Free Software Foundation, Inc.
12506This config.status script is free software; the Free Software Foundation
12507gives unlimited permission to copy, distribute and modify it."
12508
12509ac_pwd='$ac_pwd'
12510srcdir='$srcdir'
12511INSTALL='$INSTALL'
12512MKDIR_P='$MKDIR_P'
12513AWK='$AWK'
12514test -n "\$AWK" || AWK=awk
12515_ACEOF
12516
12517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12518# The default lists apply if the user does not specify any file.
12519ac_need_defaults=:
12520while test $# != 0
12521do
12522 case $1 in
12523 --*=*)
12524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12526 ac_shift=:
12527 ;;
12528 *)
12529 ac_option=$1
12530 ac_optarg=$2
12531 ac_shift=shift
12532 ;;
12533 esac
12534
12535 case $ac_option in
12536 # Handling of the options.
12537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12538 ac_cs_recheck=: ;;
12539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12540 $as_echo "$ac_cs_version"; exit ;;
12541 --debug | --debu | --deb | --de | --d | -d )
12542 debug=: ;;
12543 --file | --fil | --fi | --f )
12544 $ac_shift
12545 case $ac_optarg in
12546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12547 esac
12548 as_fn_append CONFIG_FILES " '$ac_optarg'"
12549 ac_need_defaults=false;;
48215350
DK
12550 --header | --heade | --head | --hea )
12551 $ac_shift
12552 case $ac_optarg in
12553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12554 esac
12555 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12556 ac_need_defaults=false;;
12557 --he | --h)
12558 # Conflict between --help and --header
12559 as_fn_error "ambiguous option: \`$1'
12560Try \`$0 --help' for more information.";;
12561 --help | --hel | -h )
d7f09764
DN
12562 $as_echo "$ac_cs_usage"; exit ;;
12563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12565 ac_cs_silent=: ;;
12566
12567 # This is an error.
12568 -*) as_fn_error "unrecognized option: \`$1'
12569Try \`$0 --help' for more information." ;;
12570
12571 *) as_fn_append ac_config_targets " $1"
12572 ac_need_defaults=false ;;
12573
12574 esac
12575 shift
12576done
12577
12578ac_configure_extra_args=
12579
12580if $ac_cs_silent; then
12581 exec 6>/dev/null
12582 ac_configure_extra_args="$ac_configure_extra_args --silent"
12583fi
12584
12585_ACEOF
12586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12587if \$ac_cs_recheck; then
12588 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12589 shift
12590 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12591 CONFIG_SHELL='$SHELL'
12592 export CONFIG_SHELL
12593 exec "\$@"
12594fi
12595
12596_ACEOF
12597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598exec 5>>config.log
12599{
12600 echo
12601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12602## Running $as_me. ##
12603_ASBOX
12604 $as_echo "$ac_log"
12605} >&5
12606
12607_ACEOF
12608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12609#
12610# INIT-COMMANDS
12611#
12612AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12613
12614
12615# The HP-UX ksh and POSIX shell print the target directory to stdout
12616# if CDPATH is set.
12617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12618
12619sed_quote_subst='$sed_quote_subst'
12620double_quote_subst='$double_quote_subst'
12621delay_variable_subst='$delay_variable_subst'
52327858
L
12622macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12623macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12624enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12625enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12626pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12627enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12628SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12629ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12630host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12631host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12632host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12633build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12634build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12635build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12636SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12637Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12638GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12639EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12640FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12641LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12642NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12643LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12644max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12645ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12646exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12647lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12648lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12649lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12650reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12651reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12652OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12653deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12654file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12655AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12656AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12657STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12658RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12659old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12660old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12661old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12662lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12663CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12664CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12665compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12666GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12667lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12668lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12669lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12670lt_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"`'
12671objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12672MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12673lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12674lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12675lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12676lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12677lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12678need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12679DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12680NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12681LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12682OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12683OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12684libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12685shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12686extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12687archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12688enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12689export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12690whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12691compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12692old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12693old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12694archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12695archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12696module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12697module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12698with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12699allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12700no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12701hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12702hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12703hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12704hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12705hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12706hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12707hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12708hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12709inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12710link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12711fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12712always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12713export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12714exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12715include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12716prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12717file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12718variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12719need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12720need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12721version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12722runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12723shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12724shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12725libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12726library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12727soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12728install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12729postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12730postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12731finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12732finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12733hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12734sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12735sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12736hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12737enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12738enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12739enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12740old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12741striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
12742
12743LTCC='$LTCC'
12744LTCFLAGS='$LTCFLAGS'
12745compiler='$compiler_DEFAULT'
12746
52327858
L
12747# A function that is used when there is no print builtin or printf.
12748func_fallback_echo ()
12749{
12750 eval 'cat <<_LTECHO_EOF
12751\$1
12752_LTECHO_EOF'
12753}
12754
d7f09764 12755# Quote evaled strings.
52327858
L
12756for var in SHELL \
12757ECHO \
12758SED \
d7f09764
DN
12759GREP \
12760EGREP \
12761FGREP \
12762LD \
12763NM \
12764LN_S \
12765lt_SP2NL \
12766lt_NL2SP \
12767reload_flag \
12768OBJDUMP \
12769deplibs_check_method \
12770file_magic_cmd \
12771AR \
12772AR_FLAGS \
12773STRIP \
12774RANLIB \
12775CC \
12776CFLAGS \
12777compiler \
12778lt_cv_sys_global_symbol_pipe \
12779lt_cv_sys_global_symbol_to_cdecl \
12780lt_cv_sys_global_symbol_to_c_name_address \
12781lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
12782lt_prog_compiler_no_builtin_flag \
12783lt_prog_compiler_wl \
12784lt_prog_compiler_pic \
12785lt_prog_compiler_static \
12786lt_cv_prog_compiler_c_o \
12787need_locks \
12788DSYMUTIL \
12789NMEDIT \
12790LIPO \
12791OTOOL \
12792OTOOL64 \
12793shrext_cmds \
12794export_dynamic_flag_spec \
12795whole_archive_flag_spec \
12796compiler_needs_object \
12797with_gnu_ld \
12798allow_undefined_flag \
12799no_undefined_flag \
12800hardcode_libdir_flag_spec \
12801hardcode_libdir_flag_spec_ld \
12802hardcode_libdir_separator \
12803fix_srcfile_path \
12804exclude_expsyms \
12805include_expsyms \
12806file_list_spec \
12807variables_saved_for_relink \
12808libname_spec \
12809library_names_spec \
12810soname_spec \
52327858 12811install_override_mode \
d7f09764
DN
12812finish_eval \
12813old_striplib \
12814striplib; do
52327858 12815 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 12816 *[\\\\\\\`\\"\\\$]*)
52327858 12817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
12818 ;;
12819 *)
12820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12821 ;;
12822 esac
12823done
12824
12825# Double-quote double-evaled strings.
12826for var in reload_cmds \
12827old_postinstall_cmds \
12828old_postuninstall_cmds \
12829old_archive_cmds \
12830extract_expsyms_cmds \
12831old_archive_from_new_cmds \
12832old_archive_from_expsyms_cmds \
12833archive_cmds \
12834archive_expsym_cmds \
12835module_cmds \
12836module_expsym_cmds \
12837export_symbols_cmds \
12838prelink_cmds \
12839postinstall_cmds \
12840postuninstall_cmds \
12841finish_cmds \
12842sys_lib_search_path_spec \
12843sys_lib_dlsearch_path_spec; do
52327858 12844 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 12845 *[\\\\\\\`\\"\\\$]*)
52327858 12846 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
12847 ;;
12848 *)
12849 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12850 ;;
12851 esac
12852done
12853
d7f09764
DN
12854ac_aux_dir='$ac_aux_dir'
12855xsi_shell='$xsi_shell'
12856lt_shell_append='$lt_shell_append'
12857
12858# See if we are running on zsh, and set the options which allow our
12859# commands through without removal of \ escapes INIT.
12860if test -n "\${ZSH_VERSION+set}" ; then
12861 setopt NO_GLOB_SUBST
12862fi
12863
12864
12865 PACKAGE='$PACKAGE'
12866 VERSION='$VERSION'
12867 TIMESTAMP='$TIMESTAMP'
12868 RM='$RM'
12869 ofile='$ofile'
12870
12871
12872
12873
12874_ACEOF
12875
12876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12877
12878# Handling of arguments.
12879for ac_config_target in $ac_config_targets
12880do
12881 case $ac_config_target in
12882 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12883 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12884 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48215350 12885 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
d7f09764
DN
12886
12887 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12888 esac
12889done
12890
12891
12892# If the user did not use the arguments to specify the items to instantiate,
12893# then the envvar interface is used. Set only those that are not.
12894# We use the long form for the default assignment because of an extremely
12895# bizarre bug on SunOS 4.1.3.
12896if $ac_need_defaults; then
12897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48215350 12898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
d7f09764
DN
12899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12900fi
12901
12902# Have a temporary directory for convenience. Make it in the build tree
12903# simply because there is no reason against having it here, and in addition,
12904# creating and moving files from /tmp can sometimes cause problems.
12905# Hook for its removal unless debugging.
12906# Note that there is a small window in which the directory will not be cleaned:
12907# after its creation but before its name has been assigned to `$tmp'.
12908$debug ||
12909{
12910 tmp=
12911 trap 'exit_status=$?
12912 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12913' 0
12914 trap 'as_fn_exit 1' 1 2 13 15
12915}
12916# Create a (secure) tmp directory for tmp files.
12917
12918{
12919 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12920 test -n "$tmp" && test -d "$tmp"
12921} ||
12922{
12923 tmp=./conf$$-$RANDOM
12924 (umask 077 && mkdir "$tmp")
12925} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12926
12927# Set up the scripts for CONFIG_FILES section.
12928# No need to generate them if there are no CONFIG_FILES.
12929# This happens for instance with `./config.status config.h'.
12930if test -n "$CONFIG_FILES"; then
12931
12932
12933ac_cr=`echo X | tr X '\015'`
12934# On cygwin, bash can eat \r inside `` if the user requested igncr.
12935# But we know of no other shell where ac_cr would be empty at this
12936# point, so we can use a bashism as a fallback.
12937if test "x$ac_cr" = x; then
12938 eval ac_cr=\$\'\\r\'
12939fi
12940ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12941if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12942 ac_cs_awk_cr='\r'
12943else
12944 ac_cs_awk_cr=$ac_cr
12945fi
12946
12947echo 'BEGIN {' >"$tmp/subs1.awk" &&
12948_ACEOF
12949
12950
12951{
12952 echo "cat >conf$$subs.awk <<_ACEOF" &&
12953 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12954 echo "_ACEOF"
12955} >conf$$subs.sh ||
12956 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12957ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12958ac_delim='%!_!# '
12959for ac_last_try in false false false false false :; do
12960 . ./conf$$subs.sh ||
12961 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12962
12963 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12964 if test $ac_delim_n = $ac_delim_num; then
12965 break
12966 elif $ac_last_try; then
12967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12968 else
12969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12970 fi
12971done
12972rm -f conf$$subs.sh
12973
12974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12975cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12976_ACEOF
12977sed -n '
12978h
12979s/^/S["/; s/!.*/"]=/
12980p
12981g
12982s/^[^!]*!//
12983:repl
12984t repl
12985s/'"$ac_delim"'$//
12986t delim
12987:nl
12988h
12989s/\(.\{148\}\).*/\1/
12990t more1
12991s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12992p
12993n
12994b repl
12995:more1
12996s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12997p
12998g
12999s/.\{148\}//
13000t nl
13001:delim
13002h
13003s/\(.\{148\}\).*/\1/
13004t more2
13005s/["\\]/\\&/g; s/^/"/; s/$/"/
13006p
13007b
13008:more2
13009s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13010p
13011g
13012s/.\{148\}//
13013t delim
13014' <conf$$subs.awk | sed '
13015/^[^""]/{
13016 N
13017 s/\n//
13018}
13019' >>$CONFIG_STATUS || ac_write_fail=1
13020rm -f conf$$subs.awk
13021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13022_ACAWK
13023cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13024 for (key in S) S_is_set[key] = 1
13025 FS = "\a"
13026
13027}
13028{
13029 line = $ 0
13030 nfields = split(line, field, "@")
13031 substed = 0
13032 len = length(field[1])
13033 for (i = 2; i < nfields; i++) {
13034 key = field[i]
13035 keylen = length(key)
13036 if (S_is_set[key]) {
13037 value = S[key]
13038 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13039 len += length(value) + length(field[++i])
13040 substed = 1
13041 } else
13042 len += 1 + keylen
13043 }
13044
13045 print line
13046}
13047
13048_ACAWK
13049_ACEOF
13050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13051if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13053else
13054 cat
13055fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13056 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13057_ACEOF
13058
13059# VPATH may cause trouble with some makes, so we remove $(srcdir),
13060# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13061# trailing colons and then remove the whole line if VPATH becomes empty
13062# (actually we leave an empty line to preserve line numbers).
13063if test "x$srcdir" = x.; then
13064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13065s/:*\$(srcdir):*/:/
13066s/:*\${srcdir}:*/:/
13067s/:*@srcdir@:*/:/
13068s/^\([^=]*=[ ]*\):*/\1/
13069s/:*$//
13070s/^[^=]*=[ ]*$//
13071}'
13072fi
13073
13074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13075fi # test -n "$CONFIG_FILES"
13076
48215350
DK
13077# Set up the scripts for CONFIG_HEADERS section.
13078# No need to generate them if there are no CONFIG_HEADERS.
13079# This happens for instance with `./config.status Makefile'.
13080if test -n "$CONFIG_HEADERS"; then
13081cat >"$tmp/defines.awk" <<\_ACAWK ||
13082BEGIN {
13083_ACEOF
13084
13085# Transform confdefs.h into an awk script `defines.awk', embedded as
13086# here-document in config.status, that substitutes the proper values into
13087# config.h.in to produce config.h.
d7f09764 13088
48215350
DK
13089# Create a delimiter string that does not exist in confdefs.h, to ease
13090# handling of long lines.
13091ac_delim='%!_!# '
13092for ac_last_try in false false :; do
13093 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13094 if test -z "$ac_t"; then
13095 break
13096 elif $ac_last_try; then
13097 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13098 else
13099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13100 fi
13101done
13102
13103# For the awk script, D is an array of macro values keyed by name,
13104# likewise P contains macro parameters if any. Preserve backslash
13105# newline sequences.
13106
13107ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13108sed -n '
13109s/.\{148\}/&'"$ac_delim"'/g
13110t rset
13111:rset
13112s/^[ ]*#[ ]*define[ ][ ]*/ /
13113t def
13114d
13115:def
13116s/\\$//
13117t bsnl
13118s/["\\]/\\&/g
13119s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13120D["\1"]=" \3"/p
13121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13122d
13123:bsnl
13124s/["\\]/\\&/g
13125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13126D["\1"]=" \3\\\\\\n"\\/p
13127t cont
13128s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13129t cont
13130d
13131:cont
13132n
13133s/.\{148\}/&'"$ac_delim"'/g
13134t clear
13135:clear
13136s/\\$//
13137t bsnlc
13138s/["\\]/\\&/g; s/^/"/; s/$/"/p
13139d
13140:bsnlc
13141s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13142b cont
13143' <confdefs.h | sed '
13144s/'"$ac_delim"'/"\\\
13145"/g' >>$CONFIG_STATUS || ac_write_fail=1
13146
13147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13148 for (key in D) D_is_set[key] = 1
13149 FS = "\a"
13150}
13151/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13152 line = \$ 0
13153 split(line, arg, " ")
13154 if (arg[1] == "#") {
13155 defundef = arg[2]
13156 mac1 = arg[3]
13157 } else {
13158 defundef = substr(arg[1], 2)
13159 mac1 = arg[2]
13160 }
13161 split(mac1, mac2, "(") #)
13162 macro = mac2[1]
13163 prefix = substr(line, 1, index(line, defundef) - 1)
13164 if (D_is_set[macro]) {
13165 # Preserve the white space surrounding the "#".
13166 print prefix "define", macro P[macro] D[macro]
13167 next
13168 } else {
13169 # Replace #undef with comments. This is necessary, for example,
13170 # in the case of _POSIX_SOURCE, which is predefined and required
13171 # on some systems where configure will not decide to define it.
13172 if (defundef == "undef") {
13173 print "/*", prefix defundef, macro, "*/"
13174 next
13175 }
13176 }
13177}
13178{ print }
13179_ACAWK
13180_ACEOF
13181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13183fi # test -n "$CONFIG_HEADERS"
13184
13185
13186eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
d7f09764
DN
13187shift
13188for ac_tag
13189do
13190 case $ac_tag in
13191 :[FHLC]) ac_mode=$ac_tag; continue;;
13192 esac
13193 case $ac_mode$ac_tag in
13194 :[FHL]*:*);;
13195 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13196 :[FH]-) ac_tag=-:-;;
13197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13198 esac
13199 ac_save_IFS=$IFS
13200 IFS=:
13201 set x $ac_tag
13202 IFS=$ac_save_IFS
13203 shift
13204 ac_file=$1
13205 shift
13206
13207 case $ac_mode in
13208 :L) ac_source=$1;;
13209 :[FH])
13210 ac_file_inputs=
13211 for ac_f
13212 do
13213 case $ac_f in
13214 -) ac_f="$tmp/stdin";;
13215 *) # Look for the file first in the build tree, then in the source tree
13216 # (if the path is not absolute). The absolute path cannot be DOS-style,
13217 # because $ac_f cannot contain `:'.
13218 test -f "$ac_f" ||
13219 case $ac_f in
13220 [\\/$]*) false;;
13221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13222 esac ||
13223 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13224 esac
13225 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13226 as_fn_append ac_file_inputs " '$ac_f'"
13227 done
13228
13229 # Let's still pretend it is `configure' which instantiates (i.e., don't
13230 # use $as_me), people would be surprised to read:
13231 # /* config.h. Generated by config.status. */
13232 configure_input='Generated from '`
13233 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13234 `' by configure.'
13235 if test x"$ac_file" != x-; then
13236 configure_input="$ac_file. $configure_input"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13238$as_echo "$as_me: creating $ac_file" >&6;}
13239 fi
13240 # Neutralize special characters interpreted by sed in replacement strings.
13241 case $configure_input in #(
13242 *\&* | *\|* | *\\* )
13243 ac_sed_conf_input=`$as_echo "$configure_input" |
13244 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13245 *) ac_sed_conf_input=$configure_input;;
13246 esac
13247
13248 case $ac_tag in
13249 *:-:* | *:-) cat >"$tmp/stdin" \
13250 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13251 esac
13252 ;;
13253 esac
13254
13255 ac_dir=`$as_dirname -- "$ac_file" ||
13256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13257 X"$ac_file" : 'X\(//\)[^/]' \| \
13258 X"$ac_file" : 'X\(//\)$' \| \
13259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13260$as_echo X"$ac_file" |
13261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13262 s//\1/
13263 q
13264 }
13265 /^X\(\/\/\)[^/].*/{
13266 s//\1/
13267 q
13268 }
13269 /^X\(\/\/\)$/{
13270 s//\1/
13271 q
13272 }
13273 /^X\(\/\).*/{
13274 s//\1/
13275 q
13276 }
13277 s/.*/./; q'`
13278 as_dir="$ac_dir"; as_fn_mkdir_p
13279 ac_builddir=.
13280
13281case "$ac_dir" in
13282.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13283*)
13284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13285 # A ".." for each directory in $ac_dir_suffix.
13286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13287 case $ac_top_builddir_sub in
13288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13290 esac ;;
13291esac
13292ac_abs_top_builddir=$ac_pwd
13293ac_abs_builddir=$ac_pwd$ac_dir_suffix
13294# for backward compatibility:
13295ac_top_builddir=$ac_top_build_prefix
13296
13297case $srcdir in
13298 .) # We are building in place.
13299 ac_srcdir=.
13300 ac_top_srcdir=$ac_top_builddir_sub
13301 ac_abs_top_srcdir=$ac_pwd ;;
13302 [\\/]* | ?:[\\/]* ) # Absolute name.
13303 ac_srcdir=$srcdir$ac_dir_suffix;
13304 ac_top_srcdir=$srcdir
13305 ac_abs_top_srcdir=$srcdir ;;
13306 *) # Relative name.
13307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13308 ac_top_srcdir=$ac_top_build_prefix$srcdir
13309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13310esac
13311ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13312
13313
13314 case $ac_mode in
13315 :F)
13316 #
13317 # CONFIG_FILE
13318 #
13319
13320 case $INSTALL in
13321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13322 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13323 esac
13324 ac_MKDIR_P=$MKDIR_P
13325 case $MKDIR_P in
13326 [\\/$]* | ?:[\\/]* ) ;;
13327 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13328 esac
13329_ACEOF
13330
13331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13332# If the template does not know about datarootdir, expand it.
13333# FIXME: This hack should be removed a few years after 2.60.
13334ac_datarootdir_hack=; ac_datarootdir_seen=
13335ac_sed_dataroot='
13336/datarootdir/ {
13337 p
13338 q
13339}
13340/@datadir@/p
13341/@docdir@/p
13342/@infodir@/p
13343/@localedir@/p
13344/@mandir@/p'
13345case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13346*datarootdir*) ac_datarootdir_seen=yes;;
13347*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13349$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13350_ACEOF
13351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352 ac_datarootdir_hack='
13353 s&@datadir@&$datadir&g
13354 s&@docdir@&$docdir&g
13355 s&@infodir@&$infodir&g
13356 s&@localedir@&$localedir&g
13357 s&@mandir@&$mandir&g
13358 s&\\\${datarootdir}&$datarootdir&g' ;;
13359esac
13360_ACEOF
13361
13362# Neutralize VPATH when `$srcdir' = `.'.
13363# Shell code in configure.ac might set extrasub.
13364# FIXME: do we really want to maintain this feature?
13365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13366ac_sed_extra="$ac_vpsub
13367$extrasub
13368_ACEOF
13369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13370:t
13371/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13372s|@configure_input@|$ac_sed_conf_input|;t t
13373s&@top_builddir@&$ac_top_builddir_sub&;t t
13374s&@top_build_prefix@&$ac_top_build_prefix&;t t
13375s&@srcdir@&$ac_srcdir&;t t
13376s&@abs_srcdir@&$ac_abs_srcdir&;t t
13377s&@top_srcdir@&$ac_top_srcdir&;t t
13378s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13379s&@builddir@&$ac_builddir&;t t
13380s&@abs_builddir@&$ac_abs_builddir&;t t
13381s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13382s&@INSTALL@&$ac_INSTALL&;t t
13383s&@MKDIR_P@&$ac_MKDIR_P&;t t
13384$ac_datarootdir_hack
13385"
13386eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13387 || as_fn_error "could not create $ac_file" "$LINENO" 5
13388
13389test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13390 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13393which seems to be undefined. Please make sure it is defined." >&5
13394$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13395which seems to be undefined. Please make sure it is defined." >&2;}
13396
13397 rm -f "$tmp/stdin"
13398 case $ac_file in
13399 -) cat "$tmp/out" && rm -f "$tmp/out";;
13400 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13401 esac \
13402 || as_fn_error "could not create $ac_file" "$LINENO" 5
13403 ;;
48215350
DK
13404 :H)
13405 #
13406 # CONFIG_HEADER
13407 #
13408 if test x"$ac_file" != x-; then
13409 {
13410 $as_echo "/* $configure_input */" \
13411 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13412 } >"$tmp/config.h" \
13413 || as_fn_error "could not create $ac_file" "$LINENO" 5
13414 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13416$as_echo "$as_me: $ac_file is unchanged" >&6;}
13417 else
13418 rm -f "$ac_file"
13419 mv "$tmp/config.h" "$ac_file" \
13420 || as_fn_error "could not create $ac_file" "$LINENO" 5
13421 fi
13422 else
13423 $as_echo "/* $configure_input */" \
13424 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13425 || as_fn_error "could not create -" "$LINENO" 5
13426 fi
13427# Compute "$ac_file"'s index in $config_headers.
13428_am_arg="$ac_file"
13429_am_stamp_count=1
13430for _am_header in $config_headers :; do
13431 case $_am_header in
13432 $_am_arg | $_am_arg:* )
13433 break ;;
13434 * )
13435 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13436 esac
13437done
13438echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13439$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13440 X"$_am_arg" : 'X\(//\)[^/]' \| \
13441 X"$_am_arg" : 'X\(//\)$' \| \
13442 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13443$as_echo X"$_am_arg" |
13444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13445 s//\1/
13446 q
13447 }
13448 /^X\(\/\/\)[^/].*/{
13449 s//\1/
13450 q
13451 }
13452 /^X\(\/\/\)$/{
13453 s//\1/
13454 q
13455 }
13456 /^X\(\/\).*/{
13457 s//\1/
13458 q
13459 }
13460 s/.*/./; q'`/stamp-h$_am_stamp_count
13461 ;;
d7f09764
DN
13462
13463 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13464$as_echo "$as_me: executing $ac_file commands" >&6;}
13465 ;;
13466 esac
13467
13468
13469 case $ac_file$ac_mode in
13470 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13471 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13472 # are listed without --file. Let's play safe and only enable the eval
13473 # if we detect the quoting.
13474 case $CONFIG_FILES in
13475 *\'*) eval set x "$CONFIG_FILES" ;;
13476 *) set x $CONFIG_FILES ;;
13477 esac
13478 shift
13479 for mf
13480 do
13481 # Strip MF so we end up with the name of the file.
13482 mf=`echo "$mf" | sed -e 's/:.*$//'`
13483 # Check whether this is an Automake generated Makefile or not.
13484 # We used to match only the files named `Makefile.in', but
13485 # some people rename them; so instead we look at the file content.
13486 # Grep'ing the first line is not enough: some people post-process
13487 # each Makefile.in and add a new line on top of each file to say so.
13488 # Grep'ing the whole file is not good either: AIX grep has a line
13489 # limit of 2048, but all sed's we know have understand at least 4000.
13490 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13491 dirpart=`$as_dirname -- "$mf" ||
13492$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13493 X"$mf" : 'X\(//\)[^/]' \| \
13494 X"$mf" : 'X\(//\)$' \| \
13495 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13496$as_echo X"$mf" |
13497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13498 s//\1/
13499 q
13500 }
13501 /^X\(\/\/\)[^/].*/{
13502 s//\1/
13503 q
13504 }
13505 /^X\(\/\/\)$/{
13506 s//\1/
13507 q
13508 }
13509 /^X\(\/\).*/{
13510 s//\1/
13511 q
13512 }
13513 s/.*/./; q'`
13514 else
13515 continue
13516 fi
13517 # Extract the definition of DEPDIR, am__include, and am__quote
13518 # from the Makefile without running `make'.
13519 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13520 test -z "$DEPDIR" && continue
13521 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13522 test -z "am__include" && continue
13523 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13524 # When using ansi2knr, U may be empty or an underscore; expand it
13525 U=`sed -n 's/^U = //p' < "$mf"`
13526 # Find all dependency output files, they are included files with
13527 # $(DEPDIR) in their names. We invoke sed twice because it is the
13528 # simplest approach to changing $(DEPDIR) to its actual value in the
13529 # expansion.
13530 for file in `sed -n "
13531 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13532 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13533 # Make sure the directory exists.
13534 test -f "$dirpart/$file" && continue
13535 fdir=`$as_dirname -- "$file" ||
13536$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13537 X"$file" : 'X\(//\)[^/]' \| \
13538 X"$file" : 'X\(//\)$' \| \
13539 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13540$as_echo X"$file" |
13541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13542 s//\1/
13543 q
13544 }
13545 /^X\(\/\/\)[^/].*/{
13546 s//\1/
13547 q
13548 }
13549 /^X\(\/\/\)$/{
13550 s//\1/
13551 q
13552 }
13553 /^X\(\/\).*/{
13554 s//\1/
13555 q
13556 }
13557 s/.*/./; q'`
13558 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13559 # echo "creating $dirpart/$file"
13560 echo '# dummy' > "$dirpart/$file"
13561 done
13562 done
13563}
13564 ;;
13565 "libtool":C)
13566
13567 # See if we are running on zsh, and set the options which allow our
13568 # commands through without removal of \ escapes.
13569 if test -n "${ZSH_VERSION+set}" ; then
13570 setopt NO_GLOB_SUBST
13571 fi
13572
13573 cfgfile="${ofile}T"
13574 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13575 $RM "$cfgfile"
13576
13577 cat <<_LT_EOF >> "$cfgfile"
13578#! $SHELL
13579
13580# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13581# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13582# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13583# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13584#
13585# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 13586# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
13587# Written by Gordon Matzigkeit, 1996
13588#
13589# This file is part of GNU Libtool.
13590#
13591# GNU Libtool is free software; you can redistribute it and/or
13592# modify it under the terms of the GNU General Public License as
13593# published by the Free Software Foundation; either version 2 of
13594# the License, or (at your option) any later version.
13595#
13596# As a special exception to the GNU General Public License,
13597# if you distribute this file as part of a program or library that
13598# is built using GNU Libtool, you may include this file under the
13599# same distribution terms that you use for the rest of that program.
13600#
13601# GNU Libtool is distributed in the hope that it will be useful,
13602# but WITHOUT ANY WARRANTY; without even the implied warranty of
13603# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13604# GNU General Public License for more details.
13605#
13606# You should have received a copy of the GNU General Public License
13607# along with GNU Libtool; see the file COPYING. If not, a copy
13608# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13609# obtained by writing to the Free Software Foundation, Inc.,
13610# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13611
13612
13613# The names of the tagged configurations supported by this script.
13614available_tags=""
13615
13616# ### BEGIN LIBTOOL CONFIG
13617
13618# Which release of libtool.m4 was used?
13619macro_version=$macro_version
13620macro_revision=$macro_revision
13621
13622# Whether or not to build shared libraries.
13623build_libtool_libs=$enable_shared
13624
13625# Whether or not to build static libraries.
13626build_old_libs=$enable_static
13627
13628# What type of objects to build.
13629pic_mode=$pic_mode
13630
13631# Whether or not to optimize for fast installation.
13632fast_install=$enable_fast_install
13633
52327858
L
13634# Shell to use when invoking shell scripts.
13635SHELL=$lt_SHELL
13636
13637# An echo program that protects backslashes.
13638ECHO=$lt_ECHO
13639
d7f09764
DN
13640# The host system.
13641host_alias=$host_alias
13642host=$host
13643host_os=$host_os
13644
13645# The build system.
13646build_alias=$build_alias
13647build=$build
13648build_os=$build_os
13649
13650# A sed program that does not truncate output.
13651SED=$lt_SED
13652
13653# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13654Xsed="\$SED -e 1s/^X//"
13655
13656# A grep program that handles long lines.
13657GREP=$lt_GREP
13658
13659# An ERE matcher.
13660EGREP=$lt_EGREP
13661
13662# A literal string matcher.
13663FGREP=$lt_FGREP
13664
13665# A BSD- or MS-compatible name lister.
13666NM=$lt_NM
13667
13668# Whether we need soft or hard links.
13669LN_S=$lt_LN_S
13670
13671# What is the maximum length of a command?
13672max_cmd_len=$max_cmd_len
13673
13674# Object file suffix (normally "o").
13675objext=$ac_objext
13676
13677# Executable file suffix (normally "").
13678exeext=$exeext
13679
13680# whether the shell understands "unset".
13681lt_unset=$lt_unset
13682
13683# turn spaces into newlines.
13684SP2NL=$lt_lt_SP2NL
13685
13686# turn newlines into spaces.
13687NL2SP=$lt_lt_NL2SP
13688
d7f09764
DN
13689# An object symbol dumper.
13690OBJDUMP=$lt_OBJDUMP
13691
13692# Method to check whether dependent libraries are shared objects.
13693deplibs_check_method=$lt_deplibs_check_method
13694
13695# Command to use when deplibs_check_method == "file_magic".
13696file_magic_cmd=$lt_file_magic_cmd
13697
13698# The archiver.
13699AR=$lt_AR
13700AR_FLAGS=$lt_AR_FLAGS
13701
13702# A symbol stripping program.
13703STRIP=$lt_STRIP
13704
13705# Commands used to install an old-style archive.
13706RANLIB=$lt_RANLIB
13707old_postinstall_cmds=$lt_old_postinstall_cmds
13708old_postuninstall_cmds=$lt_old_postuninstall_cmds
13709
52327858
L
13710# Whether to use a lock for old archive extraction.
13711lock_old_archive_extraction=$lock_old_archive_extraction
13712
d7f09764
DN
13713# A C compiler.
13714LTCC=$lt_CC
13715
13716# LTCC compiler flags.
13717LTCFLAGS=$lt_CFLAGS
13718
13719# Take the output of nm and produce a listing of raw symbols and C names.
13720global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13721
13722# Transform the output of nm in a proper C declaration.
13723global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13724
13725# Transform the output of nm in a C name address pair.
13726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13727
13728# Transform the output of nm in a C name address pair when lib prefix is needed.
13729global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13730
13731# The name of the directory that contains temporary libtool files.
13732objdir=$objdir
13733
d7f09764
DN
13734# Used to examine libraries when file_magic_cmd begins with "file".
13735MAGIC_CMD=$MAGIC_CMD
13736
13737# Must we lock files when doing compilation?
13738need_locks=$lt_need_locks
13739
13740# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13741DSYMUTIL=$lt_DSYMUTIL
13742
13743# Tool to change global to local symbols on Mac OS X.
13744NMEDIT=$lt_NMEDIT
13745
13746# Tool to manipulate fat objects and archives on Mac OS X.
13747LIPO=$lt_LIPO
13748
13749# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13750OTOOL=$lt_OTOOL
13751
13752# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13753OTOOL64=$lt_OTOOL64
13754
13755# Old archive suffix (normally "a").
13756libext=$libext
13757
13758# Shared library suffix (normally ".so").
13759shrext_cmds=$lt_shrext_cmds
13760
13761# The commands to extract the exported symbol list from a shared archive.
13762extract_expsyms_cmds=$lt_extract_expsyms_cmds
13763
13764# Variables whose values should be saved in libtool wrapper scripts and
13765# restored at link time.
13766variables_saved_for_relink=$lt_variables_saved_for_relink
13767
13768# Do we need the "lib" prefix for modules?
13769need_lib_prefix=$need_lib_prefix
13770
13771# Do we need a version for libraries?
13772need_version=$need_version
13773
13774# Library versioning type.
13775version_type=$version_type
13776
13777# Shared library runtime path variable.
13778runpath_var=$runpath_var
13779
13780# Shared library path variable.
13781shlibpath_var=$shlibpath_var
13782
13783# Is shlibpath searched before the hard-coded library search path?
13784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13785
13786# Format of library name prefix.
13787libname_spec=$lt_libname_spec
13788
13789# List of archive names. First name is the real one, the rest are links.
13790# The last name is the one that the linker finds with -lNAME
13791library_names_spec=$lt_library_names_spec
13792
13793# The coded name of the library, if different from the real name.
13794soname_spec=$lt_soname_spec
13795
52327858
L
13796# Permission mode override for installation of shared libraries.
13797install_override_mode=$lt_install_override_mode
13798
d7f09764
DN
13799# Command to use after installation of a shared archive.
13800postinstall_cmds=$lt_postinstall_cmds
13801
13802# Command to use after uninstallation of a shared archive.
13803postuninstall_cmds=$lt_postuninstall_cmds
13804
13805# Commands used to finish a libtool library installation in a directory.
13806finish_cmds=$lt_finish_cmds
13807
13808# As "finish_cmds", except a single script fragment to be evaled but
13809# not shown.
13810finish_eval=$lt_finish_eval
13811
13812# Whether we should hardcode library paths into libraries.
13813hardcode_into_libs=$hardcode_into_libs
13814
13815# Compile-time system search path for libraries.
13816sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13817
13818# Run-time system search path for libraries.
13819sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13820
13821# Whether dlopen is supported.
13822dlopen_support=$enable_dlopen
13823
13824# Whether dlopen of programs is supported.
13825dlopen_self=$enable_dlopen_self
13826
13827# Whether dlopen of statically linked programs is supported.
13828dlopen_self_static=$enable_dlopen_self_static
13829
13830# Commands to strip libraries.
13831old_striplib=$lt_old_striplib
13832striplib=$lt_striplib
13833
13834
13835# The linker used to build libraries.
13836LD=$lt_LD
13837
52327858
L
13838# How to create reloadable object files.
13839reload_flag=$lt_reload_flag
13840reload_cmds=$lt_reload_cmds
13841
d7f09764
DN
13842# Commands used to build an old-style archive.
13843old_archive_cmds=$lt_old_archive_cmds
13844
13845# A language specific compiler.
13846CC=$lt_compiler
13847
13848# Is the compiler the GNU compiler?
13849with_gcc=$GCC
13850
13851# Compiler flag to turn off builtin functions.
13852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13853
13854# How to pass a linker flag through the compiler.
13855wl=$lt_lt_prog_compiler_wl
13856
13857# Additional compiler flags for building library objects.
13858pic_flag=$lt_lt_prog_compiler_pic
13859
13860# Compiler flag to prevent dynamic linking.
13861link_static_flag=$lt_lt_prog_compiler_static
13862
13863# Does compiler simultaneously support -c and -o options?
13864compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13865
13866# Whether or not to add -lc for building shared libraries.
13867build_libtool_need_lc=$archive_cmds_need_lc
13868
13869# Whether or not to disallow shared libs when runtime libs are static.
13870allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13871
13872# Compiler flag to allow reflexive dlopens.
13873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13874
13875# Compiler flag to generate shared objects directly from archives.
13876whole_archive_flag_spec=$lt_whole_archive_flag_spec
13877
13878# Whether the compiler copes with passing no objects directly.
13879compiler_needs_object=$lt_compiler_needs_object
13880
13881# Create an old-style archive from a shared archive.
13882old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13883
13884# Create a temporary old-style archive to link instead of a shared archive.
13885old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13886
13887# Commands used to build a shared archive.
13888archive_cmds=$lt_archive_cmds
13889archive_expsym_cmds=$lt_archive_expsym_cmds
13890
13891# Commands used to build a loadable module if different from building
13892# a shared archive.
13893module_cmds=$lt_module_cmds
13894module_expsym_cmds=$lt_module_expsym_cmds
13895
13896# Whether we are building with GNU ld or not.
13897with_gnu_ld=$lt_with_gnu_ld
13898
13899# Flag that allows shared libraries with undefined symbols to be built.
13900allow_undefined_flag=$lt_allow_undefined_flag
13901
13902# Flag that enforces no undefined symbols.
13903no_undefined_flag=$lt_no_undefined_flag
13904
13905# Flag to hardcode \$libdir into a binary during linking.
13906# This must work even if \$libdir does not exist
13907hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13908
13909# If ld is used when linking, flag to hardcode \$libdir into a binary
13910# during linking. This must work even if \$libdir does not exist.
13911hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13912
13913# Whether we need a single "-rpath" flag with a separated argument.
13914hardcode_libdir_separator=$lt_hardcode_libdir_separator
13915
13916# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13917# DIR into the resulting binary.
13918hardcode_direct=$hardcode_direct
13919
13920# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13921# DIR into the resulting binary and the resulting library dependency is
13922# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13923# library is relocated.
13924hardcode_direct_absolute=$hardcode_direct_absolute
13925
13926# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13927# into the resulting binary.
13928hardcode_minus_L=$hardcode_minus_L
13929
13930# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13931# into the resulting binary.
13932hardcode_shlibpath_var=$hardcode_shlibpath_var
13933
13934# Set to "yes" if building a shared library automatically hardcodes DIR
13935# into the library and all subsequent libraries and executables linked
13936# against it.
13937hardcode_automatic=$hardcode_automatic
13938
13939# Set to yes if linker adds runtime paths of dependent libraries
13940# to runtime path list.
13941inherit_rpath=$inherit_rpath
13942
13943# Whether libtool must link a program against all its dependency libraries.
13944link_all_deplibs=$link_all_deplibs
13945
13946# Fix the shell variable \$srcfile for the compiler.
13947fix_srcfile_path=$lt_fix_srcfile_path
13948
13949# Set to "yes" if exported symbols are required.
13950always_export_symbols=$always_export_symbols
13951
13952# The commands to list exported symbols.
13953export_symbols_cmds=$lt_export_symbols_cmds
13954
13955# Symbols that should not be listed in the preloaded symbols.
13956exclude_expsyms=$lt_exclude_expsyms
13957
13958# Symbols that must always be exported.
13959include_expsyms=$lt_include_expsyms
13960
13961# Commands necessary for linking programs (against libraries) with templates.
13962prelink_cmds=$lt_prelink_cmds
13963
13964# Specify filename containing input files.
13965file_list_spec=$lt_file_list_spec
13966
13967# How to hardcode a shared library path into an executable.
13968hardcode_action=$hardcode_action
13969
13970# ### END LIBTOOL CONFIG
13971
13972_LT_EOF
13973
13974 case $host_os in
13975 aix3*)
13976 cat <<\_LT_EOF >> "$cfgfile"
13977# AIX sometimes has problems with the GCC collect2 program. For some
13978# reason, if we set the COLLECT_NAMES environment variable, the problems
13979# vanish in a puff of smoke.
13980if test "X${COLLECT_NAMES+set}" != Xset; then
13981 COLLECT_NAMES=
13982 export COLLECT_NAMES
13983fi
13984_LT_EOF
13985 ;;
13986 esac
13987
13988
13989ltmain="$ac_aux_dir/ltmain.sh"
13990
13991
13992 # We use sed instead of cat because bash on DJGPP gets confused if
13993 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13994 # text mode, it properly converts lines to CR/LF. This bash problem
13995 # is reportedly fixed, but why not run on old versions too?
13996 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13997 || (rm -f "$cfgfile"; exit 1)
13998
13999 case $xsi_shell in
14000 yes)
14001 cat << \_LT_EOF >> "$cfgfile"
14002
14003# func_dirname file append nondir_replacement
14004# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14005# otherwise set result to NONDIR_REPLACEMENT.
14006func_dirname ()
14007{
14008 case ${1} in
14009 */*) func_dirname_result="${1%/*}${2}" ;;
14010 * ) func_dirname_result="${3}" ;;
14011 esac
14012}
14013
14014# func_basename file
14015func_basename ()
14016{
14017 func_basename_result="${1##*/}"
14018}
14019
14020# func_dirname_and_basename file append nondir_replacement
14021# perform func_basename and func_dirname in a single function
14022# call:
14023# dirname: Compute the dirname of FILE. If nonempty,
14024# add APPEND to the result, otherwise set result
14025# to NONDIR_REPLACEMENT.
14026# value returned in "$func_dirname_result"
14027# basename: Compute filename of FILE.
14028# value retuned in "$func_basename_result"
14029# Implementation must be kept synchronized with func_dirname
14030# and func_basename. For efficiency, we do not delegate to
14031# those functions but instead duplicate the functionality here.
14032func_dirname_and_basename ()
14033{
14034 case ${1} in
14035 */*) func_dirname_result="${1%/*}${2}" ;;
14036 * ) func_dirname_result="${3}" ;;
14037 esac
14038 func_basename_result="${1##*/}"
14039}
14040
14041# func_stripname prefix suffix name
14042# strip PREFIX and SUFFIX off of NAME.
14043# PREFIX and SUFFIX must not contain globbing or regex special
14044# characters, hashes, percent signs, but SUFFIX may contain a leading
14045# dot (in which case that matches only a dot).
14046func_stripname ()
14047{
14048 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14049 # positional parameters, so assign one to ordinary parameter first.
14050 func_stripname_result=${3}
14051 func_stripname_result=${func_stripname_result#"${1}"}
14052 func_stripname_result=${func_stripname_result%"${2}"}
14053}
14054
14055# func_opt_split
14056func_opt_split ()
14057{
14058 func_opt_split_opt=${1%%=*}
14059 func_opt_split_arg=${1#*=}
14060}
14061
14062# func_lo2o object
14063func_lo2o ()
14064{
14065 case ${1} in
14066 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14067 *) func_lo2o_result=${1} ;;
14068 esac
14069}
14070
14071# func_xform libobj-or-source
14072func_xform ()
14073{
14074 func_xform_result=${1%.*}.lo
14075}
14076
14077# func_arith arithmetic-term...
14078func_arith ()
14079{
14080 func_arith_result=$(( $* ))
14081}
14082
14083# func_len string
14084# STRING may not start with a hyphen.
14085func_len ()
14086{
14087 func_len_result=${#1}
14088}
14089
14090_LT_EOF
14091 ;;
14092 *) # Bourne compatible functions.
14093 cat << \_LT_EOF >> "$cfgfile"
14094
14095# func_dirname file append nondir_replacement
14096# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14097# otherwise set result to NONDIR_REPLACEMENT.
14098func_dirname ()
14099{
14100 # Extract subdirectory from the argument.
52327858 14101 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
14102 if test "X$func_dirname_result" = "X${1}"; then
14103 func_dirname_result="${3}"
14104 else
14105 func_dirname_result="$func_dirname_result${2}"
14106 fi
14107}
14108
14109# func_basename file
14110func_basename ()
14111{
52327858 14112 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
14113}
14114
14115
14116# func_stripname prefix suffix name
14117# strip PREFIX and SUFFIX off of NAME.
14118# PREFIX and SUFFIX must not contain globbing or regex special
14119# characters, hashes, percent signs, but SUFFIX may contain a leading
14120# dot (in which case that matches only a dot).
14121# func_strip_suffix prefix name
14122func_stripname ()
14123{
14124 case ${2} in
52327858
L
14125 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14126 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
14127 esac
14128}
14129
14130# sed scripts:
14131my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14132my_sed_long_arg='1s/^-[^=]*=//'
14133
14134# func_opt_split
14135func_opt_split ()
14136{
52327858
L
14137 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14138 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
14139}
14140
14141# func_lo2o object
14142func_lo2o ()
14143{
52327858 14144 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
14145}
14146
14147# func_xform libobj-or-source
14148func_xform ()
14149{
52327858 14150 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
14151}
14152
14153# func_arith arithmetic-term...
14154func_arith ()
14155{
14156 func_arith_result=`expr "$@"`
14157}
14158
14159# func_len string
14160# STRING may not start with a hyphen.
14161func_len ()
14162{
14163 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14164}
14165
14166_LT_EOF
14167esac
14168
14169case $lt_shell_append in
14170 yes)
14171 cat << \_LT_EOF >> "$cfgfile"
14172
14173# func_append var value
14174# Append VALUE to the end of shell variable VAR.
14175func_append ()
14176{
14177 eval "$1+=\$2"
14178}
14179_LT_EOF
14180 ;;
14181 *)
14182 cat << \_LT_EOF >> "$cfgfile"
14183
14184# func_append var value
14185# Append VALUE to the end of shell variable VAR.
14186func_append ()
14187{
14188 eval "$1=\$$1\$2"
14189}
14190
14191_LT_EOF
14192 ;;
14193 esac
14194
14195
14196 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14197 || (rm -f "$cfgfile"; exit 1)
14198
14199 mv -f "$cfgfile" "$ofile" ||
14200 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14201 chmod +x "$ofile"
14202
14203 ;;
14204
14205 esac
14206done # for ac_tag
14207
14208
14209as_fn_exit 0
14210_ACEOF
14211ac_clean_files=$ac_clean_files_save
14212
14213test $ac_write_fail = 0 ||
14214 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14215
14216
14217# configure is writing to config.log, and then calls config.status.
14218# config.status does its own redirection, appending to config.log.
14219# Unfortunately, on DOS this fails, as config.log is still kept open
14220# by configure, so config.status won't be able to write to it; its
14221# output is simply discarded. So we exec the FD to /dev/null,
14222# effectively closing config.log, so it can be properly (re)opened and
14223# appended to by config.status. When coming back to configure, we
14224# need to make the FD available again.
14225if test "$no_create" != yes; then
14226 ac_cs_success=:
14227 ac_config_status_args=
14228 test "$silent" = yes &&
14229 ac_config_status_args="$ac_config_status_args --quiet"
14230 exec 5>/dev/null
14231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14232 exec 5>>config.log
14233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14234 # would make configure fail if this is the last instruction.
14235 $ac_cs_success || as_fn_exit $?
14236fi
14237if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14239$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14240fi
14241