]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure
Daily bump.
[thirdparty/gcc.git] / lto-plugin / configure
CommitLineData
d7f09764
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
d7f09764 7#
d7f09764
DN
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.
22e05272 90as_myself=
d7f09764
DN
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
d7f09764
DN
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
d7f09764
DN
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
dcbc9df9 199test \$(( 1 + 1 )) = 2 || exit 1
52327858
L
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
dcbc9df9 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
d7f09764
DN
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
d7f09764
DN
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d7f09764
DN
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
d7f09764
DN
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
d7f09764
DN
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
d7f09764
DN
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d7f09764 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
d7f09764
DN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
d7f09764 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
d7f09764
DN
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
d7f09764
DN
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
d7f09764
DN
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
d7f09764
DN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7f09764
DN
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7f09764 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
d7f09764
DN
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d7f09764
DN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='LTO plugin for ld'
589PACKAGE_TARNAME='lto-plugin'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='LTO plugin for ld 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635target_noncanonical
7de6ba7a 636lt_host_flags
d7f09764
DN
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
d7f09764
DN
642RANLIB
643AR
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LD
650FGREP
d7f09764 651SED
d7f09764 652LIBTOOL
29f40a80 653ac_lto_plugin_extra_ldflags
6ee58926
JJ
654LTO_PLUGIN_USE_SYMVER_SUN_FALSE
655LTO_PLUGIN_USE_SYMVER_SUN_TRUE
656LTO_PLUGIN_USE_SYMVER_GNU_FALSE
657LTO_PLUGIN_USE_SYMVER_GNU_TRUE
658LTO_PLUGIN_USE_SYMVER_FALSE
659LTO_PLUGIN_USE_SYMVER_TRUE
3c36aa6b 660get_gcc_base_ver
85c64bbe
BS
661real_target_noncanonical
662accel_dir_suffix
43f4a446 663gcc_build_dir
8fc8bf80 664CET_HOST_FLAGS
5523efdf 665ac_lto_plugin_ldflags
33ebb0df 666enable_host_bind_now
f3016c47 667ac_lto_plugin_warn_cflags
dcbc9df9
UB
668EGREP
669GREP
670CPP
d7f09764
DN
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
ed9b4ae3 674am__nodep
d7f09764
DN
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
2a7a8388 688with_libiberty
03428d41
RG
689MAINT
690MAINTAINER_MODE_FALSE
691MAINTAINER_MODE_TRUE
22e05272
JM
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
d7f09764
DN
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_subdir
720host_subdir
721build_subdir
722build_libsubdir
73d5e770
L
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
d7f09764
DN
731build_os
732build_vendor
733build_cpu
734build
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776with_build_libsubdir
22e05272 777enable_silent_rules
03428d41 778enable_maintainer_mode
2a7a8388 779with_libiberty
d7f09764 780enable_dependency_tracking
4c0f4b0b 781enable_largefile
33ebb0df 782enable_host_bind_now
8fc8bf80 783enable_cet
3c36aa6b 784with_gcc_major_version_only
d7f09764
DN
785enable_shared
786enable_static
787with_pic
788enable_fast_install
789with_gnu_ld
790enable_libtool_lock
d7f09764
DN
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
d7f09764
DN
800CPP'
801
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
22e05272
JM
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
d7f09764
DN
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 910 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 936 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1140 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1156 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
22e05272
JM
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
d7f09764
DN
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
d7f09764
DN
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d7f09764
DN
1206 ;;
1207
1208 esac
1209done
1210
1211if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1213 as_fn_error $? "missing argument to $ac_option"
d7f09764
DN
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
22e05272 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
d7f09764
DN
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
22e05272 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d7f09764
DN
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
d7f09764
DN
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259fi
1260
1261ac_tool_prefix=
1262test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264test "$silent" = yes && exec 6>/dev/null
1265
1266
1267ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268ac_ls_di=`ls -di .` &&
1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1270 as_fn_error $? "working directory cannot be determined"
d7f09764 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1272 as_fn_error $? "pwd does not report name of working directory"
d7f09764
DN
1273
1274
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d7f09764
DN
1312fi
1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314ac_abs_confdir=`(
22e05272 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
d7f09764
DN
1316 pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
1333
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1342
1343Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348Defaults for the options are specified in brackets.
1349
1350Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
22e05272 1355 -q, --quiet, --silent do not print \`checking ...' messages
d7f09764
DN
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
1371
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394_ACEOF
1395
1396 cat <<\_ACEOF
1397
1398Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
73d5e770 1406 --target=TARGET configure for building compilers for TARGET [HOST]
d7f09764
DN
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1413 esac
1414 cat <<\_ACEOF
1415
1416Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-maintainer-mode
1423 enable make rules and dependencies not useful (and
1424 sometimes confusing) to the casual installer
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
4c0f4b0b 1429 --disable-largefile omit support for large files
33ebb0df 1430 --enable-host-bind-now link host code as BIND_NOW
8fc8bf80 1431 --enable-cet enable Intel CET in host libraries [default=auto]
d7f09764
DN
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-build-libsubdir=DIR Directory where to find libraries for build system
2a7a8388
TS
1442 --with-libiberty=PATH specify the directory where to find libiberty
1443 [../libiberty]
3c36aa6b
JJ
1444 --with-gcc-major-version-only
1445 use only GCC major number in filesystem paths
d7f09764
DN
1446 --with-pic try to use only PIC/non-PIC objects [default=use
1447 both]
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449
1450Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
d7f09764 1457 you have headers in a nonstandard directory <include dir>
d7f09764
DN
1458 CPP C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to the package provider.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525 cat <<\_ACEOF
1526LTO plugin for ld configure 0.1
22e05272 1527generated by GNU Autoconf 2.69
d7f09764 1528
22e05272 1529Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533 exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572fi
22e05272
JM
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
d7f09764
DN
1575
1576} # ac_fn_c_try_compile
1577
dcbc9df9
UB
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
d7f09764
DN
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dcbc9df9 1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
d7f09764
DN
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
dcbc9df9 1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d7f09764
DN
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1599 test $ac_status = 0; } > conftest.i && {
dcbc9df9 1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d7f09764 1601 test ! -s conftest.err
d7f09764
DN
1602 }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
dcbc9df9 1608 ac_retval=1
d7f09764 1609fi
22e05272
JM
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
d7f09764 1612
dcbc9df9 1613} # ac_fn_c_try_cpp
d7f09764 1614
dcbc9df9 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
d7f09764 1616# -------------------------------------------------------
dcbc9df9
UB
1617# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618# the include files in INCLUDES and setting the cache variable VAR
1619# accordingly.
1620ac_fn_c_check_header_mongrel ()
d7f09764
DN
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1623 if eval \${$3+:} false; then :
d7f09764
DN
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
22e05272 1626if eval \${$3+:} false; then :
d7f09764 1627 $as_echo_n "(cached) " >&6
dcbc9df9
UB
1628fi
1629eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
d7f09764 1632else
dcbc9df9
UB
1633 # Is the header compilable?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635$as_echo_n "checking $2 usability... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764
DN
1637/* end confdefs.h. */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 1642 ac_header_compiler=yes
d7f09764 1643else
dcbc9df9 1644 ac_header_compiler=no
d7f09764
DN
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcbc9df9
UB
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648$as_echo "$ac_header_compiler" >&6; }
1649
1650# Is the header present?
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652$as_echo_n "checking $2 presence... " >&6; }
1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_cpp "$LINENO"; then :
1658 ac_header_preproc=yes
1659else
1660 ac_header_preproc=no
1661fi
22e05272 1662rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664$as_echo "$ac_header_preproc" >&6; }
1665
1666# So? What about this header?
1667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 yes:no: )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ;;
1674 no:yes:* )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686esac
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
22e05272 1689if eval \${$3+:} false; then :
dcbc9df9
UB
1690 $as_echo_n "(cached) " >&6
1691else
1692 eval "$3=\$ac_header_compiler"
d7f09764
DN
1693fi
1694eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
d7f09764 1697fi
22e05272 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d7f09764 1699
dcbc9df9 1700} # ac_fn_c_check_header_mongrel
d7f09764
DN
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
d7f09764
DN
1741
1742} # ac_fn_c_try_run
1743
dcbc9df9
UB
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
22e05272 1753if eval \${$3+:} false; then :
dcbc9df9
UB
1754 $as_echo_n "(cached) " >&6
1755else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762 eval "$3=yes"
1763else
1764 eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
22e05272 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dcbc9df9
UB
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
22e05272 1802 test -x conftest$ac_exeext
dcbc9df9
UB
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
dcbc9df9
UB
1818
1819} # ac_fn_c_try_link
1820
d7f09764
DN
1821# ac_fn_c_check_func LINENO FUNC VAR
1822# ----------------------------------
1823# Tests whether FUNC exists, setting the cache variable VAR accordingly
1824ac_fn_c_check_func ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
22e05272 1829if eval \${$3+:} false; then :
d7f09764
DN
1830 $as_echo_n "(cached) " >&6
1831else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836#define $2 innocuous_$2
1837
1838/* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1842
1843#ifdef __STDC__
1844# include <limits.h>
1845#else
1846# include <assert.h>
1847#endif
1848
1849#undef $2
1850
1851/* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854#ifdef __cplusplus
1855extern "C"
1856#endif
1857char $2 ();
1858/* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861#if defined __stub_$2 || defined __stub___$2
1862choke me
1863#endif
1864
1865int
1866main ()
1867{
1868return $2 ();
1869 ;
1870 return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875else
1876 eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1880fi
1881eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
22e05272 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d7f09764
DN
1885
1886} # ac_fn_c_check_func
21750c78 1887
d19e0f01
DK
1888# ac_fn_c_find_intX_t LINENO BITS VAR
1889# -----------------------------------
1890# Finds a signed integer type with width BITS, setting cache variable VAR
1891# accordingly.
1892ac_fn_c_find_intX_t ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1896$as_echo_n "checking for int$2_t... " >&6; }
22e05272 1897if eval \${$3+:} false; then :
d19e0f01
DK
1898 $as_echo_n "(cached) " >&6
1899else
1900 eval "$3=no"
22e05272
JM
1901 # Order is important - never check a type that is potentially smaller
1902 # than half of the expected target width.
d19e0f01
DK
1903 for ac_type in int$2_t 'int' 'long int' \
1904 'long long int' 'short int' 'signed char'; do
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$ac_includes_default
22e05272 1908 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1909int
1910main ()
1911{
22e05272
JM
1912static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1913test_array [0] = 0;
1914return test_array [0];
d19e0f01
DK
1915
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$ac_includes_default
22e05272 1924 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1925int
1926main ()
1927{
22e05272
JM
1928static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1929 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1930test_array [0] = 0;
1931return test_array [0];
d19e0f01
DK
1932
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938
1939else
1940 case $ac_type in #(
1941 int$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945esac
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 1950 if eval test \"x\$"$3"\" = x"no"; then :
d19e0f01
DK
1951
1952else
1953 break
1954fi
1955 done
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
22e05272 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d19e0f01
DK
1961
1962} # ac_fn_c_find_intX_t
1963
21750c78
RE
1964# ac_fn_c_find_uintX_t LINENO BITS VAR
1965# ------------------------------------
1966# Finds an unsigned integer type with width BITS, setting cache variable VAR
1967# accordingly.
1968ac_fn_c_find_uintX_t ()
1969{
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1972$as_echo_n "checking for uint$2_t... " >&6; }
22e05272 1973if eval \${$3+:} false; then :
21750c78
RE
1974 $as_echo_n "(cached) " >&6
1975else
1976 eval "$3=no"
22e05272
JM
1977 # Order is important - never check a type that is potentially smaller
1978 # than half of the expected target width.
21750c78
RE
1979 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1980 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$ac_includes_default
1984int
1985main ()
1986{
22e05272
JM
1987static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1988test_array [0] = 0;
1989return test_array [0];
21750c78
RE
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 case $ac_type in #(
1997 uint$2_t) :
1998 eval "$3=yes" ;; #(
1999 *) :
2000 eval "$3=\$ac_type" ;;
2001esac
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 2004 if eval test \"x\$"$3"\" = x"no"; then :
21750c78
RE
2005
2006else
2007 break
2008fi
2009 done
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
22e05272 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21750c78
RE
2015
2016} # ac_fn_c_find_uintX_t
d7f09764
DN
2017cat >config.log <<_ACEOF
2018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
2021It was created by LTO plugin for ld $as_me 0.1, which was
22e05272 2022generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
2023
2024 $ $0 $@
2025
2026_ACEOF
2027exec 5>>config.log
2028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2059 done
2060IFS=$as_save_IFS
2061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
2082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 case $ac_pass in
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 2)
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2113 fi
2114 as_fn_append ac_configure_args " '$ac_arg'"
2115 ;;
2116 esac
2117 done
2118done
2119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
2121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
2125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
22e05272 2132 $as_echo "## ---------------- ##
d7f09764 2133## Cache variables. ##
22e05272 2134## ---------------- ##"
d7f09764
DN
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2160 *)
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 ;;
2163 esac |
2164 sort
2165)
2166 echo
2167
22e05272 2168 $as_echo "## ----------------- ##
d7f09764 2169## Output variables. ##
22e05272 2170## ----------------- ##"
d7f09764
DN
2171 echo
2172 for ac_var in $ac_subst_vars
2173 do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
22e05272 2183 $as_echo "## ------------------- ##
d7f09764 2184## File substitutions. ##
22e05272 2185## ------------------- ##"
d7f09764
DN
2186 echo
2187 for ac_var in $ac_subst_files
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
22e05272 2199 $as_echo "## ----------- ##
d7f09764 2200## confdefs.h. ##
22e05272 2201## ----------- ##"
d7f09764
DN
2202 echo
2203 cat confdefs.h
2204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2209 } >&5
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 exit $exit_status
2213' 0
2214for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
2220rm -f -r conftest* confdefs.h
2221
2222$as_echo "/* confdefs.h */" > confdefs.h
2223
2224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
2250
2251# Let the site file select an alternate cache file if it wants to.
2252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
2255if test -n "$CONFIG_SITE"; then
22e05272
JM
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
d7f09764
DN
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2268fi
2269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
22e05272 2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
d7f09764
DN
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
2281 fi
2282done
2283
2284if test -r "$cache_file"; then
22e05272
JM
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
d7f09764
DN
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2294 fi
2295else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
2304for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,set)
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d7f09764
DN
2357fi
2358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
2361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
2370
2371
2372ac_aux_dir=
2373for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2374 if test -f "$ac_dir/install-sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2377 break
2378 elif test -f "$ac_dir/install.sh"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2381 break
2382 elif test -f "$ac_dir/shtool"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2385 break
2386 fi
d7f09764
DN
2387done
2388if test -z "$ac_aux_dir"; then
22e05272 2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
d7f09764
DN
2390fi
2391
2392# These three variables are undocumented and unsupported,
2393# and are intended to be withdrawn in a future Autoconf release.
2394# They can cause serious problems if a builder's source tree is in a directory
2395# whose full name contains unusual characters.
2396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2399
2400
2401# Make sure we can run config.sub.
2402$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2403 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d7f09764
DN
2404
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2406$as_echo_n "checking build system type... " >&6; }
22e05272 2407if ${ac_cv_build+:} false; then :
d7f09764
DN
2408 $as_echo_n "(cached) " >&6
2409else
2410 ac_build_alias=$build_alias
2411test "x$ac_build_alias" = x &&
2412 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2413test "x$ac_build_alias" = x &&
22e05272 2414 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
d7f09764 2415ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2416 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d7f09764
DN
2417
2418fi
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2420$as_echo "$ac_cv_build" >&6; }
2421case $ac_cv_build in
2422*-*-*) ;;
22e05272 2423*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
d7f09764
DN
2424esac
2425build=$ac_cv_build
2426ac_save_IFS=$IFS; IFS='-'
2427set x $ac_cv_build
2428shift
2429build_cpu=$1
2430build_vendor=$2
2431shift; shift
2432# Remember, the first character of IFS is used to create $*,
2433# except with old shells:
2434build_os=$*
2435IFS=$ac_save_IFS
2436case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2437
2438
73d5e770
L
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440$as_echo_n "checking host system type... " >&6; }
22e05272 2441if ${ac_cv_host+:} false; then :
73d5e770
L
2442 $as_echo_n "(cached) " >&6
2443else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
73d5e770
L
2449fi
2450
2451fi
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453$as_echo "$ac_cv_host" >&6; }
2454case $ac_cv_host in
2455*-*-*) ;;
22e05272 2456*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
73d5e770
L
2457esac
2458host=$ac_cv_host
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_host
2461shift
2462host_cpu=$1
2463host_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467host_os=$*
2468IFS=$ac_save_IFS
2469case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473$as_echo_n "checking target system type... " >&6; }
22e05272 2474if ${ac_cv_target+:} false; then :
73d5e770
L
2475 $as_echo_n "(cached) " >&6
2476else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
73d5e770
L
2482fi
2483
2484fi
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486$as_echo "$ac_cv_target" >&6; }
2487case $ac_cv_target in
2488*-*-*) ;;
22e05272 2489*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
73d5e770
L
2490esac
2491target=$ac_cv_target
2492ac_save_IFS=$IFS; IFS='-'
2493set x $ac_cv_target
2494shift
2495target_cpu=$1
2496target_vendor=$2
2497shift; shift
2498# Remember, the first character of IFS is used to create $*,
2499# except with old shells:
2500target_os=$*
2501IFS=$ac_save_IFS
2502case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505# The aliases save the names the user supplied, while $host etc.
2506# will get canonicalized.
2507test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2511
d7f09764
DN
2512 case ${build_alias} in
2513 "") build_noncanonical=${build} ;;
2514 *) build_noncanonical=${build_alias} ;;
2515esac
2516
2517 case ${host_alias} in
2518 "") host_noncanonical=${build_noncanonical} ;;
2519 *) host_noncanonical=${host_alias} ;;
2520esac
2521
2522 case ${target_alias} in
2523 "") target_noncanonical=${host_noncanonical} ;;
2524 *) target_noncanonical=${target_alias} ;;
2525esac
2526
2527
2528# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2529# have matching libraries, they should use host libraries: Makefile.tpl
2530# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2531# However, they still use the build modules, because the corresponding
2532# host modules (e.g. bison) are only built for the host when bootstrap
2533# finishes. So:
2534# - build_subdir is where we find build modules, and never changes.
2535# - build_libsubdir is where we find build libraries, and can be overridden.
2536
2537# Prefix 'build-' so this never conflicts with target_subdir.
2538build_subdir="build-${build_noncanonical}"
2539
2540# Check whether --with-build-libsubdir was given.
2541if test "${with_build_libsubdir+set}" = set; then :
2542 withval=$with_build_libsubdir; build_libsubdir="$withval"
2543else
2544 build_libsubdir="$build_subdir"
2545fi
2546
2547# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2548if ( test $srcdir = . && test -d gcc ) \
2549 || test -d $srcdir/../host-${host_noncanonical}; then
2550 host_subdir="host-${host_noncanonical}"
2551else
2552 host_subdir=.
2553fi
2554# No prefix.
2555target_subdir=${target_noncanonical}
2556
22e05272 2557am__api_version='1.15'
d7f09764
DN
2558
2559# Find a good install program. We prefer a C program (faster),
2560# so one script is as good as another. But avoid the broken or
2561# incompatible versions:
2562# SysV /etc/install, /usr/sbin/install
2563# SunOS /usr/etc/install
2564# IRIX /sbin/install
2565# AIX /bin/install
2566# AmigaOS /C/install, which installs bootblocks on floppy discs
2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570# OS/2's system install, which has a completely different semantic
2571# ./install, which can be erroneously created by make from ./install.sh.
2572# Reject install programs that cannot install multiple files.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574$as_echo_n "checking for a BSD-compatible install... " >&6; }
2575if test -z "$INSTALL"; then
22e05272 2576if ${ac_cv_path_install+:} false; then :
d7f09764
DN
2577 $as_echo_n "(cached) " >&6
2578else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d7f09764
DN
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623esac
2624
2625 done
2626IFS=$as_save_IFS
2627
2628rm -rf conftest.one conftest.two conftest.dir
2629
2630fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642$as_echo "$INSTALL" >&6; }
2643
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653$as_echo_n "checking whether build environment is sane... " >&6; }
d7f09764
DN
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name. Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d7f09764
DN
2661esac
2662case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d7f09764
DN
2665esac
2666
22e05272 2667# Do 'set' in a subshell so we don't clobber the current shell's
d7f09764
DN
2668# arguments. Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
22e05272
JM
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
d7f09764
DN
2698 test "$2" = conftest.file
2699 )
2700then
2701 # Ok.
2702 :
2703else
22e05272 2704 as_fn_error $? "newly created file is older than distributed files!
d7f09764
DN
2705Check your system clock" "$LINENO" 5
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
22e05272
JM
2709# If we didn't sleep, we still need to ensure time stamps of config.status and
2710# generated files are strictly newer.
2711am_sleep_pid=
2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715fi
2716
2717rm -f conftest.file
2718
d7f09764
DN
2719test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
22e05272
JM
2729# Expand $ac_aux_dir to an absolute path.
2730am_aux_dir=`cd "$ac_aux_dir" && pwd`
d7f09764
DN
2731
2732if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739fi
2740# Use eval to expand $SHELL
22e05272
JM
2741if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
d7f09764
DN
2743else
2744 am_missing_run=
22e05272
JM
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d7f09764
DN
2747fi
2748
22e05272 2749if test x"${install_sh+set}" != xset; then
d7f09764
DN
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756fi
2757
22e05272
JM
2758# Installed binaries are usually stripped using 'strip' when the user
2759# run "make install-strip". However 'strip' might not be the right
d7f09764 2760# tool to use in cross-compilation environments, therefore Automake
22e05272 2761# will honor the 'STRIP' environment variable to overrule this program.
d7f09764
DN
2762if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2768if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
2809 $as_echo_n "(cached) " >&6
2810else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826 done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851else
2852 STRIP="$ac_cv_prog_STRIP"
2853fi
2854
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
22e05272 2861 if ${ac_cv_path_mkdir+:} false; then :
d7f09764
DN
2862 $as_echo_n "(cached) " >&6
2863else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d7f09764
DN
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885
22e05272 2886 test -d ./--version && rmdir ./--version
d7f09764
DN
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
d7f09764
DN
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
d7f09764
DN
2900for ac_prog in gawk mawk nawk awk
2901do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2906if ${ac_cv_prog_AWK+:} false; then :
d7f09764
DN
2907 $as_echo_n "(cached) " >&6
2908else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
2924 done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929AWK=$ac_cv_prog_AWK
2930if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932$as_echo "$AWK" >&6; }
2933else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939 test -n "$AWK" && break
2940done
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944set x ${MAKE-make}
2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d7f09764
DN
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950SHELL = /bin/sh
2951all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953_ACEOF
22e05272 2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d7f09764
DN
2955case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960esac
2961rm -f conftest.make
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966 SET_MAKE=
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976 am__leading_dot=.
2977else
2978 am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
22e05272
JM
2982# Check whether --enable-silent-rules was given.
2983if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985fi
2986
2987case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991esac
2992am_make=${MAKE-make}
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999BAR0=false
3000BAR1=true
3001V=1
3002am__doit:
3003 @$(TRUE)
3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006else
3007 am_cv_make_support_nested_variables=no
3008fi
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011$as_echo "$am_cv_make_support_nested_variables" >&6; }
3012if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018fi
3019AM_BACKSLASH='\'
3020
d7f09764
DN
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
22e05272 3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d7f09764
DN
3028 fi
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='lto-plugin'
3043 VERSION='0.1'
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
22e05272
JM
3071# For better backward compatibility. To be removed once Automake 1.9.x
3072# dies out for good. For more background, see:
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075mkdir_p='$(MKDIR_P)'
3076
3077# We need awk for the "check" target (and possibly the TAP driver). The
3078# system "awk" is bad on some platforms.
ed9b4ae3
MH
3079# Always define AMTAR for backward compatibility. Yes, it's still used
3080# in the wild :-( We should find a proper way to deprecate it ...
3081AMTAR='$${TAR-tar}'
d7f09764 3082
22e05272
JM
3083
3084# We'll loop over all known methods to create a tar archive until one works.
3085_am_tools='gnutar pax cpio none'
3086
ed9b4ae3 3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d7f09764
DN
3088
3089
3090
3091
3092
03428d41 3093
22e05272
JM
3094# POSIX will say in a future version that running "rm -f" with no argument
3095# is OK; and we want to be able to make that assumption in our Makefile
3096# recipes. So use an aggressive probe to check that the usage we want is
3097# actually supported "in the wild" to an acceptable degree.
3098# See automake bug#10828.
3099# To make any issue more visible, cause the running configure to be aborted
3100# by default if the 'rm' program in use doesn't match our expectations; the
3101# user can still override this though.
3102if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104Oops!
3105
3106Your 'rm' program seems unable to run without file operands specified
3107on the command line, even when the '-f' option is present. This is contrary
3108to the behaviour of most rm programs out there, and not conforming with
3109the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3110
3111Please tell bug-automake@gnu.org about your system, including the value
3112of your $PATH and any error possibly output before this message. This
3113can help us improve future automake versions.
3114
3115END
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122Aborting the configuration process, to ensure you take notice of the issue.
3123
3124You can download and install GNU coreutils to get an 'rm' implementation
3125that behaves properly: <http://www.gnu.org/software/coreutils/>.
3126
3127If you want to complete the configuration process using your problematic
3128'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129to "yes", and re-run configure.
3130
3131END
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3133 fi
3134fi
3135
3136
03428d41
RG
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3138$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3139 # Check whether --enable-maintainer-mode was given.
3140if test "${enable_maintainer_mode+set}" = set; then :
3141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3142else
3143 USE_MAINTAINER_MODE=no
3144fi
3145
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3147$as_echo "$USE_MAINTAINER_MODE" >&6; }
3148 if test $USE_MAINTAINER_MODE = yes; then
3149 MAINTAINER_MODE_TRUE=
3150 MAINTAINER_MODE_FALSE='#'
3151else
3152 MAINTAINER_MODE_TRUE='#'
3153 MAINTAINER_MODE_FALSE=
3154fi
3155
3156 MAINT=$MAINTAINER_MODE_TRUE
3157
3158
2a7a8388
TS
3159
3160# Check whether --with-libiberty was given.
3161if test "${with_libiberty+set}" = set; then :
3162 withval=$with_libiberty;
3163else
3164 with_libiberty=../libiberty
3165fi
3166
3167
dcbc9df9
UB
3168DEPDIR="${am__leading_dot}deps"
3169
3170ac_config_commands="$ac_config_commands depfiles"
3171
3172
3173am_make=${MAKE-make}
3174cat > confinc << 'END'
3175am__doit:
3176 @echo this is the am__doit target
3177.PHONY: am__doit
3178END
3179# If we don't find an include directive, just comment out the code.
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3181$as_echo_n "checking for style of include used by $am_make... " >&6; }
3182am__include="#"
3183am__quote=
3184_am_result=none
3185# First try GNU make style include.
3186echo "include confinc" > confmf
22e05272 3187# Ignore all kinds of additional output from 'make'.
dcbc9df9
UB
3188case `$am_make -s -f confmf 2> /dev/null` in #(
3189*the\ am__doit\ target*)
3190 am__include=include
3191 am__quote=
3192 _am_result=GNU
3193 ;;
3194esac
3195# Now try BSD make style include.
3196if test "$am__include" = "#"; then
3197 echo '.include "confinc"' > confmf
3198 case `$am_make -s -f confmf 2> /dev/null` in #(
3199 *the\ am__doit\ target*)
3200 am__include=.include
3201 am__quote="\""
3202 _am_result=BSD
3203 ;;
3204 esac
3205fi
3206
3207
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3209$as_echo "$_am_result" >&6; }
3210rm -f confinc confmf
3211
3212# Check whether --enable-dependency-tracking was given.
3213if test "${enable_dependency_tracking+set}" = set; then :
3214 enableval=$enable_dependency_tracking;
3215fi
3216
3217if test "x$enable_dependency_tracking" != xno; then
3218 am_depcomp="$ac_aux_dir/depcomp"
3219 AMDEPBACKSLASH='\'
3220 am__nodep='_no'
3221fi
3222 if test "x$enable_dependency_tracking" != xno; then
3223 AMDEP_TRUE=
3224 AMDEP_FALSE='#'
3225else
3226 AMDEP_TRUE='#'
3227 AMDEP_FALSE=
3228fi
3229
3230
d7f09764
DN
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}gcc; ac_word=$2
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3241if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3242 $as_echo_n "(cached) " >&6
3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258done
3259 done
3260IFS=$as_save_IFS
3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3268else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271fi
3272
3273
3274fi
3275if test -z "$ac_cv_prog_CC"; then
3276 ac_ct_CC=$CC
3277 # Extract the first word of "gcc", so it can be a program name with args.
3278set dummy gcc; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3282 $as_echo_n "(cached) " >&6
3283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3294 ac_cv_prog_ac_ct_CC="gcc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299 done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3308else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317yes:)
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320ac_tool_warned=yes ;;
3321esac
3322 CC=$ac_ct_CC
3323 fi
3324else
3325 CC="$ac_cv_prog_CC"
3326fi
3327
3328if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3331set dummy ${ac_tool_prefix}cc; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3334if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3335 $as_echo_n "(cached) " >&6
3336else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351done
3352 done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367 fi
3368fi
3369if test -z "$CC"; then
3370 # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3374if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3375 $as_echo_n "(cached) " >&6
3376else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380 ac_prog_rejected=no
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3389 ac_prog_rejected=yes
3390 continue
3391 fi
3392 ac_cv_prog_CC="cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400if test $ac_prog_rejected = yes; then
3401 # We found a bogon in the path, so make sure we never use it.
3402 set dummy $ac_cv_prog_CC
3403 shift
3404 if test $# != 0; then
3405 # We chose a different compiler from the bogus one.
3406 # However, it has the same basename, so the bogon will be chosen
3407 # first if we set CC to just the basename; use the full file name.
3408 shift
3409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3410 fi
3411fi
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
3418else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3421fi
3422
3423
3424fi
3425if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
3427 for ac_prog in cl.exe
3428 do
3429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3433if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3434 $as_echo_n "(cached) " >&6
3435else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451 done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3460else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466 test -n "$CC" && break
3467 done
3468fi
3469if test -z "$CC"; then
3470 ac_ct_CC=$CC
3471 for ac_prog in cl.exe
3472do
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474set dummy $ac_prog; ac_word=$2
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3477if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3478 $as_echo_n "(cached) " >&6
3479else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3490 ac_cv_prog_ac_ct_CC="$ac_prog"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495 done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503$as_echo "$ac_ct_CC" >&6; }
3504else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510 test -n "$ac_ct_CC" && break
3511done
3512
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522 CC=$ac_ct_CC
3523 fi
3524fi
3525
3526fi
3527
3528
3529test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3531as_fn_error $? "no acceptable C compiler found in \$PATH
3532See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3533
3534# Provide some information about the compiler.
3535$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536set X $ac_compile
3537ac_compiler=$2
3538for ac_option in --version -v -V -qversion; do
3539 { { ac_try="$ac_compiler $ac_option >&5"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 ac_status=$?
3548 if test -s conftest.err; then
3549 sed '10a\
3550... rest of stderr output deleted ...
3551 10q' conftest.err >conftest.er1
3552 cat conftest.er1 >&5
d7f09764 3553 fi
22e05272 3554 rm -f conftest.er1 conftest.err
d7f09764
DN
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }
3557done
3558
3559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h. */
3561
3562int
3563main ()
3564{
3565
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570ac_clean_files_save=$ac_clean_files
22e05272 3571ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d7f09764
DN
3572# Try to create an executable without -o first, disregard a.out.
3573# It will help us diagnose broken compilers, and finding out an intuition
3574# of exeext.
22e05272
JM
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576$as_echo_n "checking whether the C compiler works... " >&6; }
d7f09764
DN
3577ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578
3579# The possible output files:
3580ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581
3582ac_rmfiles=
3583for ac_file in $ac_files
3584do
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588 esac
3589done
3590rm -f $ac_rmfiles
3591
3592if { { ac_try="$ac_link_default"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link_default") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605# in a Makefile. We should not override ac_cv_exeext if it was cached,
3606# so that the user can short-circuit this test for compilers unknown to
3607# Autoconf.
3608for ac_file in $ac_files ''
3609do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3613 ;;
3614 [ab].out )
3615 # We found the default executable, but exeext='' is most
3616 # certainly right.
3617 break;;
3618 *.* )
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 then :; else
3621 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 fi
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3627 # actually working.
3628 break;;
3629 * )
3630 break;;
3631 esac
3632done
3633test "$ac_cv_exeext" = no && ac_cv_exeext=
3634
3635else
3636 ac_file=''
3637fi
d7f09764 3638if test -z "$ac_file"; then :
22e05272
JM
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
3641$as_echo "$as_me: failed program was:" >&5
d7f09764
DN
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3646as_fn_error 77 "C compiler cannot create executables
3647See \`config.log' for more details" "$LINENO" 5; }
3648else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650$as_echo "yes" >&6; }
d7f09764 3651fi
22e05272
JM
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3653$as_echo_n "checking for C compiler default output file name... " >&6; }
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3655$as_echo "$ac_file" >&6; }
d7f09764
DN
3656ac_exeext=$ac_cv_exeext
3657
22e05272 3658rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d7f09764 3659ac_clean_files=$ac_clean_files_save
d7f09764
DN
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661$as_echo_n "checking for suffix of executables... " >&6; }
3662if { { ac_try="$ac_link"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3675# work properly (i.e., refer to `conftest.exe'), while it won't with
3676# `rm'.
3677for ac_file in conftest.exe conftest conftest.*; do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 break;;
3683 * ) break;;
3684 esac
3685done
3686else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3689as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3690See \`config.log' for more details" "$LINENO" 5; }
d7f09764 3691fi
22e05272 3692rm -f conftest conftest$ac_cv_exeext
d7f09764
DN
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694$as_echo "$ac_cv_exeext" >&6; }
3695
3696rm -f conftest.$ac_ext
3697EXEEXT=$ac_cv_exeext
3698ac_exeext=$EXEEXT
22e05272
JM
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701#include <stdio.h>
3702int
3703main ()
3704{
3705FILE *f = fopen ("conftest.out", "w");
3706 return ferror (f) || fclose (f) != 0;
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712ac_clean_files="$ac_clean_files conftest.out"
3713# Check that the compiler produces executables we can run. If not, either
3714# the compiler is broken, or we cross compile.
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3716$as_echo_n "checking whether we are cross compiling... " >&6; }
3717if test "$cross_compiling" != yes; then
3718 { { ac_try="$ac_link"
3719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }
3729 if { ac_try='./conftest$ac_cv_exeext'
3730 { { case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_try") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; }; then
3740 cross_compiling=no
3741 else
3742 if test "$cross_compiling" = maybe; then
3743 cross_compiling=yes
3744 else
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error $? "cannot run C compiled programs.
3748If you meant to cross compile, use \`--host'.
3749See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751 fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3754$as_echo "$cross_compiling" >&6; }
3755
3756rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3757ac_clean_files=$ac_clean_files_save
d7f09764
DN
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3759$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3760if ${ac_cv_objext+:} false; then :
d7f09764
DN
3761 $as_echo_n "(cached) " >&6
3762else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765
3766int
3767main ()
3768{
3769
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774rm -f conftest.o conftest.obj
3775if { { ac_try="$ac_compile"
3776case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779esac
3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781$as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compile") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 for ac_file in conftest.o conftest.obj conftest.*; do
3787 test -f "$ac_file" || continue;
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791 break;;
3792 esac
3793done
3794else
3795 $as_echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3800as_fn_error $? "cannot compute suffix of object files: cannot compile
3801See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3802fi
3803rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3806$as_echo "$ac_cv_objext" >&6; }
3807OBJEXT=$ac_cv_objext
3808ac_objext=$OBJEXT
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3810$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3811if ${ac_cv_c_compiler_gnu+:} false; then :
d7f09764
DN
3812 $as_echo_n "(cached) " >&6
3813else
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
3823
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_compiler_gnu=yes
3830else
3831 ac_compiler_gnu=no
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3838$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3839if test $ac_compiler_gnu = yes; then
3840 GCC=yes
3841else
3842 GCC=
3843fi
3844ac_test_CFLAGS=${CFLAGS+set}
3845ac_save_CFLAGS=$CFLAGS
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3847$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3848if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
3849 $as_echo_n "(cached) " >&6
3850else
3851 ac_save_c_werror_flag=$ac_c_werror_flag
3852 ac_c_werror_flag=yes
3853 ac_cv_prog_cc_g=no
3854 CFLAGS="-g"
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h. */
3857
3858int
3859main ()
3860{
3861
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_g=yes
3868else
3869 CFLAGS=""
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h. */
3872
3873int
3874main ()
3875{
3876
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882
3883else
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3885 CFLAGS="-g"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h. */
3888
3889int
3890main ()
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_g=yes
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_c_werror_flag=$ac_save_c_werror_flag
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3908$as_echo "$ac_cv_prog_cc_g" >&6; }
3909if test "$ac_test_CFLAGS" = set; then
3910 CFLAGS=$ac_save_CFLAGS
3911elif test $ac_cv_prog_cc_g = yes; then
3912 if test "$GCC" = yes; then
3913 CFLAGS="-g -O2"
3914 else
3915 CFLAGS="-g"
3916 fi
3917else
3918 if test "$GCC" = yes; then
3919 CFLAGS="-O2"
3920 else
3921 CFLAGS=
3922 fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3926if ${ac_cv_prog_cc_c89+:} false; then :
d7f09764
DN
3927 $as_echo_n "(cached) " >&6
3928else
3929 ac_cv_prog_cc_c89=no
3930ac_save_CC=$CC
3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h. */
3933#include <stdarg.h>
3934#include <stdio.h>
22e05272 3935struct stat;
d7f09764
DN
3936/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3937struct buf { int x; };
3938FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939static char *e (p, i)
3940 char **p;
3941 int i;
3942{
3943 return p[i];
3944}
3945static char *f (char * (*g) (char **, int), char **p, ...)
3946{
3947 char *s;
3948 va_list v;
3949 va_start (v,p);
3950 s = g (p, va_arg (v,int));
3951 va_end (v);
3952 return s;
3953}
3954
3955/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3956 function prototypes and stuff, but not '\xHH' hex character constants.
3957 These don't provoke an error unfortunately, instead are silently treated
3958 as 'x'. The following induces an error, until -std is added to get
3959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3960 array size at least. It's necessary to write '\x00'==0 to get something
3961 that's true only with -std. */
3962int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963
3964/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3965 inside strings and character constants. */
3966#define FOO(x) 'x'
3967int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968
3969int test (int i, double x);
3970struct s1 {int (*f) (int a);};
3971struct s2 {int (*f) (double a);};
3972int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973int argc;
3974char **argv;
3975int
3976main ()
3977{
3978return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3979 ;
3980 return 0;
3981}
3982_ACEOF
3983for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985do
3986 CC="$ac_save_CC $ac_arg"
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_c89=$ac_arg
3989fi
3990rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992done
3993rm -f conftest.$ac_ext
3994CC=$ac_save_CC
3995
3996fi
3997# AC_CACHE_VAL
3998case "x$ac_cv_prog_cc_c89" in
3999 x)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001$as_echo "none needed" >&6; } ;;
4002 xno)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004$as_echo "unsupported" >&6; } ;;
4005 *)
4006 CC="$CC $ac_cv_prog_cc_c89"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4008$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009esac
4010if test "x$ac_cv_prog_cc_c89" != xno; then :
4011
4012fi
4013
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7f09764 4019
22e05272
JM
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4026$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4027if ${am_cv_prog_cc_c_o+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032
4033int
4034main ()
4035{
4036
4037 ;
4038 return 0;
4039}
4040_ACEOF
4041 # Make sure it works both with $CC and with simple cc.
4042 # Following AC_PROG_CC_C_O, we do the test twice because some
4043 # compilers refuse to overwrite an existing .o file with -o,
4044 # though they will create one.
4045 am_cv_prog_cc_c_o=yes
4046 for am_i in 1 2; do
4047 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4048 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } \
4052 && test -f conftest2.$ac_objext; then
4053 : OK
4054 else
4055 am_cv_prog_cc_c_o=no
4056 break
4057 fi
4058 done
4059 rm -f core conftest*
4060 unset am_i
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4063$as_echo "$am_cv_prog_cc_c_o" >&6; }
4064if test "$am_cv_prog_cc_c_o" != yes; then
4065 # Losing compiler, so override with the script.
4066 # FIXME: It is wrong to rewrite CC.
4067 # But if we don't then we get into trouble of one sort or another.
4068 # A longer-term fix would be to have automake use am__CC in this case,
4069 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070 CC="$am_aux_dir/compile $CC"
4071fi
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
dcbc9df9 4079depcc="$CC" am_compiler_list=
d7f09764
DN
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4083if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d7f09764
DN
4084 $as_echo_n "(cached) " >&6
4085else
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4090 # making a dummy file named 'D' -- because '-MD' means "put the output
4091 # in D".
ed9b4ae3 4092 rm -rf conftest.dir
d7f09764
DN
4093 mkdir conftest.dir
4094 # Copy depcomp to subdir because otherwise we won't find it if we're
4095 # using a relative directory.
4096 cp "$am_depcomp" conftest.dir
4097 cd conftest.dir
4098 # We will build objects and dependencies in a subdirectory because
4099 # it helps to detect inapplicable dependency modes. For instance
4100 # both Tru64's cc and ICC support -MD to output dependencies as a
4101 # side effect of compilation, but ICC will put the dependencies in
4102 # the current directory while Tru64 will put them in the object
4103 # directory.
4104 mkdir sub
4105
4106 am_cv_CC_dependencies_compiler_type=none
4107 if test "$am_compiler_list" = ""; then
4108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109 fi
4110 am__universal=false
4111 case " $depcc " in #(
4112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4113 esac
4114
4115 for depmode in $am_compiler_list; do
4116 # Setup a source with many dependencies, because some compilers
4117 # like to wrap large dependency lists on column 80 (with \), and
4118 # we should not choose a depcomp mode which is confused by this.
4119 #
4120 # We need to recreate these files for each test, as the compiler may
4121 # overwrite some of them when testing with obscure command lines.
4122 # This happens at least with the AIX C compiler.
4123 : > sub/conftest.c
4124 for i in 1 2 3 4 5 6; do
4125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4126 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4127 # Solaris 10 /bin/sh.
4128 echo '/* dummy */' > sub/conftst$i.h
d7f09764
DN
4129 done
4130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131
22e05272 4132 # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7f09764 4133 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4134 # handle '-M -o', and we need to detect this. Also, some Intel
4135 # versions had trouble with output in subdirs.
d7f09764
DN
4136 am__obj=sub/conftest.${OBJEXT-o}
4137 am__minus_obj="-o $am__obj"
4138 case $depmode in
4139 gcc)
4140 # This depmode causes a compiler race in universal mode.
4141 test "$am__universal" = false || continue
4142 ;;
4143 nosideeffect)
22e05272
JM
4144 # After this tag, mechanisms are not by side-effect, so they'll
4145 # only be used when explicitly requested.
d7f09764
DN
4146 if test "x$enable_dependency_tracking" = xyes; then
4147 continue
4148 else
4149 break
4150 fi
4151 ;;
ed9b4ae3 4152 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4153 # This compiler won't grok '-c -o', but also, the minuso test has
d7f09764
DN
4154 # not run yet. These depmodes are late enough in the game, and
4155 # so weak that their functioning should not be impacted.
4156 am__obj=conftest.${OBJEXT-o}
4157 am__minus_obj=
4158 ;;
4159 none) break ;;
4160 esac
4161 if depmode=$depmode \
4162 source=sub/conftest.c object=$am__obj \
4163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4165 >/dev/null 2>conftest.err &&
4166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4170 # icc doesn't choke on unknown options, it will just issue warnings
4171 # or remarks (even with -Werror). So we grep stderr for any message
4172 # that says an option was ignored or not supported.
4173 # When given -MP, icc 7.0 and 7.1 complain thusly:
4174 # icc: Command line warning: ignoring option '-M'; no argument required
4175 # The diagnosis changed in icc 8.0:
4176 # icc: Command line remark: option '-MP' not supported
4177 if (grep 'ignoring option' conftest.err ||
4178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4179 am_cv_CC_dependencies_compiler_type=$depmode
4180 break
4181 fi
4182 fi
4183 done
4184
4185 cd ..
4186 rm -rf conftest.dir
4187else
4188 am_cv_CC_dependencies_compiler_type=none
4189fi
4190
4191fi
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4193$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4195
4196 if
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199 am__fastdepCC_TRUE=
4200 am__fastdepCC_FALSE='#'
4201else
4202 am__fastdepCC_TRUE='#'
4203 am__fastdepCC_FALSE=
4204fi
4205
4206
4207
dcbc9df9
UB
4208ac_ext=c
4209ac_cpp='$CPP $CPPFLAGS'
4210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214$as_echo_n "checking how to run the C preprocessor... " >&6; }
4215# On Suns, sometimes $CPP names a directory.
4216if test -n "$CPP" && test -d "$CPP"; then
4217 CPP=
4c0f4b0b 4218fi
dcbc9df9 4219if test -z "$CPP"; then
22e05272 4220 if ${ac_cv_prog_CPP+:} false; then :
4c0f4b0b
DG
4221 $as_echo_n "(cached) " >&6
4222else
dcbc9df9
UB
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4225 do
4226 ac_preproc_ok=false
4227for ac_c_preproc_warn_flag in '' yes
4228do
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0f4b0b 4236/* end confdefs.h. */
dcbc9df9
UB
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242 Syntax error
4c0f4b0b 4243_ACEOF
dcbc9df9
UB
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245
4246else
4247 # Broken: fails on valid input.
4248continue
4c0f4b0b 4249fi
22e05272 4250rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4251
4252 # OK, works on sane cases. Now check whether nonexistent headers
4253 # can be detected and how.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h. */
4256#include <ac_nonexistent.h>
4257_ACEOF
4258if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: success on invalid input.
4260continue
4261else
4262 # Passes both tests.
4263ac_preproc_ok=:
4264break
4c0f4b0b 4265fi
22e05272 4266rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4267
4268done
4269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4270rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4271if $ac_preproc_ok; then :
4272 break
4c0f4b0b 4273fi
4c0f4b0b 4274
dcbc9df9
UB
4275 done
4276 ac_cv_prog_CPP=$CPP
4277
4278fi
4279 CPP=$ac_cv_prog_CPP
4c0f4b0b 4280else
dcbc9df9
UB
4281 ac_cv_prog_CPP=$CPP
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284$as_echo "$CPP" >&6; }
4285ac_preproc_ok=false
4286for ac_c_preproc_warn_flag in '' yes
4287do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4c0f4b0b
DG
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h. */
dcbc9df9
UB
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301 Syntax error
4c0f4b0b 4302_ACEOF
dcbc9df9
UB
4303if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305else
4306 # Broken: fails on valid input.
4307continue
4c0f4b0b 4308fi
22e05272 4309rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4310
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4c0f4b0b
DG
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h. */
dcbc9df9 4315#include <ac_nonexistent.h>
4c0f4b0b 4316_ACEOF
dcbc9df9
UB
4317if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4319continue
4320else
4321 # Passes both tests.
4322ac_preproc_ok=:
4323break
4c0f4b0b 4324fi
22e05272 4325rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9 4326
4c0f4b0b 4327done
dcbc9df9 4328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4329rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4330if $ac_preproc_ok; then :
4331
4332else
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4335as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336See \`config.log' for more details" "$LINENO" 5; }
4c0f4b0b 4337fi
dcbc9df9
UB
4338
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4347$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4348if ${ac_cv_path_GREP+:} false; then :
4c0f4b0b
DG
4349 $as_echo_n "(cached) " >&6
4350else
dcbc9df9
UB
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4362 as_fn_executable_p "$ac_path_GREP" || continue
dcbc9df9
UB
4363# Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365case `"$ac_path_GREP" --version 2>&1` in
4366*GNU*)
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4368*)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389esac
4c0f4b0b 4390
dcbc9df9
UB
4391 $ac_path_GREP_found && break 3
4392 done
4393 done
4394 done
4395IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_GREP"; then
22e05272 4397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
4398 fi
4399else
4400 ac_cv_path_GREP=$GREP
4c0f4b0b 4401fi
4c0f4b0b 4402
4c0f4b0b 4403fi
dcbc9df9
UB
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4405$as_echo "$ac_cv_path_GREP" >&6; }
4406 GREP="$ac_cv_path_GREP"
4407
4408
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4410$as_echo_n "checking for egrep... " >&6; }
22e05272 4411if ${ac_cv_path_EGREP+:} false; then :
dcbc9df9
UB
4412 $as_echo_n "(cached) " >&6
4413else
4414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4415 then ac_cv_path_EGREP="$GREP -E"
4416 else
4417 if test -z "$EGREP"; then
4418 ac_path_EGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in egrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4428 as_fn_executable_p "$ac_path_EGREP" || continue
dcbc9df9
UB
4429# Check for GNU ac_path_EGREP and select it if it is found.
4430 # Check for GNU $ac_path_EGREP
4431case `"$ac_path_EGREP" --version 2>&1` in
4432*GNU*)
4433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4434*)
4435 ac_count=0
4436 $as_echo_n 0123456789 >"conftest.in"
4437 while :
4438 do
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'EGREP' >> "conftest.nl"
4443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_EGREP="$ac_path_EGREP"
4449 ac_path_EGREP_max=$ac_count
4450 fi
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4453 done
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4c0f4b0b 4455esac
dcbc9df9
UB
4456
4457 $ac_path_EGREP_found && break 3
4458 done
4459 done
4460 done
4461IFS=$as_save_IFS
4462 if test -z "$ac_cv_path_EGREP"; then
22e05272 4463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4c0f4b0b 4464 fi
dcbc9df9
UB
4465else
4466 ac_cv_path_EGREP=$EGREP
4c0f4b0b
DG
4467fi
4468
dcbc9df9
UB
4469 fi
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4472$as_echo "$ac_cv_path_EGREP" >&6; }
4473 EGREP="$ac_cv_path_EGREP"
f3016c47 4474
dcbc9df9
UB
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4477$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4478if ${ac_cv_header_stdc+:} false; then :
f3016c47
RG
4479 $as_echo_n "(cached) " >&6
4480else
dcbc9df9 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3016c47 4482/* end confdefs.h. */
dcbc9df9
UB
4483#include <stdlib.h>
4484#include <stdarg.h>
4485#include <string.h>
4486#include <float.h>
f3016c47
RG
4487
4488int
4489main ()
4490{
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 4497 ac_cv_header_stdc=yes
f3016c47 4498else
dcbc9df9 4499 ac_cv_header_stdc=no
f3016c47
RG
4500fi
4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502
dcbc9df9
UB
4503if test $ac_cv_header_stdc = yes; then
4504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2555c65 4506/* end confdefs.h. */
dcbc9df9 4507#include <string.h>
a2555c65 4508
a2555c65 4509_ACEOF
dcbc9df9
UB
4510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev/null 2>&1; then :
4512
a2555c65 4513else
dcbc9df9 4514 ac_cv_header_stdc=no
a2555c65 4515fi
dcbc9df9
UB
4516rm -f conftest*
4517
a2555c65
RO
4518fi
4519
dcbc9df9
UB
4520if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h. */
4524#include <stdlib.h>
4525
4526_ACEOF
4527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "free" >/dev/null 2>&1; then :
5523efdf 4529
43f4a446 4530else
dcbc9df9 4531 ac_cv_header_stdc=no
43f4a446 4532fi
dcbc9df9 4533rm -f conftest*
43f4a446 4534
85c64bbe
BS
4535fi
4536
dcbc9df9
UB
4537if test $ac_cv_header_stdc = yes; then
4538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539 if test "$cross_compiling" = yes; then :
4540 :
4541else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544#include <ctype.h>
4545#include <stdlib.h>
4546#if ((' ' & 0x0FF) == 0x020)
4547# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4548# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4549#else
4550# define ISLOWER(c) \
4551 (('a' <= (c) && (c) <= 'i') \
4552 || ('j' <= (c) && (c) <= 'r') \
4553 || ('s' <= (c) && (c) <= 'z'))
4554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555#endif
85c64bbe 4556
dcbc9df9
UB
4557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4558int
4559main ()
4560{
4561 int i;
4562 for (i = 0; i < 256; i++)
4563 if (XOR (islower (i), ISLOWER (i))
4564 || toupper (i) != TOUPPER (i))
4565 return 2;
4566 return 0;
4567}
4568_ACEOF
4569if ac_fn_c_try_run "$LINENO"; then :
85c64bbe 4570
dcbc9df9
UB
4571else
4572 ac_cv_header_stdc=no
4573fi
4574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575 conftest.$ac_objext conftest.beam conftest.$ac_ext
4576fi
d7f09764 4577
dcbc9df9
UB
4578fi
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4581$as_echo "$ac_cv_header_stdc" >&6; }
4582if test $ac_cv_header_stdc = yes; then
d7f09764 4583
dcbc9df9 4584$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7f09764 4585
dcbc9df9 4586fi
d7f09764 4587
dcbc9df9
UB
4588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590 inttypes.h stdint.h unistd.h
4591do :
4592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4594"
22e05272 4595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
dcbc9df9
UB
4596 cat >>confdefs.h <<_ACEOF
4597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598_ACEOF
d7f09764 4599
dcbc9df9 4600fi
d7f09764 4601
dcbc9df9 4602done
d7f09764
DN
4603
4604
4605
dcbc9df9 4606 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4607if test "x$ac_cv_header_minix_config_h" = xyes; then :
dcbc9df9
UB
4608 MINIX=yes
4609else
4610 MINIX=
4611fi
d7f09764
DN
4612
4613
dcbc9df9 4614 if test "$MINIX" = yes; then
d7f09764 4615
dcbc9df9 4616$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7f09764 4617
52327858 4618
dcbc9df9 4619$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
52327858 4620
52327858 4621
dcbc9df9 4622$as_echo "#define _MINIX 1" >>confdefs.h
52327858 4623
dcbc9df9 4624 fi
52327858 4625
52327858 4626
dcbc9df9
UB
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4628$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4629if ${ac_cv_safe_to_define___extensions__+:} false; then :
dcbc9df9 4630 $as_echo_n "(cached) " >&6
52327858 4631else
dcbc9df9
UB
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
52327858 4634
22e05272
JM
4635# define __EXTENSIONS__ 1
4636 $ac_includes_default
dcbc9df9
UB
4637int
4638main ()
52327858 4639{
52327858 4640
dcbc9df9
UB
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_safe_to_define___extensions__=yes
4647else
4648 ac_cv_safe_to_define___extensions__=no
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651fi
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4653$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4654 test $ac_cv_safe_to_define___extensions__ = yes &&
4655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
52327858 4656
dcbc9df9 4657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
52327858 4658
dcbc9df9 4659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
52327858 4660
dcbc9df9 4661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
52327858 4662
dcbc9df9 4663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
52327858
L
4664
4665
dcbc9df9
UB
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671if test -n "$ac_tool_prefix"; then
4672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4673set dummy ${ac_tool_prefix}gcc; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4676if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4677 $as_echo_n "(cached) " >&6
4678else
dcbc9df9
UB
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d7f09764
DN
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
d7f09764 4687 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
d7f09764
DN
4694 done
4695IFS=$as_save_IFS
dcbc9df9
UB
4696
4697fi
4698fi
4699CC=$ac_cv_prog_CC
4700if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702$as_echo "$CC" >&6; }
d7f09764 4703else
dcbc9df9
UB
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
d7f09764
DN
4706fi
4707
dcbc9df9 4708
d7f09764 4709fi
dcbc9df9
UB
4710if test -z "$ac_cv_prog_CC"; then
4711 ac_ct_CC=$CC
4712 # Extract the first word of "gcc", so it can be a program name with args.
4713set dummy gcc; ac_word=$2
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4716if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4717 $as_echo_n "(cached) " >&6
4718else
dcbc9df9
UB
4719 if test -n "$ac_ct_CC"; then
4720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
d7f09764
DN
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
d7f09764 4727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4729 ac_cv_prog_ac_ct_CC="gcc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
d7f09764
DN
4734 done
4735IFS=$as_save_IFS
dcbc9df9
UB
4736
4737fi
4738fi
4739ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740if test -n "$ac_ct_CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742$as_echo "$ac_ct_CC" >&6; }
d7f09764 4743else
dcbc9df9
UB
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745$as_echo "no" >&6; }
d7f09764
DN
4746fi
4747
dcbc9df9
UB
4748 if test "x$ac_ct_CC" = x; then
4749 CC=""
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752yes:)
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755ac_tool_warned=yes ;;
4756esac
4757 CC=$ac_ct_CC
4758 fi
4759else
4760 CC="$ac_cv_prog_CC"
d7f09764 4761fi
d7f09764 4762
dcbc9df9
UB
4763if test -z "$CC"; then
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4766set dummy ${ac_tool_prefix}cc; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4769if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4770 $as_echo_n "(cached) " >&6
4771else
dcbc9df9
UB
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
d7f09764
DN
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
d7f09764 4780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4782 ac_cv_prog_CC="${ac_tool_prefix}cc"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786done
d7f09764
DN
4787 done
4788IFS=$as_save_IFS
d7f09764 4789
d7f09764 4790fi
dcbc9df9
UB
4791fi
4792CC=$ac_cv_prog_CC
4793if test -n "$CC"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795$as_echo "$CC" >&6; }
4796else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798$as_echo "no" >&6; }
4799fi
d7f09764
DN
4800
4801
dcbc9df9
UB
4802 fi
4803fi
4804if test -z "$CC"; then
4805 # Extract the first word of "cc", so it can be a program name with args.
4806set dummy cc; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4809if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4810 $as_echo_n "(cached) " >&6
4811else
dcbc9df9
UB
4812 if test -n "$CC"; then
4813 ac_cv_prog_CC="$CC" # Let the user override the test.
4814else
4815 ac_prog_rejected=no
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
d7f09764
DN
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
d7f09764 4821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4824 ac_prog_rejected=yes
4825 continue
4826 fi
4827 ac_cv_prog_CC="cc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
d7f09764 4832 done
dcbc9df9 4833IFS=$as_save_IFS
d7f09764 4834
dcbc9df9
UB
4835if test $ac_prog_rejected = yes; then
4836 # We found a bogon in the path, so make sure we never use it.
4837 set dummy $ac_cv_prog_CC
4838 shift
4839 if test $# != 0; then
4840 # We chose a different compiler from the bogus one.
4841 # However, it has the same basename, so the bogon will be chosen
4842 # first if we set CC to just the basename; use the full file name.
4843 shift
4844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d7f09764 4845 fi
d7f09764 4846fi
d7f09764
DN
4847fi
4848fi
dcbc9df9
UB
4849CC=$ac_cv_prog_CC
4850if test -n "$CC"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852$as_echo "$CC" >&6; }
d7f09764
DN
4853else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
d7f09764
DN
4857
4858
d7f09764 4859fi
dcbc9df9
UB
4860if test -z "$CC"; then
4861 if test -n "$ac_tool_prefix"; then
4862 for ac_prog in cl.exe
d7f09764
DN
4863 do
4864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4868if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4869 $as_echo_n "(cached) " >&6
4870else
dcbc9df9
UB
4871 if test -n "$CC"; then
4872 ac_cv_prog_CC="$CC" # Let the user override the test.
d7f09764
DN
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7f09764
DN
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886 done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
dcbc9df9
UB
4891CC=$ac_cv_prog_CC
4892if test -n "$CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4894$as_echo "$CC" >&6; }
d7f09764
DN
4895else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900
dcbc9df9 4901 test -n "$CC" && break
d7f09764
DN
4902 done
4903fi
dcbc9df9
UB
4904if test -z "$CC"; then
4905 ac_ct_CC=$CC
4906 for ac_prog in cl.exe
d7f09764
DN
4907do
4908 # Extract the first word of "$ac_prog", so it can be a program name with args.
4909set dummy $ac_prog; ac_word=$2
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4912if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4913 $as_echo_n "(cached) " >&6
4914else
dcbc9df9
UB
4915 if test -n "$ac_ct_CC"; then
4916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7f09764
DN
4917else
4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4925 ac_cv_prog_ac_ct_CC="$ac_prog"
d7f09764
DN
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930 done
4931IFS=$as_save_IFS
4932
4933fi
4934fi
dcbc9df9
UB
4935ac_ct_CC=$ac_cv_prog_ac_ct_CC
4936if test -n "$ac_ct_CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938$as_echo "$ac_ct_CC" >&6; }
d7f09764
DN
4939else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
4942fi
4943
4944
dcbc9df9 4945 test -n "$ac_ct_CC" && break
d7f09764
DN
4946done
4947
dcbc9df9
UB
4948 if test "x$ac_ct_CC" = x; then
4949 CC=""
d7f09764
DN
4950 else
4951 case $cross_compiling:$ac_tool_warned in
4952yes:)
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955ac_tool_warned=yes ;;
4956esac
dcbc9df9 4957 CC=$ac_ct_CC
d7f09764
DN
4958 fi
4959fi
4960
d7f09764 4961fi
d7f09764
DN
4962
4963
dcbc9df9
UB
4964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4966as_fn_error $? "no acceptable C compiler found in \$PATH
4967See \`config.log' for more details" "$LINENO" 5; }
d7f09764 4968
dcbc9df9
UB
4969# Provide some information about the compiler.
4970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4971set X $ac_compile
4972ac_compiler=$2
4973for ac_option in --version -v -V -qversion; do
4974 { { ac_try="$ac_compiler $ac_option >&5"
4975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
4979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 ac_status=$?
4983 if test -s conftest.err; then
4984 sed '10a\
4985... rest of stderr output deleted ...
4986 10q' conftest.err >conftest.er1
4987 cat conftest.er1 >&5
dcbc9df9 4988 fi
22e05272 4989 rm -f conftest.er1 conftest.err
dcbc9df9
UB
4990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }
4992done
d7f09764 4993
dcbc9df9
UB
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4996if ${ac_cv_c_compiler_gnu+:} false; then :
dcbc9df9
UB
4997 $as_echo_n "(cached) " >&6
4998else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h. */
d7f09764 5001
dcbc9df9
UB
5002int
5003main ()
5004{
5005#ifndef __GNUC__
5006 choke me
5007#endif
d7f09764 5008
dcbc9df9
UB
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_compiler_gnu=yes
d7f09764 5015else
dcbc9df9 5016 ac_compiler_gnu=no
d7f09764 5017fi
dcbc9df9
UB
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7f09764 5020
dcbc9df9
UB
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5024if test $ac_compiler_gnu = yes; then
5025 GCC=yes
d7f09764 5026else
dcbc9df9 5027 GCC=
d7f09764 5028fi
dcbc9df9
UB
5029ac_test_CFLAGS=${CFLAGS+set}
5030ac_save_CFLAGS=$CFLAGS
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5032$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5033if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
5034 $as_echo_n "(cached) " >&6
5035else
dcbc9df9
UB
5036 ac_save_c_werror_flag=$ac_c_werror_flag
5037 ac_c_werror_flag=yes
5038 ac_cv_prog_cc_g=no
5039 CFLAGS="-g"
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h. */
d7f09764 5042
dcbc9df9
UB
5043int
5044main ()
5045{
d7f09764 5046
dcbc9df9
UB
5047 ;
5048 return 0;
5049}
5050_ACEOF
5051if ac_fn_c_try_compile "$LINENO"; then :
5052 ac_cv_prog_cc_g=yes
5053else
5054 CFLAGS=""
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
d7f09764 5057
dcbc9df9
UB
5058int
5059main ()
5060{
52327858 5061
dcbc9df9
UB
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"; then :
d7f09764 5067
dcbc9df9
UB
5068else
5069 ac_c_werror_flag=$ac_save_c_werror_flag
5070 CFLAGS="-g"
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h. */
d7f09764 5073
dcbc9df9
UB
5074int
5075main ()
5076{
d7f09764 5077
dcbc9df9
UB
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_prog_cc_g=yes
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088fi
5089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 ac_c_werror_flag=$ac_save_c_werror_flag
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5093$as_echo "$ac_cv_prog_cc_g" >&6; }
5094if test "$ac_test_CFLAGS" = set; then
5095 CFLAGS=$ac_save_CFLAGS
5096elif test $ac_cv_prog_cc_g = yes; then
5097 if test "$GCC" = yes; then
5098 CFLAGS="-g -O2"
5099 else
5100 CFLAGS="-g"
5101 fi
5102else
5103 if test "$GCC" = yes; then
5104 CFLAGS="-O2"
5105 else
5106 CFLAGS=
5107 fi
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5111if ${ac_cv_prog_cc_c89+:} false; then :
dcbc9df9
UB
5112 $as_echo_n "(cached) " >&6
5113else
5114 ac_cv_prog_cc_c89=no
5115ac_save_CC=$CC
5116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h. */
5118#include <stdarg.h>
5119#include <stdio.h>
22e05272 5120struct stat;
dcbc9df9
UB
5121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5122struct buf { int x; };
5123FILE * (*rcsopen) (struct buf *, struct stat *, int);
5124static char *e (p, i)
5125 char **p;
5126 int i;
5127{
5128 return p[i];
5129}
5130static char *f (char * (*g) (char **, int), char **p, ...)
5131{
5132 char *s;
5133 va_list v;
5134 va_start (v,p);
5135 s = g (p, va_arg (v,int));
5136 va_end (v);
5137 return s;
5138}
5139
5140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5141 function prototypes and stuff, but not '\xHH' hex character constants.
5142 These don't provoke an error unfortunately, instead are silently treated
5143 as 'x'. The following induces an error, until -std is added to get
5144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5145 array size at least. It's necessary to write '\x00'==0 to get something
5146 that's true only with -std. */
5147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148
5149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5150 inside strings and character constants. */
5151#define FOO(x) 'x'
5152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153
5154int test (int i, double x);
5155struct s1 {int (*f) (int a);};
5156struct s2 {int (*f) (double a);};
5157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5158int argc;
5159char **argv;
5160int
5161main ()
5162{
5163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170do
5171 CC="$ac_save_CC $ac_arg"
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_c89=$ac_arg
5174fi
5175rm -f core conftest.err conftest.$ac_objext
5176 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177done
5178rm -f conftest.$ac_ext
5179CC=$ac_save_CC
5180
5181fi
5182# AC_CACHE_VAL
5183case "x$ac_cv_prog_cc_c89" in
5184 x)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5186$as_echo "none needed" >&6; } ;;
5187 xno)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5189$as_echo "unsupported" >&6; } ;;
5190 *)
5191 CC="$CC $ac_cv_prog_cc_c89"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194esac
5195if test "x$ac_cv_prog_cc_c89" != xno; then :
5196
5197fi
5198
5199ac_ext=c
5200ac_cpp='$CPP $CPPFLAGS'
5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
22e05272
JM
5205ac_ext=c
5206ac_cpp='$CPP $CPPFLAGS'
5207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5211$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5212if ${am_cv_prog_cc_c_o+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h. */
5217
5218int
5219main ()
5220{
5221
5222 ;
5223 return 0;
5224}
5225_ACEOF
5226 # Make sure it works both with $CC and with simple cc.
5227 # Following AC_PROG_CC_C_O, we do the test twice because some
5228 # compilers refuse to overwrite an existing .o file with -o,
5229 # though they will create one.
5230 am_cv_prog_cc_c_o=yes
5231 for am_i in 1 2; do
5232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } \
5237 && test -f conftest2.$ac_objext; then
5238 : OK
5239 else
5240 am_cv_prog_cc_c_o=no
5241 break
5242 fi
5243 done
5244 rm -f core conftest*
5245 unset am_i
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5248$as_echo "$am_cv_prog_cc_c_o" >&6; }
5249if test "$am_cv_prog_cc_c_o" != yes; then
5250 # Losing compiler, so override with the script.
5251 # FIXME: It is wrong to rewrite CC.
5252 # But if we don't then we get into trouble of one sort or another.
5253 # A longer-term fix would be to have automake use am__CC in this case,
5254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5255 CC="$am_aux_dir/compile $CC"
5256fi
5257ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
5263
dcbc9df9
UB
5264depcc="$CC" am_compiler_list=
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5267$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5268if ${am_cv_CC_dependencies_compiler_type+:} false; then :
dcbc9df9
UB
5269 $as_echo_n "(cached) " >&6
5270else
5271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5272 # We make a subdir and do the tests there. Otherwise we can end up
5273 # making bogus files that we don't know about and never remove. For
5274 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5275 # making a dummy file named 'D' -- because '-MD' means "put the output
5276 # in D".
dcbc9df9
UB
5277 rm -rf conftest.dir
5278 mkdir conftest.dir
5279 # Copy depcomp to subdir because otherwise we won't find it if we're
5280 # using a relative directory.
5281 cp "$am_depcomp" conftest.dir
5282 cd conftest.dir
5283 # We will build objects and dependencies in a subdirectory because
5284 # it helps to detect inapplicable dependency modes. For instance
5285 # both Tru64's cc and ICC support -MD to output dependencies as a
5286 # side effect of compilation, but ICC will put the dependencies in
5287 # the current directory while Tru64 will put them in the object
5288 # directory.
5289 mkdir sub
5290
5291 am_cv_CC_dependencies_compiler_type=none
5292 if test "$am_compiler_list" = ""; then
5293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5294 fi
5295 am__universal=false
5296 case " $depcc " in #(
5297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5298 esac
5299
5300 for depmode in $am_compiler_list; do
5301 # Setup a source with many dependencies, because some compilers
5302 # like to wrap large dependency lists on column 80 (with \), and
5303 # we should not choose a depcomp mode which is confused by this.
5304 #
5305 # We need to recreate these files for each test, as the compiler may
5306 # overwrite some of them when testing with obscure command lines.
5307 # This happens at least with the AIX C compiler.
5308 : > sub/conftest.c
5309 for i in 1 2 3 4 5 6; do
5310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5312 # Solaris 10 /bin/sh.
5313 echo '/* dummy */' > sub/conftst$i.h
dcbc9df9
UB
5314 done
5315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316
22e05272 5317 # We check with '-c' and '-o' for the sake of the "dashmstdout"
dcbc9df9 5318 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5319 # handle '-M -o', and we need to detect this. Also, some Intel
5320 # versions had trouble with output in subdirs.
dcbc9df9
UB
5321 am__obj=sub/conftest.${OBJEXT-o}
5322 am__minus_obj="-o $am__obj"
5323 case $depmode in
5324 gcc)
5325 # This depmode causes a compiler race in universal mode.
5326 test "$am__universal" = false || continue
5327 ;;
5328 nosideeffect)
22e05272
JM
5329 # After this tag, mechanisms are not by side-effect, so they'll
5330 # only be used when explicitly requested.
dcbc9df9
UB
5331 if test "x$enable_dependency_tracking" = xyes; then
5332 continue
5333 else
5334 break
5335 fi
5336 ;;
5337 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5338 # This compiler won't grok '-c -o', but also, the minuso test has
dcbc9df9
UB
5339 # not run yet. These depmodes are late enough in the game, and
5340 # so weak that their functioning should not be impacted.
5341 am__obj=conftest.${OBJEXT-o}
5342 am__minus_obj=
5343 ;;
5344 none) break ;;
5345 esac
5346 if depmode=$depmode \
5347 source=sub/conftest.c object=$am__obj \
5348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5350 >/dev/null 2>conftest.err &&
5351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5355 # icc doesn't choke on unknown options, it will just issue warnings
5356 # or remarks (even with -Werror). So we grep stderr for any message
5357 # that says an option was ignored or not supported.
5358 # When given -MP, icc 7.0 and 7.1 complain thusly:
5359 # icc: Command line warning: ignoring option '-M'; no argument required
5360 # The diagnosis changed in icc 8.0:
5361 # icc: Command line remark: option '-MP' not supported
5362 if (grep 'ignoring option' conftest.err ||
5363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5364 am_cv_CC_dependencies_compiler_type=$depmode
5365 break
5366 fi
5367 fi
5368 done
5369
5370 cd ..
5371 rm -rf conftest.dir
5372else
5373 am_cv_CC_dependencies_compiler_type=none
5374fi
5375
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5378$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5379CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5380
5381 if
5382 test "x$enable_dependency_tracking" != xno \
5383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_TRUE=
5385 am__fastdepCC_FALSE='#'
5386else
5387 am__fastdepCC_TRUE='#'
5388 am__fastdepCC_FALSE=
5389fi
5390
5391
5392# Check whether --enable-largefile was given.
5393if test "${enable_largefile+set}" = set; then :
5394 enableval=$enable_largefile;
5395fi
5396
5397if test "$enable_largefile" != no; then
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5400$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 5401if ${ac_cv_sys_largefile_CC+:} false; then :
dcbc9df9
UB
5402 $as_echo_n "(cached) " >&6
5403else
5404 ac_cv_sys_largefile_CC=no
5405 if test "$GCC" != yes; then
5406 ac_save_CC=$CC
5407 while :; do
5408 # IRIX 6.2 and later do not support large files by default,
5409 # so use the C compiler's -n32 option if that helps.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <sys/types.h>
5413 /* Check that off_t can represent 2**63 - 1 correctly.
5414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415 since some C++ compilers masquerading as C compilers
5416 incorrectly reject 9223372036854775807. */
5417#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419 && LARGE_OFF_T % 2147483647 == 1)
5420 ? 1 : -1];
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 break
5431fi
5432rm -f core conftest.err conftest.$ac_objext
5433 CC="$CC -n32"
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 ac_cv_sys_largefile_CC=' -n32'; break
5436fi
5437rm -f core conftest.err conftest.$ac_objext
5438 break
5439 done
5440 CC=$ac_save_CC
5441 rm -f conftest.$ac_ext
5442 fi
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5445$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5446 if test "$ac_cv_sys_largefile_CC" != no; then
5447 CC=$CC$ac_cv_sys_largefile_CC
5448 fi
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5451$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 5452if ${ac_cv_sys_file_offset_bits+:} false; then :
dcbc9df9
UB
5453 $as_echo_n "(cached) " >&6
5454else
5455 while :; do
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h. */
5458#include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5467int
5468main ()
5469{
5470
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_sys_file_offset_bits=no; break
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#define _FILE_OFFSET_BITS 64
5482#include <sys/types.h>
5483 /* Check that off_t can represent 2**63 - 1 correctly.
5484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5485 since some C++ compilers masquerading as C compilers
5486 incorrectly reject 9223372036854775807. */
5487#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5489 && LARGE_OFF_T % 2147483647 == 1)
5490 ? 1 : -1];
5491int
5492main ()
5493{
5494
5495 ;
5496 return 0;
5497}
5498_ACEOF
5499if ac_fn_c_try_compile "$LINENO"; then :
5500 ac_cv_sys_file_offset_bits=64; break
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_sys_file_offset_bits=unknown
5504 break
5505done
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5508$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5509case $ac_cv_sys_file_offset_bits in #(
5510 no | unknown) ;;
5511 *)
5512cat >>confdefs.h <<_ACEOF
5513#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5514_ACEOF
5515;;
5516esac
5517rm -rf conftest*
5518 if test $ac_cv_sys_file_offset_bits = unknown; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5520$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 5521if ${ac_cv_sys_large_files+:} false; then :
dcbc9df9
UB
5522 $as_echo_n "(cached) " >&6
5523else
5524 while :; do
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h. */
5527#include <sys/types.h>
5528 /* Check that off_t can represent 2**63 - 1 correctly.
5529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5530 since some C++ compilers masquerading as C compilers
5531 incorrectly reject 9223372036854775807. */
5532#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5534 && LARGE_OFF_T % 2147483647 == 1)
5535 ? 1 : -1];
5536int
5537main ()
5538{
5539
5540 ;
5541 return 0;
5542}
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545 ac_cv_sys_large_files=no; break
5546fi
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550#define _LARGE_FILES 1
5551#include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5559 ? 1 : -1];
5560int
5561main ()
5562{
5563
5564 ;
5565 return 0;
5566}
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_sys_large_files=1; break
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_cv_sys_large_files=unknown
5573 break
5574done
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5577$as_echo "$ac_cv_sys_large_files" >&6; }
5578case $ac_cv_sys_large_files in #(
5579 no | unknown) ;;
5580 *)
5581cat >>confdefs.h <<_ACEOF
5582#define _LARGE_FILES $ac_cv_sys_large_files
5583_ACEOF
5584;;
5585esac
5586rm -rf conftest*
5587 fi
22e05272
JM
5588
5589
dcbc9df9
UB
5590fi
5591
5592ac_ext=c
5593ac_cpp='$CPP $CPPFLAGS'
5594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596ac_compiler_gnu=$ac_cv_c_compiler_gnu
5597
5598ac_lto_plugin_warn_cflags=
5599save_CFLAGS="$CFLAGS"
5600for real_option in -Wall; do
5601 # Do the check with the no- prefix removed since gcc silently
5602 # accepts any -Wno-* option on purpose
5603 case $real_option in
5604 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5605 *) option=$real_option ;;
5606 esac
5607 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5610$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 5611if eval \${$as_acx_Woption+:} false; then :
dcbc9df9
UB
5612 $as_echo_n "(cached) " >&6
5613else
5614 CFLAGS="$option"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627 eval "$as_acx_Woption=yes"
5628else
5629 eval "$as_acx_Woption=no"
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632
5633fi
5634eval ac_res=\$$as_acx_Woption
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5636$as_echo "$ac_res" >&6; }
5637 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5638 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5639fi
5640 done
5641CFLAGS="$save_CFLAGS"
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648
5649
5650# Check whether -static-libgcc is supported.
5651saved_LDFLAGS="$LDFLAGS"
5652LDFLAGS="$LDFLAGS -static-libgcc"
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5654$as_echo_n "checking for -static-libgcc... " >&6; }
5655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h. */
5657
5658 int main() {}
5659_ACEOF
5660if ac_fn_c_try_link "$LINENO"; then :
5661 have_static_libgcc=yes
5662else
5663 have_static_libgcc=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5668$as_echo "$have_static_libgcc" >&6; };
5669LDFLAGS="$saved_LDFLAGS"
5670# Need -Wc to get it through libtool.
5671if test "x$have_static_libgcc" = xyes; then
5672 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5673fi
5674
33ebb0df
MP
5675# Enable --enable-host-bind-now
5676# Check whether --enable-host-bind-now was given.
5677if test "${enable_host_bind_now+set}" = set; then :
5678 enableval=$enable_host_bind_now;
5679fi
5680
5681
5682
5683if test x$enable_host_bind_now = xyes; then
5684 ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
5685fi
5686
5687
dcbc9df9 5688
8fc8bf80
L
5689 # Check whether --enable-cet was given.
5690if test "${enable_cet+set}" = set; then :
5691 enableval=$enable_cet;
5692 case "$enableval" in
5693 yes|no|auto) ;;
5694 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5695 esac
5696
5697else
5698 enable_cet=auto
5699fi
5700
5701
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5703$as_echo_n "checking for CET support... " >&6; }
5704
5705case "$host" in
5706 i[34567]86-*-linux* | x86_64-*-linux*)
5707 may_have_cet=yes
9051b548 5708 cet_save_CFLAGS="$CFLAGS"
8fc8bf80
L
5709 CFLAGS="$CFLAGS -fcf-protection"
5710 case "$enable_cet" in
5711 auto)
5712 # Check if target supports multi-byte NOPs
4712bde3 5713 # and if compiler and assembler support CET.
8fc8bf80
L
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h. */
5716
5717int
5718main ()
5719{
5720
5721#if !defined(__SSE2__)
5722#error target does not support multi-byte NOPs
5723#else
5724asm ("setssbsy");
5725#endif
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_compile "$LINENO"; then :
5732 enable_cet=yes
5733else
5734 enable_cet=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ;;
5738 yes)
4712bde3 5739 # Check if compiler and assembler support CET.
8fc8bf80
L
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742
5743int
5744main ()
5745{
5746asm ("setssbsy");
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"; then :
4712bde3 5752 support_cet=yes
8fc8bf80 5753else
4712bde3 5754 support_cet=no
8fc8bf80
L
5755fi
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712bde3
L
5757 if test $support_cet = "no"; then
5758 if test x$enable_bootstrap != xno \
5759 && test -z "${with_build_subdir}" \
5760 && (test ! -f ../stage_current \
5761 || test `cat ../stage_current` != "stage1"); then
5762 # Require CET support only for the final GCC build.
5763 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5764 else
5765 # Don't enable CET without CET support for non-bootstrap
5766 # build, in stage1 nor for build support.
5767 enable_cet=no
5768 fi
5769 fi
8fc8bf80
L
5770 ;;
5771 esac
9051b548 5772 CFLAGS="$cet_save_CFLAGS"
8fc8bf80
L
5773 ;;
5774 *)
5775 may_have_cet=no
5776 enable_cet=no
5777 ;;
5778esac
5779
9051b548 5780cet_save_CFLAGS="$CFLAGS"
eedc73a2 5781CFLAGS="$CFLAGS -fcf-protection=none"
9051b548 5782cet_save_LDFLAGS="$LDFLAGS"
eedc73a2
L
5783LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5784if test x$may_have_cet = xyes; then
5785 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */
5788
5789int
5790main ()
5791{
5792return 0;
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_link "$LINENO"; then :
5798 may_have_cet=yes
5799else
5800 may_have_cet=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804fi
5805
8fc8bf80 5806if test x$may_have_cet = xyes; then
d17cdc17
L
5807 if test x$cross_compiling = xno; then
5808 if test "$cross_compiling" = yes; then :
8fc8bf80
L
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811as_fn_error $? "cannot run test program while cross compiling
5812See \`config.log' for more details" "$LINENO" 5; }
5813else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h. */
5816
3f570621
L
5817int
5818main ()
5819{
5820 asm ("endbr32");
5821 return 0;
5822}
5823
5824_ACEOF
5825if ac_fn_c_try_run "$LINENO"; then :
5826 have_multi_byte_nop=yes
5827else
5828 have_multi_byte_nop=no
5829fi
5830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5831 conftest.$ac_objext conftest.beam conftest.$ac_ext
5832fi
5833
5834 have_cet=no
5835 if test x$have_multi_byte_nop = xyes; then
5836 if test "$cross_compiling" = yes; then :
5837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5839as_fn_error $? "cannot run test program while cross compiling
5840See \`config.log' for more details" "$LINENO" 5; }
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844
8fc8bf80
L
5845static void
5846foo (void)
5847{
5848}
5849
5850static void
5851__attribute__ ((noinline, noclone))
5852xxx (void (*f) (void))
5853{
5854 f ();
5855}
5856
5857static void
5858__attribute__ ((noinline, noclone))
5859bar (void)
5860{
5861 xxx (foo);
5862}
5863
5864int
5865main ()
5866{
5867 bar ();
5868 return 0;
5869}
5870
5871_ACEOF
5872if ac_fn_c_try_run "$LINENO"; then :
5873 have_cet=no
5874else
5875 have_cet=yes
5876fi
5877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5878 conftest.$ac_objext conftest.beam conftest.$ac_ext
5879fi
5880
3f570621 5881 fi
d17cdc17
L
5882 if test x$enable_cet = xno -a x$have_cet = xyes; then
5883 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5884 fi
8fc8bf80 5885 fi
d17cdc17
L
5886else
5887 # Enable CET in cross compiler if possible so that it will run on both
5888 # CET and non-CET hosts.
5889 have_cet=yes
8fc8bf80
L
5890fi
5891if test x$enable_cet = xyes; then
5892 CET_HOST_FLAGS="-fcf-protection"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894$as_echo "yes" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
9051b548
L
5899CFLAGS="$cet_save_CFLAGS"
5900LDFLAGS="$cet_save_LDFLAGS"
8fc8bf80
L
5901
5902
5903
dcbc9df9
UB
5904if test x"$host_subdir" = x.; then
5905 gcc_build_dir=../gcc
5906else
5907 gcc_build_dir=../../$host_subdir/gcc
5908fi
5909
5910
5911# Used for constructing correct paths for offload compilers.
5912accel_dir_suffix=
5913real_target_noncanonical=${target_noncanonical}
5914if test x"$enable_as_accelerator_for" != x; then
5915 accel_dir_suffix=/accel/${target_noncanonical}
5916 real_target_noncanonical=${enable_as_accelerator_for}
5917fi
5918
5919
5920
3c36aa6b
JJ
5921# Determine what GCC version number to use in filesystem paths.
5922
5923 get_gcc_base_ver="cat"
5924
5925# Check whether --with-gcc-major-version-only was given.
5926if test "${with_gcc_major_version_only+set}" = set; then :
5927 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 5928 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
5929 fi
5930
5931fi
5932
5933
5934
5935
6ee58926
JJ
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5937$as_echo_n "checking whether symbol versioning is supported... " >&6; }
5938lto_plugin_use_symver=no
5939if test x$gcc_no_link = xyes; then
5940 # If we cannot link, we cannot build shared libraries, so do not use
5941 # symbol versioning.
5942 lto_plugin_use_symver=no
5943else
5944 save_LDFLAGS="$LDFLAGS"
5945 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5946 cat > conftest.map <<EOF
5947{
5948 global: *foo*; bar; local: *;
5949};
5950EOF
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953int foo;
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_link "$LINENO"; then :
5963 lto_plugin_use_symver=gnu
5964else
5965 lto_plugin_use_symver=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 if test x$lto_plugin_use_symver = xno; then
5970 case "$target_os" in
5971 solaris2*)
5972 LDFLAGS="$save_LDFLAGS"
5973 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5974 # Sun ld cannot handle wildcards and treats all entries as undefined.
5975 cat > conftest.map <<EOF
5976{
5977 global: foo; local: *;
5978};
5979EOF
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h. */
5982int foo;
5983int
5984main ()
5985{
5986
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992 lto_plugin_use_symver=sun
5993else
5994 lto_plugin_use_symver=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997 conftest$ac_exeext conftest.$ac_ext
5998 ;;
5999 esac
6000 fi
6001 LDFLAGS="$save_LDFLAGS"
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
6004$as_echo "$lto_plugin_use_symver" >&6; }
6005 if test "x$lto_plugin_use_symver" != xno; then
6006 LTO_PLUGIN_USE_SYMVER_TRUE=
6007 LTO_PLUGIN_USE_SYMVER_FALSE='#'
6008else
6009 LTO_PLUGIN_USE_SYMVER_TRUE='#'
6010 LTO_PLUGIN_USE_SYMVER_FALSE=
6011fi
6012
6013 if test "x$lto_plugin_use_symver" = xgnu; then
6014 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
6015 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
6016else
6017 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6018 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6019fi
6020
6021 if test "x$lto_plugin_use_symver" = xsun; then
6022 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6023 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6024else
6025 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6026 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6027fi
6028
6029
2669cae0 6030# Check for thread headers.
d89fa97f 6031use_locking=no
29f40a80 6032ac_lto_plugin_extra_ldflags=
d89fa97f 6033
5d863720 6034case $host in
d89fa97f
ML
6035 riscv*)
6036 # do not use locking as pthread depends on libatomic
6037 ;;
6038 *-linux*)
6039 use_locking=yes
6040 ;;
6041esac
6042
6043if test x$use_locking = xyes; then
6044 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
2669cae0
ML
6045if test "x$ac_cv_header_pthread_h" = xyes; then :
6046
d89fa97f 6047$as_echo "#define HAVE_PTHREAD_LOCKING 1" >>confdefs.h
2669cae0
ML
6048
6049fi
6050
6051
29f40a80
ML
6052
6053 ac_lto_plugin_extra_ldflags="-pthread"
d89fa97f 6054fi
2669cae0 6055
29f40a80
ML
6056
6057
dcbc9df9
UB
6058case `pwd` in
6059 *\ * | *\ *)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6061$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6062esac
6063
6064
6065
6066macro_version='2.2.7a'
6067macro_revision='1.3134'
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081ltmain="$ac_aux_dir/ltmain.sh"
6082
6083# Backslashify metacharacters that are still active within
6084# double-quoted strings.
6085sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6086
6087# Same as above, but do not quote variable references.
6088double_quote_subst='s/\(["`\\]\)/\\\1/g'
6089
6090# Sed substitution to delay expansion of an escaped shell variable in a
6091# double_quote_subst'ed string.
6092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093
6094# Sed substitution to delay expansion of an escaped single quote.
6095delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6096
6097# Sed substitution to avoid accidental globbing in evaled expressions
6098no_glob_subst='s/\*/\\\*/g'
6099
6100ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6103
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6105$as_echo_n "checking how to print strings... " >&6; }
6106# Test print first, because it will be a builtin if present.
6107if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6108 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6109 ECHO='print -r --'
6110elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6111 ECHO='printf %s\n'
6112else
6113 # Use this function as a fallback that always works.
6114 func_fallback_echo ()
6115 {
6116 eval 'cat <<_LTECHO_EOF
6117$1
6118_LTECHO_EOF'
6119 }
6120 ECHO='func_fallback_echo'
6121fi
6122
6123# func_echo_all arg...
6124# Invoke $ECHO with all args, space-separated.
6125func_echo_all ()
6126{
6127 $ECHO ""
6128}
6129
6130case "$ECHO" in
6131 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6132$as_echo "printf" >&6; } ;;
6133 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6134$as_echo "print -r" >&6; } ;;
6135 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6136$as_echo "cat" >&6; } ;;
6137esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6153$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6154if ${ac_cv_path_SED+:} false; then :
dcbc9df9
UB
6155 $as_echo_n "(cached) " >&6
6156else
6157 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6158 for ac_i in 1 2 3 4 5 6 7; do
6159 ac_script="$ac_script$as_nl$ac_script"
6160 done
6161 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6162 { ac_script=; unset ac_script;}
6163 if test -z "$SED"; then
6164 ac_path_SED_found=false
6165 # Loop through the user's path and test for each of PROGNAME-LIST
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_prog in sed gsed; do
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6174 as_fn_executable_p "$ac_path_SED" || continue
dcbc9df9
UB
6175# Check for GNU ac_path_SED and select it if it is found.
6176 # Check for GNU $ac_path_SED
6177case `"$ac_path_SED" --version 2>&1` in
6178*GNU*)
6179 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6180*)
6181 ac_count=0
6182 $as_echo_n 0123456789 >"conftest.in"
6183 while :
6184 do
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 $as_echo '' >> "conftest.nl"
6189 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_SED_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_SED="$ac_path_SED"
6195 ac_path_SED_max=$ac_count
6196 fi
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6199 done
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201esac
6202
6203 $ac_path_SED_found && break 3
6204 done
6205 done
6206 done
6207IFS=$as_save_IFS
6208 if test -z "$ac_cv_path_SED"; then
22e05272 6209 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
dcbc9df9
UB
6210 fi
6211else
6212 ac_cv_path_SED=$SED
6213fi
6214
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6217$as_echo "$ac_cv_path_SED" >&6; }
6218 SED="$ac_cv_path_SED"
6219 rm -f conftest.sed
6220
6221test -z "$SED" && SED=sed
6222Xsed="$SED -e 1s/^X//"
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6235$as_echo_n "checking for fgrep... " >&6; }
22e05272 6236if ${ac_cv_path_FGREP+:} false; then :
dcbc9df9
UB
6237 $as_echo_n "(cached) " >&6
6238else
6239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6240 then ac_cv_path_FGREP="$GREP -F"
6241 else
6242 if test -z "$FGREP"; then
6243 ac_path_FGREP_found=false
6244 # Loop through the user's path and test for each of PROGNAME-LIST
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_prog in fgrep; do
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6253 as_fn_executable_p "$ac_path_FGREP" || continue
dcbc9df9
UB
6254# Check for GNU ac_path_FGREP and select it if it is found.
6255 # Check for GNU $ac_path_FGREP
6256case `"$ac_path_FGREP" --version 2>&1` in
6257*GNU*)
6258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6259*)
6260 ac_count=0
6261 $as_echo_n 0123456789 >"conftest.in"
6262 while :
6263 do
6264 cat "conftest.in" "conftest.in" >"conftest.tmp"
6265 mv "conftest.tmp" "conftest.in"
6266 cp "conftest.in" "conftest.nl"
6267 $as_echo 'FGREP' >> "conftest.nl"
6268 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6270 as_fn_arith $ac_count + 1 && ac_count=$as_val
6271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6272 # Best one so far, save it but keep looking for a better one
6273 ac_cv_path_FGREP="$ac_path_FGREP"
6274 ac_path_FGREP_max=$ac_count
6275 fi
6276 # 10*(2^10) chars as input seems more than enough
6277 test $ac_count -gt 10 && break
6278 done
6279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6280esac
6281
6282 $ac_path_FGREP_found && break 3
6283 done
6284 done
6285 done
6286IFS=$as_save_IFS
6287 if test -z "$ac_cv_path_FGREP"; then
22e05272 6288 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
6289 fi
6290else
6291 ac_cv_path_FGREP=$FGREP
6292fi
6293
6294 fi
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6297$as_echo "$ac_cv_path_FGREP" >&6; }
6298 FGREP="$ac_cv_path_FGREP"
6299
6300
6301test -z "$GREP" && GREP=grep
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321# Check whether --with-gnu-ld was given.
6322if test "${with_gnu_ld+set}" = set; then :
6323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6324else
6325 with_gnu_ld=no
6326fi
6327
6328ac_prog=ld
6329if test "$GCC" = yes; then
6330 # Check if gcc -print-prog-name=ld gives a path.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6332$as_echo_n "checking for ld used by $CC... " >&6; }
6333 case $host in
6334 *-*-mingw*)
6335 # gcc leaves a trailing carriage return which upsets mingw
6336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6337 *)
6338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6339 esac
6340 case $ac_prog in
6341 # Accept absolute paths.
6342 [\\/]* | ?:[\\/]*)
6343 re_direlt='/[^/][^/]*/\.\./'
6344 # Canonicalize the pathname of ld
6345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6348 done
6349 test -z "$LD" && LD="$ac_prog"
6350 ;;
6351 "")
6352 # If it fails, then pretend we aren't using GCC.
6353 ac_prog=ld
6354 ;;
6355 *)
6356 # If it is relative, then search for the first ld in PATH.
6357 with_gnu_ld=unknown
6358 ;;
6359 esac
6360elif test "$with_gnu_ld" = yes; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6362$as_echo_n "checking for GNU ld... " >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6365$as_echo_n "checking for non-GNU ld... " >&6; }
6366fi
22e05272 6367if ${lt_cv_path_LD+:} false; then :
dcbc9df9
UB
6368 $as_echo_n "(cached) " >&6
6369else
6370 if test -z "$LD"; then
6371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6372 for ac_dir in $PATH; do
6373 IFS="$lt_save_ifs"
6374 test -z "$ac_dir" && ac_dir=.
6375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6376 lt_cv_path_LD="$ac_dir/$ac_prog"
6377 # Check to see if the program is GNU ld. I'd rather use --version,
6378 # but apparently some variants of GNU ld only accept -v.
6379 # Break only if it was the GNU/non-GNU ld that we prefer.
6380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382 test "$with_gnu_ld" != no && break
6383 ;;
6384 *)
6385 test "$with_gnu_ld" != yes && break
6386 ;;
6387 esac
6388 fi
6389 done
6390 IFS="$lt_save_ifs"
6391else
6392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6393fi
6394fi
6395
6396LD="$lt_cv_path_LD"
6397if test -n "$LD"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6399$as_echo "$LD" >&6; }
6400else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
22e05272 6404test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
dcbc9df9
UB
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6406$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6407if ${lt_cv_prog_gnu_ld+:} false; then :
dcbc9df9
UB
6408 $as_echo_n "(cached) " >&6
6409else
6410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6411case `$LD -v 2>&1 </dev/null` in
6412*GNU* | *'with BFD'*)
6413 lt_cv_prog_gnu_ld=yes
6414 ;;
6415*)
6416 lt_cv_prog_gnu_ld=no
6417 ;;
6418esac
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6421$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6422with_gnu_ld=$lt_cv_prog_gnu_ld
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6433$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6434if ${lt_cv_path_NM+:} false; then :
dcbc9df9
UB
6435 $as_echo_n "(cached) " >&6
6436else
6437 if test -n "$NM"; then
6438 # Let the user override the test.
6439 lt_cv_path_NM="$NM"
6440else
6441 lt_nm_to_check="${ac_tool_prefix}nm"
6442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6443 lt_nm_to_check="$lt_nm_to_check nm"
6444 fi
6445 for lt_tmp_nm in $lt_nm_to_check; do
6446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6448 IFS="$lt_save_ifs"
6449 test -z "$ac_dir" && ac_dir=.
6450 tmp_nm="$ac_dir/$lt_tmp_nm"
6451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6452 # Check to see if the nm accepts a BSD-compat flag.
6453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6454 # nm: unknown option "B" ignored
6455 # Tru64's nm complains that /dev/null is an invalid object file
6456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6457 */dev/null* | *'Invalid file or object type'*)
6458 lt_cv_path_NM="$tmp_nm -B"
6459 break
6460 ;;
6461 *)
6462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6463 */dev/null*)
6464 lt_cv_path_NM="$tmp_nm -p"
6465 break
6466 ;;
6467 *)
6468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6469 continue # so that we can try to find one that supports BSD flags
6470 ;;
6471 esac
6472 ;;
6473 esac
6474 fi
6475 done
6476 IFS="$lt_save_ifs"
6477 done
6478 : ${lt_cv_path_NM=no}
6479fi
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6482$as_echo "$lt_cv_path_NM" >&6; }
6483if test "$lt_cv_path_NM" != "no"; then
6484 NM="$lt_cv_path_NM"
6485else
6486 # Didn't find any BSD compatible name lister, look for dumpbin.
6487 if test -n "$DUMPBIN"; then :
6488 # Let the user override the test.
6489 else
6490 if test -n "$ac_tool_prefix"; then
6491 for ac_prog in dumpbin "link -dump"
6492 do
6493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6497if ${ac_cv_prog_DUMPBIN+:} false; then :
dcbc9df9
UB
6498 $as_echo_n "(cached) " >&6
6499else
6500 if test -n "$DUMPBIN"; then
6501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515 done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520DUMPBIN=$ac_cv_prog_DUMPBIN
6521if test -n "$DUMPBIN"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6523$as_echo "$DUMPBIN" >&6; }
6524else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527fi
6528
6529
6530 test -n "$DUMPBIN" && break
6531 done
6532fi
6533if test -z "$DUMPBIN"; then
6534 ac_ct_DUMPBIN=$DUMPBIN
6535 for ac_prog in dumpbin "link -dump"
6536do
6537 # Extract the first word of "$ac_prog", so it can be a program name with args.
6538set dummy $ac_prog; 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; }
22e05272 6541if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
dcbc9df9
UB
6542 $as_echo_n "(cached) " >&6
6543else
6544 if test -n "$ac_ct_DUMPBIN"; then
6545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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
22e05272 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
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
6564ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6565if test -n "$ac_ct_DUMPBIN"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6567$as_echo "$ac_ct_DUMPBIN" >&6; }
6568else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574 test -n "$ac_ct_DUMPBIN" && break
6575done
6576
6577 if test "x$ac_ct_DUMPBIN" = x; then
6578 DUMPBIN=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581yes:)
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584ac_tool_warned=yes ;;
6585esac
6586 DUMPBIN=$ac_ct_DUMPBIN
6587 fi
6588fi
6589
6590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6591 *COFF*)
6592 DUMPBIN="$DUMPBIN -symbols"
6593 ;;
6594 *)
6595 DUMPBIN=:
6596 ;;
6597 esac
6598 fi
6599
6600 if test "$DUMPBIN" != ":"; then
6601 NM="$DUMPBIN"
6602 fi
6603fi
6604test -z "$NM" && NM=nm
6605
6606
6607
6608
6609
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6612$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6613if ${lt_cv_nm_interface+:} false; then :
dcbc9df9
UB
6614 $as_echo_n "(cached) " >&6
6615else
6616 lt_cv_nm_interface="BSD nm"
6617 echo "int some_variable = 0;" > conftest.$ac_ext
6618 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6619 (eval "$ac_compile" 2>conftest.err)
6620 cat conftest.err >&5
6621 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6622 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6623 cat conftest.err >&5
6624 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6625 cat conftest.out >&5
6626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6627 lt_cv_nm_interface="MS dumpbin"
6628 fi
6629 rm -f conftest*
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6632$as_echo "$lt_cv_nm_interface" >&6; }
6633
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6635$as_echo_n "checking whether ln -s works... " >&6; }
6636LN_S=$as_ln_s
6637if test "$LN_S" = "ln -s"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639$as_echo "yes" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6642$as_echo "no, using $LN_S" >&6; }
6643fi
6644
6645# find the maximum length of command line arguments
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6647$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6648if ${lt_cv_sys_max_cmd_len+:} false; then :
dcbc9df9
UB
6649 $as_echo_n "(cached) " >&6
6650else
6651 i=0
6652 teststring="ABCD"
6653
6654 case $build_os in
6655 msdosdjgpp*)
6656 # On DJGPP, this test can blow up pretty badly due to problems in libc
6657 # (any single argument exceeding 2000 bytes causes a buffer overrun
6658 # during glob expansion). Even if it were fixed, the result of this
6659 # check would be larger than it should be.
6660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6661 ;;
6662
6663 gnu*)
6664 # Under GNU Hurd, this test is not required because there is
6665 # no limit to the length of command line arguments.
6666 # Libtool will interpret -1 as no limit whatsoever
6667 lt_cv_sys_max_cmd_len=-1;
6668 ;;
6669
6670 cygwin* | mingw* | cegcc*)
6671 # On Win9x/ME, this test blows up -- it succeeds, but takes
6672 # about 5 minutes as the teststring grows exponentially.
6673 # Worse, since 9x/ME are not pre-emptively multitasking,
6674 # you end up with a "frozen" computer, even though with patience
6675 # the test eventually succeeds (with a max line length of 256k).
6676 # Instead, let's just punt: use the minimum linelength reported by
6677 # all of the supported platforms: 8192 (on NT/2K/XP).
6678 lt_cv_sys_max_cmd_len=8192;
6679 ;;
6680
6681 mint*)
6682 # On MiNT this can take a long time and run out of memory.
6683 lt_cv_sys_max_cmd_len=8192;
6684 ;;
6685
6686 amigaos*)
6687 # On AmigaOS with pdksh, this test takes hours, literally.
6688 # So we just punt and use a minimum line length of 8192.
6689 lt_cv_sys_max_cmd_len=8192;
6690 ;;
6691
6692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6693 # This has been around since 386BSD, at least. Likely further.
6694 if test -x /sbin/sysctl; then
6695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6696 elif test -x /usr/sbin/sysctl; then
6697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6698 else
6699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6700 fi
6701 # And add a safety zone
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6704 ;;
6705
6706 interix*)
6707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6708 lt_cv_sys_max_cmd_len=196608
6709 ;;
6710
6711 osf*)
6712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6714 # nice to cause kernel panics so lets avoid the loop below.
6715 # First set a reasonable default.
6716 lt_cv_sys_max_cmd_len=16384
6717 #
6718 if test -x /sbin/sysconfig; then
6719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6721 esac
6722 fi
6723 ;;
6724 sco3.2v5*)
6725 lt_cv_sys_max_cmd_len=102400
6726 ;;
6727 sysv5* | sco5v6* | sysv4.2uw2*)
6728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6729 if test -n "$kargmax"; then
6730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6731 else
6732 lt_cv_sys_max_cmd_len=32768
6733 fi
6734 ;;
6735 *)
6736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6737 if test -n "$lt_cv_sys_max_cmd_len"; then
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6740 else
6741 # Make teststring a little bigger before we do anything with it.
6742 # a 1K string should be a reasonable start.
6743 for i in 1 2 3 4 5 6 7 8 ; do
6744 teststring=$teststring$teststring
6745 done
6746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6747 # If test is not a shell built-in, we'll probably end up computing a
6748 # maximum length that is only half of the actual maximum length, but
6749 # we can't tell.
6750 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6751 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6752 test $i != 17 # 1/2 MB should be enough
6753 do
6754 i=`expr $i + 1`
6755 teststring=$teststring$teststring
6756 done
6757 # Only check the string length outside the loop.
6758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6759 teststring=
6760 # Add a significant safety factor because C++ compilers can tack on
6761 # massive amounts of additional arguments before passing them to the
6762 # linker. It appears as though 1/2 is a usable value.
6763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6764 fi
6765 ;;
d7f09764
DN
6766 esac
6767
6768fi
6769
6770if test -n $lt_cv_sys_max_cmd_len ; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6772$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6773else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6775$as_echo "none" >&6; }
6776fi
6777max_cmd_len=$lt_cv_sys_max_cmd_len
6778
6779
6780
6781
6782
6783
6784: ${CP="cp -f"}
6785: ${MV="mv -f"}
6786: ${RM="rm -f"}
6787
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6789$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6790# Try some XSI features
6791xsi_shell=no
6792( _lt_dummy="a/b/c"
6793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6794 = c,a/b,, \
6795 && eval 'test $(( 1 + 1 )) -eq 2 \
6796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6797 && xsi_shell=yes
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6799$as_echo "$xsi_shell" >&6; }
6800
6801
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6803$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6804lt_shell_append=no
6805( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6806 >/dev/null 2>&1 \
6807 && lt_shell_append=yes
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6809$as_echo "$lt_shell_append" >&6; }
6810
6811
6812if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6813 lt_unset=unset
6814else
6815 lt_unset=false
6816fi
6817
6818
6819
6820
6821
6822# test EBCDIC or ASCII
6823case `echo X|tr X '\101'` in
6824 A) # ASCII based system
6825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6826 lt_SP2NL='tr \040 \012'
6827 lt_NL2SP='tr \015\012 \040\040'
6828 ;;
6829 *) # EBCDIC based system
6830 lt_SP2NL='tr \100 \n'
6831 lt_NL2SP='tr \r\n \100\100'
6832 ;;
6833esac
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6844$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6845if ${lt_cv_ld_reload_flag+:} false; then :
d7f09764
DN
6846 $as_echo_n "(cached) " >&6
6847else
6848 lt_cv_ld_reload_flag='-r'
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6851$as_echo "$lt_cv_ld_reload_flag" >&6; }
6852reload_flag=$lt_cv_ld_reload_flag
6853case $reload_flag in
6854"" | " "*) ;;
6855*) reload_flag=" $reload_flag" ;;
6856esac
6857reload_cmds='$LD$reload_flag -o $output$reload_objs'
6858case $host_os in
6859 darwin*)
6860 if test "$GCC" = yes; then
6861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6862 else
6863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6864 fi
6865 ;;
6866esac
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6878set dummy ${ac_tool_prefix}objdump; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6881if ${ac_cv_prog_OBJDUMP+:} false; then :
d7f09764
DN
6882 $as_echo_n "(cached) " >&6
6883else
6884 if test -n "$OBJDUMP"; then
6885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898done
6899 done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904OBJDUMP=$ac_cv_prog_OBJDUMP
6905if test -n "$OBJDUMP"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6907$as_echo "$OBJDUMP" >&6; }
6908else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913
6914fi
6915if test -z "$ac_cv_prog_OBJDUMP"; then
6916 ac_ct_OBJDUMP=$OBJDUMP
6917 # Extract the first word of "objdump", so it can be a program name with args.
6918set dummy objdump; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6921if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d7f09764
DN
6922 $as_echo_n "(cached) " >&6
6923else
6924 if test -n "$ac_ct_OBJDUMP"; then
6925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939 done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6945if test -n "$ac_ct_OBJDUMP"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6947$as_echo "$ac_ct_OBJDUMP" >&6; }
6948else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953 if test "x$ac_ct_OBJDUMP" = x; then
6954 OBJDUMP="false"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957yes:)
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960ac_tool_warned=yes ;;
6961esac
6962 OBJDUMP=$ac_ct_OBJDUMP
6963 fi
6964else
6965 OBJDUMP="$ac_cv_prog_OBJDUMP"
6966fi
6967
6968test -z "$OBJDUMP" && OBJDUMP=objdump
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6979$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6980if ${lt_cv_deplibs_check_method+:} false; then :
d7f09764
DN
6981 $as_echo_n "(cached) " >&6
6982else
6983 lt_cv_file_magic_cmd='$MAGIC_CMD'
6984lt_cv_file_magic_test_file=
6985lt_cv_deplibs_check_method='unknown'
6986# Need to set the preceding variable on all platforms that support
6987# interlibrary dependencies.
6988# 'none' -- dependencies not supported.
6989# `unknown' -- same as none, but documents that we really don't know.
6990# 'pass_all' -- all dependencies passed with no checks.
6991# 'test_compile' -- check by making test program.
6992# 'file_magic [[regex]]' -- check by looking for files in library path
6993# which responds to the $file_magic_cmd with a given extended regex.
6994# If you have `file' or equivalent on your system and you're not sure
6995# whether `pass_all' will *always* work, you probably want this one.
6996
6997case $host_os in
6998aix[4-9]*)
6999 lt_cv_deplibs_check_method=pass_all
7000 ;;
7001
7002beos*)
7003 lt_cv_deplibs_check_method=pass_all
7004 ;;
7005
7006bsdi[45]*)
7007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7008 lt_cv_file_magic_cmd='/usr/bin/file -L'
7009 lt_cv_file_magic_test_file=/shlib/libc.so
7010 ;;
7011
7012cygwin*)
7013 # func_win32_libid is a shell function defined in ltmain.sh
7014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015 lt_cv_file_magic_cmd='func_win32_libid'
7016 ;;
7017
7018mingw* | pw32*)
7019 # Base MSYS/MinGW do not provide the 'file' command needed by
7020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7021 # unless we find 'file', for example because we are cross-compiling.
52327858
L
7022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
7024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7025 lt_cv_file_magic_cmd='func_win32_libid'
7026 else
7027 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7028 lt_cv_file_magic_cmd='$OBJDUMP -f'
7029 fi
7030 ;;
7031
52327858 7032cegcc*)
d7f09764
DN
7033 # use the weaker test based on 'objdump'. See mingw*.
7034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7036 ;;
7037
7038darwin* | rhapsody*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7041
7042freebsd* | dragonfly*)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044 case $host_cpu in
7045 i*86 )
7046 # Not sure whether the presence of OpenBSD here was a mistake.
7047 # Let's accept both of them until this is cleared up.
7048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7049 lt_cv_file_magic_cmd=/usr/bin/file
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051 ;;
7052 esac
7053 else
7054 lt_cv_deplibs_check_method=pass_all
7055 fi
7056 ;;
7057
7058gnu*)
7059 lt_cv_deplibs_check_method=pass_all
7060 ;;
7061
52327858
L
7062haiku*)
7063 lt_cv_deplibs_check_method=pass_all
7064 ;;
7065
d7f09764
DN
7066hpux10.20* | hpux11*)
7067 lt_cv_file_magic_cmd=/usr/bin/file
7068 case $host_cpu in
7069 ia64*)
7070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7071 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7072 ;;
7073 hppa*64*)
52327858 7074 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
7075 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7076 ;;
7077 *)
52327858 7078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
7079 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7080 ;;
7081 esac
7082 ;;
7083
7084interix[3-9]*)
7085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7087 ;;
7088
7089irix5* | irix6* | nonstopux*)
7090 case $LD in
7091 *-32|*"-32 ") libmagic=32-bit;;
7092 *-n32|*"-n32 ") libmagic=N32;;
7093 *-64|*"-64 ") libmagic=64-bit;;
7094 *) libmagic=never-match;;
7095 esac
7096 lt_cv_deplibs_check_method=pass_all
7097 ;;
7098
7099# This must be Linux ELF.
e9085da5 7100linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7f09764
DN
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104netbsd*)
7105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7107 else
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7109 fi
7110 ;;
7111
7112newos6*)
7113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7114 lt_cv_file_magic_cmd=/usr/bin/file
7115 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7116 ;;
7117
7118*nto* | *qnx*)
7119 lt_cv_deplibs_check_method=pass_all
7120 ;;
7121
7122openbsd*)
7123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7125 else
7126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7127 fi
7128 ;;
7129
7130osf3* | osf4* | osf5*)
7131 lt_cv_deplibs_check_method=pass_all
7132 ;;
7133
7134rdos*)
7135 lt_cv_deplibs_check_method=pass_all
7136 ;;
7137
7138solaris*)
7139 lt_cv_deplibs_check_method=pass_all
7140 ;;
7141
7142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7143 lt_cv_deplibs_check_method=pass_all
7144 ;;
7145
7146sysv4 | sysv4.3*)
7147 case $host_vendor in
7148 motorola)
7149 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]'
7150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7151 ;;
7152 ncr)
7153 lt_cv_deplibs_check_method=pass_all
7154 ;;
7155 sequent)
7156 lt_cv_file_magic_cmd='/bin/file'
7157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7158 ;;
7159 sni)
7160 lt_cv_file_magic_cmd='/bin/file'
7161 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7162 lt_cv_file_magic_test_file=/lib/libc.so
7163 ;;
7164 siemens)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167 pc)
7168 lt_cv_deplibs_check_method=pass_all
7169 ;;
7170 esac
7171 ;;
7172
7173tpf*)
7174 lt_cv_deplibs_check_method=pass_all
7175 ;;
0ecd0f1c
OH
7176vxworks*)
7177 # Assume VxWorks cross toolchains are built on Linux, possibly
7178 # as canadian for Windows hosts.
7179 lt_cv_deplibs_check_method=pass_all
7180 ;;
d7f09764
DN
7181esac
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7185$as_echo "$lt_cv_deplibs_check_method" >&6; }
7186file_magic_cmd=$lt_cv_file_magic_cmd
7187deplibs_check_method=$lt_cv_deplibs_check_method
7188test -z "$deplibs_check_method" && deplibs_check_method=unknown
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7203set dummy ${ac_tool_prefix}ar; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7206if ${ac_cv_prog_AR+:} false; then :
d7f09764
DN
7207 $as_echo_n "(cached) " >&6
7208else
7209 if test -n "$AR"; then
7210 ac_cv_prog_AR="$AR" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7219 ac_cv_prog_AR="${ac_tool_prefix}ar"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224 done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229AR=$ac_cv_prog_AR
7230if test -n "$AR"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7232$as_echo "$AR" >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238
7239fi
7240if test -z "$ac_cv_prog_AR"; then
7241 ac_ct_AR=$AR
7242 # Extract the first word of "ar", so it can be a program name with args.
7243set dummy ar; ac_word=$2
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7246if ${ac_cv_prog_ac_ct_AR+:} false; then :
d7f09764
DN
7247 $as_echo_n "(cached) " >&6
7248else
7249 if test -n "$ac_ct_AR"; then
7250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7259 ac_cv_prog_ac_ct_AR="ar"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264 done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269ac_ct_AR=$ac_cv_prog_ac_ct_AR
7270if test -n "$ac_ct_AR"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7272$as_echo "$ac_ct_AR" >&6; }
7273else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
7277
7278 if test "x$ac_ct_AR" = x; then
7279 AR="false"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285ac_tool_warned=yes ;;
7286esac
7287 AR=$ac_ct_AR
7288 fi
7289else
7290 AR="$ac_cv_prog_AR"
7291fi
7292
7293test -z "$AR" && AR=ar
7294test -z "$AR_FLAGS" && AR_FLAGS=cru
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}strip; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7311if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
7312 $as_echo_n "(cached) " >&6
7313else
7314 if test -n "$STRIP"; then
7315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329 done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334STRIP=$ac_cv_prog_STRIP
7335if test -n "$STRIP"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7337$as_echo "$STRIP" >&6; }
7338else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343
7344fi
7345if test -z "$ac_cv_prog_STRIP"; then
7346 ac_ct_STRIP=$STRIP
7347 # Extract the first word of "strip", so it can be a program name with args.
7348set dummy strip; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7351if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
7352 $as_echo_n "(cached) " >&6
7353else
7354 if test -n "$ac_ct_STRIP"; then
7355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7364 ac_cv_prog_ac_ct_STRIP="strip"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369 done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375if test -n "$ac_ct_STRIP"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7377$as_echo "$ac_ct_STRIP" >&6; }
7378else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383 if test "x$ac_ct_STRIP" = x; then
7384 STRIP=":"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390ac_tool_warned=yes ;;
7391esac
7392 STRIP=$ac_ct_STRIP
7393 fi
7394else
7395 STRIP="$ac_cv_prog_STRIP"
7396fi
7397
7398test -z "$STRIP" && STRIP=:
7399
7400
7401
7402
7403
7404
7405if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7407set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7410if ${ac_cv_prog_RANLIB+:} false; then :
d7f09764
DN
7411 $as_echo_n "(cached) " >&6
7412else
7413 if test -n "$RANLIB"; then
7414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428 done
7429IFS=$as_save_IFS
7430
7431fi
7432fi
7433RANLIB=$ac_cv_prog_RANLIB
7434if test -n "$RANLIB"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7436$as_echo "$RANLIB" >&6; }
7437else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7440fi
7441
7442
7443fi
7444if test -z "$ac_cv_prog_RANLIB"; then
7445 ac_ct_RANLIB=$RANLIB
7446 # Extract the first word of "ranlib", so it can be a program name with args.
7447set dummy ranlib; ac_word=$2
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7450if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d7f09764
DN
7451 $as_echo_n "(cached) " >&6
7452else
7453 if test -n "$ac_ct_RANLIB"; then
7454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7463 ac_cv_prog_ac_ct_RANLIB="ranlib"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468 done
7469IFS=$as_save_IFS
7470
7471fi
7472fi
7473ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7474if test -n "$ac_ct_RANLIB"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7476$as_echo "$ac_ct_RANLIB" >&6; }
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482 if test "x$ac_ct_RANLIB" = x; then
7483 RANLIB=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486yes:)
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489ac_tool_warned=yes ;;
7490esac
7491 RANLIB=$ac_ct_RANLIB
7492 fi
7493else
7494 RANLIB="$ac_cv_prog_RANLIB"
7495fi
7496
7497test -z "$RANLIB" && RANLIB=:
7498
7499
7500
7501
7502
7503
7504# Determine commands to create old-style static archives.
7505old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7506old_postinstall_cmds='chmod 644 $oldlib'
7507old_postuninstall_cmds=
7508
7509if test -n "$RANLIB"; then
7510 case $host_os in
7511 openbsd*)
7512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7513 ;;
7514 *)
7515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7516 ;;
7517 esac
7518 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7519fi
7520
52327858
L
7521case $host_os in
7522 darwin*)
7523 lock_old_archive_extraction=yes ;;
7524 *)
7525 lock_old_archive_extraction=no ;;
7526esac
7527
7528
7529
7530
7531
7532
d7f09764
DN
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566# If no C compiler was specified, use CC.
7567LTCC=${LTCC-"$CC"}
7568
7569# If no C compiler flags were specified, use CFLAGS.
7570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7571
7572# Allow CC to be a program name with arguments.
7573compiler=$CC
7574
7575
7576# Check for command to grab the raw symbol name followed by C symbol from nm.
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7578$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7579if ${lt_cv_sys_global_symbol_pipe+:} false; then :
d7f09764
DN
7580 $as_echo_n "(cached) " >&6
7581else
7582
7583# These are sane defaults that work on at least a few old systems.
7584# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7585
7586# Character class describing NM global symbol codes.
7587symcode='[BCDEGRST]'
7588
7589# Regexp to match symbols that can be accessed directly from C.
7590sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7591
7592# Define system-specific variables.
7593case $host_os in
7594aix*)
7595 symcode='[BCDT]'
7596 ;;
7597cygwin* | mingw* | pw32* | cegcc*)
7598 symcode='[ABCDGISTW]'
7599 ;;
7600hpux*)
7601 if test "$host_cpu" = ia64; then
7602 symcode='[ABCDEGRST]'
7603 fi
7604 ;;
7605irix* | nonstopux*)
7606 symcode='[BCDEGRST]'
7607 ;;
7608osf*)
7609 symcode='[BCDEGQRST]'
7610 ;;
7611solaris*)
7612 symcode='[BDRT]'
7613 ;;
7614sco3.2v5*)
7615 symcode='[DT]'
7616 ;;
7617sysv4.2uw2*)
7618 symcode='[DT]'
7619 ;;
7620sysv5* | sco5v6* | unixware* | OpenUNIX*)
7621 symcode='[ABDT]'
7622 ;;
7623sysv4)
7624 symcode='[DFNSTU]'
7625 ;;
7626esac
7627
7628# If we're using GNU nm, then use its standard symbol codes.
7629case `$NM -V 2>&1` in
7630*GNU* | *'with BFD'*)
7631 symcode='[ABCDGIRSTW]' ;;
7632esac
7633
7634# Transform an extracted symbol line into a proper C declaration.
7635# Some systems (esp. on ia64) link data and code symbols differently,
7636# so use this general approach.
7637lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7638
7639# Transform an extracted symbol line into symbol name and symbol address
7640lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7641lt_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'"
7642
7643# Handle CRLF in mingw tool chain
7644opt_cr=
7645case $build_os in
7646mingw*)
7647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7648 ;;
7649esac
7650
7651# Try without a prefix underscore, then with it.
7652for ac_symprfx in "" "_"; do
7653
7654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7655 symxfrm="\\1 $ac_symprfx\\2 \\2"
7656
7657 # Write the raw and C identifiers.
7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659 # Fake it for dumpbin and say T for any non-static function
7660 # and D for any global variable.
7661 # Also find C++ and __fastcall symbols from MSVC++,
7662 # which start with @ or ?.
7663 lt_cv_sys_global_symbol_pipe="$AWK '"\
7664" {last_section=section; section=\$ 3};"\
7665" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7666" \$ 0!~/External *\|/{next};"\
7667" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7668" {if(hide[section]) next};"\
7669" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7670" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7671" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7672" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7673" ' prfx=^$ac_symprfx"
7674 else
7675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7676 fi
7677
7678 # Check to see that the pipe works correctly.
7679 pipe_works=no
7680
7681 rm -f conftest*
7682 cat > conftest.$ac_ext <<_LT_EOF
7683#ifdef __cplusplus
7684extern "C" {
7685#endif
7686char nm_test_var;
7687void nm_test_func(void);
7688void nm_test_func(void){}
7689#ifdef __cplusplus
7690}
7691#endif
7692int main(){nm_test_var='a';nm_test_func();return(0);}
7693_LT_EOF
7694
7695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7696 (eval $ac_compile) 2>&5
7697 ac_status=$?
7698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699 test $ac_status = 0; }; then
7700 # Now try to grab the symbols.
7701 nlist=conftest.nm
52327858
L
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7703 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; } && test -s "$nlist"; then
7707 # Try sorting and uniquifying the output.
7708 if sort "$nlist" | uniq > "$nlist"T; then
7709 mv -f "$nlist"T "$nlist"
7710 else
7711 rm -f "$nlist"T
7712 fi
7713
7714 # Make sure that we snagged all the symbols we need.
7715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7717 cat <<_LT_EOF > conftest.$ac_ext
7718#ifdef __cplusplus
7719extern "C" {
7720#endif
7721
7722_LT_EOF
7723 # Now generate the symbol file.
7724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7725
7726 cat <<_LT_EOF >> conftest.$ac_ext
7727
7728/* The mapping between symbol names and symbols. */
7729const struct {
7730 const char *name;
7731 void *address;
7732}
7733lt__PROGRAM__LTX_preloaded_symbols[] =
7734{
7735 { "@PROGRAM@", (void *) 0 },
7736_LT_EOF
7737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7738 cat <<\_LT_EOF >> conftest.$ac_ext
7739 {0, (void *) 0}
7740};
7741
7742/* This works around a problem in FreeBSD linker */
7743#ifdef FREEBSD_WORKAROUND
7744static const void *lt_preloaded_setup() {
7745 return lt__PROGRAM__LTX_preloaded_symbols;
7746}
7747#endif
7748
7749#ifdef __cplusplus
7750}
7751#endif
7752_LT_EOF
7753 # Now try linking the two files.
7754 mv conftest.$ac_objext conftstm.$ac_objext
7755 lt_save_LIBS="$LIBS"
7756 lt_save_CFLAGS="$CFLAGS"
7757 LIBS="conftstm.$ac_objext"
7758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7760 (eval $ac_link) 2>&5
7761 ac_status=$?
7762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7764 pipe_works=yes
7765 fi
7766 LIBS="$lt_save_LIBS"
7767 CFLAGS="$lt_save_CFLAGS"
7768 else
7769 echo "cannot find nm_test_func in $nlist" >&5
7770 fi
7771 else
7772 echo "cannot find nm_test_var in $nlist" >&5
7773 fi
7774 else
7775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7776 fi
7777 else
7778 echo "$progname: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 fi
7781 rm -rf conftest* conftst*
7782
7783 # Do not use the global_symbol_pipe unless it works.
7784 if test "$pipe_works" = yes; then
7785 break
7786 else
7787 lt_cv_sys_global_symbol_pipe=
7788 fi
7789done
7790
7791fi
7792
7793if test -z "$lt_cv_sys_global_symbol_pipe"; then
7794 lt_cv_sys_global_symbol_to_cdecl=
7795fi
7796if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7798$as_echo "failed" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7801$as_echo "ok" >&6; }
7802fi
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
d7f09764
DN
7823
7824
7825# Check whether --enable-libtool-lock was given.
7826if test "${enable_libtool_lock+set}" = set; then :
7827 enableval=$enable_libtool_lock;
7828fi
7829
7830test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7831
7832# Some flags need to be propagated to the compiler or linker for good
7833# libtool support.
7834case $host in
7835ia64-*-hpux*)
7836 # Find out which ABI we are using.
7837 echo 'int i;' > conftest.$ac_ext
7838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7839 (eval $ac_compile) 2>&5
7840 ac_status=$?
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }; then
7843 case `/usr/bin/file conftest.$ac_objext` in
7844 *ELF-32*)
7845 HPUX_IA64_MODE="32"
7846 ;;
7847 *ELF-64*)
7848 HPUX_IA64_MODE="64"
7849 ;;
7850 esac
7851 fi
7852 rm -rf conftest*
7853 ;;
7854*-*-irix6*)
7855 # Find out which ABI we are using.
52327858 7856 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858 (eval $ac_compile) 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 if test "$lt_cv_prog_gnu_ld" = yes; then
7863 case `/usr/bin/file conftest.$ac_objext` in
7864 *32-bit*)
7865 LD="${LD-ld} -melf32bsmip"
7866 ;;
7867 *N32*)
7868 LD="${LD-ld} -melf32bmipn32"
7869 ;;
7870 *64-bit*)
7871 LD="${LD-ld} -melf64bmip"
7872 ;;
7873 esac
7874 else
7875 case `/usr/bin/file conftest.$ac_objext` in
7876 *32-bit*)
7877 LD="${LD-ld} -32"
7878 ;;
7879 *N32*)
7880 LD="${LD-ld} -n32"
7881 ;;
7882 *64-bit*)
7883 LD="${LD-ld} -64"
7884 ;;
7885 esac
7886 fi
7887 fi
7888 rm -rf conftest*
7889 ;;
7890
3cbe17f7 7891x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7f09764
DN
7892s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7893 # Find out which ABI we are using.
7894 echo 'int i;' > conftest.$ac_ext
7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896 (eval $ac_compile) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7900 case `/usr/bin/file conftest.o` in
7901 *32-bit*)
7902 case $host in
7903 x86_64-*kfreebsd*-gnu)
7904 LD="${LD-ld} -m elf_i386_fbsd"
7905 ;;
7906 x86_64-*linux*)
e6d5f8c9
L
7907 case `/usr/bin/file conftest.o` in
7908 *x86-64*)
7909 LD="${LD-ld} -m elf32_x86_64"
7910 ;;
7911 *)
7912 LD="${LD-ld} -m elf_i386"
7913 ;;
7914 esac
d7f09764 7915 ;;
3cbe17f7
AM
7916 powerpc64le-*linux*)
7917 LD="${LD-ld} -m elf32lppclinux"
7918 ;;
7919 powerpc64-*linux*)
d7f09764
DN
7920 LD="${LD-ld} -m elf32ppclinux"
7921 ;;
7922 s390x-*linux*)
7923 LD="${LD-ld} -m elf_s390"
7924 ;;
7925 sparc64-*linux*)
7926 LD="${LD-ld} -m elf32_sparc"
7927 ;;
7928 esac
7929 ;;
7930 *64-bit*)
7931 case $host in
7932 x86_64-*kfreebsd*-gnu)
7933 LD="${LD-ld} -m elf_x86_64_fbsd"
7934 ;;
7935 x86_64-*linux*)
7936 LD="${LD-ld} -m elf_x86_64"
7937 ;;
3cbe17f7
AM
7938 powerpcle-*linux*)
7939 LD="${LD-ld} -m elf64lppc"
7940 ;;
7941 powerpc-*linux*)
d7f09764
DN
7942 LD="${LD-ld} -m elf64ppc"
7943 ;;
7944 s390*-*linux*|s390*-*tpf*)
7945 LD="${LD-ld} -m elf64_s390"
7946 ;;
7947 sparc*-*linux*)
7948 LD="${LD-ld} -m elf64_sparc"
7949 ;;
7950 esac
7951 ;;
7952 esac
7953 fi
7954 rm -rf conftest*
7955 ;;
7956
7957*-*-sco3.2v5*)
7958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7959 SAVE_CFLAGS="$CFLAGS"
7960 CFLAGS="$CFLAGS -belf"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7962$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7963if ${lt_cv_cc_needs_belf+:} false; then :
d7f09764
DN
7964 $as_echo_n "(cached) " >&6
7965else
7966 ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h. */
7974
7975int
7976main ()
7977{
7978
7979 ;
7980 return 0;
7981}
7982_ACEOF
7983if ac_fn_c_try_link "$LINENO"; then :
7984 lt_cv_cc_needs_belf=yes
7985else
7986 lt_cv_cc_needs_belf=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7998$as_echo "$lt_cv_cc_needs_belf" >&6; }
7999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8001 CFLAGS="$SAVE_CFLAGS"
8002 fi
8003 ;;
8004sparc*-*solaris*)
8005 # Find out which ABI we are using.
8006 echo 'int i;' > conftest.$ac_ext
8007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008 (eval $ac_compile) 2>&5
8009 ac_status=$?
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 case `/usr/bin/file conftest.o` in
8013 *64-bit*)
8014 case $lt_cv_prog_gnu_ld in
8015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8016 *)
8017 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8018 LD="${LD-ld} -64"
8019 fi
8020 ;;
8021 esac
8022 ;;
8023 esac
8024 fi
8025 rm -rf conftest*
8026 ;;
8027esac
8028
8029need_locks="$enable_libtool_lock"
8030
8031
8032 case $host_os in
8033 rhapsody* | darwin*)
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8036set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8039if ${ac_cv_prog_DSYMUTIL+:} false; then :
d7f09764
DN
8040 $as_echo_n "(cached) " >&6
8041else
8042 if test -n "$DSYMUTIL"; then
8043 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
8052 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056done
8057 done
8058IFS=$as_save_IFS
8059
8060fi
8061fi
8062DSYMUTIL=$ac_cv_prog_DSYMUTIL
8063if test -n "$DSYMUTIL"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8065$as_echo "$DSYMUTIL" >&6; }
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069fi
8070
8071
8072fi
dcbc9df9
UB
8073if test -z "$ac_cv_prog_DSYMUTIL"; then
8074 ac_ct_DSYMUTIL=$DSYMUTIL
8075 # Extract the first word of "dsymutil", so it can be a program name with args.
8076set dummy dsymutil; ac_word=$2
d7f09764
DN
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8079if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
d7f09764
DN
8080 $as_echo_n "(cached) " >&6
8081else
dcbc9df9
UB
8082 if test -n "$ac_ct_DSYMUTIL"; then
8083 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d7f09764
DN
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8092 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
d7f09764
DN
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
8099
8100fi
8101fi
dcbc9df9
UB
8102ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8103if test -n "$ac_ct_DSYMUTIL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8105$as_echo "$ac_ct_DSYMUTIL" >&6; }
d7f09764
DN
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
dcbc9df9
UB
8111 if test "x$ac_ct_DSYMUTIL" = x; then
8112 DSYMUTIL=":"
d7f09764
DN
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
dcbc9df9 8120 DSYMUTIL=$ac_ct_DSYMUTIL
d7f09764
DN
8121 fi
8122else
dcbc9df9 8123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d7f09764
DN
8124fi
8125
8126 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
8127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8128set dummy ${ac_tool_prefix}nmedit; ac_word=$2
d7f09764
DN
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8131if ${ac_cv_prog_NMEDIT+:} false; then :
d7f09764
DN
8132 $as_echo_n "(cached) " >&6
8133else
dcbc9df9
UB
8134 if test -n "$NMEDIT"; then
8135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d7f09764
DN
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
d7f09764
DN
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148done
8149 done
8150IFS=$as_save_IFS
8151
8152fi
8153fi
dcbc9df9
UB
8154NMEDIT=$ac_cv_prog_NMEDIT
8155if test -n "$NMEDIT"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8157$as_echo "$NMEDIT" >&6; }
d7f09764
DN
8158else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
8161fi
8162
8163
8164fi
dcbc9df9
UB
8165if test -z "$ac_cv_prog_NMEDIT"; then
8166 ac_ct_NMEDIT=$NMEDIT
8167 # Extract the first word of "nmedit", so it can be a program name with args.
8168set dummy nmedit; ac_word=$2
d7f09764
DN
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8171if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
d7f09764
DN
8172 $as_echo_n "(cached) " >&6
8173else
dcbc9df9
UB
8174 if test -n "$ac_ct_NMEDIT"; then
8175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d7f09764
DN
8176else
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
d7f09764
DN
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8187 fi
8188done
8189 done
8190IFS=$as_save_IFS
8191
8192fi
8193fi
dcbc9df9
UB
8194ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8195if test -n "$ac_ct_NMEDIT"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8197$as_echo "$ac_ct_NMEDIT" >&6; }
d7f09764
DN
8198else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
dcbc9df9
UB
8203 if test "x$ac_ct_NMEDIT" = x; then
8204 NMEDIT=":"
d7f09764
DN
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207yes:)
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210ac_tool_warned=yes ;;
8211esac
dcbc9df9 8212 NMEDIT=$ac_ct_NMEDIT
d7f09764
DN
8213 fi
8214else
dcbc9df9 8215 NMEDIT="$ac_cv_prog_NMEDIT"
d7f09764
DN
8216fi
8217
8218 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
8219 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8220set dummy ${ac_tool_prefix}lipo; ac_word=$2
d7f09764
DN
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8223if ${ac_cv_prog_LIPO+:} false; then :
d7f09764
DN
8224 $as_echo_n "(cached) " >&6
8225else
dcbc9df9
UB
8226 if test -n "$LIPO"; then
8227 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d7f09764
DN
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
d7f09764
DN
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240done
8241 done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
dcbc9df9
UB
8246LIPO=$ac_cv_prog_LIPO
8247if test -n "$LIPO"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8249$as_echo "$LIPO" >&6; }
d7f09764
DN
8250else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
8254
8255
8256fi
dcbc9df9
UB
8257if test -z "$ac_cv_prog_LIPO"; then
8258 ac_ct_LIPO=$LIPO
8259 # Extract the first word of "lipo", so it can be a program name with args.
8260set dummy lipo; ac_word=$2
d7f09764
DN
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8263if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
d7f09764
DN
8264 $as_echo_n "(cached) " >&6
8265else
dcbc9df9
UB
8266 if test -n "$ac_ct_LIPO"; then
8267 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d7f09764
DN
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8276 ac_cv_prog_ac_ct_LIPO="lipo"
d7f09764
DN
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281 done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
dcbc9df9
UB
8286ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8287if test -n "$ac_ct_LIPO"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8289$as_echo "$ac_ct_LIPO" >&6; }
d7f09764
DN
8290else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
dcbc9df9
UB
8295 if test "x$ac_ct_LIPO" = x; then
8296 LIPO=":"
d7f09764
DN
8297 else
8298 case $cross_compiling:$ac_tool_warned in
8299yes:)
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302ac_tool_warned=yes ;;
8303esac
dcbc9df9 8304 LIPO=$ac_ct_LIPO
d7f09764
DN
8305 fi
8306else
dcbc9df9 8307 LIPO="$ac_cv_prog_LIPO"
d7f09764
DN
8308fi
8309
dcbc9df9
UB
8310 if test -n "$ac_tool_prefix"; then
8311 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}otool; ac_word=$2
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8315if ${ac_cv_prog_OTOOL+:} false; then :
d7f09764
DN
8316 $as_echo_n "(cached) " >&6
8317else
dcbc9df9
UB
8318 if test -n "$OTOOL"; then
8319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
52327858 8320else
dcbc9df9
UB
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8328 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332done
8333 done
8334IFS=$as_save_IFS
52327858
L
8335
8336fi
dcbc9df9
UB
8337fi
8338OTOOL=$ac_cv_prog_OTOOL
8339if test -n "$OTOOL"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8341$as_echo "$OTOOL" >&6; }
8342else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
8345fi
8346
d7f09764 8347
d7f09764 8348fi
dcbc9df9
UB
8349if test -z "$ac_cv_prog_OTOOL"; then
8350 ac_ct_OTOOL=$OTOOL
8351 # Extract the first word of "otool", so it can be a program name with args.
8352set dummy otool; ac_word=$2
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8355if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
d7f09764
DN
8356 $as_echo_n "(cached) " >&6
8357else
dcbc9df9
UB
8358 if test -n "$ac_ct_OTOOL"; then
8359 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
d7f09764 8363do
dcbc9df9
UB
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8368 ac_cv_prog_ac_ct_OTOOL="otool"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373 done
8374IFS=$as_save_IFS
d7f09764 8375
dcbc9df9
UB
8376fi
8377fi
8378ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8379if test -n "$ac_ct_OTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8381$as_echo "$ac_ct_OTOOL" >&6; }
d7f09764 8382else
dcbc9df9
UB
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
d7f09764 8385fi
d7f09764 8386
dcbc9df9
UB
8387 if test "x$ac_ct_OTOOL" = x; then
8388 OTOOL=":"
8389 else
8390 case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394ac_tool_warned=yes ;;
8395esac
8396 OTOOL=$ac_ct_OTOOL
8397 fi
d7f09764 8398else
dcbc9df9 8399 OTOOL="$ac_cv_prog_OTOOL"
d7f09764 8400fi
d7f09764 8401
dcbc9df9
UB
8402 if test -n "$ac_tool_prefix"; then
8403 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8404set dummy ${ac_tool_prefix}otool64; ac_word=$2
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8407if ${ac_cv_prog_OTOOL64+:} false; then :
dcbc9df9
UB
8408 $as_echo_n "(cached) " >&6
8409else
8410 if test -n "$OTOOL64"; then
8411 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8420 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
d7f09764 8424done
dcbc9df9
UB
8425 done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
8430OTOOL64=$ac_cv_prog_OTOOL64
8431if test -n "$OTOOL64"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8433$as_echo "$OTOOL64" >&6; }
8434else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
d7f09764
DN
8437fi
8438
d7f09764
DN
8439
8440fi
dcbc9df9
UB
8441if test -z "$ac_cv_prog_OTOOL64"; then
8442 ac_ct_OTOOL64=$OTOOL64
8443 # Extract the first word of "otool64", so it can be a program name with args.
8444set dummy otool64; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8447if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
dcbc9df9 8448 $as_echo_n "(cached) " >&6
d7f09764 8449else
dcbc9df9
UB
8450 if test -n "$ac_ct_OTOOL64"; then
8451 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
d7f09764 8455do
dcbc9df9
UB
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8460 ac_cv_prog_ac_ct_OTOOL64="otool64"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464done
8465 done
8466IFS=$as_save_IFS
d7f09764 8467
dcbc9df9
UB
8468fi
8469fi
8470ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8471if test -n "$ac_ct_OTOOL64"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8473$as_echo "$ac_ct_OTOOL64" >&6; }
d7f09764 8474else
dcbc9df9
UB
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
d7f09764 8477fi
d7f09764 8478
dcbc9df9
UB
8479 if test "x$ac_ct_OTOOL64" = x; then
8480 OTOOL64=":"
8481 else
8482 case $cross_compiling:$ac_tool_warned in
8483yes:)
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8486ac_tool_warned=yes ;;
8487esac
8488 OTOOL64=$ac_ct_OTOOL64
8489 fi
d7f09764 8490else
dcbc9df9 8491 OTOOL64="$ac_cv_prog_OTOOL64"
d7f09764 8492fi
d7f09764 8493
d7f09764 8494
d7f09764 8495
d7f09764
DN
8496
8497
d7f09764 8498
d7f09764 8499
d7f09764 8500
d7f09764 8501
d7f09764 8502
d7f09764 8503
d7f09764 8504
d7f09764 8505
d7f09764 8506
d7f09764 8507
d7f09764 8508
dcbc9df9
UB
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8521$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8522if ${lt_cv_apple_cc_single_mod+:} false; then :
dcbc9df9 8523 $as_echo_n "(cached) " >&6
d7f09764 8524else
dcbc9df9
UB
8525 lt_cv_apple_cc_single_mod=no
8526 if test -z "${LT_MULTI_MODULE}"; then
8527 # By default we will add the -single_module flag. You can override
8528 # by either setting the environment variable LT_MULTI_MODULE
8529 # non-empty at configure time, or by adding -multi_module to the
8530 # link flags.
8531 rm -rf libconftest.dylib*
8532 echo "int foo(void){return 1;}" > conftest.c
8533 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8534-dynamiclib -Wl,-single_module conftest.c" >&5
8535 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8537 _lt_result=$?
8538 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8539 lt_cv_apple_cc_single_mod=yes
8540 else
8541 cat conftest.err >&5
8542 fi
8543 rm -rf libconftest.dylib*
8544 rm -f conftest.*
8545 fi
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8548$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8550$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8551if ${lt_cv_ld_exported_symbols_list+:} false; then :
dcbc9df9
UB
8552 $as_echo_n "(cached) " >&6
8553else
8554 lt_cv_ld_exported_symbols_list=no
8555 save_LDFLAGS=$LDFLAGS
8556 echo "_main" > conftest.sym
8557 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764 8559/* end confdefs.h. */
d7f09764 8560
d7f09764
DN
8561int
8562main ()
8563{
dcbc9df9
UB
8564
8565 ;
d7f09764
DN
8566 return 0;
8567}
8568_ACEOF
dcbc9df9
UB
8569if ac_fn_c_try_link "$LINENO"; then :
8570 lt_cv_ld_exported_symbols_list=yes
d7f09764 8571else
dcbc9df9 8572 lt_cv_ld_exported_symbols_list=no
d7f09764 8573fi
dcbc9df9
UB
8574rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LDFLAGS="$save_LDFLAGS"
d7f09764
DN
8577
8578fi
dcbc9df9
UB
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8580$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8582$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8583if ${lt_cv_ld_force_load+:} false; then :
dcbc9df9
UB
8584 $as_echo_n "(cached) " >&6
8585else
8586 lt_cv_ld_force_load=no
8587 cat > conftest.c << _LT_EOF
8588int forced_loaded() { return 2;}
8589_LT_EOF
8590 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8591 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8592 echo "$AR cru libconftest.a conftest.o" >&5
8593 $AR cru libconftest.a conftest.o 2>&5
8594 cat > conftest.c << _LT_EOF
8595int main() { return 0;}
8596_LT_EOF
8597 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8598 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8599 _lt_result=$?
8600 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8601 lt_cv_ld_force_load=yes
8602 else
8603 cat conftest.err >&5
8604 fi
8605 rm -f conftest.err libconftest.a conftest conftest.c
8606 rm -rf conftest.dSYM
d7f09764
DN
8607
8608fi
dcbc9df9
UB
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8610$as_echo "$lt_cv_ld_force_load" >&6; }
3f570621
L
8611 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8612 # build without first building modern cctools / linker.
8613 case $host_cpu-$host_os in
8614 *-rhapsody* | *-darwin1.[012])
dcbc9df9 8615 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
3f570621 8616 *-darwin1.*)
dcbc9df9 8617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3f570621
L
8618 *-darwin*)
8619 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8620 # deployment target is forced to an earlier version.
8621 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8622 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8623 ;;
dcbc9df9 8624 10.[012][,.]*)
3f570621
L
8625 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 ;;
8627 *)
8628 ;;
8629 esac
dcbc9df9
UB
8630 ;;
8631 esac
8632 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8633 _lt_dar_single_mod='$single_module'
8634 fi
8635 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8636 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8637 else
8638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8639 fi
8640 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8641 _lt_dsymutil='~$DSYMUTIL $lib || :'
8642 else
8643 _lt_dsymutil=
8644 fi
8645 ;;
8646 esac
d7f09764
DN
8647
8648for ac_header in dlfcn.h
8649do :
8650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8651"
22e05272 8652if test "x$ac_cv_header_dlfcn_h" = xyes; then :
d7f09764
DN
8653 cat >>confdefs.h <<_ACEOF
8654#define HAVE_DLFCN_H 1
8655_ACEOF
8656
8657fi
8658
8659done
8660
8661
8662
52327858
L
8663
8664
d7f09764
DN
8665# Set options
8666
8667
8668
8669 enable_dlopen=no
8670
8671
8672 enable_win32_dll=no
8673
8674
8675 # Check whether --enable-shared was given.
8676if test "${enable_shared+set}" = set; then :
8677 enableval=$enable_shared; p=${PACKAGE-default}
8678 case $enableval in
8679 yes) enable_shared=yes ;;
8680 no) enable_shared=no ;;
8681 *)
8682 enable_shared=no
8683 # Look at the argument we got. We use all the common list separators.
8684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8685 for pkg in $enableval; do
8686 IFS="$lt_save_ifs"
8687 if test "X$pkg" = "X$p"; then
8688 enable_shared=yes
8689 fi
8690 done
8691 IFS="$lt_save_ifs"
8692 ;;
8693 esac
8694else
8695 enable_shared=yes
8696fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 # Check whether --enable-static was given.
8707if test "${enable_static+set}" = set; then :
8708 enableval=$enable_static; p=${PACKAGE-default}
8709 case $enableval in
8710 yes) enable_static=yes ;;
8711 no) enable_static=no ;;
8712 *)
8713 enable_static=no
8714 # Look at the argument we got. We use all the common list separators.
8715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8716 for pkg in $enableval; do
8717 IFS="$lt_save_ifs"
8718 if test "X$pkg" = "X$p"; then
8719 enable_static=yes
8720 fi
8721 done
8722 IFS="$lt_save_ifs"
8723 ;;
8724 esac
8725else
8726 enable_static=yes
8727fi
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738# Check whether --with-pic was given.
8739if test "${with_pic+set}" = set; then :
8740 withval=$with_pic; pic_mode="$withval"
8741else
8742 pic_mode=default
8743fi
8744
8745
8746test -z "$pic_mode" && pic_mode=default
8747
8748
8749
8750
8751
8752
8753
8754 # Check whether --enable-fast-install was given.
8755if test "${enable_fast_install+set}" = set; then :
8756 enableval=$enable_fast_install; p=${PACKAGE-default}
8757 case $enableval in
8758 yes) enable_fast_install=yes ;;
8759 no) enable_fast_install=no ;;
8760 *)
8761 enable_fast_install=no
8762 # Look at the argument we got. We use all the common list separators.
8763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8764 for pkg in $enableval; do
8765 IFS="$lt_save_ifs"
8766 if test "X$pkg" = "X$p"; then
8767 enable_fast_install=yes
8768 fi
8769 done
8770 IFS="$lt_save_ifs"
8771 ;;
8772 esac
8773else
8774 enable_fast_install=yes
8775fi
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787# This can be used to rebuild libtool when needed
8788LIBTOOL_DEPS="$ltmain"
8789
8790# Always use our own libtool.
8791LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
52327858 8815
d7f09764
DN
8816
8817
8818test -z "$LN_S" && LN_S="ln -s"
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833if test -n "${ZSH_VERSION+set}" ; then
8834 setopt NO_GLOB_SUBST
8835fi
8836
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8838$as_echo_n "checking for objdir... " >&6; }
22e05272 8839if ${lt_cv_objdir+:} false; then :
d7f09764
DN
8840 $as_echo_n "(cached) " >&6
8841else
8842 rm -f .libs 2>/dev/null
8843mkdir .libs 2>/dev/null
8844if test -d .libs; then
8845 lt_cv_objdir=.libs
8846else
8847 # MS-DOS does not allow filenames that begin with a dot.
8848 lt_cv_objdir=_libs
8849fi
8850rmdir .libs 2>/dev/null
8851fi
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8853$as_echo "$lt_cv_objdir" >&6; }
8854objdir=$lt_cv_objdir
8855
8856
8857
8858
8859
8860cat >>confdefs.h <<_ACEOF
8861#define LT_OBJDIR "$lt_cv_objdir/"
8862_ACEOF
8863
8864
8865
8866
d7f09764
DN
8867case $host_os in
8868aix3*)
8869 # AIX sometimes has problems with the GCC collect2 program. For some
8870 # reason, if we set the COLLECT_NAMES environment variable, the problems
8871 # vanish in a puff of smoke.
8872 if test "X${COLLECT_NAMES+set}" != Xset; then
8873 COLLECT_NAMES=
8874 export COLLECT_NAMES
8875 fi
8876 ;;
8877esac
8878
d7f09764
DN
8879# Global variables:
8880ofile=libtool
8881can_build_shared=yes
8882
8883# All known linkers require a `.a' archive for static linking (except MSVC,
8884# which needs '.lib').
8885libext=a
8886
8887with_gnu_ld="$lt_cv_prog_gnu_ld"
8888
8889old_CC="$CC"
8890old_CFLAGS="$CFLAGS"
8891
8892# Set sane defaults for various variables
8893test -z "$CC" && CC=cc
8894test -z "$LTCC" && LTCC=$CC
8895test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8896test -z "$LD" && LD=ld
8897test -z "$ac_objext" && ac_objext=o
8898
8899for cc_temp in $compiler""; do
8900 case $cc_temp in
8901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8903 \-*) ;;
8904 *) break;;
8905 esac
8906done
52327858 8907cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
8908
8909
8910# Only perform the check for file, if the check method requires it
8911test -z "$MAGIC_CMD" && MAGIC_CMD=file
8912case $deplibs_check_method in
8913file_magic*)
8914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8916$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8917if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
8918 $as_echo_n "(cached) " >&6
8919else
8920 case $MAGIC_CMD in
8921[\\/*] | ?:[\\/]*)
8922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8923 ;;
8924*)
8925 lt_save_MAGIC_CMD="$MAGIC_CMD"
8926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8928 for ac_dir in $ac_dummy; do
8929 IFS="$lt_save_ifs"
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/${ac_tool_prefix}file; then
8932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8933 if test -n "$file_magic_test_file"; then
8934 case $deplibs_check_method in
8935 "file_magic "*)
8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8939 $EGREP "$file_magic_regex" > /dev/null; then
8940 :
8941 else
8942 cat <<_LT_EOF 1>&2
8943
8944*** Warning: the command libtool uses to detect shared libraries,
8945*** $file_magic_cmd, produces output that libtool cannot recognize.
8946*** The result is that libtool may fail to recognize shared libraries
8947*** as such. This will affect the creation of libtool libraries that
8948*** depend on shared libraries, but programs linked with such libtool
8949*** libraries will work regardless of this problem. Nevertheless, you
8950*** may want to report the problem to your system manager and/or to
8951*** bug-libtool@gnu.org
8952
8953_LT_EOF
8954 fi ;;
8955 esac
8956 fi
8957 break
8958 fi
8959 done
8960 IFS="$lt_save_ifs"
8961 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 ;;
8963esac
8964fi
8965
8966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967if test -n "$MAGIC_CMD"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8969$as_echo "$MAGIC_CMD" >&6; }
8970else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974
8975
8976
8977
8978
8979if test -z "$lt_cv_path_MAGIC_CMD"; then
8980 if test -n "$ac_tool_prefix"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8982$as_echo_n "checking for file... " >&6; }
22e05272 8983if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
8984 $as_echo_n "(cached) " >&6
8985else
8986 case $MAGIC_CMD in
8987[\\/*] | ?:[\\/]*)
8988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8989 ;;
8990*)
8991 lt_save_MAGIC_CMD="$MAGIC_CMD"
8992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8994 for ac_dir in $ac_dummy; do
8995 IFS="$lt_save_ifs"
8996 test -z "$ac_dir" && ac_dir=.
8997 if test -f $ac_dir/file; then
8998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8999 if test -n "$file_magic_test_file"; then
9000 case $deplibs_check_method in
9001 "file_magic "*)
9002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9005 $EGREP "$file_magic_regex" > /dev/null; then
9006 :
9007 else
9008 cat <<_LT_EOF 1>&2
9009
9010*** Warning: the command libtool uses to detect shared libraries,
9011*** $file_magic_cmd, produces output that libtool cannot recognize.
9012*** The result is that libtool may fail to recognize shared libraries
9013*** as such. This will affect the creation of libtool libraries that
9014*** depend on shared libraries, but programs linked with such libtool
9015*** libraries will work regardless of this problem. Nevertheless, you
9016*** may want to report the problem to your system manager and/or to
9017*** bug-libtool@gnu.org
9018
9019_LT_EOF
9020 fi ;;
9021 esac
9022 fi
9023 break
9024 fi
9025 done
9026 IFS="$lt_save_ifs"
9027 MAGIC_CMD="$lt_save_MAGIC_CMD"
9028 ;;
9029esac
9030fi
9031
9032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9033if test -n "$MAGIC_CMD"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9035$as_echo "$MAGIC_CMD" >&6; }
9036else
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038$as_echo "no" >&6; }
9039fi
9040
9041
9042 else
9043 MAGIC_CMD=:
9044 fi
9045fi
9046
9047 fi
9048 ;;
9049esac
9050
9051# Use C for the default configuration in the libtool script
9052
9053lt_save_CC="$CC"
9054ac_ext=c
9055ac_cpp='$CPP $CPPFLAGS'
9056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9058ac_compiler_gnu=$ac_cv_c_compiler_gnu
9059
9060
9061# Source file extension for C test sources.
9062ac_ext=c
9063
9064# Object file extension for compiled C test sources.
9065objext=o
9066objext=$objext
9067
9068# Code to be used in simple compile tests
9069lt_simple_compile_test_code="int some_variable = 0;"
9070
9071# Code to be used in simple link tests
9072lt_simple_link_test_code='int main(){return(0);}'
9073
9074
9075
9076
9077
9078
9079
9080# If no C compiler was specified, use CC.
9081LTCC=${LTCC-"$CC"}
9082
9083# If no C compiler flags were specified, use CFLAGS.
9084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9085
9086# Allow CC to be a program name with arguments.
9087compiler=$CC
9088
9089# Save the default compiler, since it gets overwritten when the other
9090# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9091compiler_DEFAULT=$CC
9092
9093# save warnings/boilerplate of simple test code
9094ac_outfile=conftest.$ac_objext
9095echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9097_lt_compiler_boilerplate=`cat conftest.err`
9098$RM conftest*
9099
9100ac_outfile=conftest.$ac_objext
9101echo "$lt_simple_link_test_code" >conftest.$ac_ext
9102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9103_lt_linker_boilerplate=`cat conftest.err`
9104$RM -r conftest*
9105
9106
9107## CAVEAT EMPTOR:
9108## There is no encapsulation within the following macros, do not change
9109## the running order or otherwise move them around unless you know exactly
9110## what you are doing...
9111if test -n "$compiler"; then
9112
9113lt_prog_compiler_no_builtin_flag=
9114
9115if test "$GCC" = yes; then
52327858
L
9116 case $cc_basename in
9117 nvcc*)
9118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9119 *)
9120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9121 esac
d7f09764
DN
9122
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9124$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9125if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
d7f09764
DN
9126 $as_echo_n "(cached) " >&6
9127else
9128 lt_cv_prog_compiler_rtti_exceptions=no
9129 ac_outfile=conftest.$ac_objext
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131 lt_compiler_flag="-fno-rtti -fno-exceptions"
9132 # Insert the option either (1) after the last *FLAGS variable, or
9133 # (2) before a word containing "conftest.", or (3) at the end.
9134 # Note that $ac_compile itself does not contain backslashes and begins
9135 # with a dollar sign (not a hyphen), so the echo should work correctly.
9136 # The option is referenced via a variable to avoid confusing sed.
9137 lt_compile=`echo "$ac_compile" | $SED \
9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140 -e 's:$: $lt_compiler_flag:'`
52327858 9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9142 (eval "$lt_compile" 2>conftest.err)
9143 ac_status=$?
9144 cat conftest.err >&5
52327858 9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9146 if (exit $ac_status) && test -s "$ac_outfile"; then
9147 # The compiler can only warn and ignore the option if not recognized
9148 # So say no if there are warnings other than the usual output.
52327858 9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
9150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler_rtti_exceptions=yes
9153 fi
9154 fi
9155 $RM conftest*
9156
9157fi
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9159$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9160
9161if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9163else
9164 :
9165fi
9166
9167fi
9168
9169
9170
9171
9172
9173
9174 lt_prog_compiler_wl=
9175lt_prog_compiler_pic=
9176lt_prog_compiler_static=
9177
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9179$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9180
9181 if test "$GCC" = yes; then
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_static='-static'
9184
9185 case $host_os in
9186 aix*)
9187 # All AIX code is PIC.
9188 if test "$host_cpu" = ia64; then
9189 # AIX 5 now supports IA64 processor
9190 lt_prog_compiler_static='-Bstatic'
9191 fi
de973ab7 9192 lt_prog_compiler_pic='-fPIC'
d7f09764
DN
9193 ;;
9194
9195 amigaos*)
9196 case $host_cpu in
9197 powerpc)
9198 # see comment about AmigaOS4 .so support
9199 lt_prog_compiler_pic='-fPIC'
9200 ;;
9201 m68k)
9202 # FIXME: we need at least 68020 code to build shared libraries, but
9203 # adding the `-m68020' flag to GCC prevents building anything better,
9204 # like `-m68040'.
9205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9206 ;;
9207 esac
9208 ;;
9209
9210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9211 # PIC is the default for these OSes.
9212 ;;
9213
9214 mingw* | cygwin* | pw32* | os2* | cegcc*)
9215 # This hack is so that the source file can tell whether it is being
9216 # built for inclusion in a dll (and should export symbols for example).
9217 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9218 # (--disable-auto-import) libraries
9219 lt_prog_compiler_pic='-DDLL_EXPORT'
9220 ;;
9221
9222 darwin* | rhapsody*)
9223 # PIC is the default on this platform
9224 # Common symbols not allowed in MH_DYLIB files
9225 lt_prog_compiler_pic='-fno-common'
9226 ;;
9227
52327858
L
9228 haiku*)
9229 # PIC is the default for Haiku.
9230 # The "-static" flag exists, but is broken.
9231 lt_prog_compiler_static=
9232 ;;
9233
d7f09764
DN
9234 hpux*)
9235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9237 # sets the default TLS model and affects inlining.
9238 case $host_cpu in
9239 hppa*64*)
9240 # +Z the default
9241 ;;
9242 *)
9243 lt_prog_compiler_pic='-fPIC'
9244 ;;
9245 esac
9246 ;;
9247
9248 interix[3-9]*)
9249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9250 # Instead, we relocate shared libraries at runtime.
9251 ;;
9252
9253 msdosdjgpp*)
9254 # Just because we use GCC doesn't mean we suddenly get shared libraries
9255 # on systems that don't support them.
9256 lt_prog_compiler_can_build_shared=no
9257 enable_shared=no
9258 ;;
9259
9260 *nto* | *qnx*)
9261 # QNX uses GNU C++, but need to define -shared option too, otherwise
9262 # it will coredump.
9263 lt_prog_compiler_pic='-fPIC -shared'
9264 ;;
9265
9266 sysv4*MP*)
9267 if test -d /usr/nec; then
9268 lt_prog_compiler_pic=-Kconform_pic
9269 fi
9270 ;;
9271
9272 *)
9273 lt_prog_compiler_pic='-fPIC'
9274 ;;
9275 esac
52327858
L
9276
9277 case $cc_basename in
9278 nvcc*) # Cuda Compiler Driver 2.2
9279 lt_prog_compiler_wl='-Xlinker '
9280 lt_prog_compiler_pic='-Xcompiler -fPIC'
9281 ;;
9282 esac
d7f09764
DN
9283 else
9284 # PORTME Check for flag to pass linker flags through the system compiler.
9285 case $host_os in
9286 aix*)
9287 lt_prog_compiler_wl='-Wl,'
9288 if test "$host_cpu" = ia64; then
9289 # AIX 5 now supports IA64 processor
9290 lt_prog_compiler_static='-Bstatic'
9291 else
9292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9293 fi
9294 ;;
9295
9296 mingw* | cygwin* | pw32* | os2* | cegcc*)
9297 # This hack is so that the source file can tell whether it is being
9298 # built for inclusion in a dll (and should export symbols for example).
9299 lt_prog_compiler_pic='-DDLL_EXPORT'
9300 ;;
9301
9302 hpux9* | hpux10* | hpux11*)
9303 lt_prog_compiler_wl='-Wl,'
9304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9305 # not for PA HP-UX.
9306 case $host_cpu in
9307 hppa*64*|ia64*)
9308 # +Z the default
9309 ;;
9310 *)
9311 lt_prog_compiler_pic='+Z'
9312 ;;
9313 esac
9314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9315 lt_prog_compiler_static='${wl}-a ${wl}archive'
9316 ;;
9317
9318 irix5* | irix6* | nonstopux*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # PIC (with -KPIC) is the default.
9321 lt_prog_compiler_static='-non_shared'
9322 ;;
9323
9324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9325 case $cc_basename in
9326 # old Intel for x86_64 which still supported -KPIC.
9327 ecc*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-static'
9331 ;;
9332 # icc used to be incompatible with GCC.
9333 # ICC 10 doesn't accept -KPIC any more.
9334 icc* | ifort*)
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='-fPIC'
9337 lt_prog_compiler_static='-static'
9338 ;;
9339 # Lahey Fortran 8.1.
9340 lf95*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='--shared'
9343 lt_prog_compiler_static='--static'
9344 ;;
52327858 9345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
9346 # Portland Group compilers (*not* the Pentium gcc compiler,
9347 # which looks to be a dead project)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-fpic'
9350 lt_prog_compiler_static='-Bstatic'
9351 ;;
9352 ccc*)
9353 lt_prog_compiler_wl='-Wl,'
9354 # All Alpha code is PIC.
9355 lt_prog_compiler_static='-non_shared'
9356 ;;
52327858
L
9357 xl* | bgxl* | bgf* | mpixl*)
9358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-qpic'
9361 lt_prog_compiler_static='-qstaticlink'
9362 ;;
9363 *)
9364 case `$CC -V 2>&1 | sed 5q` in
52327858
L
9365 *Sun\ F* | *Sun*Fortran*)
9366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
52327858 9369 lt_prog_compiler_wl=''
d7f09764 9370 ;;
52327858
L
9371 *Sun\ C*)
9372 # Sun C 5.9
d7f09764
DN
9373 lt_prog_compiler_pic='-KPIC'
9374 lt_prog_compiler_static='-Bstatic'
52327858 9375 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
9376 ;;
9377 esac
9378 ;;
9379 esac
9380 ;;
9381
9382 newsos6)
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386
9387 *nto* | *qnx*)
9388 # QNX uses GNU C++, but need to define -shared option too, otherwise
9389 # it will coredump.
9390 lt_prog_compiler_pic='-fPIC -shared'
9391 ;;
9392
9393 osf3* | osf4* | osf5*)
9394 lt_prog_compiler_wl='-Wl,'
9395 # All OSF/1 code is PIC.
9396 lt_prog_compiler_static='-non_shared'
9397 ;;
9398
9399 rdos*)
9400 lt_prog_compiler_static='-non_shared'
9401 ;;
9402
9403 solaris*)
9404 lt_prog_compiler_pic='-KPIC'
9405 lt_prog_compiler_static='-Bstatic'
9406 case $cc_basename in
9407 f77* | f90* | f95*)
9408 lt_prog_compiler_wl='-Qoption ld ';;
9409 *)
9410 lt_prog_compiler_wl='-Wl,';;
9411 esac
9412 ;;
9413
9414 sunos4*)
9415 lt_prog_compiler_wl='-Qoption ld '
9416 lt_prog_compiler_pic='-PIC'
9417 lt_prog_compiler_static='-Bstatic'
9418 ;;
9419
9420 sysv4 | sysv4.2uw2* | sysv4.3*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 ;;
9425
9426 sysv4*MP*)
9427 if test -d /usr/nec ;then
9428 lt_prog_compiler_pic='-Kconform_pic'
9429 lt_prog_compiler_static='-Bstatic'
9430 fi
9431 ;;
9432
9433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='-KPIC'
9436 lt_prog_compiler_static='-Bstatic'
9437 ;;
9438
9439 unicos*)
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_can_build_shared=no
9442 ;;
9443
9444 uts4*)
9445 lt_prog_compiler_pic='-pic'
9446 lt_prog_compiler_static='-Bstatic'
9447 ;;
9448
9449 *)
9450 lt_prog_compiler_can_build_shared=no
9451 ;;
9452 esac
9453 fi
9454
9455case $host_os in
9456 # For platforms which do not support PIC, -DPIC is meaningless:
9457 *djgpp*)
9458 lt_prog_compiler_pic=
9459 ;;
9460 *)
9461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9462 ;;
9463esac
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9465$as_echo "$lt_prog_compiler_pic" >&6; }
9466
9467
9468
9469
9470
9471
9472#
9473# Check to make sure the PIC flag actually works.
9474#
9475if test -n "$lt_prog_compiler_pic"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9477$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9478if ${lt_cv_prog_compiler_pic_works+:} false; then :
d7f09764
DN
9479 $as_echo_n "(cached) " >&6
9480else
9481 lt_cv_prog_compiler_pic_works=no
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9485 # Insert the option either (1) after the last *FLAGS variable, or
9486 # (2) before a word containing "conftest.", or (3) at the end.
9487 # Note that $ac_compile itself does not contain backslashes and begins
9488 # with a dollar sign (not a hyphen), so the echo should work correctly.
9489 # The option is referenced via a variable to avoid confusing sed.
9490 lt_compile=`echo "$ac_compile" | $SED \
9491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493 -e 's:$: $lt_compiler_flag:'`
52327858 9494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9495 (eval "$lt_compile" 2>conftest.err)
9496 ac_status=$?
9497 cat conftest.err >&5
52327858 9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9499 if (exit $ac_status) && test -s "$ac_outfile"; then
9500 # The compiler can only warn and ignore the option if not recognized
9501 # So say no if there are warnings other than the usual output.
52327858 9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_pic_works=yes
9506 fi
9507 fi
9508 $RM conftest*
9509
9510fi
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9512$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9513
9514if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9515 case $lt_prog_compiler_pic in
9516 "" | " "*) ;;
9517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9518 esac
9519else
9520 lt_prog_compiler_pic=
9521 lt_prog_compiler_can_build_shared=no
9522fi
9523
9524fi
9525
9526
9527
9528
9529
9530
9531#
9532# Check to make sure the static flag actually works.
9533#
9534wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9536$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9537if ${lt_cv_prog_compiler_static_works+:} false; then :
d7f09764
DN
9538 $as_echo_n "(cached) " >&6
9539else
9540 lt_cv_prog_compiler_static_works=no
9541 save_LDFLAGS="$LDFLAGS"
9542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9545 # The linker can only warn and ignore the option if not recognized
9546 # So say no if there are warnings
9547 if test -s conftest.err; then
9548 # Append any errors to the config.log.
9549 cat conftest.err 1>&5
52327858 9550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
9551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9552 if diff conftest.exp conftest.er2 >/dev/null; then
9553 lt_cv_prog_compiler_static_works=yes
9554 fi
9555 else
9556 lt_cv_prog_compiler_static_works=yes
9557 fi
9558 fi
9559 $RM -r conftest*
9560 LDFLAGS="$save_LDFLAGS"
9561
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9564$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9565
9566if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9567 :
9568else
9569 lt_prog_compiler_static=
9570fi
9571
9572
9573
9574
9575
9576
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9580if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9581 $as_echo_n "(cached) " >&6
9582else
9583 lt_cv_prog_compiler_c_o=no
9584 $RM -r conftest 2>/dev/null
9585 mkdir conftest
9586 cd conftest
9587 mkdir out
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589
9590 lt_compiler_flag="-o out/conftest2.$ac_objext"
9591 # Insert the option either (1) after the last *FLAGS variable, or
9592 # (2) before a word containing "conftest.", or (3) at the end.
9593 # Note that $ac_compile itself does not contain backslashes and begins
9594 # with a dollar sign (not a hyphen), so the echo should work correctly.
9595 lt_compile=`echo "$ac_compile" | $SED \
9596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598 -e 's:$: $lt_compiler_flag:'`
52327858 9599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9600 (eval "$lt_compile" 2>out/conftest.err)
9601 ac_status=$?
9602 cat out/conftest.err >&5
52327858 9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9605 then
9606 # The compiler can only warn and ignore the option if not recognized
9607 # So say no if there are warnings
52327858 9608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9611 lt_cv_prog_compiler_c_o=yes
9612 fi
9613 fi
9614 chmod u+w . 2>&5
9615 $RM conftest*
9616 # SGI C++ compiler will create directory out/ii_files/ for
9617 # template instantiation
9618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9619 $RM out/* && rmdir out
9620 cd ..
9621 $RM -r conftest
9622 $RM conftest*
9623
9624fi
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9626$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9627
9628
9629
9630
9631
9632
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9635if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9636 $as_echo_n "(cached) " >&6
9637else
9638 lt_cv_prog_compiler_c_o=no
9639 $RM -r conftest 2>/dev/null
9640 mkdir conftest
9641 cd conftest
9642 mkdir out
9643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644
9645 lt_compiler_flag="-o out/conftest2.$ac_objext"
9646 # Insert the option either (1) after the last *FLAGS variable, or
9647 # (2) before a word containing "conftest.", or (3) at the end.
9648 # Note that $ac_compile itself does not contain backslashes and begins
9649 # with a dollar sign (not a hyphen), so the echo should work correctly.
9650 lt_compile=`echo "$ac_compile" | $SED \
9651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9653 -e 's:$: $lt_compiler_flag:'`
52327858 9654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9655 (eval "$lt_compile" 2>out/conftest.err)
9656 ac_status=$?
9657 cat out/conftest.err >&5
52327858 9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9660 then
9661 # The compiler can only warn and ignore the option if not recognized
9662 # So say no if there are warnings
52327858 9663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9666 lt_cv_prog_compiler_c_o=yes
9667 fi
9668 fi
9669 chmod u+w . 2>&5
9670 $RM conftest*
9671 # SGI C++ compiler will create directory out/ii_files/ for
9672 # template instantiation
9673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9674 $RM out/* && rmdir out
9675 cd ..
9676 $RM -r conftest
9677 $RM conftest*
9678
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9681$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9682
9683
9684
9685
9686hard_links="nottested"
9687if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9688 # do not overwrite the value of need_locks provided by the user
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9690$as_echo_n "checking if we can lock with hard links... " >&6; }
9691 hard_links=yes
9692 $RM conftest*
9693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9694 touch conftest.a
9695 ln conftest.a conftest.b 2>&5 || hard_links=no
9696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9698$as_echo "$hard_links" >&6; }
9699 if test "$hard_links" = no; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9702 need_locks=warn
9703 fi
9704else
9705 need_locks=no
9706fi
9707
9708
9709
9710
9711
9712
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9714$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9715
9716 runpath_var=
9717 allow_undefined_flag=
9718 always_export_symbols=no
9719 archive_cmds=
9720 archive_expsym_cmds=
9721 compiler_needs_object=no
9722 enable_shared_with_static_runtimes=no
9723 export_dynamic_flag_spec=
9724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9725 hardcode_automatic=no
9726 hardcode_direct=no
9727 hardcode_direct_absolute=no
9728 hardcode_libdir_flag_spec=
9729 hardcode_libdir_flag_spec_ld=
9730 hardcode_libdir_separator=
9731 hardcode_minus_L=no
9732 hardcode_shlibpath_var=unsupported
9733 inherit_rpath=no
9734 link_all_deplibs=unknown
9735 module_cmds=
9736 module_expsym_cmds=
9737 old_archive_from_new_cmds=
9738 old_archive_from_expsyms_cmds=
9739 thread_safe_flag_spec=
9740 whole_archive_flag_spec=
9741 # include_expsyms should be a list of space-separated symbols to be *always*
9742 # included in the symbol list
9743 include_expsyms=
9744 # exclude_expsyms can be an extended regexp of symbols to exclude
9745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9747 # as well as any symbol that contains `d'.
9748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9750 # platforms (ab)use it in PIC code, but their linkers get confused if
9751 # the symbol is explicitly referenced. Since portable code cannot
9752 # rely on this symbol name, it's probably fine to never include it in
9753 # preloaded symbol tables.
9754 # Exclude shared library initialization/finalization symbols.
9755 extract_expsyms_cmds=
9756
9757 case $host_os in
9758 cygwin* | mingw* | pw32* | cegcc*)
9759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9760 # When not using gcc, we currently assume that we are using
9761 # Microsoft Visual C++.
9762 if test "$GCC" != yes; then
9763 with_gnu_ld=no
9764 fi
9765 ;;
9766 interix*)
9767 # we just hope/assume this is gcc and not c89 (= MSVC++)
9768 with_gnu_ld=yes
9769 ;;
9770 openbsd*)
9771 with_gnu_ld=no
9772 ;;
9773 esac
9774
9775 ld_shlibs=yes
52327858
L
9776
9777 # On some targets, GNU ld is compatible enough with the native linker
9778 # that we're better off using the native interface for both.
9779 lt_use_gnu_ld_interface=no
d7f09764 9780 if test "$with_gnu_ld" = yes; then
52327858
L
9781 case $host_os in
9782 aix*)
9783 # The AIX port of GNU ld has always aspired to compatibility
9784 # with the native linker. However, as the warning in the GNU ld
9785 # block says, versions before 2.19.5* couldn't really create working
9786 # shared libraries, regardless of the interface used.
9787 case `$LD -v 2>&1` in
9788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9791 *)
9792 lt_use_gnu_ld_interface=yes
9793 ;;
9794 esac
9795 ;;
9796 *)
9797 lt_use_gnu_ld_interface=yes
9798 ;;
9799 esac
9800 fi
9801
9802 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9804 wlarc='${wl}'
9805
9806 # Set some defaults for GNU ld with shared library support. These
9807 # are reset later if shared libraries are not supported. Putting them
9808 # here allows them to be overridden if necessary.
9809 runpath_var=LD_RUN_PATH
9810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811 export_dynamic_flag_spec='${wl}--export-dynamic'
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9815 else
9816 whole_archive_flag_spec=
9817 fi
9818 supports_anon_versioning=no
9819 case `$LD -v 2>&1` in
52327858 9820 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
9821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9824 *\ 2.11.*) ;; # other 2.11 versions
9825 *) supports_anon_versioning=yes ;;
9826 esac
9827
9828 # See if GNU ld supports shared libraries.
9829 case $host_os in
9830 aix[3-9]*)
9831 # On AIX/PPC, the GNU linker is very broken
9832 if test "$host_cpu" != ia64; then
9833 ld_shlibs=no
9834 cat <<_LT_EOF 1>&2
9835
52327858 9836*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
9837*** to be unable to reliably create shared libraries on AIX.
9838*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
9839*** really care for shared libraries, you may want to install binutils
9840*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9841*** You will then need to restart the configuration process.
d7f09764
DN
9842
9843_LT_EOF
9844 fi
9845 ;;
9846
9847 amigaos*)
9848 case $host_cpu in
9849 powerpc)
9850 # see comment about AmigaOS4 .so support
9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 archive_expsym_cmds=''
9853 ;;
9854 m68k)
9855 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)'
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_minus_L=yes
9858 ;;
9859 esac
9860 ;;
9861
9862 beos*)
9863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9864 allow_undefined_flag=unsupported
9865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9866 # support --undefined. This deserves some investigation. FIXME
9867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 else
9869 ld_shlibs=no
9870 fi
9871 ;;
9872
9873 cygwin* | mingw* | pw32* | cegcc*)
9874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9875 # as there is no search path for DLLs.
9876 hardcode_libdir_flag_spec='-L$libdir'
52327858 9877 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
9878 allow_undefined_flag=unsupported
9879 always_export_symbols=no
9880 enable_shared_with_static_runtimes=yes
9881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9882
9883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9885 # If the export-symbols file already is a .def file (1st line
9886 # is EXPORTS), use it as is; otherwise, prepend...
9887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9888 cp $export_symbols $output_objdir/$soname.def;
9889 else
9890 echo EXPORTS > $output_objdir/$soname.def;
9891 cat $export_symbols >> $output_objdir/$soname.def;
9892 fi~
9893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9894 else
9895 ld_shlibs=no
9896 fi
9897 ;;
9898
52327858
L
9899 haiku*)
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 link_all_deplibs=yes
9902 ;;
9903
d7f09764
DN
9904 interix[3-9]*)
9905 hardcode_direct=no
9906 hardcode_shlibpath_var=no
9907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908 export_dynamic_flag_spec='${wl}-E'
9909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9910 # Instead, shared libraries are loaded at an image base (0x10000000 by
9911 # default) and relocated if they conflict, which is a slow very memory
9912 # consuming and fragmenting process. To avoid this, we pick a random,
9913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9916 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'
9917 ;;
9918
e9085da5 9919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7f09764
DN
9920 tmp_diet=no
9921 if test "$host_os" = linux-dietlibc; then
9922 case $cc_basename in
9923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9924 esac
9925 fi
9926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9927 && test "$tmp_diet" = no
9928 then
a699d672 9929 tmp_addflag=' $pic_flag'
d7f09764
DN
9930 tmp_sharedflag='-shared'
9931 case $cc_basename,$host_cpu in
9932 pgcc*) # Portland Group C compiler
52327858 9933 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
9934 tmp_addflag=' $pic_flag'
9935 ;;
52327858
L
9936 pgf77* | pgf90* | pgf95* | pgfortran*)
9937 # Portland Group f77 and f90 compilers
9938 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
9939 tmp_addflag=' $pic_flag -Mnomain' ;;
9940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9941 tmp_addflag=' -i_dynamic' ;;
9942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9943 tmp_addflag=' -i_dynamic -nofor_main' ;;
9944 ifc* | ifort*) # Intel Fortran compiler
9945 tmp_addflag=' -nofor_main' ;;
9946 lf95*) # Lahey Fortran 8.1
9947 whole_archive_flag_spec=
9948 tmp_sharedflag='--shared' ;;
52327858 9949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
9950 tmp_sharedflag='-qmkshrobj'
9951 tmp_addflag= ;;
52327858
L
9952 nvcc*) # Cuda Compiler Driver 2.2
9953 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'
9954 compiler_needs_object=yes
9955 ;;
d7f09764
DN
9956 esac
9957 case `$CC -V 2>&1 | sed 5q` in
9958 *Sun\ C*) # Sun C 5.9
52327858 9959 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
9960 compiler_needs_object=yes
9961 tmp_sharedflag='-G' ;;
9962 *Sun\ F*) # Sun Fortran 8.3
9963 tmp_sharedflag='-G' ;;
9964 esac
9965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9966
9967 if test "x$supports_anon_versioning" = xyes; then
9968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9970 echo "local: *; };" >> $output_objdir/$libname.ver~
9971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9972 fi
9973
9974 case $cc_basename in
52327858 9975 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
9976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9978 hardcode_libdir_flag_spec=
9979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9981 if test "x$supports_anon_versioning" = xyes; then
9982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9984 echo "local: *; };" >> $output_objdir/$libname.ver~
9985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9986 fi
9987 ;;
9988 esac
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
9993
9994 netbsd*)
9995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9997 wlarc=
9998 else
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001 fi
10002 ;;
10003
10004 solaris*)
10005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10006 ld_shlibs=no
10007 cat <<_LT_EOF 1>&2
10008
10009*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10010*** create shared libraries on Solaris systems. Therefore, libtool
10011*** is disabling shared libraries support. We urge you to upgrade GNU
10012*** binutils to release 2.9.1 or newer. Another option is to modify
10013*** your PATH or compiler configuration so that the native linker is
10014*** used, and then restart.
10015
10016_LT_EOF
10017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10020 else
10021 ld_shlibs=no
10022 fi
10023 ;;
10024
10025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10026 case `$LD -v 2>&1` in
10027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10028 ld_shlibs=no
10029 cat <<_LT_EOF 1>&2
10030
10031*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10032*** reliably create shared libraries on SCO systems. Therefore, libtool
10033*** is disabling shared libraries support. We urge you to upgrade GNU
10034*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10035*** your PATH or compiler configuration so that the native linker is
10036*** used, and then restart.
10037
10038_LT_EOF
10039 ;;
10040 *)
10041 # For security reasons, it is highly recommended that you always
10042 # use absolute paths for naming shared libraries, and exclude the
10043 # DT_RUNPATH tag from executables and libraries. But doing so
10044 # requires that you compile everything twice, which is a pain.
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10049 else
10050 ld_shlibs=no
10051 fi
10052 ;;
10053 esac
10054 ;;
10055
10056 sunos4*)
10057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10058 wlarc=
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *)
10064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10067 else
10068 ld_shlibs=no
10069 fi
10070 ;;
10071 esac
10072
10073 if test "$ld_shlibs" = no; then
10074 runpath_var=
10075 hardcode_libdir_flag_spec=
10076 export_dynamic_flag_spec=
10077 whole_archive_flag_spec=
10078 fi
10079 else
10080 # PORTME fill in a description of your system's linker (not GNU ld)
10081 case $host_os in
10082 aix3*)
10083 allow_undefined_flag=unsupported
10084 always_export_symbols=yes
10085 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'
10086 # Note: this linker hardcodes the directories in LIBPATH if there
10087 # are no directories specified by -L.
10088 hardcode_minus_L=yes
10089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10090 # Neither direct hardcoding nor static linking is supported with a
10091 # broken collect2.
10092 hardcode_direct=unsupported
10093 fi
10094 ;;
10095
10096 aix[4-9]*)
10097 if test "$host_cpu" = ia64; then
10098 # On IA64, the linker does run time linking by default, so we don't
10099 # have to do anything special.
10100 aix_use_runtimelinking=no
10101 exp_sym_flag='-Bexport'
10102 no_entry_flag=""
10103 else
10104 # If we're using GNU nm, then we don't want the "-C" option.
10105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
10106 # Also, AIX nm treats weak defined symbols like other global
10107 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 10108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 10109 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 10110 else
84c1b9d3 10111 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
10112 fi
10113 aix_use_runtimelinking=no
10114
10115 # Test if we are trying to use run time linking or normal
10116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10117 # need to do runtime linking.
10118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10119 for ld_flag in $LDFLAGS; do
10120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10121 aix_use_runtimelinking=yes
10122 break
10123 fi
10124 done
10125 ;;
10126 esac
10127
10128 exp_sym_flag='-bexport'
10129 no_entry_flag='-bnoentry'
10130 fi
10131
10132 # When large executables or shared objects are built, AIX ld can
10133 # have problems creating the table of contents. If linking a library
10134 # or program results in "error TOC overflow" add -mminimal-toc to
10135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10137
10138 archive_cmds=''
10139 hardcode_direct=yes
10140 hardcode_direct_absolute=yes
10141 hardcode_libdir_separator=':'
10142 link_all_deplibs=yes
10143 file_list_spec='${wl}-f,'
10144
10145 if test "$GCC" = yes; then
10146 case $host_os in aix4.[012]|aix4.[012].*)
10147 # We only want to do this on AIX 4.2 and lower, the check
10148 # below for broken collect2 doesn't work under 4.3+
10149 collect2name=`${CC} -print-prog-name=collect2`
10150 if test -f "$collect2name" &&
10151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10152 then
10153 # We have reworked collect2
10154 :
10155 else
10156 # We have old collect2
10157 hardcode_direct=unsupported
10158 # It fails to find uninstalled libraries when the uninstalled
10159 # path is not listed in the libpath. Setting hardcode_minus_L
10160 # to unsupported forces relinking
10161 hardcode_minus_L=yes
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_libdir_separator=
10164 fi
10165 ;;
10166 esac
10167 shared_flag='-shared'
10168 if test "$aix_use_runtimelinking" = yes; then
10169 shared_flag="$shared_flag "'${wl}-G'
10170 fi
10171 else
10172 # not using gcc
10173 if test "$host_cpu" = ia64; then
10174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10175 # chokes on -Wl,-G. The following line is correct:
10176 shared_flag='-G'
10177 else
10178 if test "$aix_use_runtimelinking" = yes; then
10179 shared_flag='${wl}-G'
10180 else
10181 shared_flag='${wl}-bM:SRE'
10182 fi
10183 fi
10184 fi
10185
10186 export_dynamic_flag_spec='${wl}-bexpall'
10187 # It seems that -bexpall does not export symbols beginning with
10188 # underscore (_), so it is better to generate a list of symbols to export.
10189 always_export_symbols=yes
10190 if test "$aix_use_runtimelinking" = yes; then
10191 # Warning - without using the other runtime loading flags (-brtl),
10192 # -berok will link without error, but may produce a broken library.
10193 allow_undefined_flag='-berok'
10194 # Determine the default libpath from the value encoded in an
10195 # empty executable.
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197/* end confdefs.h. */
10198
10199int
10200main ()
10201{
10202
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207if ac_fn_c_try_link "$LINENO"; then :
10208
10209lt_aix_libpath_sed='
10210 /Import File Strings/,/^$/ {
10211 /^0/ {
10212 s/^0 *\(.*\)$/\1/
10213 p
10214 }
10215 }'
10216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217# Check for a 64-bit object if we didn't find anything.
10218if test -z "$aix_libpath"; then
10219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10220fi
10221fi
10222rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10225
10226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 10227 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
10228 else
10229 if test "$host_cpu" = ia64; then
10230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10231 allow_undefined_flag="-z nodefs"
10232 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"
10233 else
10234 # Determine the default libpath from the value encoded in an
10235 # empty executable.
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238
10239int
10240main ()
10241{
10242
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247if ac_fn_c_try_link "$LINENO"; then :
10248
10249lt_aix_libpath_sed='
10250 /Import File Strings/,/^$/ {
10251 /^0/ {
10252 s/^0 *\(.*\)$/\1/
10253 p
10254 }
10255 }'
10256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10257# Check for a 64-bit object if we didn't find anything.
10258if test -z "$aix_libpath"; then
10259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10260fi
10261fi
10262rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10265
10266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10267 # Warning - without using the other run time loading flags,
10268 # -berok will link without error, but may produce a broken library.
10269 no_undefined_flag=' ${wl}-bernotok'
10270 allow_undefined_flag=' ${wl}-berok'
52327858
L
10271 if test "$with_gnu_ld" = yes; then
10272 # We only use this code for GNU lds that support --whole-archive.
10273 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10274 else
10275 # Exported symbols can be pulled into shared objects from archives
10276 whole_archive_flag_spec='$convenience'
10277 fi
d7f09764
DN
10278 archive_cmds_need_lc=yes
10279 # This is similar to how AIX traditionally builds its shared libraries.
10280 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'
10281 fi
10282 fi
10283 ;;
10284
10285 amigaos*)
10286 case $host_cpu in
10287 powerpc)
10288 # see comment about AmigaOS4 .so support
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 archive_expsym_cmds=''
10291 ;;
10292 m68k)
10293 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)'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_minus_L=yes
10296 ;;
10297 esac
10298 ;;
10299
10300 bsdi[45]*)
10301 export_dynamic_flag_spec=-rdynamic
10302 ;;
10303
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # When not using gcc, we currently assume that we are using
10306 # Microsoft Visual C++.
10307 # hardcode_libdir_flag_spec is actually meaningless, as there is
10308 # no search path for DLLs.
10309 hardcode_libdir_flag_spec=' '
10310 allow_undefined_flag=unsupported
10311 # Tell ltmain to make .lib files, not .a files.
10312 libext=lib
10313 # Tell ltmain to make .dll files, not .so files.
10314 shrext_cmds=".dll"
10315 # FIXME: Setting linknames here is a bad hack.
52327858 10316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
10317 # The linker will automatically build a .lib file if we build a DLL.
10318 old_archive_from_new_cmds='true'
10319 # FIXME: Should let the user specify the lib program.
10320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10321 fix_srcfile_path='`cygpath -w "$srcfile"`'
10322 enable_shared_with_static_runtimes=yes
10323 ;;
10324
10325 darwin* | rhapsody*)
10326
10327
10328 archive_cmds_need_lc=no
10329 hardcode_direct=no
10330 hardcode_automatic=yes
10331 hardcode_shlibpath_var=unsupported
52327858
L
10332 if test "$lt_cv_ld_force_load" = "yes"; then
10333 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\"`'
10334 else
10335 whole_archive_flag_spec=''
10336 fi
d7f09764
DN
10337 link_all_deplibs=yes
10338 allow_undefined_flag="$_lt_dar_allow_undefined"
10339 case $cc_basename in
10340 ifort*) _lt_dar_can_shared=yes ;;
10341 *) _lt_dar_can_shared=$GCC ;;
10342 esac
10343 if test "$_lt_dar_can_shared" = "yes"; then
52327858 10344 output_verbose_link_cmd=func_echo_all
d7f09764
DN
10345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10347 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}"
10348 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}"
10349
10350 else
10351 ld_shlibs=no
10352 fi
10353
10354 ;;
10355
10356 dgux*)
10357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358 hardcode_libdir_flag_spec='-L$libdir'
10359 hardcode_shlibpath_var=no
10360 ;;
10361
d7f09764
DN
10362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10363 # support. Future versions do this automatically, but an explicit c++rt0.o
10364 # does not break anything, and helps significantly (at the cost of a little
10365 # extra space).
10366 freebsd2.2*)
10367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10368 hardcode_libdir_flag_spec='-R$libdir'
10369 hardcode_direct=yes
10370 hardcode_shlibpath_var=no
10371 ;;
10372
10373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10374 freebsd2.*)
d7f09764
DN
10375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_direct=yes
10377 hardcode_minus_L=yes
10378 hardcode_shlibpath_var=no
10379 ;;
10380
10381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10382 freebsd* | dragonfly*)
10383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10387 ;;
10388
10389 hpux9*)
10390 if test "$GCC" = yes; then
10391 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'
10392 else
10393 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'
10394 fi
10395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10396 hardcode_libdir_separator=:
10397 hardcode_direct=yes
10398
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10402 export_dynamic_flag_spec='${wl}-E'
10403 ;;
10404
10405 hpux10*)
52327858 10406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10408 else
10409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 fi
10411 if test "$with_gnu_ld" = no; then
10412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10413 hardcode_libdir_flag_spec_ld='+b $libdir'
10414 hardcode_libdir_separator=:
10415 hardcode_direct=yes
10416 hardcode_direct_absolute=yes
10417 export_dynamic_flag_spec='${wl}-E'
10418 # hardcode_minus_L: Not really in the search PATH,
10419 # but as the default location of the library.
10420 hardcode_minus_L=yes
10421 fi
10422 ;;
10423
10424 hpux11*)
52327858 10425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10426 case $host_cpu in
10427 hppa*64*)
4e4ba647 10428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7f09764
DN
10429 ;;
10430 ia64*)
10431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10432 ;;
10433 *)
10434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10435 ;;
10436 esac
10437 else
10438 case $host_cpu in
10439 hppa*64*)
4e4ba647 10440 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7f09764
DN
10441 ;;
10442 ia64*)
10443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10444 ;;
10445 *)
52327858
L
10446
10447 # Older versions of the 11.00 compiler do not understand -b yet
10448 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10450$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10451if ${lt_cv_prog_compiler__b+:} false; then :
52327858
L
10452 $as_echo_n "(cached) " >&6
10453else
10454 lt_cv_prog_compiler__b=no
10455 save_LDFLAGS="$LDFLAGS"
10456 LDFLAGS="$LDFLAGS -b"
10457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10459 # The linker can only warn and ignore the option if not recognized
10460 # So say no if there are warnings
10461 if test -s conftest.err; then
10462 # Append any errors to the config.log.
10463 cat conftest.err 1>&5
10464 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10466 if diff conftest.exp conftest.er2 >/dev/null; then
10467 lt_cv_prog_compiler__b=yes
10468 fi
10469 else
10470 lt_cv_prog_compiler__b=yes
10471 fi
10472 fi
10473 $RM -r conftest*
10474 LDFLAGS="$save_LDFLAGS"
10475
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10478$as_echo "$lt_cv_prog_compiler__b" >&6; }
10479
10480if test x"$lt_cv_prog_compiler__b" = xyes; then
10481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10482else
10483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10484fi
10485
d7f09764
DN
10486 ;;
10487 esac
10488 fi
10489 if test "$with_gnu_ld" = no; then
10490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10491 hardcode_libdir_separator=:
10492
10493 case $host_cpu in
10494 hppa*64*|ia64*)
10495 hardcode_direct=no
10496 hardcode_shlibpath_var=no
10497 ;;
10498 *)
10499 hardcode_direct=yes
10500 hardcode_direct_absolute=yes
10501 export_dynamic_flag_spec='${wl}-E'
10502
10503 # hardcode_minus_L: Not really in the search PATH,
10504 # but as the default location of the library.
10505 hardcode_minus_L=yes
10506 ;;
10507 esac
10508 fi
10509 ;;
10510
10511 irix5* | irix6* | nonstopux*)
10512 if test "$GCC" = yes; then
52327858 10513 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
10514 # Try to use the -exported_symbol ld option, if it does not
10515 # work, assume that -exports_file does not work either and
10516 # implicitly export all symbols.
10517 save_LDFLAGS="$LDFLAGS"
10518 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h. */
10521int foo(void) {}
10522_ACEOF
10523if ac_fn_c_try_link "$LINENO"; then :
52327858 10524 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
10525
10526fi
10527rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LDFLAGS="$save_LDFLAGS"
10530 else
52327858
L
10531 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'
10532 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
10533 fi
10534 archive_cmds_need_lc='no'
10535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536 hardcode_libdir_separator=:
10537 inherit_rpath=yes
10538 link_all_deplibs=yes
10539 ;;
10540
10541 netbsd*)
10542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10544 else
10545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10546 fi
10547 hardcode_libdir_flag_spec='-R$libdir'
10548 hardcode_direct=yes
10549 hardcode_shlibpath_var=no
10550 ;;
10551
10552 newsos6)
10553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554 hardcode_direct=yes
10555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557 hardcode_shlibpath_var=no
10558 ;;
10559
10560 *nto* | *qnx*)
10561 ;;
10562
10563 openbsd*)
10564 if test -f /usr/libexec/ld.so; then
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 hardcode_direct_absolute=yes
10568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10572 export_dynamic_flag_spec='${wl}-E'
10573 else
10574 case $host_os in
10575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 ;;
10579 *)
10580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10582 ;;
10583 esac
10584 fi
10585 else
10586 ld_shlibs=no
10587 fi
10588 ;;
10589
10590 os2*)
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_minus_L=yes
10593 allow_undefined_flag=unsupported
52327858 10594 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
10595 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10596 ;;
10597
10598 osf3*)
10599 if test "$GCC" = yes; then
10600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10601 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
10602 else
10603 allow_undefined_flag=' -expect_unresolved \*'
52327858 10604 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
10605 fi
10606 archive_cmds_need_lc='no'
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 hardcode_libdir_separator=:
10609 ;;
10610
10611 osf4* | osf5*) # as osf3* with the addition of -msym flag
10612 if test "$GCC" = yes; then
10613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10614 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
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 else
10617 allow_undefined_flag=' -expect_unresolved \*'
52327858 10618 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 10619 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 10620 $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
10621
10622 # Both c and cxx compiler support -rpath directly
10623 hardcode_libdir_flag_spec='-rpath $libdir'
10624 fi
10625 archive_cmds_need_lc='no'
10626 hardcode_libdir_separator=:
10627 ;;
10628
10629 solaris*)
10630 no_undefined_flag=' -z defs'
10631 if test "$GCC" = yes; then
10632 wlarc='${wl}'
10633 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10635 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10636 else
10637 case `$CC -V 2>&1` in
10638 *"Compilers 5.0"*)
10639 wlarc=''
10640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10643 ;;
10644 *)
10645 wlarc='${wl}'
10646 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10648 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10649 ;;
10650 esac
10651 fi
10652 hardcode_libdir_flag_spec='-R$libdir'
10653 hardcode_shlibpath_var=no
10654 case $host_os in
10655 solaris2.[0-5] | solaris2.[0-5].*) ;;
10656 *)
10657 # The compiler driver will combine and reorder linker options,
10658 # but understands `-z linker_flag'. GCC discards it without `$wl',
10659 # but is careful enough not to reorder.
10660 # Supported since Solaris 2.6 (maybe 2.5.1?)
10661 if test "$GCC" = yes; then
10662 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10663 else
10664 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10665 fi
10666 ;;
10667 esac
10668 link_all_deplibs=yes
10669 ;;
10670
10671 sunos4*)
10672 if test "x$host_vendor" = xsequent; then
10673 # Use $CC to link under sequent, because it throws in some extra .o
10674 # files that make .init and .fini sections work.
10675 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10676 else
10677 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10678 fi
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_direct=yes
10681 hardcode_minus_L=yes
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 sysv4)
10686 case $host_vendor in
10687 sni)
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_direct=yes # is this really true???
10690 ;;
10691 siemens)
10692 ## LD is ld it makes a PLAMLIB
10693 ## CC just makes a GrossModule.
10694 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10695 reload_cmds='$CC -r -o $output$reload_objs'
10696 hardcode_direct=no
10697 ;;
10698 motorola)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10701 ;;
10702 esac
10703 runpath_var='LD_RUN_PATH'
10704 hardcode_shlibpath_var=no
10705 ;;
10706
10707 sysv4.3*)
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_shlibpath_var=no
10710 export_dynamic_flag_spec='-Bexport'
10711 ;;
10712
10713 sysv4*MP*)
10714 if test -d /usr/nec; then
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_shlibpath_var=no
10717 runpath_var=LD_RUN_PATH
10718 hardcode_runpath_var=yes
10719 ld_shlibs=yes
10720 fi
10721 ;;
10722
10723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10724 no_undefined_flag='${wl}-z,text'
10725 archive_cmds_need_lc=no
10726 hardcode_shlibpath_var=no
10727 runpath_var='LD_RUN_PATH'
10728
10729 if test "$GCC" = yes; then
10730 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 fi
10736 ;;
10737
10738 sysv5* | sco3.2v5* | sco5v6*)
10739 # Note: We can NOT use -z defs as we might desire, because we do not
10740 # link with -lc, and that would cause any symbols used from libc to
10741 # always be unresolved, which means just about no library would
10742 # ever link correctly. If we're not using GNU ld we use -z text
10743 # though, which does catch some bad symbols but isn't as heavy-handed
10744 # as -z defs.
10745 no_undefined_flag='${wl}-z,text'
10746 allow_undefined_flag='${wl}-z,nodefs'
10747 archive_cmds_need_lc=no
10748 hardcode_shlibpath_var=no
10749 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10750 hardcode_libdir_separator=':'
10751 link_all_deplibs=yes
10752 export_dynamic_flag_spec='${wl}-Bexport'
10753 runpath_var='LD_RUN_PATH'
10754
10755 if test "$GCC" = yes; then
10756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 else
10759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10761 fi
10762 ;;
10763
10764 uts4*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_libdir_flag_spec='-L$libdir'
10767 hardcode_shlibpath_var=no
10768 ;;
10769
10770 *)
10771 ld_shlibs=no
10772 ;;
10773 esac
10774
10775 if test x$host_vendor = xsni; then
10776 case $host in
10777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10778 export_dynamic_flag_spec='${wl}-Blargedynsym'
10779 ;;
10780 esac
10781 fi
10782 fi
10783
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10785$as_echo "$ld_shlibs" >&6; }
10786test "$ld_shlibs" = no && can_build_shared=no
10787
10788with_gnu_ld=$with_gnu_ld
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804#
10805# Do we need to explicitly link libc?
10806#
10807case "x$archive_cmds_need_lc" in
10808x|xyes)
10809 # Assume -lc should be added
10810 archive_cmds_need_lc=yes
10811
10812 if test "$enable_shared" = yes && test "$GCC" = yes; then
10813 case $archive_cmds in
10814 *'~'*)
10815 # FIXME: we may have to deal with multi-command sequences.
10816 ;;
10817 '$CC '*)
10818 # Test whether the compiler implicitly links with -lc since on some
10819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10820 # to ld, don't add -lc before -lgcc.
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10822$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10823if ${lt_cv_archive_cmds_need_lc+:} false; then :
d7f09764
DN
10824 $as_echo_n "(cached) " >&6
10825else
10826 $RM conftest*
10827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828
10829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10830 (eval $ac_compile) 2>&5
10831 ac_status=$?
10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833 test $ac_status = 0; } 2>conftest.err; then
10834 soname=conftest
10835 lib=conftest
10836 libobjs=conftest.$ac_objext
10837 deplibs=
10838 wl=$lt_prog_compiler_wl
10839 pic_flag=$lt_prog_compiler_pic
10840 compiler_flags=-v
10841 linker_flags=-v
10842 verstring=
10843 output_objdir=.
10844 libname=conftest
10845 lt_save_allow_undefined_flag=$allow_undefined_flag
10846 allow_undefined_flag=
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10848 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10849 ac_status=$?
10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; }
10852 then
10853 lt_cv_archive_cmds_need_lc=no
10854 else
10855 lt_cv_archive_cmds_need_lc=yes
10856 fi
10857 allow_undefined_flag=$lt_save_allow_undefined_flag
10858 else
10859 cat conftest.err 1>&5
10860 fi
10861 $RM conftest*
10862
10863fi
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10865$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10866 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10867 ;;
10868 esac
10869 fi
10870 ;;
10871esac
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11030$as_echo_n "checking dynamic linker characteristics... " >&6; }
11031
11032if test "$GCC" = yes; then
11033 case $host_os in
11034 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11035 *) lt_awk_arg="/^libraries:/" ;;
11036 esac
52327858
L
11037 case $host_os in
11038 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11039 *) lt_sed_strip_eq="s,=/,/,g" ;;
11040 esac
11041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11042 case $lt_search_path_spec in
11043 *\;*)
d7f09764
DN
11044 # if the path contains ";" then we assume it to be the separator
11045 # otherwise default to the standard path separator (i.e. ":") - it is
11046 # assumed that no part of a normal pathname contains ";" but that should
11047 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
11048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11049 ;;
11050 *)
11051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11052 ;;
11053 esac
d7f09764
DN
11054 # Ok, now we have the path, separated by spaces, we can step through it
11055 # and add multilib dir if necessary.
11056 lt_tmp_lt_search_path_spec=
11057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11058 for lt_sys_path in $lt_search_path_spec; do
11059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11061 else
11062 test -d "$lt_sys_path" && \
11063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11064 fi
11065 done
52327858 11066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
11067BEGIN {RS=" "; FS="/|\n";} {
11068 lt_foo="";
11069 lt_count=0;
11070 for (lt_i = NF; lt_i > 0; lt_i--) {
11071 if ($lt_i != "" && $lt_i != ".") {
11072 if ($lt_i == "..") {
11073 lt_count++;
11074 } else {
11075 if (lt_count == 0) {
11076 lt_foo="/" $lt_i lt_foo;
11077 } else {
11078 lt_count--;
11079 }
11080 }
11081 }
11082 }
11083 if (lt_foo != "") { lt_freq[lt_foo]++; }
11084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11085}'`
52327858
L
11086 # AWK program above erroneously prepends '/' to C:/dos/paths
11087 # for these hosts.
11088 case $host_os in
11089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11090 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11091 esac
11092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
11093else
11094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095fi
11096library_names_spec=
11097libname_spec='lib$name'
11098soname_spec=
11099shrext_cmds=".so"
11100postinstall_cmds=
11101postuninstall_cmds=
11102finish_cmds=
11103finish_eval=
11104shlibpath_var=
11105shlibpath_overrides_runpath=unknown
11106version_type=none
11107dynamic_linker="$host_os ld.so"
11108sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109need_lib_prefix=unknown
11110hardcode_into_libs=no
11111
11112# when you set need_version to no, make sure it does not cause -set_version
11113# flags to be left without arguments
11114need_version=unknown
11115
11116case $host_os in
11117aix3*)
11118 version_type=linux
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11120 shlibpath_var=LIBPATH
11121
11122 # AIX 3 has no versioning support, so we append a major version to the name.
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 ;;
11125
11126aix[4-9]*)
11127 version_type=linux
11128 need_lib_prefix=no
11129 need_version=no
11130 hardcode_into_libs=yes
11131 if test "$host_cpu" = ia64; then
11132 # AIX 5 supports IA64
11133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 else
11136 # With GCC up to 2.95.x, collect2 would create an import file
11137 # for dependence libraries. The import file would start with
11138 # the line `#! .'. This would cause the generated library to
11139 # depend on `.', always an invalid library. This was fixed in
11140 # development snapshots of GCC prior to 3.0.
11141 case $host_os in
11142 aix4 | aix4.[01] | aix4.[01].*)
11143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11144 echo ' yes '
11145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11146 :
11147 else
11148 can_build_shared=no
11149 fi
11150 ;;
11151 esac
11152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11153 # soname into executable. Probably we can add versioning support to
11154 # collect2, so additional links can be useful in future.
11155 if test "$aix_use_runtimelinking" = yes; then
11156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11157 # instead of lib<name>.a to let people know that these are not
11158 # typical AIX shared libraries.
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 else
11161 # We preserve .a as extension for shared libraries through AIX4.2
11162 # and later when we are not doing run time linking.
11163 library_names_spec='${libname}${release}.a $libname.a'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 fi
11166 shlibpath_var=LIBPATH
11167 fi
11168 ;;
11169
11170amigaos*)
11171 case $host_cpu in
11172 powerpc)
11173 # Since July 2007 AmigaOS4 officially supports .so libraries.
11174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 ;;
11177 m68k)
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 11180 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
11181 ;;
11182 esac
11183 ;;
11184
11185beos*)
11186 library_names_spec='${libname}${shared_ext}'
11187 dynamic_linker="$host_os ld.so"
11188 shlibpath_var=LIBRARY_PATH
11189 ;;
11190
11191bsdi[45]*)
11192 version_type=linux
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11200 # the default ld.so.conf also contains /usr/contrib/lib and
11201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11202 # libtool to hard-code these into programs
11203 ;;
11204
11205cygwin* | mingw* | pw32* | cegcc*)
11206 version_type=windows
11207 shrext_cmds=".dll"
11208 need_version=no
11209 need_lib_prefix=no
11210
11211 case $GCC,$host_os in
11212 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11213 library_names_spec='$libname.dll.a'
11214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11215 postinstall_cmds='base_file=`basename \${file}`~
11216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11217 dldir=$destdir/`dirname \$dlpath`~
11218 test -d \$dldir || mkdir -p \$dldir~
11219 $install_prog $dir/$dlname \$dldir/$dlname~
11220 chmod a+x \$dldir/$dlname~
11221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11223 fi'
11224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11225 dlpath=$dir/\$dldll~
11226 $RM \$dlpath'
11227 shlibpath_overrides_runpath=yes
11228
11229 case $host_os in
11230 cygwin*)
11231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
11233
11234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
11235 ;;
11236 mingw* | cegcc*)
11237 # MinGW DLLs use traditional 'lib' prefix
11238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
11239 ;;
11240 pw32*)
11241 # pw32 DLLs use 'pw' prefix rather than 'lib'
11242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 ;;
11244 esac
11245 ;;
11246
11247 *)
11248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11249 ;;
11250 esac
11251 dynamic_linker='Win32 ld.exe'
11252 # FIXME: first we should search . and the directory the executable is in
11253 shlibpath_var=PATH
11254 ;;
11255
11256darwin* | rhapsody*)
11257 dynamic_linker="$host_os dyld"
11258 version_type=darwin
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11262 soname_spec='${libname}${release}${major}$shared_ext'
11263 shlibpath_overrides_runpath=yes
11264 shlibpath_var=DYLD_LIBRARY_PATH
11265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11266
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11269 ;;
11270
11271dgux*)
11272 version_type=linux
11273 need_lib_prefix=no
11274 need_version=no
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 ;;
11279
d7f09764
DN
11280freebsd* | dragonfly*)
11281 # DragonFly does not have aout. When/if they implement a new
11282 # versioning mechanism, adjust this.
11283 if test -x /usr/bin/objformat; then
11284 objformat=`/usr/bin/objformat`
11285 else
11286 case $host_os in
c6084f68 11287 freebsd[23].*) objformat=aout ;;
d7f09764
DN
11288 *) objformat=elf ;;
11289 esac
11290 fi
11291 version_type=freebsd-$objformat
11292 case $version_type in
11293 freebsd-elf*)
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 need_version=no
11296 need_lib_prefix=no
11297 ;;
11298 freebsd-*)
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11300 need_version=yes
11301 ;;
11302 esac
11303 shlibpath_var=LD_LIBRARY_PATH
11304 case $host_os in
c6084f68 11305 freebsd2.*)
d7f09764
DN
11306 shlibpath_overrides_runpath=yes
11307 ;;
11308 freebsd3.[01]* | freebsdelf3.[01]*)
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11311 ;;
11312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11314 shlibpath_overrides_runpath=no
11315 hardcode_into_libs=yes
11316 ;;
11317 *) # from 4.6 on, and DragonFly
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11320 ;;
11321 esac
11322 ;;
11323
52327858
L
11324haiku*)
11325 version_type=linux
11326 need_lib_prefix=no
11327 need_version=no
11328 dynamic_linker="$host_os runtime_loader"
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11334 hardcode_into_libs=yes
11335 ;;
11336
d7f09764
DN
11337hpux9* | hpux10* | hpux11*)
11338 # Give a soname corresponding to the major version so that dld.sl refuses to
11339 # link against other versions.
11340 version_type=sunos
11341 need_lib_prefix=no
11342 need_version=no
11343 case $host_cpu in
11344 ia64*)
11345 shrext_cmds='.so'
11346 hardcode_into_libs=yes
11347 dynamic_linker="$host_os dld.so"
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 if test "X$HPUX_IA64_MODE" = X32; then
11353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11354 else
11355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11356 fi
11357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11358 ;;
11359 hppa*64*)
11360 shrext_cmds='.sl'
11361 hardcode_into_libs=yes
11362 dynamic_linker="$host_os dld.sl"
11363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11369 ;;
11370 *)
11371 shrext_cmds='.sl'
11372 dynamic_linker="$host_os dld.sl"
11373 shlibpath_var=SHLIB_PATH
11374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 ;;
11378 esac
52327858 11379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 11380 postinstall_cmds='chmod 555 $lib'
52327858
L
11381 # or fails outright, so override atomically:
11382 install_override_mode=555
d7f09764
DN
11383 ;;
11384
11385interix[3-9]*)
11386 version_type=linux
11387 need_lib_prefix=no
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=no
11394 hardcode_into_libs=yes
11395 ;;
11396
11397irix5* | irix6* | nonstopux*)
11398 case $host_os in
11399 nonstopux*) version_type=nonstopux ;;
11400 *)
11401 if test "$lt_cv_prog_gnu_ld" = yes; then
11402 version_type=linux
11403 else
11404 version_type=irix
11405 fi ;;
11406 esac
11407 need_lib_prefix=no
11408 need_version=no
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11411 case $host_os in
11412 irix5* | nonstopux*)
11413 libsuff= shlibsuff=
11414 ;;
11415 *)
11416 case $LD in # libtool.m4 will add one of these switches to LD
11417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11418 libsuff= shlibsuff= libmagic=32-bit;;
11419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11420 libsuff=32 shlibsuff=N32 libmagic=N32;;
11421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11423 *) libsuff= shlibsuff= libmagic=never-match;;
11424 esac
11425 ;;
11426 esac
11427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11428 shlibpath_overrides_runpath=no
11429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11431 hardcode_into_libs=yes
11432 ;;
11433
11434# No shared lib support for Linux oldld, aout, or coff.
11435linux*oldld* | linux*aout* | linux*coff*)
11436 dynamic_linker=no
11437 ;;
11438
11439# This must be Linux ELF.
e9085da5
MR
11440
11441# uclinux* changes (here and below) have been submitted to the libtool
11442# project, but have not yet been accepted: they are GCC-local changes
11443# for the time being. (See
11444# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11445linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
d7f09764
DN
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11454
11455 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11456 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
d7f09764
DN
11457 $as_echo_n "(cached) " >&6
11458else
11459 lt_cv_shlibpath_overrides_runpath=no
11460 save_LDFLAGS=$LDFLAGS
11461 save_libdir=$libdir
11462 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11463 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h. */
11466
11467int
11468main ()
11469{
11470
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_link "$LINENO"; then :
11476 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11477 lt_cv_shlibpath_overrides_runpath=yes
11478fi
11479fi
11480rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LDFLAGS=$save_LDFLAGS
11483 libdir=$save_libdir
11484
11485fi
11486
11487 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11488
11489 # This implies no fast_install, which is unacceptable.
11490 # Some rework will be needed to allow for fast_install
11491 # before this can be enabled.
11492 hardcode_into_libs=yes
11493
11494 # Append ld.so.conf contents to the search path
11495 if test -f /etc/ld.so.conf; then
52327858 11496 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
11497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11498 fi
11499
11500 # We used to test for /lib/ld.so.1 and disable shared libraries on
11501 # powerpc, because MkLinux only supported shared libraries with the
11502 # GNU dynamic linker. Since this was broken with cross compilers,
11503 # most powerpc-linux boxes support dynamic linking these days and
11504 # people can always --disable-shared, the test was removed, and we
11505 # assume the GNU/Linux dynamic linker is in use.
11506 dynamic_linker='GNU/Linux ld.so'
11507 ;;
11508
11509netbsd*)
11510 version_type=sunos
11511 need_lib_prefix=no
11512 need_version=no
11513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516 dynamic_linker='NetBSD (a.out) ld.so'
11517 else
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 dynamic_linker='NetBSD ld.elf_so'
11521 fi
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 hardcode_into_libs=yes
11525 ;;
11526
11527newsos6)
11528 version_type=linux
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 ;;
11533
11534*nto* | *qnx*)
11535 version_type=qnx
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=no
11542 hardcode_into_libs=yes
11543 dynamic_linker='ldqnx.so'
11544 ;;
11545
11546openbsd*)
11547 version_type=sunos
11548 sys_lib_dlsearch_path_spec="/usr/lib"
11549 need_lib_prefix=no
11550 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11551 case $host_os in
11552 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11553 *) need_version=no ;;
11554 esac
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11559 case $host_os in
11560 openbsd2.[89] | openbsd2.[89].*)
11561 shlibpath_overrides_runpath=no
11562 ;;
11563 *)
11564 shlibpath_overrides_runpath=yes
11565 ;;
11566 esac
11567 else
11568 shlibpath_overrides_runpath=yes
11569 fi
11570 ;;
11571
11572os2*)
11573 libname_spec='$name'
11574 shrext_cmds=".dll"
11575 need_lib_prefix=no
11576 library_names_spec='$libname${shared_ext} $libname.a'
11577 dynamic_linker='OS/2 ld.exe'
11578 shlibpath_var=LIBPATH
11579 ;;
11580
11581osf3* | osf4* | osf5*)
11582 version_type=osf
11583 need_lib_prefix=no
11584 need_version=no
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11589 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11590 ;;
11591
11592rdos*)
11593 dynamic_linker=no
11594 ;;
11595
11596solaris*)
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11604 hardcode_into_libs=yes
11605 # ldd complains unless libraries are executable
11606 postinstall_cmds='chmod +x $lib'
11607 ;;
11608
11609sunos4*)
11610 version_type=sunos
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615 if test "$with_gnu_ld" = yes; then
11616 need_lib_prefix=no
11617 fi
11618 need_version=yes
11619 ;;
11620
11621sysv4 | sysv4.3*)
11622 version_type=linux
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 case $host_vendor in
11627 sni)
11628 shlibpath_overrides_runpath=no
11629 need_lib_prefix=no
11630 runpath_var=LD_RUN_PATH
11631 ;;
11632 siemens)
11633 need_lib_prefix=no
11634 ;;
11635 motorola)
11636 need_lib_prefix=no
11637 need_version=no
11638 shlibpath_overrides_runpath=no
11639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11640 ;;
11641 esac
11642 ;;
11643
11644sysv4*MP*)
11645 if test -d /usr/nec ;then
11646 version_type=linux
11647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11648 soname_spec='$libname${shared_ext}.$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 fi
11651 ;;
11652
11653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11654 version_type=freebsd-elf
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11661 hardcode_into_libs=yes
11662 if test "$with_gnu_ld" = yes; then
11663 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11664 else
11665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11666 case $host_os in
11667 sco3.2v5*)
11668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11669 ;;
11670 esac
11671 fi
11672 sys_lib_dlsearch_path_spec='/usr/lib'
11673 ;;
11674
11675tpf*)
11676 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11677 version_type=linux
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=no
11683 hardcode_into_libs=yes
11684 ;;
11685
11686uts4*)
11687 version_type=linux
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 ;;
11692
0ecd0f1c
OH
11693# Shared libraries for VwWorks, >= 7 only at this stage
11694# and (fpic) still incompatible with "large" code models
11695# in a few configurations. Only for RTP mode in any case,
11696# and upon explicit request at configure time.
11697vxworks7*)
11698 dynamic_linker=no
11699 case ${with_multisubdir}-${enable_shared} in
11700 *large*)
11701 ;;
11702 *mrtp*-yes)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 dynamic_linker="$host_os module_loader"
11709 ;;
11710 esac
11711 ;;
d7f09764
DN
11712*)
11713 dynamic_linker=no
11714 ;;
11715esac
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11717$as_echo "$dynamic_linker" >&6; }
11718test "$dynamic_linker" = no && can_build_shared=no
11719
11720variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11721if test "$GCC" = yes; then
11722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11723fi
11724
11725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11727fi
11728if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11730fi
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
52327858
L
11812
11813
11814
11815
11816
d7f09764
DN
11817
11818
11819
11820
11821
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11824$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11825hardcode_action=
11826if test -n "$hardcode_libdir_flag_spec" ||
11827 test -n "$runpath_var" ||
11828 test "X$hardcode_automatic" = "Xyes" ; then
11829
11830 # We can hardcode non-existent directories.
11831 if test "$hardcode_direct" != no &&
11832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11833 # have to relink, otherwise we might link with an installed library
11834 # when we should be linking with a yet-to-be-installed one
11835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11836 test "$hardcode_minus_L" != no; then
11837 # Linking always hardcodes the temporary library directory.
11838 hardcode_action=relink
11839 else
11840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11841 hardcode_action=immediate
11842 fi
11843else
11844 # We cannot hardcode anything, or else we can only hardcode existing
11845 # directories.
11846 hardcode_action=unsupported
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11849$as_echo "$hardcode_action" >&6; }
11850
11851if test "$hardcode_action" = relink ||
11852 test "$inherit_rpath" = yes; then
11853 # Fast installation is not supported
11854 enable_fast_install=no
11855elif test "$shlibpath_overrides_runpath" = yes ||
11856 test "$enable_shared" = no; then
11857 # Fast installation is not necessary
11858 enable_fast_install=needless
11859fi
11860
11861
11862
11863
11864
11865
11866 if test "x$enable_dlopen" != xyes; then
11867 enable_dlopen=unknown
11868 enable_dlopen_self=unknown
11869 enable_dlopen_self_static=unknown
11870else
11871 lt_cv_dlopen=no
11872 lt_cv_dlopen_libs=
11873
11874 case $host_os in
11875 beos*)
11876 lt_cv_dlopen="load_add_on"
11877 lt_cv_dlopen_libs=
11878 lt_cv_dlopen_self=yes
11879 ;;
11880
11881 mingw* | pw32* | cegcc*)
11882 lt_cv_dlopen="LoadLibrary"
11883 lt_cv_dlopen_libs=
11884 ;;
11885
11886 cygwin*)
11887 lt_cv_dlopen="dlopen"
11888 lt_cv_dlopen_libs=
11889 ;;
11890
11891 darwin*)
11892 # if libdl is installed we need to link against it
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11895if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
11896 $as_echo_n "(cached) " >&6
11897else
11898 ac_check_lib_save_LIBS=$LIBS
11899LIBS="-ldl $LIBS"
11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901/* end confdefs.h. */
11902
11903/* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906#ifdef __cplusplus
11907extern "C"
11908#endif
11909char dlopen ();
11910int
11911main ()
11912{
11913return dlopen ();
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11920else
11921 ac_cv_lib_dl_dlopen=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925LIBS=$ac_check_lib_save_LIBS
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11929if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931else
11932
11933 lt_cv_dlopen="dyld"
11934 lt_cv_dlopen_libs=
11935 lt_cv_dlopen_self=yes
11936
11937fi
11938
11939 ;;
11940
11941 *)
11942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11943if test "x$ac_cv_func_shl_load" = xyes; then :
d7f09764
DN
11944 lt_cv_dlopen="shl_load"
11945else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11947$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11948if ${ac_cv_lib_dld_shl_load+:} false; then :
d7f09764
DN
11949 $as_echo_n "(cached) " >&6
11950else
11951 ac_check_lib_save_LIBS=$LIBS
11952LIBS="-ldld $LIBS"
11953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h. */
11955
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char shl_load ();
11963int
11964main ()
11965{
11966return shl_load ();
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_dld_shl_load=yes
11973else
11974 ac_cv_lib_dld_shl_load=no
11975fi
11976rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978LIBS=$ac_check_lib_save_LIBS
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11981$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11982if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d7f09764
DN
11983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11984else
11985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11986if test "x$ac_cv_func_dlopen" = xyes; then :
d7f09764
DN
11987 lt_cv_dlopen="dlopen"
11988else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11991if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
11992 $as_echo_n "(cached) " >&6
11993else
11994 ac_check_lib_save_LIBS=$LIBS
11995LIBS="-ldl $LIBS"
11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998
11999/* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002#ifdef __cplusplus
12003extern "C"
12004#endif
12005char dlopen ();
12006int
12007main ()
12008{
12009return dlopen ();
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_dl_dlopen=yes
12016else
12017 ac_cv_lib_dl_dlopen=no
12018fi
12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021LIBS=$ac_check_lib_save_LIBS
12022fi
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12025if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
12026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12029$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12030if ${ac_cv_lib_svld_dlopen+:} false; then :
d7f09764
DN
12031 $as_echo_n "(cached) " >&6
12032else
12033 ac_check_lib_save_LIBS=$LIBS
12034LIBS="-lsvld $LIBS"
12035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h. */
12037
12038/* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041#ifdef __cplusplus
12042extern "C"
12043#endif
12044char dlopen ();
12045int
12046main ()
12047{
12048return dlopen ();
12049 ;
12050 return 0;
12051}
12052_ACEOF
12053if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_svld_dlopen=yes
12055else
12056 ac_cv_lib_svld_dlopen=no
12057fi
12058rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060LIBS=$ac_check_lib_save_LIBS
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12063$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12064if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d7f09764
DN
12065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12066else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12068$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12069if ${ac_cv_lib_dld_dld_link+:} false; then :
d7f09764
DN
12070 $as_echo_n "(cached) " >&6
12071else
12072 ac_check_lib_save_LIBS=$LIBS
12073LIBS="-ldld $LIBS"
12074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075/* end confdefs.h. */
12076
12077/* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080#ifdef __cplusplus
12081extern "C"
12082#endif
12083char dld_link ();
12084int
12085main ()
12086{
12087return dld_link ();
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_dld_dld_link=yes
12094else
12095 ac_cv_lib_dld_dld_link=no
12096fi
12097rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099LIBS=$ac_check_lib_save_LIBS
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12102$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12103if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d7f09764
DN
12104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12105fi
12106
12107
12108fi
12109
12110
12111fi
12112
12113
12114fi
12115
12116
12117fi
12118
12119
12120fi
12121
12122 ;;
12123 esac
12124
12125 if test "x$lt_cv_dlopen" != xno; then
12126 enable_dlopen=yes
12127 else
12128 enable_dlopen=no
12129 fi
12130
12131 case $lt_cv_dlopen in
12132 dlopen)
12133 save_CPPFLAGS="$CPPFLAGS"
12134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12135
12136 save_LDFLAGS="$LDFLAGS"
12137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12138
12139 save_LIBS="$LIBS"
12140 LIBS="$lt_cv_dlopen_libs $LIBS"
12141
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12143$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12144if ${lt_cv_dlopen_self+:} false; then :
d7f09764
DN
12145 $as_echo_n "(cached) " >&6
12146else
12147 if test "$cross_compiling" = yes; then :
12148 lt_cv_dlopen_self=cross
12149else
12150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151 lt_status=$lt_dlunknown
12152 cat > conftest.$ac_ext <<_LT_EOF
33ebb0df 12153#line 12153 "configure"
d7f09764
DN
12154#include "confdefs.h"
12155
12156#if HAVE_DLFCN_H
12157#include <dlfcn.h>
12158#endif
12159
12160#include <stdio.h>
12161
12162#ifdef RTLD_GLOBAL
12163# define LT_DLGLOBAL RTLD_GLOBAL
12164#else
12165# ifdef DL_GLOBAL
12166# define LT_DLGLOBAL DL_GLOBAL
12167# else
12168# define LT_DLGLOBAL 0
12169# endif
12170#endif
12171
12172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173 find out it does not work in some platform. */
12174#ifndef LT_DLLAZY_OR_NOW
12175# ifdef RTLD_LAZY
12176# define LT_DLLAZY_OR_NOW RTLD_LAZY
12177# else
12178# ifdef DL_LAZY
12179# define LT_DLLAZY_OR_NOW DL_LAZY
12180# else
12181# ifdef RTLD_NOW
12182# define LT_DLLAZY_OR_NOW RTLD_NOW
12183# else
12184# ifdef DL_NOW
12185# define LT_DLLAZY_OR_NOW DL_NOW
12186# else
12187# define LT_DLLAZY_OR_NOW 0
12188# endif
12189# endif
12190# endif
12191# endif
12192#endif
12193
52327858
L
12194/* When -fvisbility=hidden is used, assume the code has been annotated
12195 correspondingly for the symbols needed. */
12196#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12197void fnord () __attribute__((visibility("default")));
12198#endif
12199
12200void fnord () { int i=42; }
d7f09764
DN
12201int main ()
12202{
12203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204 int status = $lt_dlunknown;
12205
12206 if (self)
12207 {
12208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
12209 else
12210 {
12211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12212 else puts (dlerror ());
12213 }
d7f09764
DN
12214 /* dlclose (self); */
12215 }
12216 else
12217 puts (dlerror ());
12218
12219 return status;
12220}
12221_LT_EOF
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12227 (./conftest; exit; ) >&5 2>/dev/null
12228 lt_status=$?
12229 case x$lt_status in
12230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12233 esac
12234 else :
12235 # compilation failed
12236 lt_cv_dlopen_self=no
12237 fi
12238fi
12239rm -fr conftest*
12240
12241
12242fi
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244$as_echo "$lt_cv_dlopen_self" >&6; }
12245
12246 if test "x$lt_cv_dlopen_self" = xyes; then
12247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12250if ${lt_cv_dlopen_self_static+:} false; then :
d7f09764
DN
12251 $as_echo_n "(cached) " >&6
12252else
12253 if test "$cross_compiling" = yes; then :
12254 lt_cv_dlopen_self_static=cross
12255else
12256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257 lt_status=$lt_dlunknown
12258 cat > conftest.$ac_ext <<_LT_EOF
33ebb0df 12259#line 12259 "configure"
d7f09764
DN
12260#include "confdefs.h"
12261
12262#if HAVE_DLFCN_H
12263#include <dlfcn.h>
12264#endif
12265
12266#include <stdio.h>
12267
12268#ifdef RTLD_GLOBAL
12269# define LT_DLGLOBAL RTLD_GLOBAL
12270#else
12271# ifdef DL_GLOBAL
12272# define LT_DLGLOBAL DL_GLOBAL
12273# else
12274# define LT_DLGLOBAL 0
12275# endif
12276#endif
12277
12278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279 find out it does not work in some platform. */
12280#ifndef LT_DLLAZY_OR_NOW
12281# ifdef RTLD_LAZY
12282# define LT_DLLAZY_OR_NOW RTLD_LAZY
12283# else
12284# ifdef DL_LAZY
12285# define LT_DLLAZY_OR_NOW DL_LAZY
12286# else
12287# ifdef RTLD_NOW
12288# define LT_DLLAZY_OR_NOW RTLD_NOW
12289# else
12290# ifdef DL_NOW
12291# define LT_DLLAZY_OR_NOW DL_NOW
12292# else
12293# define LT_DLLAZY_OR_NOW 0
12294# endif
12295# endif
12296# endif
12297# endif
12298#endif
12299
52327858
L
12300/* When -fvisbility=hidden is used, assume the code has been annotated
12301 correspondingly for the symbols needed. */
12302#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12303void fnord () __attribute__((visibility("default")));
12304#endif
12305
12306void fnord () { int i=42; }
d7f09764
DN
12307int main ()
12308{
12309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12310 int status = $lt_dlunknown;
12311
12312 if (self)
12313 {
12314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
12315 else
12316 {
12317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12318 else puts (dlerror ());
12319 }
d7f09764
DN
12320 /* dlclose (self); */
12321 }
12322 else
12323 puts (dlerror ());
12324
12325 return status;
12326}
12327_LT_EOF
12328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329 (eval $ac_link) 2>&5
12330 ac_status=$?
12331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12333 (./conftest; exit; ) >&5 2>/dev/null
12334 lt_status=$?
12335 case x$lt_status in
12336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12339 esac
12340 else :
12341 # compilation failed
12342 lt_cv_dlopen_self_static=no
12343 fi
12344fi
12345rm -fr conftest*
12346
12347
12348fi
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12350$as_echo "$lt_cv_dlopen_self_static" >&6; }
12351 fi
12352
12353 CPPFLAGS="$save_CPPFLAGS"
12354 LDFLAGS="$save_LDFLAGS"
12355 LIBS="$save_LIBS"
12356 ;;
12357 esac
12358
12359 case $lt_cv_dlopen_self in
12360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12361 *) enable_dlopen_self=unknown ;;
12362 esac
12363
12364 case $lt_cv_dlopen_self_static in
12365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12366 *) enable_dlopen_self_static=unknown ;;
12367 esac
12368fi
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386striplib=
12387old_striplib=
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12389$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12390if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394$as_echo "yes" >&6; }
12395else
12396# FIXME - insert some real tests, host_os isn't really good enough
12397 case $host_os in
12398 darwin*)
12399 if test -n "$STRIP" ; then
12400 striplib="$STRIP -x"
12401 old_striplib="$STRIP -S"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403$as_echo "yes" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406$as_echo "no" >&6; }
12407 fi
12408 ;;
12409 *)
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412 ;;
12413 esac
12414fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427 # Report which library types will actually be built
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12429$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12431$as_echo "$can_build_shared" >&6; }
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12434$as_echo_n "checking whether to build shared libraries... " >&6; }
12435 test "$can_build_shared" = "no" && enable_shared=no
12436
12437 # On AIX, shared libraries and static libraries use the same namespace, and
12438 # are all built from PIC.
12439 case $host_os in
12440 aix3*)
12441 test "$enable_shared" = yes && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12445 fi
12446 ;;
12447
12448 aix[4-9]*)
12449 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12450 test "$enable_shared" = yes && enable_static=no
12451 fi
12452 ;;
12453 esac
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12455$as_echo "$enable_shared" >&6; }
12456
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12458$as_echo_n "checking whether to build static libraries... " >&6; }
12459 # Make sure either enable_shared or enable_static is yes.
12460 test "$enable_shared" = yes || enable_static=yes
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12462$as_echo "$enable_static" >&6; }
12463
12464
12465
12466
12467fi
12468ac_ext=c
12469ac_cpp='$CPP $CPPFLAGS'
12470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474CC="$lt_save_CC"
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 ac_config_commands="$ac_config_commands libtool"
12489
12490
12491
12492
12493# Only expand once:
12494
12495
12496
7de6ba7a
DK
12497
12498
12499case $host in
12500 *-cygwin* | *-mingw*)
12501 # 'host' will be top-level target in the case of a target lib,
12502 # we must compare to with_cross_host to decide if this is a native
12503 # or cross-compiler and select where to install dlls appropriately.
12504 if test -n "$with_cross_host" &&
12505 test x"$with_cross_host" != x"no"; then
12506 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12507 else
12508 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12509 fi
12510 ;;
12511 *)
12512 lt_host_flags=
12513 ;;
12514esac
12515
12516
12517
12518
d19e0f01
DK
12519ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12520case $ac_cv_c_int64_t in #(
12521 no|yes) ;; #(
12522 *)
12523
12524cat >>confdefs.h <<_ACEOF
12525#define int64_t $ac_cv_c_int64_t
12526_ACEOF
12527;;
12528esac
12529
21750c78
RE
12530ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12531case $ac_cv_c_uint64_t in #(
12532 no|yes) ;; #(
12533 *)
12534
12535$as_echo "#define _UINT64_T 1" >>confdefs.h
12536
12537
12538cat >>confdefs.h <<_ACEOF
12539#define uint64_t $ac_cv_c_uint64_t
12540_ACEOF
12541;;
12542 esac
12543
ec692d5f
KT
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12545$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
22e05272 12546if ${ac_cv_header_sys_wait_h+:} false; then :
ec692d5f
KT
12547 $as_echo_n "(cached) " >&6
12548else
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551#include <sys/types.h>
12552#include <sys/wait.h>
12553#ifndef WEXITSTATUS
12554# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12555#endif
12556#ifndef WIFEXITED
12557# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12558#endif
a2254c5d 12559
ec692d5f
KT
12560int
12561main ()
12562{
12563 int s;
12564 wait (&s);
12565 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12566 ;
12567 return 0;
12568}
12569_ACEOF
12570if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_header_sys_wait_h=yes
12572else
12573 ac_cv_header_sys_wait_h=no
12574fi
12575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a2254c5d 12576fi
ec692d5f
KT
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12578$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12579if test $ac_cv_header_sys_wait_h = yes; then
a2254c5d 12580
ec692d5f
KT
12581$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12582
12583fi
a2254c5d 12584
d7f09764
DN
12585ac_config_files="$ac_config_files Makefile"
12586
48215350
DK
12587ac_config_headers="$ac_config_headers config.h"
12588
d7f09764
DN
12589cat >confcache <<\_ACEOF
12590# This file is a shell script that caches the results of configure
12591# tests run on this system so they can be shared between configure
12592# scripts and configure runs, see configure's option --config-cache.
12593# It is not useful on other systems. If it contains results you don't
12594# want to keep, you may remove or edit it.
12595#
12596# config.status only pays attention to the cache file if you give it
12597# the --recheck option to rerun configure.
12598#
12599# `ac_cv_env_foo' variables (set or unset) will be overridden when
12600# loading this file, other *unset* `ac_cv_foo' will be assigned the
12601# following values.
12602
12603_ACEOF
12604
12605# The following way of writing the cache mishandles newlines in values,
12606# but we know of no workaround that is simple, portable, and efficient.
12607# So, we kill variables containing newlines.
12608# Ultrix sh set writes to stderr and can't be redirected directly,
12609# and sets the high bit in the cache file unless we assign to the vars.
12610(
12611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12612 eval ac_val=\$$ac_var
12613 case $ac_val in #(
12614 *${as_nl}*)
12615 case $ac_var in #(
12616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12618 esac
12619 case $ac_var in #(
12620 _ | IFS | as_nl) ;; #(
12621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12622 *) { eval $ac_var=; unset $ac_var;} ;;
12623 esac ;;
12624 esac
12625 done
12626
12627 (set) 2>&1 |
12628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12629 *${as_nl}ac_space=\ *)
12630 # `set' does not quote correctly, so add quotes: double-quote
12631 # substitution turns \\\\ into \\, and sed turns \\ into \.
12632 sed -n \
12633 "s/'/'\\\\''/g;
12634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12635 ;; #(
12636 *)
12637 # `set' quotes correctly as required by POSIX, so do not add quotes.
12638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12639 ;;
12640 esac |
12641 sort
12642) |
12643 sed '
12644 /^ac_cv_env_/b end
12645 t clear
12646 :clear
12647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12648 t end
12649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12650 :end' >>confcache
12651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12652 if test -w "$cache_file"; then
22e05272 12653 if test "x$cache_file" != "x/dev/null"; then
d7f09764
DN
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12655$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
12656 if test ! -f "$cache_file" || test -h "$cache_file"; then
12657 cat confcache >"$cache_file"
12658 else
12659 case $cache_file in #(
12660 */* | ?:*)
12661 mv -f confcache "$cache_file"$$ &&
12662 mv -f "$cache_file"$$ "$cache_file" ;; #(
12663 *)
12664 mv -f confcache "$cache_file" ;;
12665 esac
12666 fi
12667 fi
d7f09764
DN
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12670$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12671 fi
12672fi
12673rm -f confcache
12674
12675test "x$prefix" = xNONE && prefix=$ac_default_prefix
12676# Let make expand exec_prefix.
12677test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12678
48215350 12679DEFS=-DHAVE_CONFIG_H
d7f09764
DN
12680
12681ac_libobjs=
12682ac_ltlibobjs=
22e05272 12683U=
d7f09764
DN
12684for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12685 # 1. Remove the extension, and $U if already installed.
12686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12689 # will be set to the directory where LIBOBJS objects are built.
12690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12692done
12693LIBOBJS=$ac_libobjs
12694
12695LTLIBOBJS=$ac_ltlibobjs
12696
12697
22e05272
JM
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12699$as_echo_n "checking that generated files are newer than configure... " >&6; }
12700 if test -n "$am_sleep_pid"; then
12701 # Hide warnings about reused PIDs.
12702 wait $am_sleep_pid 2>/dev/null
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12705$as_echo "done" >&6; }
d7f09764
DN
12706 if test -n "$EXEEXT"; then
12707 am__EXEEXT_TRUE=
12708 am__EXEEXT_FALSE='#'
12709else
12710 am__EXEEXT_TRUE='#'
12711 am__EXEEXT_FALSE=
12712fi
12713
03428d41 12714if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 12715 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
03428d41
RG
12716Usually this means the macro was only invoked conditionally." "$LINENO" 5
12717fi
d7f09764 12718if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 12719 as_fn_error $? "conditional \"AMDEP\" was never defined.
d7f09764
DN
12720Usually this means the macro was only invoked conditionally." "$LINENO" 5
12721fi
12722if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12723 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
d7f09764
DN
12724Usually this means the macro was only invoked conditionally." "$LINENO" 5
12725fi
dcbc9df9 12726if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12727 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
dcbc9df9
UB
12728Usually this means the macro was only invoked conditionally." "$LINENO" 5
12729fi
6ee58926
JJ
12730if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12731 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12732Usually this means the macro was only invoked conditionally." "$LINENO" 5
12733fi
12734if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12735 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12736Usually this means the macro was only invoked conditionally." "$LINENO" 5
12737fi
12738if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12739 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12740Usually this means the macro was only invoked conditionally." "$LINENO" 5
12741fi
d7f09764 12742
22e05272 12743: "${CONFIG_STATUS=./config.status}"
d7f09764
DN
12744ac_write_fail=0
12745ac_clean_files_save=$ac_clean_files
12746ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12748$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12749as_write_fail=0
12750cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12751#! $SHELL
12752# Generated by $as_me.
12753# Run this file to recreate the current configuration.
12754# Compiler output produced by configure, useful for debugging
12755# configure, is in config.log if it exists.
12756
12757debug=false
12758ac_cs_recheck=false
12759ac_cs_silent=false
12760
12761SHELL=\${CONFIG_SHELL-$SHELL}
12762export SHELL
12763_ASEOF
12764cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12765## -------------------- ##
12766## M4sh Initialization. ##
12767## -------------------- ##
12768
12769# Be more Bourne compatible
12770DUALCASE=1; export DUALCASE # for MKS sh
12771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12772 emulate sh
12773 NULLCMD=:
12774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12775 # is contrary to our usage. Disable this feature.
12776 alias -g '${1+"$@"}'='"$@"'
12777 setopt NO_GLOB_SUBST
12778else
12779 case `(set -o) 2>/dev/null` in #(
12780 *posix*) :
12781 set -o posix ;; #(
12782 *) :
12783 ;;
12784esac
12785fi
12786
12787
12788as_nl='
12789'
12790export as_nl
12791# Printing a long string crashes Solaris 7 /usr/bin/printf.
12792as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12793as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12795# Prefer a ksh shell builtin over an external printf program on Solaris,
12796# but without wasting forks for bash or zsh.
12797if test -z "$BASH_VERSION$ZSH_VERSION" \
12798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12799 as_echo='print -r --'
12800 as_echo_n='print -rn --'
12801elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12802 as_echo='printf %s\n'
12803 as_echo_n='printf %s'
12804else
12805 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12806 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12807 as_echo_n='/usr/ucb/echo -n'
12808 else
12809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12810 as_echo_n_body='eval
12811 arg=$1;
12812 case $arg in #(
12813 *"$as_nl"*)
12814 expr "X$arg" : "X\\(.*\\)$as_nl";
12815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12816 esac;
12817 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12818 '
12819 export as_echo_n_body
12820 as_echo_n='sh -c $as_echo_n_body as_echo'
12821 fi
12822 export as_echo_body
12823 as_echo='sh -c $as_echo_body as_echo'
12824fi
12825
12826# The user is always right.
12827if test "${PATH_SEPARATOR+set}" != set; then
12828 PATH_SEPARATOR=:
12829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12830 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12831 PATH_SEPARATOR=';'
12832 }
12833fi
12834
12835
12836# IFS
12837# We need space, tab and new line, in precisely that order. Quoting is
12838# there to prevent editors from complaining about space-tab.
12839# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12840# splitting by setting IFS to empty value.)
12841IFS=" "" $as_nl"
12842
12843# Find who we are. Look in the path if we contain no directory separator.
22e05272 12844as_myself=
d7f09764
DN
12845case $0 in #((
12846 *[\\/]* ) as_myself=$0 ;;
12847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
12852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12853 done
12854IFS=$as_save_IFS
12855
12856 ;;
12857esac
12858# We did not find ourselves, most probably we were run as `sh COMMAND'
12859# in which case we are not to be found in the path.
12860if test "x$as_myself" = x; then
12861 as_myself=$0
12862fi
12863if test ! -f "$as_myself"; then
12864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12865 exit 1
12866fi
12867
12868# Unset variables that we do not need and which cause bugs (e.g. in
12869# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12870# suppresses any "Segmentation fault" message there. '((' could
12871# trigger a bug in pdksh 5.2.14.
12872for as_var in BASH_ENV ENV MAIL MAILPATH
12873do eval test x\${$as_var+set} = xset \
12874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12875done
12876PS1='$ '
12877PS2='> '
12878PS4='+ '
12879
12880# NLS nuisances.
12881LC_ALL=C
12882export LC_ALL
12883LANGUAGE=C
12884export LANGUAGE
12885
12886# CDPATH.
12887(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12888
12889
22e05272
JM
12890# as_fn_error STATUS ERROR [LINENO LOG_FD]
12891# ----------------------------------------
d7f09764
DN
12892# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12893# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 12894# script with STATUS, using 1 if that was 0.
d7f09764
DN
12895as_fn_error ()
12896{
22e05272
JM
12897 as_status=$1; test $as_status -eq 0 && as_status=1
12898 if test "$4"; then
12899 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d7f09764 12901 fi
22e05272 12902 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
12903 as_fn_exit $as_status
12904} # as_fn_error
12905
12906
12907# as_fn_set_status STATUS
12908# -----------------------
12909# Set $? to STATUS, without forking.
12910as_fn_set_status ()
12911{
12912 return $1
12913} # as_fn_set_status
12914
12915# as_fn_exit STATUS
12916# -----------------
12917# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12918as_fn_exit ()
12919{
12920 set +e
12921 as_fn_set_status $1
12922 exit $1
12923} # as_fn_exit
12924
12925# as_fn_unset VAR
12926# ---------------
12927# Portably unset VAR.
12928as_fn_unset ()
12929{
12930 { eval $1=; unset $1;}
12931}
12932as_unset=as_fn_unset
12933# as_fn_append VAR VALUE
12934# ----------------------
12935# Append the text in VALUE to the end of the definition contained in VAR. Take
12936# advantage of any shell optimizations that allow amortized linear growth over
12937# repeated appends, instead of the typical quadratic growth present in naive
12938# implementations.
12939if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12940 eval 'as_fn_append ()
12941 {
12942 eval $1+=\$2
12943 }'
12944else
12945 as_fn_append ()
12946 {
12947 eval $1=\$$1\$2
12948 }
12949fi # as_fn_append
12950
12951# as_fn_arith ARG...
12952# ------------------
12953# Perform arithmetic evaluation on the ARGs, and store the result in the
12954# global $as_val. Take advantage of shells that can avoid forks. The arguments
12955# must be portable across $(()) and expr.
12956if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12957 eval 'as_fn_arith ()
12958 {
12959 as_val=$(( $* ))
12960 }'
12961else
12962 as_fn_arith ()
12963 {
12964 as_val=`expr "$@" || test $? -eq 1`
12965 }
12966fi # as_fn_arith
12967
12968
12969if expr a : '\(a\)' >/dev/null 2>&1 &&
12970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12971 as_expr=expr
12972else
12973 as_expr=false
12974fi
12975
12976if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12977 as_basename=basename
12978else
12979 as_basename=false
12980fi
12981
12982if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12983 as_dirname=dirname
12984else
12985 as_dirname=false
12986fi
12987
12988as_me=`$as_basename -- "$0" ||
12989$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12990 X"$0" : 'X\(//\)$' \| \
12991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12992$as_echo X/"$0" |
12993 sed '/^.*\/\([^/][^/]*\)\/*$/{
12994 s//\1/
12995 q
12996 }
12997 /^X\/\(\/\/\)$/{
12998 s//\1/
12999 q
13000 }
13001 /^X\/\(\/\).*/{
13002 s//\1/
13003 q
13004 }
13005 s/.*/./; q'`
13006
13007# Avoid depending upon Character Ranges.
13008as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13009as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13010as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13011as_cr_digits='0123456789'
13012as_cr_alnum=$as_cr_Letters$as_cr_digits
13013
13014ECHO_C= ECHO_N= ECHO_T=
13015case `echo -n x` in #(((((
13016-n*)
13017 case `echo 'xy\c'` in
13018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13019 xy) ECHO_C='\c';;
13020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13021 ECHO_T=' ';;
13022 esac;;
13023*)
13024 ECHO_N='-n';;
13025esac
13026
13027rm -f conf$$ conf$$.exe conf$$.file
13028if test -d conf$$.dir; then
13029 rm -f conf$$.dir/conf$$.file
13030else
13031 rm -f conf$$.dir
13032 mkdir conf$$.dir 2>/dev/null
13033fi
13034if (echo >conf$$.file) 2>/dev/null; then
13035 if ln -s conf$$.file conf$$ 2>/dev/null; then
13036 as_ln_s='ln -s'
13037 # ... but there are two gotchas:
13038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 13040 # In both cases, we have to default to `cp -pR'.
d7f09764 13041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 13042 as_ln_s='cp -pR'
d7f09764
DN
13043 elif ln conf$$.file conf$$ 2>/dev/null; then
13044 as_ln_s=ln
13045 else
22e05272 13046 as_ln_s='cp -pR'
d7f09764
DN
13047 fi
13048else
22e05272 13049 as_ln_s='cp -pR'
d7f09764
DN
13050fi
13051rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13052rmdir conf$$.dir 2>/dev/null
13053
13054
13055# as_fn_mkdir_p
13056# -------------
13057# Create "$as_dir" as a directory, including parents if necessary.
13058as_fn_mkdir_p ()
13059{
13060
13061 case $as_dir in #(
13062 -*) as_dir=./$as_dir;;
13063 esac
13064 test -d "$as_dir" || eval $as_mkdir_p || {
13065 as_dirs=
13066 while :; do
13067 case $as_dir in #(
13068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13069 *) as_qdir=$as_dir;;
13070 esac
13071 as_dirs="'$as_qdir' $as_dirs"
13072 as_dir=`$as_dirname -- "$as_dir" ||
13073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13074 X"$as_dir" : 'X\(//\)[^/]' \| \
13075 X"$as_dir" : 'X\(//\)$' \| \
13076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13077$as_echo X"$as_dir" |
13078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13079 s//\1/
13080 q
13081 }
13082 /^X\(\/\/\)[^/].*/{
13083 s//\1/
13084 q
13085 }
13086 /^X\(\/\/\)$/{
13087 s//\1/
13088 q
13089 }
13090 /^X\(\/\).*/{
13091 s//\1/
13092 q
13093 }
13094 s/.*/./; q'`
13095 test -d "$as_dir" && break
13096 done
13097 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 13098 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d7f09764
DN
13099
13100
13101} # as_fn_mkdir_p
13102if mkdir -p . 2>/dev/null; then
13103 as_mkdir_p='mkdir -p "$as_dir"'
13104else
13105 test -d ./-p && rmdir ./-p
13106 as_mkdir_p=false
13107fi
13108
22e05272
JM
13109
13110# as_fn_executable_p FILE
13111# -----------------------
13112# Test if FILE is an executable regular file.
13113as_fn_executable_p ()
13114{
13115 test -f "$1" && test -x "$1"
13116} # as_fn_executable_p
13117as_test_x='test -x'
13118as_executable_p=as_fn_executable_p
d7f09764
DN
13119
13120# Sed expression to map a string onto a valid CPP name.
13121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13122
13123# Sed expression to map a string onto a valid variable name.
13124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13125
13126
13127exec 6>&1
13128## ----------------------------------- ##
13129## Main body of $CONFIG_STATUS script. ##
13130## ----------------------------------- ##
13131_ASEOF
13132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13133
13134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13135# Save the log message, to keep $0 and so on meaningful, and to
13136# report actual input values of CONFIG_FILES etc. instead of their
13137# values after options handling.
13138ac_log="
13139This file was extended by LTO plugin for ld $as_me 0.1, which was
22e05272 13140generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
13141
13142 CONFIG_FILES = $CONFIG_FILES
13143 CONFIG_HEADERS = $CONFIG_HEADERS
13144 CONFIG_LINKS = $CONFIG_LINKS
13145 CONFIG_COMMANDS = $CONFIG_COMMANDS
13146 $ $0 $@
13147
13148on `(hostname || uname -n) 2>/dev/null | sed 1q`
13149"
13150
13151_ACEOF
13152
13153case $ac_config_files in *"
13154"*) set x $ac_config_files; shift; ac_config_files=$*;;
13155esac
13156
48215350
DK
13157case $ac_config_headers in *"
13158"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13159esac
d7f09764
DN
13160
13161
13162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163# Files that config.status was made for.
13164config_files="$ac_config_files"
48215350 13165config_headers="$ac_config_headers"
d7f09764
DN
13166config_commands="$ac_config_commands"
13167
13168_ACEOF
13169
13170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13171ac_cs_usage="\
13172\`$as_me' instantiates files and other configuration actions
13173from templates according to the current configuration. Unless the files
13174and actions are specified as TAGs, all are instantiated by default.
13175
13176Usage: $0 [OPTION]... [TAG]...
13177
13178 -h, --help print this help, then exit
13179 -V, --version print version number and configuration settings, then exit
22e05272 13180 --config print configuration, then exit
d7f09764
DN
13181 -q, --quiet, --silent
13182 do not print progress messages
13183 -d, --debug don't remove temporary files
13184 --recheck update $as_me by reconfiguring in the same conditions
13185 --file=FILE[:TEMPLATE]
13186 instantiate the configuration file FILE
48215350
DK
13187 --header=FILE[:TEMPLATE]
13188 instantiate the configuration header FILE
d7f09764
DN
13189
13190Configuration files:
13191$config_files
13192
48215350
DK
13193Configuration headers:
13194$config_headers
13195
d7f09764
DN
13196Configuration commands:
13197$config_commands
13198
13199Report bugs to the package provider."
13200
13201_ACEOF
13202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13203ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
d7f09764
DN
13204ac_cs_version="\\
13205LTO plugin for ld config.status 0.1
22e05272
JM
13206configured by $0, generated by GNU Autoconf 2.69,
13207 with options \\"\$ac_cs_config\\"
d7f09764 13208
22e05272 13209Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
13210This config.status script is free software; the Free Software Foundation
13211gives unlimited permission to copy, distribute and modify it."
13212
13213ac_pwd='$ac_pwd'
13214srcdir='$srcdir'
13215INSTALL='$INSTALL'
13216MKDIR_P='$MKDIR_P'
13217AWK='$AWK'
13218test -n "\$AWK" || AWK=awk
13219_ACEOF
13220
13221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13222# The default lists apply if the user does not specify any file.
13223ac_need_defaults=:
13224while test $# != 0
13225do
13226 case $1 in
22e05272 13227 --*=?*)
d7f09764
DN
13228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13229 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13230 ac_shift=:
13231 ;;
22e05272
JM
13232 --*=)
13233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13234 ac_optarg=
13235 ac_shift=:
13236 ;;
d7f09764
DN
13237 *)
13238 ac_option=$1
13239 ac_optarg=$2
13240 ac_shift=shift
13241 ;;
13242 esac
13243
13244 case $ac_option in
13245 # Handling of the options.
13246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13247 ac_cs_recheck=: ;;
13248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13249 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
13250 --config | --confi | --conf | --con | --co | --c )
13251 $as_echo "$ac_cs_config"; exit ;;
d7f09764
DN
13252 --debug | --debu | --deb | --de | --d | -d )
13253 debug=: ;;
13254 --file | --fil | --fi | --f )
13255 $ac_shift
13256 case $ac_optarg in
13257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 13258 '') as_fn_error $? "missing file argument" ;;
d7f09764
DN
13259 esac
13260 as_fn_append CONFIG_FILES " '$ac_optarg'"
13261 ac_need_defaults=false;;
48215350
DK
13262 --header | --heade | --head | --hea )
13263 $ac_shift
13264 case $ac_optarg in
13265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13266 esac
13267 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13268 ac_need_defaults=false;;
13269 --he | --h)
13270 # Conflict between --help and --header
22e05272 13271 as_fn_error $? "ambiguous option: \`$1'
48215350
DK
13272Try \`$0 --help' for more information.";;
13273 --help | --hel | -h )
d7f09764
DN
13274 $as_echo "$ac_cs_usage"; exit ;;
13275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13277 ac_cs_silent=: ;;
13278
13279 # This is an error.
22e05272 13280 -*) as_fn_error $? "unrecognized option: \`$1'
d7f09764
DN
13281Try \`$0 --help' for more information." ;;
13282
13283 *) as_fn_append ac_config_targets " $1"
13284 ac_need_defaults=false ;;
13285
13286 esac
13287 shift
13288done
13289
13290ac_configure_extra_args=
13291
13292if $ac_cs_silent; then
13293 exec 6>/dev/null
13294 ac_configure_extra_args="$ac_configure_extra_args --silent"
13295fi
13296
13297_ACEOF
13298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13299if \$ac_cs_recheck; then
22e05272 13300 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d7f09764
DN
13301 shift
13302 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13303 CONFIG_SHELL='$SHELL'
13304 export CONFIG_SHELL
13305 exec "\$@"
13306fi
13307
13308_ACEOF
13309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13310exec 5>>config.log
13311{
13312 echo
13313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13314## Running $as_me. ##
13315_ASBOX
13316 $as_echo "$ac_log"
13317} >&5
13318
13319_ACEOF
13320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321#
13322# INIT-COMMANDS
13323#
13324AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13325
13326
13327# The HP-UX ksh and POSIX shell print the target directory to stdout
13328# if CDPATH is set.
13329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13330
13331sed_quote_subst='$sed_quote_subst'
13332double_quote_subst='$double_quote_subst'
13333delay_variable_subst='$delay_variable_subst'
52327858
L
13334macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13335macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13336enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13337enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13338pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13339enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13340SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13341ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13342host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13343host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13344host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13345build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13346build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13347build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13348SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13349Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13350GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13351EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13352FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13353LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13354NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13355LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13356max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13357ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13358exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13359lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13360lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13361lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13362reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13363reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13364OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13365deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13366file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13367AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13368AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13369STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13370RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13371old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13372old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13373old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13374lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13375CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13376CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13377compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13378GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13379lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13380lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13381lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13382lt_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"`'
13383objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13384MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13385lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13386lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13387lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13388lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13389lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13390need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13391DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13392NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13393LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13394OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13395OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13396libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13397shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13398extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13399archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13400enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13401export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13402whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13403compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13404old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13405old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13406archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13407archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13408module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13409module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13410with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13411allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13412no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13413hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13414hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13415hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13416hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13417hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13418hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13419hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13420hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13421inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13422link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13423fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13424always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13425export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13426exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13427include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13428prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13429file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13430variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13431need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13432need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13433version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13434runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13435shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13436shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13437libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13438library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13439soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13440install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13441postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13442postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13443finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13444finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13445hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13446sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13447sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13448hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13449enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13450enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13451enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13452old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13453striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
13454
13455LTCC='$LTCC'
13456LTCFLAGS='$LTCFLAGS'
13457compiler='$compiler_DEFAULT'
13458
52327858
L
13459# A function that is used when there is no print builtin or printf.
13460func_fallback_echo ()
13461{
13462 eval 'cat <<_LTECHO_EOF
13463\$1
13464_LTECHO_EOF'
13465}
13466
d7f09764 13467# Quote evaled strings.
52327858
L
13468for var in SHELL \
13469ECHO \
13470SED \
d7f09764
DN
13471GREP \
13472EGREP \
13473FGREP \
13474LD \
13475NM \
13476LN_S \
13477lt_SP2NL \
13478lt_NL2SP \
13479reload_flag \
13480OBJDUMP \
13481deplibs_check_method \
13482file_magic_cmd \
13483AR \
13484AR_FLAGS \
13485STRIP \
13486RANLIB \
13487CC \
13488CFLAGS \
13489compiler \
13490lt_cv_sys_global_symbol_pipe \
13491lt_cv_sys_global_symbol_to_cdecl \
13492lt_cv_sys_global_symbol_to_c_name_address \
13493lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
13494lt_prog_compiler_no_builtin_flag \
13495lt_prog_compiler_wl \
13496lt_prog_compiler_pic \
13497lt_prog_compiler_static \
13498lt_cv_prog_compiler_c_o \
13499need_locks \
13500DSYMUTIL \
13501NMEDIT \
13502LIPO \
13503OTOOL \
13504OTOOL64 \
13505shrext_cmds \
13506export_dynamic_flag_spec \
13507whole_archive_flag_spec \
13508compiler_needs_object \
13509with_gnu_ld \
13510allow_undefined_flag \
13511no_undefined_flag \
13512hardcode_libdir_flag_spec \
13513hardcode_libdir_flag_spec_ld \
13514hardcode_libdir_separator \
13515fix_srcfile_path \
13516exclude_expsyms \
13517include_expsyms \
13518file_list_spec \
13519variables_saved_for_relink \
13520libname_spec \
13521library_names_spec \
13522soname_spec \
52327858 13523install_override_mode \
d7f09764
DN
13524finish_eval \
13525old_striplib \
13526striplib; do
52327858 13527 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13528 *[\\\\\\\`\\"\\\$]*)
52327858 13529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
13530 ;;
13531 *)
13532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13533 ;;
13534 esac
13535done
13536
13537# Double-quote double-evaled strings.
13538for var in reload_cmds \
13539old_postinstall_cmds \
13540old_postuninstall_cmds \
13541old_archive_cmds \
13542extract_expsyms_cmds \
13543old_archive_from_new_cmds \
13544old_archive_from_expsyms_cmds \
13545archive_cmds \
13546archive_expsym_cmds \
13547module_cmds \
13548module_expsym_cmds \
13549export_symbols_cmds \
13550prelink_cmds \
13551postinstall_cmds \
13552postuninstall_cmds \
13553finish_cmds \
13554sys_lib_search_path_spec \
13555sys_lib_dlsearch_path_spec; do
52327858 13556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13557 *[\\\\\\\`\\"\\\$]*)
52327858 13558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
13559 ;;
13560 *)
13561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13562 ;;
13563 esac
13564done
13565
d7f09764
DN
13566ac_aux_dir='$ac_aux_dir'
13567xsi_shell='$xsi_shell'
13568lt_shell_append='$lt_shell_append'
13569
13570# See if we are running on zsh, and set the options which allow our
13571# commands through without removal of \ escapes INIT.
13572if test -n "\${ZSH_VERSION+set}" ; then
13573 setopt NO_GLOB_SUBST
13574fi
13575
13576
13577 PACKAGE='$PACKAGE'
13578 VERSION='$VERSION'
13579 TIMESTAMP='$TIMESTAMP'
13580 RM='$RM'
13581 ofile='$ofile'
13582
13583
13584
13585
13586_ACEOF
13587
13588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589
13590# Handling of arguments.
13591for ac_config_target in $ac_config_targets
13592do
13593 case $ac_config_target in
13594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48215350 13597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
d7f09764 13598
22e05272 13599 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d7f09764
DN
13600 esac
13601done
13602
13603
13604# If the user did not use the arguments to specify the items to instantiate,
13605# then the envvar interface is used. Set only those that are not.
13606# We use the long form for the default assignment because of an extremely
13607# bizarre bug on SunOS 4.1.3.
13608if $ac_need_defaults; then
13609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48215350 13610 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
d7f09764
DN
13611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13612fi
13613
13614# Have a temporary directory for convenience. Make it in the build tree
13615# simply because there is no reason against having it here, and in addition,
13616# creating and moving files from /tmp can sometimes cause problems.
13617# Hook for its removal unless debugging.
13618# Note that there is a small window in which the directory will not be cleaned:
13619# after its creation but before its name has been assigned to `$tmp'.
13620$debug ||
13621{
22e05272 13622 tmp= ac_tmp=
d7f09764 13623 trap 'exit_status=$?
22e05272
JM
13624 : "${ac_tmp:=$tmp}"
13625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
d7f09764
DN
13626' 0
13627 trap 'as_fn_exit 1' 1 2 13 15
13628}
13629# Create a (secure) tmp directory for tmp files.
13630
13631{
13632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 13633 test -d "$tmp"
d7f09764
DN
13634} ||
13635{
13636 tmp=./conf$$-$RANDOM
13637 (umask 077 && mkdir "$tmp")
22e05272
JM
13638} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13639ac_tmp=$tmp
d7f09764
DN
13640
13641# Set up the scripts for CONFIG_FILES section.
13642# No need to generate them if there are no CONFIG_FILES.
13643# This happens for instance with `./config.status config.h'.
13644if test -n "$CONFIG_FILES"; then
13645
13646
13647ac_cr=`echo X | tr X '\015'`
13648# On cygwin, bash can eat \r inside `` if the user requested igncr.
13649# But we know of no other shell where ac_cr would be empty at this
13650# point, so we can use a bashism as a fallback.
13651if test "x$ac_cr" = x; then
13652 eval ac_cr=\$\'\\r\'
13653fi
13654ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13655if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 13656 ac_cs_awk_cr='\\r'
d7f09764
DN
13657else
13658 ac_cs_awk_cr=$ac_cr
13659fi
13660
22e05272 13661echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d7f09764
DN
13662_ACEOF
13663
13664
13665{
13666 echo "cat >conf$$subs.awk <<_ACEOF" &&
13667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13668 echo "_ACEOF"
13669} >conf$$subs.sh ||
22e05272
JM
13670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13671ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
d7f09764
DN
13672ac_delim='%!_!# '
13673for ac_last_try in false false false false false :; do
13674 . ./conf$$subs.sh ||
22e05272 13675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13676
13677 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13678 if test $ac_delim_n = $ac_delim_num; then
13679 break
13680 elif $ac_last_try; then
22e05272 13681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13682 else
13683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13684 fi
13685done
13686rm -f conf$$subs.sh
13687
13688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13689cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
d7f09764
DN
13690_ACEOF
13691sed -n '
13692h
13693s/^/S["/; s/!.*/"]=/
13694p
13695g
13696s/^[^!]*!//
13697:repl
13698t repl
13699s/'"$ac_delim"'$//
13700t delim
13701:nl
13702h
22e05272 13703s/\(.\{148\}\)..*/\1/
d7f09764
DN
13704t more1
13705s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13706p
13707n
13708b repl
13709:more1
13710s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13711p
13712g
13713s/.\{148\}//
13714t nl
13715:delim
13716h
22e05272 13717s/\(.\{148\}\)..*/\1/
d7f09764
DN
13718t more2
13719s/["\\]/\\&/g; s/^/"/; s/$/"/
13720p
13721b
13722:more2
13723s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13724p
13725g
13726s/.\{148\}//
13727t delim
13728' <conf$$subs.awk | sed '
13729/^[^""]/{
13730 N
13731 s/\n//
13732}
13733' >>$CONFIG_STATUS || ac_write_fail=1
13734rm -f conf$$subs.awk
13735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736_ACAWK
22e05272 13737cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
d7f09764
DN
13738 for (key in S) S_is_set[key] = 1
13739 FS = "\a"
13740
13741}
13742{
13743 line = $ 0
13744 nfields = split(line, field, "@")
13745 substed = 0
13746 len = length(field[1])
13747 for (i = 2; i < nfields; i++) {
13748 key = field[i]
13749 keylen = length(key)
13750 if (S_is_set[key]) {
13751 value = S[key]
13752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13753 len += length(value) + length(field[++i])
13754 substed = 1
13755 } else
13756 len += 1 + keylen
13757 }
13758
13759 print line
13760}
13761
13762_ACAWK
13763_ACEOF
13764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13766 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13767else
13768 cat
22e05272
JM
13769fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13770 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d7f09764
DN
13771_ACEOF
13772
22e05272
JM
13773# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13774# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
d7f09764
DN
13775# trailing colons and then remove the whole line if VPATH becomes empty
13776# (actually we leave an empty line to preserve line numbers).
13777if test "x$srcdir" = x.; then
22e05272
JM
13778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13779h
13780s///
13781s/^/:/
13782s/[ ]*$/:/
13783s/:\$(srcdir):/:/g
13784s/:\${srcdir}:/:/g
13785s/:@srcdir@:/:/g
13786s/^:*//
d7f09764 13787s/:*$//
22e05272
JM
13788x
13789s/\(=[ ]*\).*/\1/
13790G
13791s/\n//
d7f09764
DN
13792s/^[^=]*=[ ]*$//
13793}'
13794fi
13795
13796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13797fi # test -n "$CONFIG_FILES"
13798
48215350
DK
13799# Set up the scripts for CONFIG_HEADERS section.
13800# No need to generate them if there are no CONFIG_HEADERS.
13801# This happens for instance with `./config.status Makefile'.
13802if test -n "$CONFIG_HEADERS"; then
22e05272 13803cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48215350
DK
13804BEGIN {
13805_ACEOF
13806
13807# Transform confdefs.h into an awk script `defines.awk', embedded as
13808# here-document in config.status, that substitutes the proper values into
13809# config.h.in to produce config.h.
d7f09764 13810
48215350
DK
13811# Create a delimiter string that does not exist in confdefs.h, to ease
13812# handling of long lines.
13813ac_delim='%!_!# '
13814for ac_last_try in false false :; do
22e05272
JM
13815 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13816 if test -z "$ac_tt"; then
48215350
DK
13817 break
13818 elif $ac_last_try; then
22e05272 13819 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48215350
DK
13820 else
13821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13822 fi
13823done
13824
13825# For the awk script, D is an array of macro values keyed by name,
13826# likewise P contains macro parameters if any. Preserve backslash
13827# newline sequences.
13828
13829ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13830sed -n '
13831s/.\{148\}/&'"$ac_delim"'/g
13832t rset
13833:rset
13834s/^[ ]*#[ ]*define[ ][ ]*/ /
13835t def
13836d
13837:def
13838s/\\$//
13839t bsnl
13840s/["\\]/\\&/g
13841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13842D["\1"]=" \3"/p
13843s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13844d
13845:bsnl
13846s/["\\]/\\&/g
13847s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13848D["\1"]=" \3\\\\\\n"\\/p
13849t cont
13850s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13851t cont
13852d
13853:cont
13854n
13855s/.\{148\}/&'"$ac_delim"'/g
13856t clear
13857:clear
13858s/\\$//
13859t bsnlc
13860s/["\\]/\\&/g; s/^/"/; s/$/"/p
13861d
13862:bsnlc
13863s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13864b cont
13865' <confdefs.h | sed '
13866s/'"$ac_delim"'/"\\\
13867"/g' >>$CONFIG_STATUS || ac_write_fail=1
13868
13869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870 for (key in D) D_is_set[key] = 1
13871 FS = "\a"
13872}
13873/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13874 line = \$ 0
13875 split(line, arg, " ")
13876 if (arg[1] == "#") {
13877 defundef = arg[2]
13878 mac1 = arg[3]
13879 } else {
13880 defundef = substr(arg[1], 2)
13881 mac1 = arg[2]
13882 }
13883 split(mac1, mac2, "(") #)
13884 macro = mac2[1]
13885 prefix = substr(line, 1, index(line, defundef) - 1)
13886 if (D_is_set[macro]) {
13887 # Preserve the white space surrounding the "#".
13888 print prefix "define", macro P[macro] D[macro]
13889 next
13890 } else {
13891 # Replace #undef with comments. This is necessary, for example,
13892 # in the case of _POSIX_SOURCE, which is predefined and required
13893 # on some systems where configure will not decide to define it.
13894 if (defundef == "undef") {
13895 print "/*", prefix defundef, macro, "*/"
13896 next
13897 }
13898 }
13899}
13900{ print }
13901_ACAWK
13902_ACEOF
13903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 13904 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48215350
DK
13905fi # test -n "$CONFIG_HEADERS"
13906
13907
13908eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
d7f09764
DN
13909shift
13910for ac_tag
13911do
13912 case $ac_tag in
13913 :[FHLC]) ac_mode=$ac_tag; continue;;
13914 esac
13915 case $ac_mode$ac_tag in
13916 :[FHL]*:*);;
22e05272 13917 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
d7f09764
DN
13918 :[FH]-) ac_tag=-:-;;
13919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13920 esac
13921 ac_save_IFS=$IFS
13922 IFS=:
13923 set x $ac_tag
13924 IFS=$ac_save_IFS
13925 shift
13926 ac_file=$1
13927 shift
13928
13929 case $ac_mode in
13930 :L) ac_source=$1;;
13931 :[FH])
13932 ac_file_inputs=
13933 for ac_f
13934 do
13935 case $ac_f in
22e05272 13936 -) ac_f="$ac_tmp/stdin";;
d7f09764
DN
13937 *) # Look for the file first in the build tree, then in the source tree
13938 # (if the path is not absolute). The absolute path cannot be DOS-style,
13939 # because $ac_f cannot contain `:'.
13940 test -f "$ac_f" ||
13941 case $ac_f in
13942 [\\/$]*) false;;
13943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13944 esac ||
22e05272 13945 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
d7f09764
DN
13946 esac
13947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13948 as_fn_append ac_file_inputs " '$ac_f'"
13949 done
13950
13951 # Let's still pretend it is `configure' which instantiates (i.e., don't
13952 # use $as_me), people would be surprised to read:
13953 # /* config.h. Generated by config.status. */
13954 configure_input='Generated from '`
13955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13956 `' by configure.'
13957 if test x"$ac_file" != x-; then
13958 configure_input="$ac_file. $configure_input"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13960$as_echo "$as_me: creating $ac_file" >&6;}
13961 fi
13962 # Neutralize special characters interpreted by sed in replacement strings.
13963 case $configure_input in #(
13964 *\&* | *\|* | *\\* )
13965 ac_sed_conf_input=`$as_echo "$configure_input" |
13966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13967 *) ac_sed_conf_input=$configure_input;;
13968 esac
13969
13970 case $ac_tag in
22e05272
JM
13971 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
d7f09764
DN
13973 esac
13974 ;;
13975 esac
13976
13977 ac_dir=`$as_dirname -- "$ac_file" ||
13978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13979 X"$ac_file" : 'X\(//\)[^/]' \| \
13980 X"$ac_file" : 'X\(//\)$' \| \
13981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13982$as_echo X"$ac_file" |
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13984 s//\1/
13985 q
13986 }
13987 /^X\(\/\/\)[^/].*/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\/\)$/{
13992 s//\1/
13993 q
13994 }
13995 /^X\(\/\).*/{
13996 s//\1/
13997 q
13998 }
13999 s/.*/./; q'`
14000 as_dir="$ac_dir"; as_fn_mkdir_p
14001 ac_builddir=.
14002
14003case "$ac_dir" in
14004.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14005*)
14006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14007 # A ".." for each directory in $ac_dir_suffix.
14008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14009 case $ac_top_builddir_sub in
14010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14012 esac ;;
14013esac
14014ac_abs_top_builddir=$ac_pwd
14015ac_abs_builddir=$ac_pwd$ac_dir_suffix
14016# for backward compatibility:
14017ac_top_builddir=$ac_top_build_prefix
14018
14019case $srcdir in
14020 .) # We are building in place.
14021 ac_srcdir=.
14022 ac_top_srcdir=$ac_top_builddir_sub
14023 ac_abs_top_srcdir=$ac_pwd ;;
14024 [\\/]* | ?:[\\/]* ) # Absolute name.
14025 ac_srcdir=$srcdir$ac_dir_suffix;
14026 ac_top_srcdir=$srcdir
14027 ac_abs_top_srcdir=$srcdir ;;
14028 *) # Relative name.
14029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14030 ac_top_srcdir=$ac_top_build_prefix$srcdir
14031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14032esac
14033ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14034
14035
14036 case $ac_mode in
14037 :F)
14038 #
14039 # CONFIG_FILE
14040 #
14041
14042 case $INSTALL in
14043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14045 esac
14046 ac_MKDIR_P=$MKDIR_P
14047 case $MKDIR_P in
14048 [\\/$]* | ?:[\\/]* ) ;;
14049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14050 esac
14051_ACEOF
14052
14053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054# If the template does not know about datarootdir, expand it.
14055# FIXME: This hack should be removed a few years after 2.60.
14056ac_datarootdir_hack=; ac_datarootdir_seen=
14057ac_sed_dataroot='
14058/datarootdir/ {
14059 p
14060 q
14061}
14062/@datadir@/p
14063/@docdir@/p
14064/@infodir@/p
14065/@localedir@/p
14066/@mandir@/p'
14067case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14068*datarootdir*) ac_datarootdir_seen=yes;;
14069*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14071$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14072_ACEOF
14073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14074 ac_datarootdir_hack='
14075 s&@datadir@&$datadir&g
14076 s&@docdir@&$docdir&g
14077 s&@infodir@&$infodir&g
14078 s&@localedir@&$localedir&g
14079 s&@mandir@&$mandir&g
14080 s&\\\${datarootdir}&$datarootdir&g' ;;
14081esac
14082_ACEOF
14083
14084# Neutralize VPATH when `$srcdir' = `.'.
14085# Shell code in configure.ac might set extrasub.
14086# FIXME: do we really want to maintain this feature?
14087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088ac_sed_extra="$ac_vpsub
14089$extrasub
14090_ACEOF
14091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092:t
14093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14094s|@configure_input@|$ac_sed_conf_input|;t t
14095s&@top_builddir@&$ac_top_builddir_sub&;t t
14096s&@top_build_prefix@&$ac_top_build_prefix&;t t
14097s&@srcdir@&$ac_srcdir&;t t
14098s&@abs_srcdir@&$ac_abs_srcdir&;t t
14099s&@top_srcdir@&$ac_top_srcdir&;t t
14100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14101s&@builddir@&$ac_builddir&;t t
14102s&@abs_builddir@&$ac_abs_builddir&;t t
14103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14104s&@INSTALL@&$ac_INSTALL&;t t
14105s&@MKDIR_P@&$ac_MKDIR_P&;t t
14106$ac_datarootdir_hack
14107"
22e05272
JM
14108eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14109 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764
DN
14110
14111test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
14112 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14114 "$ac_tmp/out"`; test -z "$ac_out"; } &&
d7f09764 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14116which seems to be undefined. Please make sure it is defined" >&5
d7f09764 14117$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14118which seems to be undefined. Please make sure it is defined" >&2;}
d7f09764 14119
22e05272 14120 rm -f "$ac_tmp/stdin"
d7f09764 14121 case $ac_file in
22e05272
JM
14122 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14123 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
d7f09764 14124 esac \
22e05272 14125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764 14126 ;;
48215350
DK
14127 :H)
14128 #
14129 # CONFIG_HEADER
14130 #
14131 if test x"$ac_file" != x-; then
14132 {
14133 $as_echo "/* $configure_input */" \
22e05272
JM
14134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14135 } >"$ac_tmp/config.h" \
14136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14137 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48215350
DK
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14139$as_echo "$as_me: $ac_file is unchanged" >&6;}
14140 else
14141 rm -f "$ac_file"
22e05272
JM
14142 mv "$ac_tmp/config.h" "$ac_file" \
14143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48215350
DK
14144 fi
14145 else
14146 $as_echo "/* $configure_input */" \
22e05272
JM
14147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14148 || as_fn_error $? "could not create -" "$LINENO" 5
48215350
DK
14149 fi
14150# Compute "$ac_file"'s index in $config_headers.
14151_am_arg="$ac_file"
14152_am_stamp_count=1
14153for _am_header in $config_headers :; do
14154 case $_am_header in
14155 $_am_arg | $_am_arg:* )
14156 break ;;
14157 * )
14158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14159 esac
14160done
14161echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14162$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163 X"$_am_arg" : 'X\(//\)[^/]' \| \
14164 X"$_am_arg" : 'X\(//\)$' \| \
14165 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14166$as_echo X"$_am_arg" |
14167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14168 s//\1/
14169 q
14170 }
14171 /^X\(\/\/\)[^/].*/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\/\)$/{
14176 s//\1/
14177 q
14178 }
14179 /^X\(\/\).*/{
14180 s//\1/
14181 q
14182 }
14183 s/.*/./; q'`/stamp-h$_am_stamp_count
14184 ;;
d7f09764
DN
14185
14186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14187$as_echo "$as_me: executing $ac_file commands" >&6;}
14188 ;;
14189 esac
14190
14191
14192 case $ac_file$ac_mode in
14193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 14194 # Older Autoconf quotes --file arguments for eval, but not when files
d7f09764
DN
14195 # are listed without --file. Let's play safe and only enable the eval
14196 # if we detect the quoting.
14197 case $CONFIG_FILES in
14198 *\'*) eval set x "$CONFIG_FILES" ;;
14199 *) set x $CONFIG_FILES ;;
14200 esac
14201 shift
14202 for mf
14203 do
14204 # Strip MF so we end up with the name of the file.
14205 mf=`echo "$mf" | sed -e 's/:.*$//'`
14206 # Check whether this is an Automake generated Makefile or not.
22e05272 14207 # We used to match only the files named 'Makefile.in', but
d7f09764
DN
14208 # some people rename them; so instead we look at the file content.
14209 # Grep'ing the first line is not enough: some people post-process
14210 # each Makefile.in and add a new line on top of each file to say so.
14211 # Grep'ing the whole file is not good either: AIX grep has a line
14212 # limit of 2048, but all sed's we know have understand at least 4000.
14213 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14214 dirpart=`$as_dirname -- "$mf" ||
14215$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216 X"$mf" : 'X\(//\)[^/]' \| \
14217 X"$mf" : 'X\(//\)$' \| \
14218 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14219$as_echo X"$mf" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221 s//\1/
14222 q
14223 }
14224 /^X\(\/\/\)[^/].*/{
14225 s//\1/
14226 q
14227 }
14228 /^X\(\/\/\)$/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\).*/{
14233 s//\1/
14234 q
14235 }
14236 s/.*/./; q'`
14237 else
14238 continue
14239 fi
14240 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 14241 # from the Makefile without running 'make'.
d7f09764
DN
14242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14243 test -z "$DEPDIR" && continue
14244 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 14245 test -z "$am__include" && continue
d7f09764 14246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
d7f09764
DN
14247 # Find all dependency output files, they are included files with
14248 # $(DEPDIR) in their names. We invoke sed twice because it is the
14249 # simplest approach to changing $(DEPDIR) to its actual value in the
14250 # expansion.
14251 for file in `sed -n "
14252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 14253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d7f09764
DN
14254 # Make sure the directory exists.
14255 test -f "$dirpart/$file" && continue
14256 fdir=`$as_dirname -- "$file" ||
14257$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14258 X"$file" : 'X\(//\)[^/]' \| \
14259 X"$file" : 'X\(//\)$' \| \
14260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14261$as_echo X"$file" |
14262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14263 s//\1/
14264 q
14265 }
14266 /^X\(\/\/\)[^/].*/{
14267 s//\1/
14268 q
14269 }
14270 /^X\(\/\/\)$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\).*/{
14275 s//\1/
14276 q
14277 }
14278 s/.*/./; q'`
14279 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14280 # echo "creating $dirpart/$file"
14281 echo '# dummy' > "$dirpart/$file"
14282 done
14283 done
14284}
14285 ;;
14286 "libtool":C)
14287
14288 # See if we are running on zsh, and set the options which allow our
14289 # commands through without removal of \ escapes.
14290 if test -n "${ZSH_VERSION+set}" ; then
14291 setopt NO_GLOB_SUBST
14292 fi
14293
14294 cfgfile="${ofile}T"
14295 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14296 $RM "$cfgfile"
14297
14298 cat <<_LT_EOF >> "$cfgfile"
14299#! $SHELL
14300
14301# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14302# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14303# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14304# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14305#
14306# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 14307# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
14308# Written by Gordon Matzigkeit, 1996
14309#
14310# This file is part of GNU Libtool.
14311#
14312# GNU Libtool is free software; you can redistribute it and/or
14313# modify it under the terms of the GNU General Public License as
14314# published by the Free Software Foundation; either version 2 of
14315# the License, or (at your option) any later version.
14316#
14317# As a special exception to the GNU General Public License,
14318# if you distribute this file as part of a program or library that
14319# is built using GNU Libtool, you may include this file under the
14320# same distribution terms that you use for the rest of that program.
14321#
14322# GNU Libtool is distributed in the hope that it will be useful,
14323# but WITHOUT ANY WARRANTY; without even the implied warranty of
14324# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14325# GNU General Public License for more details.
14326#
14327# You should have received a copy of the GNU General Public License
14328# along with GNU Libtool; see the file COPYING. If not, a copy
14329# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14330# obtained by writing to the Free Software Foundation, Inc.,
14331# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14332
14333
14334# The names of the tagged configurations supported by this script.
14335available_tags=""
14336
14337# ### BEGIN LIBTOOL CONFIG
14338
14339# Which release of libtool.m4 was used?
14340macro_version=$macro_version
14341macro_revision=$macro_revision
14342
14343# Whether or not to build shared libraries.
14344build_libtool_libs=$enable_shared
14345
14346# Whether or not to build static libraries.
14347build_old_libs=$enable_static
14348
14349# What type of objects to build.
14350pic_mode=$pic_mode
14351
14352# Whether or not to optimize for fast installation.
14353fast_install=$enable_fast_install
14354
52327858
L
14355# Shell to use when invoking shell scripts.
14356SHELL=$lt_SHELL
14357
14358# An echo program that protects backslashes.
14359ECHO=$lt_ECHO
14360
d7f09764
DN
14361# The host system.
14362host_alias=$host_alias
14363host=$host
14364host_os=$host_os
14365
14366# The build system.
14367build_alias=$build_alias
14368build=$build
14369build_os=$build_os
14370
14371# A sed program that does not truncate output.
14372SED=$lt_SED
14373
14374# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14375Xsed="\$SED -e 1s/^X//"
14376
14377# A grep program that handles long lines.
14378GREP=$lt_GREP
14379
14380# An ERE matcher.
14381EGREP=$lt_EGREP
14382
14383# A literal string matcher.
14384FGREP=$lt_FGREP
14385
14386# A BSD- or MS-compatible name lister.
14387NM=$lt_NM
14388
14389# Whether we need soft or hard links.
14390LN_S=$lt_LN_S
14391
14392# What is the maximum length of a command?
14393max_cmd_len=$max_cmd_len
14394
14395# Object file suffix (normally "o").
14396objext=$ac_objext
14397
14398# Executable file suffix (normally "").
14399exeext=$exeext
14400
14401# whether the shell understands "unset".
14402lt_unset=$lt_unset
14403
14404# turn spaces into newlines.
14405SP2NL=$lt_lt_SP2NL
14406
14407# turn newlines into spaces.
14408NL2SP=$lt_lt_NL2SP
14409
d7f09764
DN
14410# An object symbol dumper.
14411OBJDUMP=$lt_OBJDUMP
14412
14413# Method to check whether dependent libraries are shared objects.
14414deplibs_check_method=$lt_deplibs_check_method
14415
14416# Command to use when deplibs_check_method == "file_magic".
14417file_magic_cmd=$lt_file_magic_cmd
14418
14419# The archiver.
14420AR=$lt_AR
14421AR_FLAGS=$lt_AR_FLAGS
14422
14423# A symbol stripping program.
14424STRIP=$lt_STRIP
14425
14426# Commands used to install an old-style archive.
14427RANLIB=$lt_RANLIB
14428old_postinstall_cmds=$lt_old_postinstall_cmds
14429old_postuninstall_cmds=$lt_old_postuninstall_cmds
14430
52327858
L
14431# Whether to use a lock for old archive extraction.
14432lock_old_archive_extraction=$lock_old_archive_extraction
14433
d7f09764
DN
14434# A C compiler.
14435LTCC=$lt_CC
14436
14437# LTCC compiler flags.
14438LTCFLAGS=$lt_CFLAGS
14439
14440# Take the output of nm and produce a listing of raw symbols and C names.
14441global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14442
14443# Transform the output of nm in a proper C declaration.
14444global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14445
14446# Transform the output of nm in a C name address pair.
14447global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14448
14449# Transform the output of nm in a C name address pair when lib prefix is needed.
14450global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14451
14452# The name of the directory that contains temporary libtool files.
14453objdir=$objdir
14454
d7f09764
DN
14455# Used to examine libraries when file_magic_cmd begins with "file".
14456MAGIC_CMD=$MAGIC_CMD
14457
14458# Must we lock files when doing compilation?
14459need_locks=$lt_need_locks
14460
14461# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14462DSYMUTIL=$lt_DSYMUTIL
14463
14464# Tool to change global to local symbols on Mac OS X.
14465NMEDIT=$lt_NMEDIT
14466
14467# Tool to manipulate fat objects and archives on Mac OS X.
14468LIPO=$lt_LIPO
14469
14470# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14471OTOOL=$lt_OTOOL
14472
14473# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14474OTOOL64=$lt_OTOOL64
14475
14476# Old archive suffix (normally "a").
14477libext=$libext
14478
14479# Shared library suffix (normally ".so").
14480shrext_cmds=$lt_shrext_cmds
14481
14482# The commands to extract the exported symbol list from a shared archive.
14483extract_expsyms_cmds=$lt_extract_expsyms_cmds
14484
14485# Variables whose values should be saved in libtool wrapper scripts and
14486# restored at link time.
14487variables_saved_for_relink=$lt_variables_saved_for_relink
14488
14489# Do we need the "lib" prefix for modules?
14490need_lib_prefix=$need_lib_prefix
14491
14492# Do we need a version for libraries?
14493need_version=$need_version
14494
14495# Library versioning type.
14496version_type=$version_type
14497
14498# Shared library runtime path variable.
14499runpath_var=$runpath_var
14500
14501# Shared library path variable.
14502shlibpath_var=$shlibpath_var
14503
14504# Is shlibpath searched before the hard-coded library search path?
14505shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14506
14507# Format of library name prefix.
14508libname_spec=$lt_libname_spec
14509
14510# List of archive names. First name is the real one, the rest are links.
14511# The last name is the one that the linker finds with -lNAME
14512library_names_spec=$lt_library_names_spec
14513
14514# The coded name of the library, if different from the real name.
14515soname_spec=$lt_soname_spec
14516
52327858
L
14517# Permission mode override for installation of shared libraries.
14518install_override_mode=$lt_install_override_mode
14519
d7f09764
DN
14520# Command to use after installation of a shared archive.
14521postinstall_cmds=$lt_postinstall_cmds
14522
14523# Command to use after uninstallation of a shared archive.
14524postuninstall_cmds=$lt_postuninstall_cmds
14525
14526# Commands used to finish a libtool library installation in a directory.
14527finish_cmds=$lt_finish_cmds
14528
14529# As "finish_cmds", except a single script fragment to be evaled but
14530# not shown.
14531finish_eval=$lt_finish_eval
14532
14533# Whether we should hardcode library paths into libraries.
14534hardcode_into_libs=$hardcode_into_libs
14535
14536# Compile-time system search path for libraries.
14537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14538
14539# Run-time system search path for libraries.
14540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14541
14542# Whether dlopen is supported.
14543dlopen_support=$enable_dlopen
14544
14545# Whether dlopen of programs is supported.
14546dlopen_self=$enable_dlopen_self
14547
14548# Whether dlopen of statically linked programs is supported.
14549dlopen_self_static=$enable_dlopen_self_static
14550
14551# Commands to strip libraries.
14552old_striplib=$lt_old_striplib
14553striplib=$lt_striplib
14554
14555
14556# The linker used to build libraries.
14557LD=$lt_LD
14558
52327858
L
14559# How to create reloadable object files.
14560reload_flag=$lt_reload_flag
14561reload_cmds=$lt_reload_cmds
14562
d7f09764
DN
14563# Commands used to build an old-style archive.
14564old_archive_cmds=$lt_old_archive_cmds
14565
14566# A language specific compiler.
14567CC=$lt_compiler
14568
14569# Is the compiler the GNU compiler?
14570with_gcc=$GCC
14571
14572# Compiler flag to turn off builtin functions.
14573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14574
14575# How to pass a linker flag through the compiler.
14576wl=$lt_lt_prog_compiler_wl
14577
14578# Additional compiler flags for building library objects.
14579pic_flag=$lt_lt_prog_compiler_pic
14580
14581# Compiler flag to prevent dynamic linking.
14582link_static_flag=$lt_lt_prog_compiler_static
14583
14584# Does compiler simultaneously support -c and -o options?
14585compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14586
14587# Whether or not to add -lc for building shared libraries.
14588build_libtool_need_lc=$archive_cmds_need_lc
14589
14590# Whether or not to disallow shared libs when runtime libs are static.
14591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14592
14593# Compiler flag to allow reflexive dlopens.
14594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14595
14596# Compiler flag to generate shared objects directly from archives.
14597whole_archive_flag_spec=$lt_whole_archive_flag_spec
14598
14599# Whether the compiler copes with passing no objects directly.
14600compiler_needs_object=$lt_compiler_needs_object
14601
14602# Create an old-style archive from a shared archive.
14603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14604
14605# Create a temporary old-style archive to link instead of a shared archive.
14606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14607
14608# Commands used to build a shared archive.
14609archive_cmds=$lt_archive_cmds
14610archive_expsym_cmds=$lt_archive_expsym_cmds
14611
14612# Commands used to build a loadable module if different from building
14613# a shared archive.
14614module_cmds=$lt_module_cmds
14615module_expsym_cmds=$lt_module_expsym_cmds
14616
14617# Whether we are building with GNU ld or not.
14618with_gnu_ld=$lt_with_gnu_ld
14619
14620# Flag that allows shared libraries with undefined symbols to be built.
14621allow_undefined_flag=$lt_allow_undefined_flag
14622
14623# Flag that enforces no undefined symbols.
14624no_undefined_flag=$lt_no_undefined_flag
14625
14626# Flag to hardcode \$libdir into a binary during linking.
14627# This must work even if \$libdir does not exist
14628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14629
14630# If ld is used when linking, flag to hardcode \$libdir into a binary
14631# during linking. This must work even if \$libdir does not exist.
14632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14633
14634# Whether we need a single "-rpath" flag with a separated argument.
14635hardcode_libdir_separator=$lt_hardcode_libdir_separator
14636
14637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14638# DIR into the resulting binary.
14639hardcode_direct=$hardcode_direct
14640
14641# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14642# DIR into the resulting binary and the resulting library dependency is
14643# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14644# library is relocated.
14645hardcode_direct_absolute=$hardcode_direct_absolute
14646
14647# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14648# into the resulting binary.
14649hardcode_minus_L=$hardcode_minus_L
14650
14651# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14652# into the resulting binary.
14653hardcode_shlibpath_var=$hardcode_shlibpath_var
14654
14655# Set to "yes" if building a shared library automatically hardcodes DIR
14656# into the library and all subsequent libraries and executables linked
14657# against it.
14658hardcode_automatic=$hardcode_automatic
14659
14660# Set to yes if linker adds runtime paths of dependent libraries
14661# to runtime path list.
14662inherit_rpath=$inherit_rpath
14663
14664# Whether libtool must link a program against all its dependency libraries.
14665link_all_deplibs=$link_all_deplibs
14666
14667# Fix the shell variable \$srcfile for the compiler.
14668fix_srcfile_path=$lt_fix_srcfile_path
14669
14670# Set to "yes" if exported symbols are required.
14671always_export_symbols=$always_export_symbols
14672
14673# The commands to list exported symbols.
14674export_symbols_cmds=$lt_export_symbols_cmds
14675
14676# Symbols that should not be listed in the preloaded symbols.
14677exclude_expsyms=$lt_exclude_expsyms
14678
14679# Symbols that must always be exported.
14680include_expsyms=$lt_include_expsyms
14681
14682# Commands necessary for linking programs (against libraries) with templates.
14683prelink_cmds=$lt_prelink_cmds
14684
14685# Specify filename containing input files.
14686file_list_spec=$lt_file_list_spec
14687
14688# How to hardcode a shared library path into an executable.
14689hardcode_action=$hardcode_action
14690
14691# ### END LIBTOOL CONFIG
14692
14693_LT_EOF
14694
14695 case $host_os in
14696 aix3*)
14697 cat <<\_LT_EOF >> "$cfgfile"
14698# AIX sometimes has problems with the GCC collect2 program. For some
14699# reason, if we set the COLLECT_NAMES environment variable, the problems
14700# vanish in a puff of smoke.
14701if test "X${COLLECT_NAMES+set}" != Xset; then
14702 COLLECT_NAMES=
14703 export COLLECT_NAMES
14704fi
14705_LT_EOF
14706 ;;
14707 esac
14708
14709
14710ltmain="$ac_aux_dir/ltmain.sh"
14711
14712
14713 # We use sed instead of cat because bash on DJGPP gets confused if
14714 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14715 # text mode, it properly converts lines to CR/LF. This bash problem
14716 # is reportedly fixed, but why not run on old versions too?
14717 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14718 || (rm -f "$cfgfile"; exit 1)
14719
14720 case $xsi_shell in
14721 yes)
14722 cat << \_LT_EOF >> "$cfgfile"
14723
14724# func_dirname file append nondir_replacement
14725# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14726# otherwise set result to NONDIR_REPLACEMENT.
14727func_dirname ()
14728{
14729 case ${1} in
14730 */*) func_dirname_result="${1%/*}${2}" ;;
14731 * ) func_dirname_result="${3}" ;;
14732 esac
14733}
14734
14735# func_basename file
14736func_basename ()
14737{
14738 func_basename_result="${1##*/}"
14739}
14740
14741# func_dirname_and_basename file append nondir_replacement
14742# perform func_basename and func_dirname in a single function
14743# call:
14744# dirname: Compute the dirname of FILE. If nonempty,
14745# add APPEND to the result, otherwise set result
14746# to NONDIR_REPLACEMENT.
14747# value returned in "$func_dirname_result"
14748# basename: Compute filename of FILE.
14749# value retuned in "$func_basename_result"
14750# Implementation must be kept synchronized with func_dirname
14751# and func_basename. For efficiency, we do not delegate to
14752# those functions but instead duplicate the functionality here.
14753func_dirname_and_basename ()
14754{
14755 case ${1} in
14756 */*) func_dirname_result="${1%/*}${2}" ;;
14757 * ) func_dirname_result="${3}" ;;
14758 esac
14759 func_basename_result="${1##*/}"
14760}
14761
14762# func_stripname prefix suffix name
14763# strip PREFIX and SUFFIX off of NAME.
14764# PREFIX and SUFFIX must not contain globbing or regex special
14765# characters, hashes, percent signs, but SUFFIX may contain a leading
14766# dot (in which case that matches only a dot).
14767func_stripname ()
14768{
14769 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14770 # positional parameters, so assign one to ordinary parameter first.
14771 func_stripname_result=${3}
14772 func_stripname_result=${func_stripname_result#"${1}"}
14773 func_stripname_result=${func_stripname_result%"${2}"}
14774}
14775
14776# func_opt_split
14777func_opt_split ()
14778{
14779 func_opt_split_opt=${1%%=*}
14780 func_opt_split_arg=${1#*=}
14781}
14782
14783# func_lo2o object
14784func_lo2o ()
14785{
14786 case ${1} in
14787 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14788 *) func_lo2o_result=${1} ;;
14789 esac
14790}
14791
14792# func_xform libobj-or-source
14793func_xform ()
14794{
14795 func_xform_result=${1%.*}.lo
14796}
14797
14798# func_arith arithmetic-term...
14799func_arith ()
14800{
14801 func_arith_result=$(( $* ))
14802}
14803
14804# func_len string
14805# STRING may not start with a hyphen.
14806func_len ()
14807{
14808 func_len_result=${#1}
14809}
14810
14811_LT_EOF
14812 ;;
14813 *) # Bourne compatible functions.
14814 cat << \_LT_EOF >> "$cfgfile"
14815
14816# func_dirname file append nondir_replacement
14817# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14818# otherwise set result to NONDIR_REPLACEMENT.
14819func_dirname ()
14820{
14821 # Extract subdirectory from the argument.
52327858 14822 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
14823 if test "X$func_dirname_result" = "X${1}"; then
14824 func_dirname_result="${3}"
14825 else
14826 func_dirname_result="$func_dirname_result${2}"
14827 fi
14828}
14829
14830# func_basename file
14831func_basename ()
14832{
52327858 14833 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
14834}
14835
14836
14837# func_stripname prefix suffix name
14838# strip PREFIX and SUFFIX off of NAME.
14839# PREFIX and SUFFIX must not contain globbing or regex special
14840# characters, hashes, percent signs, but SUFFIX may contain a leading
14841# dot (in which case that matches only a dot).
14842# func_strip_suffix prefix name
14843func_stripname ()
14844{
14845 case ${2} in
52327858
L
14846 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14847 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
14848 esac
14849}
14850
14851# sed scripts:
14852my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14853my_sed_long_arg='1s/^-[^=]*=//'
14854
14855# func_opt_split
14856func_opt_split ()
14857{
52327858
L
14858 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14859 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
14860}
14861
14862# func_lo2o object
14863func_lo2o ()
14864{
52327858 14865 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
14866}
14867
14868# func_xform libobj-or-source
14869func_xform ()
14870{
52327858 14871 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
14872}
14873
14874# func_arith arithmetic-term...
14875func_arith ()
14876{
14877 func_arith_result=`expr "$@"`
14878}
14879
14880# func_len string
14881# STRING may not start with a hyphen.
14882func_len ()
14883{
14884 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14885}
14886
14887_LT_EOF
14888esac
14889
14890case $lt_shell_append in
14891 yes)
14892 cat << \_LT_EOF >> "$cfgfile"
14893
14894# func_append var value
14895# Append VALUE to the end of shell variable VAR.
14896func_append ()
14897{
14898 eval "$1+=\$2"
14899}
14900_LT_EOF
14901 ;;
14902 *)
14903 cat << \_LT_EOF >> "$cfgfile"
14904
14905# func_append var value
14906# Append VALUE to the end of shell variable VAR.
14907func_append ()
14908{
14909 eval "$1=\$$1\$2"
14910}
14911
14912_LT_EOF
14913 ;;
14914 esac
14915
14916
14917 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14918 || (rm -f "$cfgfile"; exit 1)
14919
14920 mv -f "$cfgfile" "$ofile" ||
14921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14922 chmod +x "$ofile"
14923
14924 ;;
14925
14926 esac
14927done # for ac_tag
14928
14929
14930as_fn_exit 0
14931_ACEOF
14932ac_clean_files=$ac_clean_files_save
14933
14934test $ac_write_fail = 0 ||
22e05272 14935 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
14936
14937
14938# configure is writing to config.log, and then calls config.status.
14939# config.status does its own redirection, appending to config.log.
14940# Unfortunately, on DOS this fails, as config.log is still kept open
14941# by configure, so config.status won't be able to write to it; its
14942# output is simply discarded. So we exec the FD to /dev/null,
14943# effectively closing config.log, so it can be properly (re)opened and
14944# appended to by config.status. When coming back to configure, we
14945# need to make the FD available again.
14946if test "$no_create" != yes; then
14947 ac_cs_success=:
14948 ac_config_status_args=
14949 test "$silent" = yes &&
14950 ac_config_status_args="$ac_config_status_args --quiet"
14951 exec 5>/dev/null
14952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14953 exec 5>>config.log
14954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14955 # would make configure fail if this is the last instruction.
22e05272 14956 $ac_cs_success || as_fn_exit 1
d7f09764
DN
14957fi
14958if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14960$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14961fi
14962