Remove use of alloca.
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for gprof 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6bf9431b 14
81ecdfbb
RW
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 :
6bf9431b
BE
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6bf9431b 31fi
6bf9431b 32
81ecdfbb
RW
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 }
6bf9431b
BE
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
6bf9431b
BE
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6bf9431b 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6bf9431b 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
6bf9431b 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
6bf9431b 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
6bf9431b 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
6bf9431b
BE
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
6bf9431b 418
0ab6f085
AM
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
1b9750d6 425
6bf9431b 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
6bf9431b 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
6bf9431b 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 444 t loop
81ecdfbb 445 s/-\n.*//
6bf9431b 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6bf9431b
BE
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
6bf9431b
BE
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
6bf9431b
BE
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
6bf9431b 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
6bf9431b 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
0ab6f085 491 fi
6bf9431b
BE
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
6bf9431b
BE
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
6bf9431b
BE
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
6bf9431b
BE
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
6bf9431b
BE
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
6bf9431b
BE
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
6bf9431b 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
6bf9431b
BE
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
0ab6f085 555
6bf9431b 556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='gprof'
558PACKAGE_TARNAME='gprof'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='gprof 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
6bf9431b
BE
563
564ac_unique_file="gprof.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
6bf9431b
BE
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
6bf9431b
BE
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
6bf9431b
BE
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
6bf9431b 592# include <inttypes.h>
6bf9431b 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
6bf9431b
BE
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605NO_WERROR
606WARN_CFLAGS
607GENINSRC_NEVER_FALSE
608GENINSRC_NEVER_TRUE
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612MSGMERGE
613MSGFMT
614MKINSTALLDIRS
615CATOBJEXT
616GENCAT
617INSTOBJEXT
618DATADIRNAME
619CATALOGS
620POSUB
621GMSGFMT
622XGETTEXT
623INCINTL
624LIBINTL_DEP
625LIBINTL
626USE_NLS
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
81ecdfbb
RW
632RANLIB
633AR
634OBJDUMP
635LN_S
636NM
637ac_ct_DUMPBIN
638DUMPBIN
639LD
640FGREP
641SED
642LIBTOOL
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
6bf9431b 735ac_subst_files=''
81ecdfbb
RW
736ac_user_opts='
737enable_option_checking
738enable_dependency_tracking
81ecdfbb
RW
739enable_shared
740enable_static
741with_pic
742enable_fast_install
743with_gnu_ld
744enable_libtool_lock
b879806f
AM
745enable_plugins
746enable_largefile
81ecdfbb
RW
747enable_nls
748enable_maintainer_mode
749enable_werror
750enable_build_warnings
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP'
761
252b5132
RH
762
763# Initialize some variables set by options.
6bf9431b
BE
764ac_init_help=
765ac_init_version=false
81ecdfbb
RW
766ac_unrecognized_opts=
767ac_unrecognized_sep=
252b5132
RH
768# The variables have the same names as the options, with
769# dashes changed to underlines.
6bf9431b 770cache_file=/dev/null
252b5132 771exec_prefix=NONE
252b5132 772no_create=
252b5132
RH
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
252b5132
RH
781verbose=
782x_includes=NONE
783x_libraries=NONE
6bf9431b
BE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 790# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
252b5132
RH
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
252b5132
RH
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
2e98a7bd 801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
252b5132 810
252b5132 811ac_prev=
81ecdfbb 812ac_dashdash=
252b5132
RH
813for ac_option
814do
252b5132
RH
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
81ecdfbb 817 eval $ac_prev=\$ac_option
252b5132
RH
818 ac_prev=
819 continue
820 fi
821
81ecdfbb
RW
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
252b5132
RH
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
81ecdfbb
RW
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
252b5132
RH
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 836 bindir=$ac_optarg ;;
252b5132
RH
837
838 -build | --build | --buil | --bui | --bu)
6bf9431b 839 ac_prev=build_alias ;;
252b5132 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 841 build_alias=$ac_optarg ;;
252b5132
RH
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
252b5132 852
81ecdfbb 853 -datadir | --datadir | --datadi | --datad)
252b5132 854 ac_prev=datadir ;;
81ecdfbb 855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 856 datadir=$ac_optarg ;;
252b5132 857
81ecdfbb
RW
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
252b5132 865 -disable-* | --disable-*)
81ecdfbb 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 867 # Reject names that are not valid shell variable names.
81ecdfbb
RW
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
252b5132
RH
890
891 -enable-* | --enable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 893 # Reject names that are not valid shell variable names.
81ecdfbb
RW
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
0ab6f085 904 esac
81ecdfbb 905 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
6bf9431b 914 exec_prefix=$ac_optarg ;;
252b5132
RH
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
6bf9431b
BE
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
252b5132
RH
926
927 -host | --host | --hos | --ho)
6bf9431b 928 ac_prev=host_alias ;;
252b5132 929 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 930 host_alias=$ac_optarg ;;
252b5132 931
81ecdfbb
RW
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
252b5132
RH
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 943 includedir=$ac_optarg ;;
252b5132
RH
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 948 infodir=$ac_optarg ;;
252b5132
RH
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 953 libdir=$ac_optarg ;;
252b5132
RH
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
6bf9431b 960 libexecdir=$ac_optarg ;;
252b5132 961
81ecdfbb
RW
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
252b5132 967 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 968 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 972 localstatedir=$ac_optarg ;;
252b5132
RH
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 977 mandir=$ac_optarg ;;
252b5132
RH
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 984 | --no-cr | --no-c | -n)
252b5132
RH
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 998 oldincludedir=$ac_optarg ;;
252b5132
RH
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1003 prefix=$ac_optarg ;;
252b5132
RH
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1010 program_prefix=$ac_optarg ;;
252b5132
RH
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1017 program_suffix=$ac_optarg ;;
252b5132
RH
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1034 program_transform_name=$ac_optarg ;;
252b5132 1035
81ecdfbb
RW
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
252b5132
RH
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
6bf9431b 1054 sbindir=$ac_optarg ;;
252b5132
RH
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
6bf9431b 1065 sharedstatedir=$ac_optarg ;;
252b5132
RH
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
6bf9431b 1070 site=$ac_optarg ;;
093872ec 1071
252b5132
RH
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1075 srcdir=$ac_optarg ;;
252b5132
RH
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1082 sysconfdir=$ac_optarg ;;
252b5132
RH
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1085 ac_prev=target_alias ;;
252b5132 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1087 target_alias=$ac_optarg ;;
252b5132
RH
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
6bf9431b
BE
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
252b5132
RH
1094
1095 -with-* | --with-*)
81ecdfbb 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1097 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
0ab6f085 1108 esac
81ecdfbb 1109 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1110
1111 -without-* | --without-*)
81ecdfbb 1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1113 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
252b5132
RH
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1136 x_includes=$ac_optarg ;;
252b5132
RH
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1143 x_libraries=$ac_optarg ;;
252b5132 1144
81ecdfbb
RW
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
252b5132
RH
1147 ;;
1148
6bf9431b
BE
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1157 export $ac_envvar ;;
1158
252b5132 1159 *)
6bf9431b 1160 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
6bf9431b 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1172 as_fn_error "missing argument to $ac_option"
252b5132
RH
1173fi
1174
81ecdfbb
RW
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1180 esac
81ecdfbb 1181fi
0ab6f085 1182
81ecdfbb
RW
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
0ab6f085 1188do
81ecdfbb
RW
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
0ab6f085 1191 case $ac_val in
81ecdfbb
RW
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
252b5132 1195 esac
81ecdfbb
RW
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1202done
1203
6bf9431b
BE
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
81ecdfbb 1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
252b5132 1221
6bf9431b
BE
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
252b5132 1226
252b5132 1227
81ecdfbb
RW
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
252b5132
RH
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
81ecdfbb
RW
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
252b5132 1263 srcdir=$ac_confdir
81ecdfbb 1264 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
81ecdfbb
RW
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
252b5132 1294
6bf9431b
BE
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
d8bd95ef 1302\`configure' configures gprof 2.26.51 to adapt to many kinds of systems.
252b5132 1303
6bf9431b 1304Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1305
6bf9431b
BE
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1308
6bf9431b 1309Defaults for the options are specified in brackets.
ac48eca1 1310
6bf9431b
BE
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
6bf9431b
BE
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1324 [$ac_default_prefix]
6bf9431b 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1326 [PREFIX]
ac48eca1 1327
6bf9431b
BE
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
ac48eca1 1332
6bf9431b 1333For better control, use the options below.
ac48eca1 1334
6bf9431b 1335Fine tuning of the installation directories:
81ecdfbb
RW
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1350 --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
81ecdfbb
RW
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1355_ACEOF
ac48eca1 1356
6bf9431b 1357 cat <<\_ACEOF
252b5132 1358
6bf9431b
BE
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1363
6bf9431b
BE
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
252b5132 1369fi
252b5132 1370
6bf9431b 1371if test -n "$ac_init_help"; then
2e98a7bd 1372 case $ac_init_help in
d8bd95ef 1373 short | recursive ) echo "Configuration of gprof 2.26.51:";;
2e98a7bd 1374 esac
6bf9431b 1375 cat <<\_ACEOF
252b5132 1376
6bf9431b 1377Optional Features:
81ecdfbb 1378 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1383 --enable-shared[=PKGS] build shared libraries [default=yes]
1384 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1385 --enable-fast-install[=PKGS]
1386 optimize for fast installation [default=yes]
6bf9431b 1387 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1388 --enable-plugins Enable support for plugins
1389 --disable-largefile omit support for large files
6bf9431b
BE
1390 --disable-nls do not use Native Language Support
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
241a6c40
AM
1393 --enable-werror treat compile warnings as errors
1394 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1395
1396Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1402
6bf9431b
BE
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
81ecdfbb
RW
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
6bf9431b 1411 CPP C preprocessor
252b5132 1412
6bf9431b
BE
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
81ecdfbb 1416Report bugs to the package provider.
6bf9431b 1417_ACEOF
81ecdfbb 1418ac_status=$?
252b5132
RH
1419fi
1420
6bf9431b
BE
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
6bf9431b 1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
6bf9431b 1427 ac_builddir=.
252b5132 1428
81ecdfbb
RW
1429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1444
1445case $srcdir in
81ecdfbb 1446 .) # We are building in place.
6bf9431b 1447 ac_srcdir=.
81ecdfbb
RW
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1451 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1458esac
81ecdfbb
RW
1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1469 else
81ecdfbb
RW
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1473 done
1474fi
252b5132 1475
81ecdfbb 1476test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1477if $ac_init_version; then
1478 cat <<\_ACEOF
d8bd95ef 1479gprof configure 2.26.51
81ecdfbb 1480generated by GNU Autoconf 2.64
252b5132 1481
81ecdfbb 1482Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
81ecdfbb 1486 exit
6bf9431b 1487fi
5d64ca4e 1488
81ecdfbb
RW
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
5d64ca4e 1492
81ecdfbb
RW
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
6bf9431b 1497{
81ecdfbb
RW
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1523
81ecdfbb
RW
1524 ac_retval=1
1525fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
6bf9431b 1528
81ecdfbb 1529} # ac_fn_c_try_compile
6bf9431b 1530
81ecdfbb
RW
1531# ac_fn_c_try_link LINENO
1532# -----------------------
1533# Try to link conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_link ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_link") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest$ac_exeext && {
1557 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1564
81ecdfbb
RW
1565 ac_retval=1
1566fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
6bf9431b 1574
81ecdfbb
RW
1575} # ac_fn_c_try_link
1576
1577# ac_fn_c_try_cpp LINENO
1578# ----------------------
1579# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_cpp ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1611
1612} # ac_fn_c_try_cpp
1613
1614# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615# -------------------------------------------------------
1616# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617# the include files in INCLUDES and setting the cache variable VAR
1618# accordingly.
1619ac_fn_c_check_header_mongrel ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 $as_echo_n "(cached) " >&6
1627fi
1628eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631else
1632 # Is the header compilable?
1633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634$as_echo_n "checking $2 usability... " >&6; }
1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h. */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642else
1643 ac_header_compiler=no
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647$as_echo "$ac_header_compiler" >&6; }
1648
1649# Is the header present?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651$as_echo_n "checking $2 presence... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658else
1659 ac_header_preproc=no
1660fi
1661rm -f conftest.err conftest.$ac_ext
1662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663$as_echo "$ac_header_preproc" >&6; }
1664
1665# So? What about this header?
1666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687$as_echo_n "checking for $2... " >&6; }
1688if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1690else
1691 eval "$3=\$ac_header_compiler"
1692fi
1693eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695$as_echo "$ac_res" >&6; }
1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698
1699} # ac_fn_c_check_header_mongrel
1700
1701# ac_fn_c_try_run LINENO
1702# ----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704# that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740
1741} # ac_fn_c_try_run
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762else
1763 eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_check_func LINENO FUNC VAR
1775# ----------------------------------
1776# Tests whether FUNC exists, setting the cache variable VAR accordingly
1777ac_fn_c_check_func ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789#define $2 innocuous_$2
1790
1791/* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796#ifdef __STDC__
1797# include <limits.h>
1798#else
1799# include <assert.h>
1800#endif
1801
1802#undef $2
1803
1804/* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807#ifdef __cplusplus
1808extern "C"
1809#endif
1810char $2 ();
1811/* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814#if defined __stub_$2 || defined __stub___$2
1815choke me
1816#endif
1817
1818int
1819main ()
1820{
1821return $2 ();
1822 ;
1823 return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828else
1829 eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_func
1840cat >config.log <<_ACEOF
1841This file contains any messages produced by compilers while
1842running configure, to aid debugging if configure makes a mistake.
1843
d8bd95ef 1844It was created by gprof $as_me 2.26.51, which was
81ecdfbb
RW
1845generated by GNU Autoconf 2.64. Invocation command line was
1846
1847 $ $0 $@
1848
1849_ACEOF
1850exec 5>>config.log
1851{
1852cat <<_ASUNAME
1853## --------- ##
1854## Platform. ##
1855## --------- ##
1856
1857hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865
1866/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1867/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1868/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1870/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1871/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1872/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873
1874_ASUNAME
1875
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1881 $as_echo "PATH: $as_dir"
1882 done
1883IFS=$as_save_IFS
5d64ca4e 1884
6bf9431b 1885} >&5
093872ec 1886
6bf9431b 1887cat >&5 <<_ACEOF
252b5132 1888
6bf9431b
BE
1889
1890## ----------- ##
1891## Core tests. ##
1892## ----------- ##
1893
1894_ACEOF
1895
1896
1897# Keep a trace of the command line.
1898# Strip out --no-create and --no-recursion so they do not pile up.
1899# Strip out --silent because we don't want to record it for future runs.
1900# Also quote any args containing shell meta-characters.
1901# Make two passes to allow for proper duplicate-argument suppression.
1902ac_configure_args=
1903ac_configure_args0=
1904ac_configure_args1=
6bf9431b
BE
1905ac_must_keep_next=false
1906for ac_pass in 1 2
1907do
1908 for ac_arg
1909 do
1910 case $ac_arg in
1911 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913 | -silent | --silent | --silen | --sile | --sil)
1914 continue ;;
81ecdfbb
RW
1915 *\'*)
1916 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1917 esac
1918 case $ac_pass in
81ecdfbb 1919 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 1920 2)
81ecdfbb 1921 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
1922 if test $ac_must_keep_next = true; then
1923 ac_must_keep_next=false # Got value, back to normal.
1924 else
1925 case $ac_arg in
1926 *=* | --config-cache | -C | -disable-* | --disable-* \
1927 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929 | -with-* | --with-* | -without-* | --without-* | --x)
1930 case "$ac_configure_args0 " in
1931 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 esac
1933 ;;
1934 -* ) ac_must_keep_next=true ;;
1935 esac
1936 fi
81ecdfbb 1937 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
1938 ;;
1939 esac
1940 done
1941done
81ecdfbb
RW
1942{ ac_configure_args0=; unset ac_configure_args0;}
1943{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
1944
1945# When interrupted or exit'd, cleanup temporary files, and complete
1946# config.log. We remove comments because anyway the quotes in there
1947# would cause problems or look ugly.
81ecdfbb
RW
1948# WARNING: Use '\'' to represent an apostrophe within the trap.
1949# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
1950trap 'exit_status=$?
1951 # Save into config.log some information that might help in debugging.
1952 {
1953 echo
1954
1955 cat <<\_ASBOX
1956## ---------------- ##
1957## Cache variables. ##
1958## ---------------- ##
1959_ASBOX
1960 echo
1961 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1962(
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in #(
1966 *${as_nl}*)
1967 case $ac_var in #(
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1970 esac
1971 case $ac_var in #(
1972 _ | IFS | as_nl) ;; #(
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974 *) { eval $ac_var=; unset $ac_var;} ;;
1975 esac ;;
1976 esac
1977 done
6bf9431b 1978 (set) 2>&1 |
81ecdfbb
RW
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980 *${as_nl}ac_space=\ *)
6bf9431b 1981 sed -n \
81ecdfbb
RW
1982 "s/'\''/'\''\\\\'\'''\''/g;
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984 ;; #(
6bf9431b 1985 *)
81ecdfbb 1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 1987 ;;
81ecdfbb
RW
1988 esac |
1989 sort
1990)
6bf9431b
BE
1991 echo
1992
1993 cat <<\_ASBOX
1994## ----------------- ##
1995## Output variables. ##
1996## ----------------- ##
1997_ASBOX
1998 echo
1999 for ac_var in $ac_subst_vars
2000 do
81ecdfbb
RW
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2006 done | sort
2007 echo
2008
2009 if test -n "$ac_subst_files"; then
2010 cat <<\_ASBOX
81ecdfbb
RW
2011## ------------------- ##
2012## File substitutions. ##
2013## ------------------- ##
6bf9431b
BE
2014_ASBOX
2015 echo
2016 for ac_var in $ac_subst_files
2017 do
81ecdfbb
RW
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2023 done | sort
2024 echo
2025 fi
2026
2027 if test -s confdefs.h; then
2028 cat <<\_ASBOX
2029## ----------- ##
2030## confdefs.h. ##
2031## ----------- ##
2032_ASBOX
2033 echo
81ecdfbb 2034 cat confdefs.h
6bf9431b
BE
2035 echo
2036 fi
2037 test "$ac_signal" != 0 &&
81ecdfbb
RW
2038 $as_echo "$as_me: caught signal $ac_signal"
2039 $as_echo "$as_me: exit $exit_status"
6bf9431b 2040 } >&5
81ecdfbb
RW
2041 rm -f core *.core core.conftest.* &&
2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2043 exit $exit_status
81ecdfbb 2044' 0
6bf9431b 2045for ac_signal in 1 2 13 15; do
81ecdfbb 2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2047done
2048ac_signal=0
2049
2050# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2051rm -f -r conftest* confdefs.h
2052
2053$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2054
2055# Predefined preprocessor variables.
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_NAME "$PACKAGE_NAME"
2059_ACEOF
2060
6bf9431b
BE
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063_ACEOF
2064
6bf9431b
BE
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_VERSION "$PACKAGE_VERSION"
2067_ACEOF
2068
6bf9431b
BE
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_STRING "$PACKAGE_STRING"
2071_ACEOF
2072
6bf9431b
BE
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075_ACEOF
2076
81ecdfbb
RW
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_URL "$PACKAGE_URL"
2079_ACEOF
2080
6bf9431b
BE
2081
2082# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2083# Prefer an explicitly selected file to automatically selected ones.
2084ac_site_file1=NONE
2085ac_site_file2=NONE
2086if test -n "$CONFIG_SITE"; then
2087 ac_site_file1=$CONFIG_SITE
2088elif test "x$prefix" != xNONE; then
2089 ac_site_file1=$prefix/share/config.site
2090 ac_site_file2=$prefix/etc/config.site
2091else
2092 ac_site_file1=$ac_default_prefix/share/config.site
2093 ac_site_file2=$ac_default_prefix/etc/config.site
2094fi
2095for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096do
2097 test "x$ac_site_file" = xNONE && continue
6bf9431b 2098 if test -r "$ac_site_file"; then
81ecdfbb
RW
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2101 sed 's/^/| /' "$ac_site_file" >&5
2102 . "$ac_site_file"
2103 fi
2104done
2105
2106if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
81ecdfbb
RW
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2112 case $cache_file in
81ecdfbb
RW
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
6bf9431b
BE
2115 esac
2116 fi
2117else
81ecdfbb
RW
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2120 >$cache_file
2121fi
2122
2123# Check that the precious variables saved in the cache have kept the same
2124# value.
2125ac_cache_corrupted=false
81ecdfbb 2126for ac_var in $ac_precious_vars; do
6bf9431b
BE
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2131 case $ac_old_set,$ac_new_set in
2132 set,)
81ecdfbb
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2135 ac_cache_corrupted=: ;;
2136 ,set)
81ecdfbb
RW
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2138$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2139 ac_cache_corrupted=: ;;
2140 ,);;
2141 *)
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2143 # differences in whitespace do not lead to failure.
2144 ac_old_val_w=`echo x $ac_old_val`
2145 ac_new_val_w=`echo x $ac_new_val`
2146 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2148$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149 ac_cache_corrupted=:
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153 eval $ac_var=\$ac_old_val
2154 fi
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2156$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2158$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2159 fi;;
2160 esac
2161 # Pass precious variables to config.status.
2162 if test "$ac_new_set" = set; then
2163 case $ac_new_val in
81ecdfbb 2164 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2165 *) ac_arg=$ac_var=$ac_new_val ;;
2166 esac
2167 case " $ac_configure_args " in
2168 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2169 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2170 esac
2171 fi
2172done
2173if $ac_cache_corrupted; then
81ecdfbb
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2177$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2179fi
81ecdfbb
RW
2180## -------------------- ##
2181## Main body of script. ##
2182## -------------------- ##
6bf9431b 2183
0ab6f085
AM
2184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
6bf9431b
BE
2190
2191
6bf9431b
BE
2192
2193
2194
2195
2196ac_aux_dir=
81ecdfbb
RW
2197for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2198 for ac_t in install-sh install.sh shtool; do
2199 if test -f "$ac_dir/$ac_t"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/$ac_t -c"
2202 break 2
2203 fi
2204 done
6bf9431b
BE
2205done
2206if test -z "$ac_aux_dir"; then
81ecdfbb 2207 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2208fi
81ecdfbb
RW
2209
2210# These three variables are undocumented and unsupported,
2211# and are intended to be withdrawn in a future Autoconf release.
2212# They can cause serious problems if a builder's source tree is in a directory
2213# whose full name contains unusual characters.
2214ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2215ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2216ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217
6bf9431b
BE
2218
2219# Make sure we can run config.sub.
81ecdfbb
RW
2220$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2221 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2222
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2224$as_echo_n "checking build system type... " >&6; }
2225if test "${ac_cv_build+set}" = set; then :
2226 $as_echo_n "(cached) " >&6
2227else
2228 ac_build_alias=$build_alias
2229test "x$ac_build_alias" = x &&
2230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2231test "x$ac_build_alias" = x &&
2232 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2233ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2234 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2235
2236fi
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2238$as_echo "$ac_cv_build" >&6; }
2239case $ac_cv_build in
2240*-*-*) ;;
2241*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2242esac
6bf9431b 2243build=$ac_cv_build
81ecdfbb
RW
2244ac_save_IFS=$IFS; IFS='-'
2245set x $ac_cv_build
2246shift
2247build_cpu=$1
2248build_vendor=$2
2249shift; shift
2250# Remember, the first character of IFS is used to create $*,
2251# except with old shells:
2252build_os=$*
2253IFS=$ac_save_IFS
2254case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2255
2256
81ecdfbb
RW
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2258$as_echo_n "checking host system type... " >&6; }
2259if test "${ac_cv_host+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
6bf9431b 2261else
81ecdfbb
RW
2262 if test "x$host_alias" = x; then
2263 ac_cv_host=$ac_cv_build
2264else
2265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2266 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2267fi
6bf9431b
BE
2268
2269fi
81ecdfbb
RW
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2271$as_echo "$ac_cv_host" >&6; }
2272case $ac_cv_host in
2273*-*-*) ;;
2274*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2275esac
6bf9431b 2276host=$ac_cv_host
81ecdfbb
RW
2277ac_save_IFS=$IFS; IFS='-'
2278set x $ac_cv_host
2279shift
2280host_cpu=$1
2281host_vendor=$2
2282shift; shift
2283# Remember, the first character of IFS is used to create $*,
2284# except with old shells:
2285host_os=$*
2286IFS=$ac_save_IFS
2287case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2288
2289
81ecdfbb
RW
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2291$as_echo_n "checking target system type... " >&6; }
2292if test "${ac_cv_target+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294else
2295 if test "x$target_alias" = x; then
2296 ac_cv_target=$ac_cv_host
6bf9431b 2297else
81ecdfbb
RW
2298 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2300fi
6bf9431b
BE
2301
2302fi
81ecdfbb
RW
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2304$as_echo "$ac_cv_target" >&6; }
2305case $ac_cv_target in
2306*-*-*) ;;
2307*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2308esac
6bf9431b 2309target=$ac_cv_target
81ecdfbb
RW
2310ac_save_IFS=$IFS; IFS='-'
2311set x $ac_cv_target
2312shift
2313target_cpu=$1
2314target_vendor=$2
2315shift; shift
2316# Remember, the first character of IFS is used to create $*,
2317# except with old shells:
2318target_os=$*
2319IFS=$ac_save_IFS
2320case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2321
2322
2323# The aliases save the names the user supplied, while $host etc.
2324# will get canonicalized.
2325test -n "$target_alias" &&
2326 test "$program_prefix$program_suffix$program_transform_name" = \
2327 NONENONEs,x,x, &&
2328 program_prefix=${target_alias}-
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
2339if test "${ac_cv_prog_CC+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
6bf9431b
BE
2341else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2354 break 2
2355 fi
2356done
81ecdfbb
RW
2357 done
2358IFS=$as_save_IFS
6bf9431b
BE
2359
2360fi
2361fi
2362CC=$ac_cv_prog_CC
2363if test -n "$CC"; then
81ecdfbb
RW
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2365$as_echo "$CC" >&6; }
6bf9431b 2366else
81ecdfbb
RW
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368$as_echo "no" >&6; }
6bf9431b
BE
2369fi
2370
81ecdfbb 2371
6bf9431b
BE
2372fi
2373if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376set dummy gcc; ac_word=$2
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378$as_echo_n "checking for $ac_word... " >&6; }
2379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
6bf9431b
BE
2381else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2392 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2394 break 2
2395 fi
2396done
81ecdfbb
RW
2397 done
2398IFS=$as_save_IFS
6bf9431b
BE
2399
2400fi
2401fi
2402ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2405$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2406else
81ecdfbb
RW
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408$as_echo "no" >&6; }
6bf9431b
BE
2409fi
2410
81ecdfbb
RW
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418ac_tool_warned=yes ;;
2419esac
2420 CC=$ac_ct_CC
2421 fi
6bf9431b
BE
2422else
2423 CC="$ac_cv_prog_CC"
2424fi
2425
2426if test -z "$CC"; then
81ecdfbb
RW
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2429set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if test "${ac_cv_prog_CC+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
6bf9431b
BE
2434else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2447 break 2
2448 fi
2449done
81ecdfbb
RW
2450 done
2451IFS=$as_save_IFS
6bf9431b
BE
2452
2453fi
2454fi
2455CC=$ac_cv_prog_CC
2456if test -n "$CC"; then
81ecdfbb
RW
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2458$as_echo "$CC" >&6; }
0ab6f085 2459else
81ecdfbb
RW
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461$as_echo "no" >&6; }
0ab6f085
AM
2462fi
2463
0ab6f085 2464
81ecdfbb 2465 fi
6bf9431b
BE
2466fi
2467if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469set dummy cc; ac_word=$2
81ecdfbb
RW
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if test "${ac_cv_prog_CC+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
6bf9431b
BE
2474else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478 ac_prog_rejected=no
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2489 fi
2490 ac_cv_prog_CC="cc"
81ecdfbb 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2492 break 2
2493 fi
2494done
81ecdfbb
RW
2495 done
2496IFS=$as_save_IFS
6bf9431b
BE
2497
2498if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2508 fi
2509fi
2510fi
2511fi
2512CC=$ac_cv_prog_CC
2513if test -n "$CC"; then
81ecdfbb
RW
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515$as_echo "$CC" >&6; }
6bf9431b 2516else
81ecdfbb
RW
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
6bf9431b
BE
2519fi
2520
81ecdfbb 2521
6bf9431b
BE
2522fi
2523if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
81ecdfbb 2525 for ac_prog in cl.exe
6bf9431b
BE
2526 do
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if test "${ac_cv_prog_CC+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
6bf9431b
BE
2533else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2546 break 2
2547 fi
2548done
81ecdfbb
RW
2549 done
2550IFS=$as_save_IFS
6bf9431b
BE
2551
2552fi
2553fi
2554CC=$ac_cv_prog_CC
2555if test -n "$CC"; then
81ecdfbb
RW
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557$as_echo "$CC" >&6; }
6bf9431b 2558else
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
6bf9431b
BE
2561fi
2562
81ecdfbb 2563
6bf9431b
BE
2564 test -n "$CC" && break
2565 done
2566fi
2567if test -z "$CC"; then
2568 ac_ct_CC=$CC
81ecdfbb 2569 for ac_prog in cl.exe
6bf9431b
BE
2570do
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
6bf9431b
BE
2577else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2588 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2590 break 2
2591 fi
2592done
81ecdfbb
RW
2593 done
2594IFS=$as_save_IFS
6bf9431b
BE
2595
2596fi
2597fi
2598ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2602else
81ecdfbb
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
6bf9431b
BE
2605fi
2606
81ecdfbb 2607
6bf9431b
BE
2608 test -n "$ac_ct_CC" && break
2609done
2610
81ecdfbb
RW
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615yes:)
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618ac_tool_warned=yes ;;
2619esac
2620 CC=$ac_ct_CC
2621 fi
6bf9431b
BE
2622fi
2623
2624fi
2625
2626
81ecdfbb
RW
2627test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error "no acceptable C compiler found in \$PATH
2630See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2631
2632# Provide some information about the compiler.
81ecdfbb
RW
2633$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2634set X $ac_compile
2635ac_compiler=$2
2636for ac_option in --version -v -V -qversion; do
2637 { { ac_try="$ac_compiler $ac_option >&5"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643$as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2645 ac_status=$?
81ecdfbb
RW
2646 if test -s conftest.err; then
2647 sed '10a\
2648... rest of stderr output deleted ...
2649 10q' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 rm -f conftest.er1 conftest.err
2652 fi
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }
2655done
6bf9431b 2656
81ecdfbb 2657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2658/* end confdefs.h. */
2659
2660int
2661main ()
2662{
2663
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668ac_clean_files_save=$ac_clean_files
81ecdfbb 2669ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2670# Try to create an executable without -o first, disregard a.out.
2671# It will help us diagnose broken compilers, and finding out an intuition
2672# of exeext.
81ecdfbb
RW
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2674$as_echo_n "checking for C compiler default output file name... " >&6; }
2675ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2676
2677# The possible output files:
2678ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2679
2680ac_rmfiles=
2681for ac_file in $ac_files
2682do
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2685 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2686 esac
2687done
2688rm -f $ac_rmfiles
2689
2690if { { ac_try="$ac_link_default"
2691case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694esac
2695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696$as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_link_default") 2>&5
2698 ac_status=$?
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }; then :
2701 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2702# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2703# in a Makefile. We should not override ac_cv_exeext if it was cached,
2704# so that the user can short-circuit this test for compilers unknown to
2705# Autoconf.
2706for ac_file in $ac_files ''
6bf9431b
BE
2707do
2708 test -f "$ac_file" || continue
2709 case $ac_file in
81ecdfbb 2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2711 ;;
2712 [ab].out )
2713 # We found the default executable, but exeext='' is most
2714 # certainly right.
2715 break;;
2716 *.* )
81ecdfbb
RW
2717 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2718 then :; else
2719 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720 fi
2721 # We set ac_cv_exeext here because the later test for it is not
2722 # safe: cross compilers may not add the suffix if given an `-o'
2723 # argument, so we may need to know it at that point already.
2724 # Even if this section looks crufty: it has the advantage of
2725 # actually working.
6bf9431b
BE
2726 break;;
2727 * )
2728 break;;
2729 esac
2730done
81ecdfbb
RW
2731test "$ac_cv_exeext" = no && ac_cv_exeext=
2732
6bf9431b 2733else
81ecdfbb
RW
2734 ac_file=''
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2737$as_echo "$ac_file" >&6; }
2738if test -z "$ac_file"; then :
2739 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
81ecdfbb
RW
2742{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744{ as_fn_set_status 77
2745as_fn_error "C compiler cannot create executables
2746See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2747fi
6bf9431b 2748ac_exeext=$ac_cv_exeext
6bf9431b 2749
81ecdfbb 2750# Check that the compiler produces executables we can run. If not, either
6bf9431b 2751# the compiler is broken, or we cross compile.
81ecdfbb
RW
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2754# If not cross compiling, check that we can run a simple program.
2755if test "$cross_compiling" != yes; then
2756 if { ac_try='./$ac_file'
81ecdfbb
RW
2757 { { case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762$as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_try") 2>&5
6bf9431b 2764 ac_status=$?
81ecdfbb
RW
2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2766 test $ac_status = 0; }; }; then
6bf9431b
BE
2767 cross_compiling=no
2768 else
2769 if test "$cross_compiling" = maybe; then
2770 cross_compiling=yes
2771 else
81ecdfbb
RW
2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774as_fn_error "cannot run C compiled programs.
6bf9431b 2775If you meant to cross compile, use \`--host'.
81ecdfbb 2776See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2777 fi
2778 fi
2779fi
81ecdfbb
RW
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781$as_echo "yes" >&6; }
6bf9431b 2782
81ecdfbb 2783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2784ac_clean_files=$ac_clean_files_save
81ecdfbb 2785# Check that the compiler produces executables we can run. If not, either
6bf9431b 2786# the compiler is broken, or we cross compile.
81ecdfbb
RW
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788$as_echo_n "checking whether we are cross compiling... " >&6; }
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2790$as_echo "$cross_compiling" >&6; }
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2793$as_echo_n "checking for suffix of executables... " >&6; }
2794if { { ac_try="$ac_link"
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link") 2>&5
6bf9431b 2802 ac_status=$?
81ecdfbb
RW
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
6bf9431b
BE
2805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2806# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2807# work properly (i.e., refer to `conftest.exe'), while it won't with
2808# `rm'.
2809for ac_file in conftest.exe conftest conftest.*; do
2810 test -f "$ac_file" || continue
2811 case $ac_file in
81ecdfbb 2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2814 break;;
2815 * ) break;;
2816 esac
2817done
2818else
81ecdfbb
RW
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821as_fn_error "cannot compute suffix of executables: cannot compile and link
2822See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2823fi
6bf9431b 2824rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2826$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2827
2828rm -f conftest.$ac_ext
2829EXEEXT=$ac_cv_exeext
2830ac_exeext=$EXEEXT
81ecdfbb
RW
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2832$as_echo_n "checking for suffix of object files... " >&6; }
2833if test "${ac_cv_objext+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
6bf9431b 2835else
81ecdfbb 2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2837/* end confdefs.h. */
2838
2839int
2840main ()
2841{
2842
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847rm -f conftest.o conftest.obj
81ecdfbb
RW
2848if { { ac_try="$ac_compile"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compile") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 for ac_file in conftest.o conftest.obj conftest.*; do
2860 test -f "$ac_file" || continue;
6bf9431b 2861 case $ac_file in
81ecdfbb 2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2864 break;;
2865 esac
2866done
2867else
81ecdfbb 2868 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
81ecdfbb
RW
2871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error "cannot compute suffix of object files: cannot compile
2874See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2875fi
6bf9431b
BE
2876rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877fi
81ecdfbb
RW
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
2880OBJEXT=$ac_cv_objext
2881ac_objext=$OBJEXT
81ecdfbb
RW
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2884if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
6bf9431b 2886else
81ecdfbb 2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2888/* end confdefs.h. */
2889
2890int
2891main ()
2892{
2893#ifndef __GNUC__
2894 choke me
2895#endif
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
81ecdfbb 2901if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2902 ac_compiler_gnu=yes
2903else
81ecdfbb 2904 ac_compiler_gnu=no
6bf9431b 2905fi
81ecdfbb 2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2907ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909fi
81ecdfbb
RW
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912if test $ac_compiler_gnu = yes; then
2913 GCC=yes
2914else
2915 GCC=
2916fi
6bf9431b
BE
2917ac_test_CFLAGS=${CFLAGS+set}
2918ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2920$as_echo_n "checking whether $CC accepts -g... " >&6; }
2921if test "${ac_cv_prog_cc_g+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923else
2924 ac_save_c_werror_flag=$ac_c_werror_flag
2925 ac_c_werror_flag=yes
2926 ac_cv_prog_cc_g=no
2927 CFLAGS="-g"
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
81ecdfbb 2939if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2940 ac_cv_prog_cc_g=yes
2941else
81ecdfbb
RW
2942 CFLAGS=""
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945
2946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955
2956else
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2958 CFLAGS="-g"
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
6bf9431b 2965
81ecdfbb
RW
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_cv_prog_cc_g=yes
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2974fi
81ecdfbb 2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2976fi
81ecdfbb
RW
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
2982if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996fi
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2999if test "${ac_cv_prog_cc_c89+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
6bf9431b 3001else
81ecdfbb 3002 ac_cv_prog_cc_c89=no
6bf9431b 3003ac_save_CC=$CC
81ecdfbb 3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3005/* end confdefs.h. */
3006#include <stdarg.h>
3007#include <stdio.h>
3008#include <sys/types.h>
3009#include <sys/stat.h>
3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014 char **p;
3015 int i;
3016{
3017 return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027}
3028
3029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3032 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3035 that's true only with -std. */
6bf9431b
BE
3036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037
81ecdfbb
RW
3038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040#define FOO(x) 'x'
3041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
6bf9431b
BE
3043int test (int i, double x);
3044struct s1 {int (*f) (int a);};
3045struct s2 {int (*f) (double a);};
3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047int argc;
3048char **argv;
3049int
3050main ()
3051{
3052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055}
3056_ACEOF
81ecdfbb
RW
3057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3059do
3060 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3063fi
81ecdfbb
RW
3064rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3066done
81ecdfbb 3067rm -f conftest.$ac_ext
6bf9431b
BE
3068CC=$ac_save_CC
3069
3070fi
81ecdfbb
RW
3071# AC_CACHE_VAL
3072case "x$ac_cv_prog_cc_c89" in
3073 x)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075$as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078$as_echo "unsupported" >&6; } ;;
6bf9431b 3079 *)
81ecdfbb
RW
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3083esac
81ecdfbb 3084if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3085
0ab6f085
AM
3086fi
3087
6bf9431b
BE
3088ac_ext=c
3089ac_cpp='$CPP $CPPFLAGS'
3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
3094
81ecdfbb
RW
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3096$as_echo_n "checking for library containing strerror... " >&6; }
3097if test "${ac_cv_search_strerror+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
6bf9431b
BE
3099else
3100 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3102/* end confdefs.h. */
3103
81ecdfbb
RW
3104/* Override any GCC internal prototype to avoid an error.
3105 Use char because int might match the return type of a GCC
3106 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3107#ifdef __cplusplus
3108extern "C"
3109#endif
6bf9431b
BE
3110char strerror ();
3111int
3112main ()
3113{
81ecdfbb 3114return strerror ();
6bf9431b
BE
3115 ;
3116 return 0;
3117}
3118_ACEOF
81ecdfbb
RW
3119for ac_lib in '' cposix; do
3120 if test -z "$ac_lib"; then
3121 ac_res="none required"
3122 else
3123 ac_res=-l$ac_lib
0ab6f085 3124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3125 fi
3126 if ac_fn_c_try_link "$LINENO"; then :
3127 ac_cv_search_strerror=$ac_res
3128fi
3129rm -f core conftest.err conftest.$ac_objext \
3130 conftest$ac_exeext
3131 if test "${ac_cv_search_strerror+set}" = set; then :
3132 break
3133fi
3134done
3135if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3136
1b9750d6 3137else
81ecdfbb 3138 ac_cv_search_strerror=no
6bf9431b 3139fi
81ecdfbb 3140rm conftest.$ac_ext
6bf9431b
BE
3141LIBS=$ac_func_search_save_LIBS
3142fi
81ecdfbb
RW
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3144$as_echo "$ac_cv_search_strerror" >&6; }
3145ac_res=$ac_cv_search_strerror
3146if test "$ac_res" != no; then :
3147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3148
3149fi
3150
3151
81ecdfbb
RW
3152am__api_version='1.11'
3153
6bf9431b
BE
3154# Find a good install program. We prefer a C program (faster),
3155# so one script is as good as another. But avoid the broken or
3156# incompatible versions:
3157# SysV /etc/install, /usr/sbin/install
3158# SunOS /usr/etc/install
3159# IRIX /sbin/install
3160# AIX /bin/install
3161# AmigaOS /C/install, which installs bootblocks on floppy discs
3162# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3163# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3164# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3165# OS/2's system install, which has a completely different semantic
3166# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3167# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3169$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3170if test -z "$INSTALL"; then
81ecdfbb
RW
3171if test "${ac_cv_path_install+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
6bf9431b
BE
3173else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3179 # Account for people who put trailing slashes in PATH elements.
3180case $as_dir/ in #((
3181 ./ | .// | /[cC]/* | \
6bf9431b 3182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3183 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3184 /usr/ucb/* ) ;;
3185 *)
3186 # OSF1 and SCO ODT 3.0 have their own names for install.
3187 # Don't use installbsd from OSF since it installs stuff as root
3188 # by default.
3189 for ac_prog in ginstall scoinst install; do
3190 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3191 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3192 if test $ac_prog = install &&
3193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3194 # AIX install. It has an incompatible calling convention.
3195 :
3196 elif test $ac_prog = install &&
3197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3198 # program-specific install script used by HP pwplus--don't use.
3199 :
252b5132 3200 else
58c85be7
RW
3201 rm -rf conftest.one conftest.two conftest.dir
3202 echo one > conftest.one
3203 echo two > conftest.two
3204 mkdir conftest.dir
3205 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3206 test -s conftest.one && test -s conftest.two &&
3207 test -s conftest.dir/conftest.one &&
3208 test -s conftest.dir/conftest.two
3209 then
3210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3211 break 3
3212 fi
252b5132
RH
3213 fi
3214 fi
3215 done
6bf9431b
BE
3216 done
3217 ;;
3218esac
81ecdfbb
RW
3219
3220 done
3221IFS=$as_save_IFS
6bf9431b 3222
58c85be7 3223rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3224
3225fi
3226 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3227 INSTALL=$ac_cv_path_install
252b5132 3228 else
58c85be7
RW
3229 # As a last resort, use the slow shell script. Don't cache a
3230 # value for INSTALL within a source directory, because that will
252b5132 3231 # break other packages using the cache if that directory is
58c85be7 3232 # removed, or if the value is a relative name.
6bf9431b 3233 INSTALL=$ac_install_sh
252b5132
RH
3234 fi
3235fi
81ecdfbb
RW
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3237$as_echo "$INSTALL" >&6; }
252b5132
RH
3238
3239# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3240# It thinks the first close brace ends the variable substitution.
3241test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3242
6bf9431b 3243test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3244
3245test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3246
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3248$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3249# Just in case
3250sleep 1
6bf9431b 3251echo timestamp > conftest.file
81ecdfbb
RW
3252# Reject unsafe characters in $srcdir or the absolute working directory
3253# name. Accept space and tab only in the latter.
3254am_lf='
3255'
3256case `pwd` in
3257 *[\\\"\#\$\&\'\`$am_lf]*)
3258 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3259esac
3260case $srcdir in
3261 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3262 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3263esac
3264
252b5132
RH
3265# Do `set' in a subshell so we don't clobber the current shell's
3266# arguments. Must try -L first in case configure is actually a
3267# symlink; some systems play weird games with the mod time of symlinks
3268# (eg FreeBSD returns the mod time of the symlink's containing
3269# directory).
3270if (
81ecdfbb 3271 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3272 if test "$*" = "X"; then
3273 # -L didn't work.
81ecdfbb 3274 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3275 fi
6bf9431b
BE
3276 rm -f conftest.file
3277 if test "$*" != "X $srcdir/configure conftest.file" \
3278 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3279
3280 # If neither matched, then we have a broken ls. This can happen
3281 # if, for instance, CONFIG_SHELL is bash and it inherits a
3282 # broken ls alias from the environment. This has actually
3283 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3284 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3285alias in your environment" "$LINENO" 5
252b5132
RH
3286 fi
3287
6bf9431b 3288 test "$2" = conftest.file
252b5132
RH
3289 )
3290then
3291 # Ok.
3292 :
3293else
81ecdfbb
RW
3294 as_fn_error "newly created file is older than distributed files!
3295Check your system clock" "$LINENO" 5
252b5132 3296fi
81ecdfbb
RW
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
252b5132 3299test "$program_prefix" != NONE &&
81ecdfbb 3300 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3301# Use a double $ so make ignores it.
3302test "$program_suffix" != NONE &&
81ecdfbb
RW
3303 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3304# Double any \ or $.
6bf9431b 3305# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3306ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3307program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3308
3309# expand $ac_aux_dir to an absolute path
3310am_aux_dir=`cd $ac_aux_dir && pwd`
3311
81ecdfbb
RW
3312if test x"${MISSING+set}" != xset; then
3313 case $am_aux_dir in
3314 *\ * | *\ *)
3315 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3316 *)
3317 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3318 esac
3319fi
6bf9431b
BE
3320# Use eval to expand $SHELL
3321if eval "$MISSING --run true"; then
3322 am_missing_run="$MISSING --run "
3323else
3324 am_missing_run=
81ecdfbb
RW
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3326$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3327fi
252b5132 3328
81ecdfbb
RW
3329if test x"${install_sh}" != xset; then
3330 case $am_aux_dir in
3331 *\ * | *\ *)
3332 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3333 *)
3334 install_sh="\${SHELL} $am_aux_dir/install-sh"
3335 esac
3336fi
3337
3338# Installed binaries are usually stripped using `strip' when the user
3339# run `make install-strip'. However `strip' might not be the right
3340# tool to use in cross-compilation environments, therefore Automake
3341# will honor the `STRIP' environment variable to overrule this program.
3342if test "$cross_compiling" != no; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3345set dummy ${ac_tool_prefix}strip; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if test "${ac_cv_prog_STRIP+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
6bf9431b 3350else
81ecdfbb
RW
3351 if test -n "$STRIP"; then
3352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3363 break 2
3364 fi
3365done
81ecdfbb
RW
3366 done
3367IFS=$as_save_IFS
6bf9431b
BE
3368
3369fi
3370fi
81ecdfbb
RW
3371STRIP=$ac_cv_prog_STRIP
3372if test -n "$STRIP"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3374$as_echo "$STRIP" >&6; }
6bf9431b 3375else
81ecdfbb
RW
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
6bf9431b
BE
3378fi
3379
252b5132 3380
81ecdfbb
RW
3381fi
3382if test -z "$ac_cv_prog_STRIP"; then
3383 ac_ct_STRIP=$STRIP
3384 # Extract the first word of "strip", so it can be a program name with args.
3385set dummy strip; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
3388if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
252b5132 3390else
81ecdfbb
RW
3391 if test -n "$ac_ct_STRIP"; then
3392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3393else
81ecdfbb
RW
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_STRIP="strip"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406 done
3407IFS=$as_save_IFS
3408
0ab6f085 3409fi
252b5132 3410fi
81ecdfbb
RW
3411ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3412if test -n "$ac_ct_STRIP"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3414$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3415else
81ecdfbb
RW
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
252b5132
RH
3418fi
3419
81ecdfbb
RW
3420 if test "x$ac_ct_STRIP" = x; then
3421 STRIP=":"
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429 STRIP=$ac_ct_STRIP
3430 fi
3431else
3432 STRIP="$ac_cv_prog_STRIP"
3433fi
3434
3435fi
3436INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3439$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3440if test -z "$MKDIR_P"; then
3441 if test "${ac_cv_path_mkdir+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_prog in mkdir gmkdir; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3452 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3453 'mkdir (GNU coreutils) '* | \
3454 'mkdir (coreutils) '* | \
3455 'mkdir (fileutils) '4.1*)
3456 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3457 break 3;;
3458 esac
3459 done
3460 done
3461 done
3462IFS=$as_save_IFS
3463
3464fi
3465
3466 if test "${ac_cv_path_mkdir+set}" = set; then
3467 MKDIR_P="$ac_cv_path_mkdir -p"
3468 else
3469 # As a last resort, use the slow shell script. Don't cache a
3470 # value for MKDIR_P within a source directory, because that will
3471 # break other packages using the cache if that directory is
3472 # removed, or if the value is a relative name.
3473 test -d ./--version && rmdir ./--version
3474 MKDIR_P="$ac_install_sh -d"
3475 fi
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3478$as_echo "$MKDIR_P" >&6; }
3479
3480mkdir_p="$MKDIR_P"
3481case $mkdir_p in
3482 [\\/$]* | ?:[\\/]*) ;;
3483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3484esac
3485
3486for ac_prog in gawk mawk nawk awk
3487do
3488 # Extract the first word of "$ac_prog", so it can be a program name with args.
3489set dummy $ac_prog; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if test "${ac_cv_prog_AWK+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 if test -n "$AWK"; then
3496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_AWK="$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509done
3510 done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515AWK=$ac_cv_prog_AWK
3516if test -n "$AWK"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3518$as_echo "$AWK" >&6; }
3519else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525 test -n "$AWK" && break
3526done
3527
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3529$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3530set x ${MAKE-make}
3531ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3532if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3533 $as_echo_n "(cached) " >&6
3534else
3535 cat >conftest.make <<\_ACEOF
3536SHELL = /bin/sh
3537all:
3538 @echo '@@@%%%=$(MAKE)=@@@%%%'
3539_ACEOF
3540# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3541case `${MAKE-make} -f conftest.make 2>/dev/null` in
3542 *@@@%%%=?*=@@@%%%*)
3543 eval ac_cv_prog_make_${ac_make}_set=yes;;
3544 *)
3545 eval ac_cv_prog_make_${ac_make}_set=no;;
3546esac
3547rm -f conftest.make
3548fi
3549if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551$as_echo "yes" >&6; }
3552 SET_MAKE=
3553else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556 SET_MAKE="MAKE=${MAKE-make}"
3557fi
3558
3559rm -rf .tst 2>/dev/null
6bf9431b
BE
3560mkdir .tst 2>/dev/null
3561if test -d .tst; then
3562 am__leading_dot=.
3563else
3564 am__leading_dot=_
3565fi
3566rmdir .tst 2>/dev/null
3567
3568DEPDIR="${am__leading_dot}deps"
3569
81ecdfbb 3570ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3571
3572
3573am_make=${MAKE-make}
3574cat > confinc << 'END'
3575am__doit:
81ecdfbb 3576 @echo this is the am__doit target
6bf9431b
BE
3577.PHONY: am__doit
3578END
3579# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3581$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3582am__include="#"
3583am__quote=
3584_am_result=none
3585# First try GNU make style include.
3586echo "include confinc" > confmf
81ecdfbb
RW
3587# Ignore all kinds of additional output from `make'.
3588case `$am_make -s -f confmf 2> /dev/null` in #(
3589*the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594esac
6bf9431b
BE
3595# Now try BSD make style include.
3596if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
81ecdfbb
RW
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
6bf9431b
BE
3605fi
3606
252b5132 3607
81ecdfbb
RW
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3609$as_echo "$_am_result" >&6; }
6bf9431b 3610rm -f confinc confmf
252b5132 3611
81ecdfbb
RW
3612# Check whether --enable-dependency-tracking was given.
3613if test "${enable_dependency_tracking+set}" = set; then :
3614 enableval=$enable_dependency_tracking;
3615fi
252b5132 3616
6bf9431b
BE
3617if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
252b5132 3620fi
81ecdfbb 3621 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627fi
3628
3629
81ecdfbb
RW
3630if test "`cd $srcdir && pwd`" != "`pwd`"; then
3631 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3632 # is not polluted with repeated "-I."
3633 am__isrc=' -I$(srcdir)'
3634 # test to see if srcdir already configured
3635 if test -f $srcdir/config.status; then
3636 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3637 fi
6bf9431b
BE
3638fi
3639
3640# test whether we have cygpath
3641if test -z "$CYGPATH_W"; then
3642 if (cygpath --version) >/dev/null 2>/dev/null; then
3643 CYGPATH_W='cygpath -w'
3644 else
3645 CYGPATH_W=echo
3646 fi
3647fi
3648
3649
3650# Define the identity of the package.
2e98a7bd 3651 PACKAGE='gprof'
d8bd95ef 3652 VERSION='2.26.51'
6bf9431b
BE
3653
3654
3655cat >>confdefs.h <<_ACEOF
252b5132 3656#define PACKAGE "$PACKAGE"
6bf9431b
BE
3657_ACEOF
3658
252b5132 3659
6bf9431b 3660cat >>confdefs.h <<_ACEOF
252b5132 3661#define VERSION "$VERSION"
6bf9431b
BE
3662_ACEOF
3663
3664# Some tools Automake needs.
3665
3666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3667
3668
3669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3670
3671
3672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3673
3674
3675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3676
3677
3678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3679
6bf9431b
BE
3680# We need awk for the "check" target. The system "awk" is bad on
3681# some platforms.
df76639a
AM
3682# Always define AMTAR for backward compatibility.
3683
3684AMTAR=${AMTAR-"${am_missing_run}tar"}
3685
3686am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3687
3688
6bf9431b
BE
3689
3690
3691depcc="$CC" am_compiler_list=
3692
81ecdfbb
RW
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694$as_echo_n "checking dependency style of $depcc... " >&6; }
3695if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
6bf9431b
BE
3697else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3703 # in D'.
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
81ecdfbb
RW
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
6bf9431b
BE
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
81ecdfbb
RW
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
6bf9431b 3749 case $depmode in
81ecdfbb
RW
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
6bf9431b
BE
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
81ecdfbb
RW
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
6bf9431b
BE
3770 none) break ;;
3771 esac
6bf9431b 3772 if depmode=$depmode \
81ecdfbb 3773 source=sub/conftest.c object=$am__obj \
6bf9431b 3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3776 >/dev/null 2>conftest.err &&
81ecdfbb 3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
252b5132 3798else
6bf9431b 3799 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3800fi
3801
252b5132 3802fi
81ecdfbb
RW
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3805CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
81ecdfbb 3807 if
6bf9431b
BE
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
252b5132 3812else
6bf9431b
BE
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
252b5132
RH
3815fi
3816
3817
3818
6bf9431b 3819
81ecdfbb 3820ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3821
3822
ce2cded5
L
3823ac_ext=c
3824ac_cpp='$CPP $CPPFLAGS'
3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832$as_echo_n "checking for $ac_word... " >&6; }
3833if test "${ac_cv_prog_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
1b9750d6 3835else
ce2cded5
L
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3838else
ce2cded5
L
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3848 break 2
3849 fi
3850done
81ecdfbb
RW
3851 done
3852IFS=$as_save_IFS
0ab6f085 3853
ce2cded5
L
3854fi
3855fi
3856CC=$ac_cv_prog_CC
3857if test -n "$CC"; then
81ecdfbb
RW
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859$as_echo "$CC" >&6; }
0ab6f085 3860else
81ecdfbb
RW
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862$as_echo "no" >&6; }
ce2cded5 3863fi
d7040cdb 3864
81ecdfbb 3865
ce2cded5
L
3866fi
3867if test -z "$ac_cv_prog_CC"; then
3868 ac_ct_CC=$CC
3869 # Extract the first word of "gcc", so it can be a program name with args.
3870set dummy gcc; ac_word=$2
81ecdfbb
RW
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
1b9750d6 3875else
ce2cded5
L
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3878else
d7040cdb 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3880for as_dir in $PATH
d7040cdb
SE
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3886 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3888 break 2
0ab6f085 3889 fi
ce2cded5 3890done
81ecdfbb
RW
3891 done
3892IFS=$as_save_IFS
d7040cdb 3893
ce2cded5
L
3894fi
3895fi
3896ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3900else
81ecdfbb
RW
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
1b9750d6 3903fi
d7040cdb 3904
81ecdfbb
RW
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909yes:)
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912ac_tool_warned=yes ;;
3913esac
3914 CC=$ac_ct_CC
3915 fi
ce2cded5
L
3916else
3917 CC="$ac_cv_prog_CC"
3918fi
d7040cdb 3919
ce2cded5 3920if test -z "$CC"; then
81ecdfbb
RW
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3923set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if test "${ac_cv_prog_CC+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
d7040cdb 3928else
ce2cded5
L
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3931else
ce2cded5
L
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3939 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3941 break 2
3942 fi
3943done
81ecdfbb
RW
3944 done
3945IFS=$as_save_IFS
d7040cdb 3946
252b5132
RH
3947fi
3948fi
ce2cded5
L
3949CC=$ac_cv_prog_CC
3950if test -n "$CC"; then
81ecdfbb
RW
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952$as_echo "$CC" >&6; }
ce2cded5 3953else
81ecdfbb
RW
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
d7040cdb 3956fi
6be7c12c 3957
ce2cded5 3958
81ecdfbb 3959 fi
ce2cded5
L
3960fi
3961if test -z "$CC"; then
3962 # Extract the first word of "cc", so it can be a program name with args.
3963set dummy cc; ac_word=$2
81ecdfbb
RW
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
ce2cded5
L
3968else
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3971else
3972 ac_prog_rejected=no
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
3980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3981 ac_prog_rejected=yes
3982 continue
3983 fi
3984 ac_cv_prog_CC="cc"
81ecdfbb 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3986 break 2
3987 fi
3988done
81ecdfbb
RW
3989 done
3990IFS=$as_save_IFS
ce2cded5
L
3991
3992if test $ac_prog_rejected = yes; then
3993 # We found a bogon in the path, so make sure we never use it.
3994 set dummy $ac_cv_prog_CC
3995 shift
3996 if test $# != 0; then
3997 # We chose a different compiler from the bogus one.
3998 # However, it has the same basename, so the bogon will be chosen
3999 # first if we set CC to just the basename; use the full file name.
4000 shift
4001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4002 fi
4003fi
4004fi
4005fi
4006CC=$ac_cv_prog_CC
4007if test -n "$CC"; then
81ecdfbb
RW
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009$as_echo "$CC" >&6; }
ce2cded5 4010else
81ecdfbb
RW
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
ce2cded5
L
4013fi
4014
81ecdfbb 4015
ce2cded5
L
4016fi
4017if test -z "$CC"; then
4018 if test -n "$ac_tool_prefix"; then
81ecdfbb 4019 for ac_prog in cl.exe
ce2cded5
L
4020 do
4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
4025if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
ce2cded5
L
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4040 break 2
4041 fi
4042done
81ecdfbb
RW
4043 done
4044IFS=$as_save_IFS
ce2cded5
L
4045
4046fi
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
81ecdfbb
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051$as_echo "$CC" >&6; }
ce2cded5 4052else
81ecdfbb
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
ce2cded5
L
4055fi
4056
81ecdfbb 4057
ce2cded5 4058 test -n "$CC" && break
d7040cdb
SE
4059 done
4060fi
ce2cded5
L
4061if test -z "$CC"; then
4062 ac_ct_CC=$CC
81ecdfbb 4063 for ac_prog in cl.exe
d7040cdb
SE
4064do
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
d7040cdb 4071else
ce2cded5
L
4072 if test -n "$ac_ct_CC"; then
4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4082 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4084 break 2
ac48eca1 4085 fi
d7040cdb 4086done
81ecdfbb
RW
4087 done
4088IFS=$as_save_IFS
ac48eca1 4089
d7040cdb
SE
4090fi
4091fi
ce2cded5
L
4092ac_ct_CC=$ac_cv_prog_ac_ct_CC
4093if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4095$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4096else
81ecdfbb
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
d7040cdb 4099fi
ac48eca1 4100
81ecdfbb 4101
ce2cded5 4102 test -n "$ac_ct_CC" && break
d7040cdb 4103done
ac48eca1 4104
81ecdfbb
RW
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109yes:)
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112ac_tool_warned=yes ;;
4113esac
4114 CC=$ac_ct_CC
4115 fi
d7040cdb 4116fi
ac48eca1 4117
d7040cdb 4118fi
ac48eca1 4119
ac48eca1 4120
81ecdfbb
RW
4121test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123as_fn_error "no acceptable C compiler found in \$PATH
4124See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4125
ce2cded5 4126# Provide some information about the compiler.
81ecdfbb
RW
4127$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4128set X $ac_compile
4129ac_compiler=$2
4130for ac_option in --version -v -V -qversion; do
4131 { { ac_try="$ac_compiler $ac_option >&5"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137$as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4139 ac_status=$?
81ecdfbb
RW
4140 if test -s conftest.err; then
4141 sed '10a\
4142... rest of stderr output deleted ...
4143 10q' conftest.err >conftest.er1
4144 cat conftest.er1 >&5
4145 rm -f conftest.er1 conftest.err
4146 fi
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149done
ac48eca1 4150
81ecdfbb
RW
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4152$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4153if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
d7040cdb 4155else
81ecdfbb 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4157/* end confdefs.h. */
ac48eca1 4158
ce2cded5
L
4159int
4160main ()
4161{
4162#ifndef __GNUC__
4163 choke me
4164#endif
4165
4166 ;
4167 return 0;
4168}
4169_ACEOF
81ecdfbb 4170if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4171 ac_compiler_gnu=yes
d7040cdb 4172else
81ecdfbb 4173 ac_compiler_gnu=no
d7040cdb 4174fi
81ecdfbb 4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4176ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4177
ce2cded5 4178fi
81ecdfbb
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4181if test $ac_compiler_gnu = yes; then
4182 GCC=yes
4183else
4184 GCC=
4185fi
ce2cded5
L
4186ac_test_CFLAGS=${CFLAGS+set}
4187ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4189$as_echo_n "checking whether $CC accepts -g... " >&6; }
4190if test "${ac_cv_prog_cc_g+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 ac_save_c_werror_flag=$ac_c_werror_flag
4194 ac_c_werror_flag=yes
4195 ac_cv_prog_cc_g=no
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4198/* end confdefs.h. */
d7040cdb 4199
ce2cded5
L
4200int
4201main ()
4202{
d7040cdb 4203
ce2cded5
L
4204 ;
4205 return 0;
4206}
4207_ACEOF
81ecdfbb 4208if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4209 ac_cv_prog_cc_g=yes
4210else
81ecdfbb
RW
4211 CFLAGS=""
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
108a6f8e 4214
81ecdfbb
RW
4215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"; then :
4224
4225else
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4227 CFLAGS="-g"
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230
4231int
4232main ()
4233{
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_g=yes
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250$as_echo "$ac_cv_prog_cc_g" >&6; }
4251if test "$ac_test_CFLAGS" = set; then
4252 CFLAGS=$ac_save_CFLAGS
4253elif test $ac_cv_prog_cc_g = yes; then
4254 if test "$GCC" = yes; then
4255 CFLAGS="-g -O2"
4256 else
ce2cded5
L
4257 CFLAGS="-g"
4258 fi
ac48eca1 4259else
ce2cded5
L
4260 if test "$GCC" = yes; then
4261 CFLAGS="-O2"
4262 else
4263 CFLAGS=
4264 fi
ac48eca1 4265fi
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4268if test "${ac_cv_prog_cc_c89+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
ac48eca1 4270else
81ecdfbb 4271 ac_cv_prog_cc_c89=no
ce2cded5 4272ac_save_CC=$CC
81ecdfbb 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4274/* end confdefs.h. */
4275#include <stdarg.h>
4276#include <stdio.h>
4277#include <sys/types.h>
4278#include <sys/stat.h>
4279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4280struct buf { int x; };
4281FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282static char *e (p, i)
4283 char **p;
4284 int i;
4285{
4286 return p[i];
4287}
4288static char *f (char * (*g) (char **, int), char **p, ...)
4289{
4290 char *s;
4291 va_list v;
4292 va_start (v,p);
4293 s = g (p, va_arg (v,int));
4294 va_end (v);
4295 return s;
4296}
d7040cdb 4297
ce2cded5
L
4298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4299 function prototypes and stuff, but not '\xHH' hex character constants.
4300 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4301 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4303 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4304 that's true only with -std. */
ce2cded5 4305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4306
81ecdfbb
RW
4307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308 inside strings and character constants. */
4309#define FOO(x) 'x'
4310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
ce2cded5
L
4312int test (int i, double x);
4313struct s1 {int (*f) (int a);};
4314struct s2 {int (*f) (double a);};
4315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316int argc;
4317char **argv;
4318int
4319main ()
4320{
4321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4322 ;
4323 return 0;
4324}
4325_ACEOF
81ecdfbb
RW
4326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4328do
4329 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4332fi
81ecdfbb
RW
4333rm -f core conftest.err conftest.$ac_objext
4334 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4335done
81ecdfbb 4336rm -f conftest.$ac_ext
ce2cded5 4337CC=$ac_save_CC
d7040cdb 4338
ce2cded5 4339fi
81ecdfbb
RW
4340# AC_CACHE_VAL
4341case "x$ac_cv_prog_cc_c89" in
4342 x)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344$as_echo "none needed" >&6; } ;;
4345 xno)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347$as_echo "unsupported" >&6; } ;;
ce2cded5 4348 *)
81ecdfbb
RW
4349 CC="$CC $ac_cv_prog_cc_c89"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4352esac
81ecdfbb 4353if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4354
ce2cded5 4355fi
d7040cdb 4356
ce2cded5
L
4357ac_ext=c
4358ac_cpp='$CPP $CPPFLAGS'
4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4362
7357c5b6
AM
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4370# On Suns, sometimes $CPP names a directory.
4371if test -n "$CPP" && test -d "$CPP"; then
4372 CPP=
4373fi
4374if test -z "$CPP"; then
81ecdfbb
RW
4375 if test "${ac_cv_prog_CPP+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
ce2cded5 4377else
7357c5b6
AM
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4380 do
4381 ac_preproc_ok=false
4382for ac_c_preproc_warn_flag in '' yes
ce2cded5 4383do
7357c5b6
AM
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4391/* end confdefs.h. */
4392#ifdef __STDC__
4393# include <limits.h>
4394#else
4395# include <assert.h>
4396#endif
4397 Syntax error
4398_ACEOF
81ecdfbb 4399if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4400
81ecdfbb 4401else
7357c5b6
AM
4402 # Broken: fails on valid input.
4403continue
4404fi
4405rm -f conftest.err conftest.$ac_ext
ce2cded5 4406
81ecdfbb 4407 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4408 # can be detected and how.
81ecdfbb 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4410/* end confdefs.h. */
4411#include <ac_nonexistent.h>
4412_ACEOF
81ecdfbb 4413if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4414 # Broken: success on invalid input.
4415continue
4416else
7357c5b6
AM
4417 # Passes both tests.
4418ac_preproc_ok=:
4419break
4420fi
4421rm -f conftest.err conftest.$ac_ext
6bf9431b 4422
7357c5b6
AM
4423done
4424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425rm -f conftest.err conftest.$ac_ext
81ecdfbb 4426if $ac_preproc_ok; then :
7357c5b6
AM
4427 break
4428fi
6bf9431b 4429
7357c5b6
AM
4430 done
4431 ac_cv_prog_CPP=$CPP
252b5132 4432
7357c5b6
AM
4433fi
4434 CPP=$ac_cv_prog_CPP
4435else
4436 ac_cv_prog_CPP=$CPP
4437fi
81ecdfbb
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439$as_echo "$CPP" >&6; }
7357c5b6
AM
4440ac_preproc_ok=false
4441for ac_c_preproc_warn_flag in '' yes
4442do
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4450/* end confdefs.h. */
4451#ifdef __STDC__
4452# include <limits.h>
4453#else
4454# include <assert.h>
4455#endif
4456 Syntax error
4457_ACEOF
81ecdfbb 4458if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4459
81ecdfbb 4460else
7357c5b6
AM
4461 # Broken: fails on valid input.
4462continue
4463fi
4464rm -f conftest.err conftest.$ac_ext
252b5132 4465
81ecdfbb 4466 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4467 # can be detected and how.
81ecdfbb 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4469/* end confdefs.h. */
4470#include <ac_nonexistent.h>
4471_ACEOF
81ecdfbb 4472if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4473 # Broken: success on invalid input.
4474continue
4475else
7357c5b6
AM
4476 # Passes both tests.
4477ac_preproc_ok=:
4478break
4479fi
4480rm -f conftest.err conftest.$ac_ext
252b5132 4481
7357c5b6
AM
4482done
4483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4485if $ac_preproc_ok; then :
4486
7357c5b6 4487else
81ecdfbb
RW
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490as_fn_error "C preprocessor \"$CPP\" fails sanity check
4491See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4492fi
6bf9431b 4493
7357c5b6
AM
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4499
252b5132 4500
81ecdfbb
RW
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4502$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4503if test "${ac_cv_path_GREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
ce2cded5 4505else
81ecdfbb
RW
4506 if test -z "$GREP"; then
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in grep ggrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4518# Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520case `"$ac_path_GREP" --version 2>&1` in
4521*GNU*)
4522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523*)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP="$ac_path_GREP"
4538 ac_path_GREP_max=$ac_count
ce2cded5 4539 fi
81ecdfbb
RW
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546 $ac_path_GREP_found && break 3
4547 done
4548 done
4549 done
4550IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_GREP"; then
4552 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554else
4555 ac_cv_path_GREP=$GREP
4556fi
4557
ce2cded5 4558fi
81ecdfbb
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4560$as_echo "$ac_cv_path_GREP" >&6; }
4561 GREP="$ac_cv_path_GREP"
ce2cded5 4562
6bf9431b 4563
81ecdfbb
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4565$as_echo_n "checking for egrep... " >&6; }
4566if test "${ac_cv_path_EGREP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
7357c5b6 4568else
81ecdfbb
RW
4569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570 then ac_cv_path_EGREP="$GREP -E"
4571 else
4572 if test -z "$EGREP"; then
4573 ac_path_EGREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in egrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4583 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4584# Check for GNU ac_path_EGREP and select it if it is found.
4585 # Check for GNU $ac_path_EGREP
4586case `"$ac_path_EGREP" --version 2>&1` in
4587*GNU*)
4588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589*)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'EGREP' >> "conftest.nl"
4598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_EGREP="$ac_path_EGREP"
4604 ac_path_EGREP_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610esac
4611
4612 $ac_path_EGREP_found && break 3
4613 done
4614 done
4615 done
4616IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_EGREP"; then
4618 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 fi
4620else
4621 ac_cv_path_EGREP=$EGREP
4622fi
4623
4624 fi
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4627$as_echo "$ac_cv_path_EGREP" >&6; }
4628 EGREP="$ac_cv_path_EGREP"
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4632$as_echo_n "checking for ANSI C header files... " >&6; }
4633if test "${ac_cv_header_stdc+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4637/* end confdefs.h. */
4638#include <stdlib.h>
4639#include <stdarg.h>
4640#include <string.h>
4641#include <float.h>
4642
4643int
4644main ()
4645{
4646
4647 ;
4648 return 0;
4649}
4650_ACEOF
81ecdfbb 4651if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4652 ac_cv_header_stdc=yes
4653else
81ecdfbb 4654 ac_cv_header_stdc=no
7357c5b6 4655fi
81ecdfbb 4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4657
4658if test $ac_cv_header_stdc = yes; then
4659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4661/* end confdefs.h. */
4662#include <string.h>
4663
4664_ACEOF
4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4666 $EGREP "memchr" >/dev/null 2>&1; then :
4667
7357c5b6
AM
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f conftest*
4672
4673fi
4674
4675if test $ac_cv_header_stdc = yes; then
4676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4678/* end confdefs.h. */
4679#include <stdlib.h>
4680
4681_ACEOF
4682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4683 $EGREP "free" >/dev/null 2>&1; then :
4684
7357c5b6
AM
4685else
4686 ac_cv_header_stdc=no
4687fi
4688rm -f conftest*
4689
4690fi
4691
4692if test $ac_cv_header_stdc = yes; then
4693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4694 if test "$cross_compiling" = yes; then :
7357c5b6 4695 :
ce2cded5 4696else
81ecdfbb 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4698/* end confdefs.h. */
4699#include <ctype.h>
81ecdfbb 4700#include <stdlib.h>
7357c5b6
AM
4701#if ((' ' & 0x0FF) == 0x020)
4702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704#else
4705# define ISLOWER(c) \
4706 (('a' <= (c) && (c) <= 'i') \
4707 || ('j' <= (c) && (c) <= 'r') \
4708 || ('s' <= (c) && (c) <= 'z'))
4709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4710#endif
6bf9431b 4711
7357c5b6
AM
4712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4713int
4714main ()
4715{
4716 int i;
4717 for (i = 0; i < 256; i++)
4718 if (XOR (islower (i), ISLOWER (i))
4719 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4720 return 2;
4721 return 0;
7357c5b6
AM
4722}
4723_ACEOF
81ecdfbb 4724if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4725
81ecdfbb
RW
4726else
4727 ac_cv_header_stdc=no
7357c5b6 4728fi
81ecdfbb
RW
4729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4730 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4731fi
81ecdfbb 4732
7357c5b6
AM
4733fi
4734fi
81ecdfbb
RW
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4736$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4737if test $ac_cv_header_stdc = yes; then
6bf9431b 4738
81ecdfbb 4739$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4740
7357c5b6 4741fi
d7040cdb 4742
7357c5b6 4743# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4746do :
4747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749"
4750eval as_val=\$$as_ac_Header
4751 if test "x$as_val" = x""yes; then :
7357c5b6 4752 cat >>confdefs.h <<_ACEOF
81ecdfbb 4753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4754_ACEOF
d7040cdb 4755
7357c5b6 4756fi
d7040cdb 4757
7357c5b6 4758done
d7040cdb
SE
4759
4760
4761
81ecdfbb
RW
4762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4764 MINIX=yes
4765else
4766 MINIX=
4767fi
d7040cdb
SE
4768
4769
7357c5b6 4770 if test "$MINIX" = yes; then
d7040cdb 4771
81ecdfbb 4772$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4773
d7040cdb 4774
81ecdfbb 4775$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4776
d7040cdb 4777
81ecdfbb 4778$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4779
ce2cded5 4780 fi
d7040cdb 4781
d7040cdb 4782
81ecdfbb
RW
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
ce2cded5 4787else
81ecdfbb 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4789/* end confdefs.h. */
d7040cdb 4790
7357c5b6
AM
4791# define __EXTENSIONS__ 1
4792 $ac_includes_default
4793int
4794main ()
4795{
d7040cdb 4796
7357c5b6
AM
4797 ;
4798 return 0;
4799}
4800_ACEOF
81ecdfbb 4801if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4802 ac_cv_safe_to_define___extensions__=yes
4803else
81ecdfbb 4804 ac_cv_safe_to_define___extensions__=no
ce2cded5 4805fi
81ecdfbb 4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4807fi
81ecdfbb
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4810 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4812
81ecdfbb 4813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4814
81ecdfbb 4815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4816
81ecdfbb 4817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4818
81ecdfbb 4819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4820
d7040cdb 4821
d053aef8 4822
81ecdfbb 4823
da2f07f1 4824
da2f07f1 4825
b214d478
SE
4826case `pwd` in
4827 *\ * | *\ *)
81ecdfbb
RW
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4829$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 4830esac
d7040cdb
SE
4831
4832
6bf9431b 4833
3725885a
RW
4834macro_version='2.2.7a'
4835macro_revision='1.3134'
ce2cded5 4836
d7040cdb 4837
d7040cdb 4838
d7040cdb 4839
d7040cdb 4840
7357c5b6 4841
6bf9431b 4842
6bf9431b 4843
6bf9431b 4844
6bf9431b 4845
d7040cdb 4846
d7040cdb 4847
6bf9431b 4848
b214d478 4849ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4850
3725885a
RW
4851# Backslashify metacharacters that are still active within
4852# double-quoted strings.
4853sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4854
4855# Same as above, but do not quote variable references.
4856double_quote_subst='s/\(["`\\]\)/\\\1/g'
4857
4858# Sed substitution to delay expansion of an escaped shell variable in a
4859# double_quote_subst'ed string.
4860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4861
4862# Sed substitution to delay expansion of an escaped single quote.
4863delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4864
4865# Sed substitution to avoid accidental globbing in evaled expressions
4866no_glob_subst='s/\*/\\\*/g'
4867
4868ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4869ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4870ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4873$as_echo_n "checking how to print strings... " >&6; }
4874# Test print first, because it will be a builtin if present.
4875if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4876 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4877 ECHO='print -r --'
4878elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4879 ECHO='printf %s\n'
4880else
4881 # Use this function as a fallback that always works.
4882 func_fallback_echo ()
4883 {
4884 eval 'cat <<_LTECHO_EOF
4885$1
4886_LTECHO_EOF'
4887 }
4888 ECHO='func_fallback_echo'
4889fi
4890
4891# func_echo_all arg...
4892# Invoke $ECHO with all args, space-separated.
4893func_echo_all ()
4894{
4895 $ECHO ""
4896}
4897
4898case "$ECHO" in
4899 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4900$as_echo "printf" >&6; } ;;
4901 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4902$as_echo "print -r" >&6; } ;;
4903 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4904$as_echo "cat" >&6; } ;;
4905esac
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
81ecdfbb
RW
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4921$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4922if test "${ac_cv_path_SED+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924else
4925 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4926 for ac_i in 1 2 3 4 5 6 7; do
4927 ac_script="$ac_script$as_nl$ac_script"
4928 done
4929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4930 { ac_script=; unset ac_script;}
4931 if test -z "$SED"; then
4932 ac_path_SED_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
81ecdfbb 4939 for ac_prog in sed gsed; do
7357c5b6 4940 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
4941 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4942 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4943# Check for GNU ac_path_SED and select it if it is found.
4944 # Check for GNU $ac_path_SED
4945case `"$ac_path_SED" --version 2>&1` in
4946*GNU*)
4947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4948*)
4949 ac_count=0
4950 $as_echo_n 0123456789 >"conftest.in"
4951 while :
4952 do
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 $as_echo '' >> "conftest.nl"
4957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 as_fn_arith $ac_count + 1 && ac_count=$as_val
4960 if test $ac_count -gt ${ac_path_SED_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_SED="$ac_path_SED"
4963 ac_path_SED_max=$ac_count
4964 fi
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4967 done
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969esac
4970
4971 $ac_path_SED_found && break 3
7357c5b6
AM
4972 done
4973 done
81ecdfbb 4974 done
7357c5b6 4975IFS=$as_save_IFS
81ecdfbb
RW
4976 if test -z "$ac_cv_path_SED"; then
4977 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4978 fi
81ecdfbb
RW
4979else
4980 ac_cv_path_SED=$SED
7357c5b6
AM
4981fi
4982
81ecdfbb
RW
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4985$as_echo "$ac_cv_path_SED" >&6; }
4986 SED="$ac_cv_path_SED"
4987 rm -f conftest.sed
7357c5b6
AM
4988
4989test -z "$SED" && SED=sed
4990Xsed="$SED -e 1s/^X//"
4991
4992
4993
d7040cdb 4994
d7040cdb 4995
d7040cdb 4996
d7040cdb 4997
d7040cdb 4998
d7040cdb 4999
d7040cdb 5000
6bf9431b 5001
81ecdfbb
RW
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003$as_echo_n "checking for fgrep... " >&6; }
5004if test "${ac_cv_path_FGREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
7357c5b6 5006else
81ecdfbb
RW
5007 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008 then ac_cv_path_FGREP="$GREP -F"
5009 else
5010 if test -z "$FGREP"; then
5011 ac_path_FGREP_found=false
5012 # Loop through the user's path and test for each of PROGNAME-LIST
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_prog in fgrep; do
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5022# Check for GNU ac_path_FGREP and select it if it is found.
5023 # Check for GNU $ac_path_FGREP
5024case `"$ac_path_FGREP" --version 2>&1` in
5025*GNU*)
5026 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027*)
5028 ac_count=0
5029 $as_echo_n 0123456789 >"conftest.in"
5030 while :
5031 do
5032 cat "conftest.in" "conftest.in" >"conftest.tmp"
5033 mv "conftest.tmp" "conftest.in"
5034 cp "conftest.in" "conftest.nl"
5035 $as_echo 'FGREP' >> "conftest.nl"
5036 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038 as_fn_arith $ac_count + 1 && ac_count=$as_val
5039 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040 # Best one so far, save it but keep looking for a better one
5041 ac_cv_path_FGREP="$ac_path_FGREP"
5042 ac_path_FGREP_max=$ac_count
7357c5b6 5043 fi
81ecdfbb
RW
5044 # 10*(2^10) chars as input seems more than enough
5045 test $ac_count -gt 10 && break
5046 done
5047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048esac
5049
5050 $ac_path_FGREP_found && break 3
5051 done
5052 done
5053 done
5054IFS=$as_save_IFS
5055 if test -z "$ac_cv_path_FGREP"; then
5056 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057 fi
5058else
5059 ac_cv_path_FGREP=$FGREP
5060fi
5061
5062 fi
6bf9431b 5063fi
81ecdfbb
RW
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065$as_echo "$ac_cv_path_FGREP" >&6; }
5066 FGREP="$ac_cv_path_FGREP"
d7040cdb 5067
6bf9431b 5068
7357c5b6 5069test -z "$GREP" && GREP=grep
252b5132 5070
6bf9431b 5071
252b5132 5072
252b5132 5073
252b5132 5074
252b5132 5075
252b5132
RH
5076
5077
6bf9431b 5078
d7040cdb 5079
6bf9431b 5080
6bf9431b 5081
7357c5b6
AM
5082
5083
5084
5085
5086
5087
5088
81ecdfbb
RW
5089# Check whether --with-gnu-ld was given.
5090if test "${with_gnu_ld+set}" = set; then :
5091 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5092else
5093 with_gnu_ld=no
81ecdfbb
RW
5094fi
5095
7357c5b6
AM
5096ac_prog=ld
5097if test "$GCC" = yes; then
5098 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5101 case $host in
5102 *-*-mingw*)
5103 # gcc leaves a trailing carriage return which upsets mingw
5104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105 *)
5106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107 esac
5108 case $ac_prog in
5109 # Accept absolute paths.
5110 [\\/]* | ?:[\\/]*)
5111 re_direlt='/[^/][^/]*/\.\./'
5112 # Canonicalize the pathname of ld
5113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116 done
5117 test -z "$LD" && LD="$ac_prog"
5118 ;;
5119 "")
5120 # If it fails, then pretend we aren't using GCC.
5121 ac_prog=ld
5122 ;;
5123 *)
5124 # If it is relative, then search for the first ld in PATH.
5125 with_gnu_ld=unknown
5126 ;;
5127 esac
5128elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5131else
81ecdfbb
RW
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5134fi
81ecdfbb
RW
5135if test "${lt_cv_path_LD+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
d7040cdb 5137else
7357c5b6
AM
5138 if test -z "$LD"; then
5139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5140 for ac_dir in $PATH; do
5141 IFS="$lt_save_ifs"
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144 lt_cv_path_LD="$ac_dir/$ac_prog"
5145 # Check to see if the program is GNU ld. I'd rather use --version,
5146 # but apparently some variants of GNU ld only accept -v.
5147 # Break only if it was the GNU/non-GNU ld that we prefer.
5148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149 *GNU* | *'with BFD'*)
5150 test "$with_gnu_ld" != no && break
5151 ;;
5152 *)
5153 test "$with_gnu_ld" != yes && break
5154 ;;
5155 esac
5156 fi
5157 done
5158 IFS="$lt_save_ifs"
6bf9431b 5159else
7357c5b6 5160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5161fi
6bf9431b 5162fi
7357c5b6
AM
5163
5164LD="$lt_cv_path_LD"
5165if test -n "$LD"; then
81ecdfbb
RW
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167$as_echo "$LD" >&6; }
ce2cded5 5168else
81ecdfbb
RW
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
6bf9431b 5171fi
81ecdfbb
RW
5172test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
ce2cded5 5177else
7357c5b6
AM
5178 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179case `$LD -v 2>&1 </dev/null` in
5180*GNU* | *'with BFD'*)
5181 lt_cv_prog_gnu_ld=yes
5182 ;;
5183*)
5184 lt_cv_prog_gnu_ld=no
5185 ;;
5186esac
ce2cded5 5187fi
81ecdfbb
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5190with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5191
5192
5193
20e95c23 5194
d7040cdb
SE
5195
5196
5197
5198
5199
81ecdfbb
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202if test "${lt_cv_path_NM+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
ce2cded5 5204else
7357c5b6
AM
5205 if test -n "$NM"; then
5206 # Let the user override the test.
5207 lt_cv_path_NM="$NM"
ce2cded5 5208else
7357c5b6
AM
5209 lt_nm_to_check="${ac_tool_prefix}nm"
5210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5212 fi
7357c5b6
AM
5213 for lt_tmp_nm in $lt_nm_to_check; do
5214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5216 IFS="$lt_save_ifs"
5217 test -z "$ac_dir" && ac_dir=.
5218 tmp_nm="$ac_dir/$lt_tmp_nm"
5219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5220 # Check to see if the nm accepts a BSD-compat flag.
5221 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5222 # nm: unknown option "B" ignored
5223 # Tru64's nm complains that /dev/null is an invalid object file
5224 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5225 */dev/null* | *'Invalid file or object type'*)
5226 lt_cv_path_NM="$tmp_nm -B"
5227 break
5228 ;;
5229 *)
5230 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5231 */dev/null*)
5232 lt_cv_path_NM="$tmp_nm -p"
5233 break
5234 ;;
5235 *)
5236 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5237 continue # so that we can try to find one that supports BSD flags
5238 ;;
5239 esac
5240 ;;
5241 esac
5242 fi
5243 done
5244 IFS="$lt_save_ifs"
5245 done
5246 : ${lt_cv_path_NM=no}
ce2cded5
L
5247fi
5248fi
81ecdfbb
RW
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5250$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5251if test "$lt_cv_path_NM" != "no"; then
5252 NM="$lt_cv_path_NM"
ce2cded5 5253else
7357c5b6 5254 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5255 if test -n "$DUMPBIN"; then :
5256 # Let the user override the test.
5257 else
5258 if test -n "$ac_tool_prefix"; then
5259 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5260 do
5261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
5265if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
ce2cded5 5267else
7357c5b6
AM
5268 if test -n "$DUMPBIN"; then
5269 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5278 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5280 break 2
5281 fi
5282done
81ecdfbb
RW
5283 done
5284IFS=$as_save_IFS
d7040cdb 5285
ce2cded5
L
5286fi
5287fi
7357c5b6
AM
5288DUMPBIN=$ac_cv_prog_DUMPBIN
5289if test -n "$DUMPBIN"; then
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5291$as_echo "$DUMPBIN" >&6; }
ce2cded5 5292else
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
ce2cded5 5295fi
d7040cdb 5296
81ecdfbb 5297
7357c5b6
AM
5298 test -n "$DUMPBIN" && break
5299 done
ce2cded5 5300fi
7357c5b6
AM
5301if test -z "$DUMPBIN"; then
5302 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5303 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5304do
5305 # Extract the first word of "$ac_prog", so it can be a program name with args.
5306set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308$as_echo_n "checking for $ac_word... " >&6; }
5309if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
ce2cded5 5311else
7357c5b6
AM
5312 if test -n "$ac_ct_DUMPBIN"; then
5313 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5324 break 2
5325 fi
5326done
81ecdfbb
RW
5327 done
5328IFS=$as_save_IFS
d7040cdb 5329
ce2cded5
L
5330fi
5331fi
7357c5b6
AM
5332ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5333if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5335$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5336else
81ecdfbb
RW
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
20e95c23 5339fi
20e95c23 5340
81ecdfbb 5341
7357c5b6 5342 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5343done
5344
81ecdfbb
RW
5345 if test "x$ac_ct_DUMPBIN" = x; then
5346 DUMPBIN=":"
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349yes:)
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352ac_tool_warned=yes ;;
5353esac
5354 DUMPBIN=$ac_ct_DUMPBIN
5355 fi
d7040cdb 5356fi
7357c5b6 5357
3725885a
RW
5358 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5359 *COFF*)
5360 DUMPBIN="$DUMPBIN -symbols"
5361 ;;
5362 *)
5363 DUMPBIN=:
5364 ;;
5365 esac
5366 fi
7357c5b6
AM
5367
5368 if test "$DUMPBIN" != ":"; then
5369 NM="$DUMPBIN"
5370 fi
20e95c23 5371fi
7357c5b6
AM
5372test -z "$NM" && NM=nm
5373
5374
5375
5376
5377
5378
81ecdfbb
RW
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5380$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5381if test "${lt_cv_nm_interface+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
ce2cded5 5383else
7357c5b6
AM
5384 lt_cv_nm_interface="BSD nm"
5385 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5386 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
5387 (eval "$ac_compile" 2>conftest.err)
5388 cat conftest.err >&5
3725885a 5389 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5390 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5391 cat conftest.err >&5
3725885a 5392 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
5393 cat conftest.out >&5
5394 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5395 lt_cv_nm_interface="MS dumpbin"
5396 fi
5397 rm -f conftest*
ce2cded5 5398fi
81ecdfbb
RW
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5400$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5401
81ecdfbb
RW
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5403$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5404LN_S=$as_ln_s
5405if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407$as_echo "yes" >&6; }
ce2cded5 5408else
81ecdfbb
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5410$as_echo "no, using $LN_S" >&6; }
ce2cded5 5411fi
d7040cdb 5412
7357c5b6 5413# find the maximum length of command line arguments
81ecdfbb
RW
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5415$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5416if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
7357c5b6
AM
5418else
5419 i=0
5420 teststring="ABCD"
d7040cdb 5421
7357c5b6
AM
5422 case $build_os in
5423 msdosdjgpp*)
5424 # On DJGPP, this test can blow up pretty badly due to problems in libc
5425 # (any single argument exceeding 2000 bytes causes a buffer overrun
5426 # during glob expansion). Even if it were fixed, the result of this
5427 # check would be larger than it should be.
5428 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5429 ;;
d7040cdb 5430
7357c5b6
AM
5431 gnu*)
5432 # Under GNU Hurd, this test is not required because there is
5433 # no limit to the length of command line arguments.
5434 # Libtool will interpret -1 as no limit whatsoever
5435 lt_cv_sys_max_cmd_len=-1;
5436 ;;
d7040cdb 5437
b214d478 5438 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5439 # On Win9x/ME, this test blows up -- it succeeds, but takes
5440 # about 5 minutes as the teststring grows exponentially.
5441 # Worse, since 9x/ME are not pre-emptively multitasking,
5442 # you end up with a "frozen" computer, even though with patience
5443 # the test eventually succeeds (with a max line length of 256k).
5444 # Instead, let's just punt: use the minimum linelength reported by
5445 # all of the supported platforms: 8192 (on NT/2K/XP).
5446 lt_cv_sys_max_cmd_len=8192;
5447 ;;
d7040cdb 5448
3725885a
RW
5449 mint*)
5450 # On MiNT this can take a long time and run out of memory.
5451 lt_cv_sys_max_cmd_len=8192;
5452 ;;
5453
7357c5b6
AM
5454 amigaos*)
5455 # On AmigaOS with pdksh, this test takes hours, literally.
5456 # So we just punt and use a minimum line length of 8192.
5457 lt_cv_sys_max_cmd_len=8192;
5458 ;;
d7040cdb 5459
7357c5b6
AM
5460 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5461 # This has been around since 386BSD, at least. Likely further.
5462 if test -x /sbin/sysctl; then
5463 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5464 elif test -x /usr/sbin/sysctl; then
5465 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5466 else
5467 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5468 fi
5469 # And add a safety zone
5470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5472 ;;
d7040cdb 5473
7357c5b6
AM
5474 interix*)
5475 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5476 lt_cv_sys_max_cmd_len=196608
5477 ;;
d7040cdb 5478
7357c5b6
AM
5479 osf*)
5480 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5481 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5482 # nice to cause kernel panics so lets avoid the loop below.
5483 # First set a reasonable default.
5484 lt_cv_sys_max_cmd_len=16384
5485 #
5486 if test -x /sbin/sysconfig; then
5487 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5488 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5489 esac
5490 fi
5491 ;;
5492 sco3.2v5*)
5493 lt_cv_sys_max_cmd_len=102400
5494 ;;
5495 sysv5* | sco5v6* | sysv4.2uw2*)
5496 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5497 if test -n "$kargmax"; then
5498 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5499 else
5500 lt_cv_sys_max_cmd_len=32768
5501 fi
ce2cded5
L
5502 ;;
5503 *)
b214d478
SE
5504 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5505 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5508 else
5509 # Make teststring a little bigger before we do anything with it.
5510 # a 1K string should be a reasonable start.
5511 for i in 1 2 3 4 5 6 7 8 ; do
5512 teststring=$teststring$teststring
5513 done
5514 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5515 # If test is not a shell built-in, we'll probably end up computing a
5516 # maximum length that is only half of the actual maximum length, but
5517 # we can't tell.
3725885a
RW
5518 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5519 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
5520 test $i != 17 # 1/2 MB should be enough
5521 do
5522 i=`expr $i + 1`
5523 teststring=$teststring$teststring
5524 done
5525 # Only check the string length outside the loop.
5526 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5527 teststring=
5528 # Add a significant safety factor because C++ compilers can tack on
5529 # massive amounts of additional arguments before passing them to the
5530 # linker. It appears as though 1/2 is a usable value.
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5532 fi
ce2cded5
L
5533 ;;
5534 esac
d7040cdb 5535
7357c5b6 5536fi
d7040cdb 5537
7357c5b6 5538if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5540$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5541else
81ecdfbb
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5543$as_echo "none" >&6; }
7357c5b6
AM
5544fi
5545max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5546
5547
5548
5549
5550
5551
7357c5b6
AM
5552: ${CP="cp -f"}
5553: ${MV="mv -f"}
5554: ${RM="rm -f"}
d7040cdb 5555
81ecdfbb
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5557$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5558# Try some XSI features
5559xsi_shell=no
5560( _lt_dummy="a/b/c"
5561 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5562 = c,a/b,, \
5563 && eval 'test $(( 1 + 1 )) -eq 2 \
5564 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5565 && xsi_shell=yes
81ecdfbb
RW
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5567$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5568
5569
81ecdfbb
RW
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5571$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5572lt_shell_append=no
5573( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5574 >/dev/null 2>&1 \
5575 && lt_shell_append=yes
81ecdfbb
RW
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5577$as_echo "$lt_shell_append" >&6; }
d7040cdb 5578
d7040cdb 5579
7357c5b6
AM
5580if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5581 lt_unset=unset
5582else
5583 lt_unset=false
5584fi
d7040cdb 5585
d7040cdb 5586
d7040cdb 5587
d7040cdb 5588
d7040cdb 5589
7357c5b6
AM
5590# test EBCDIC or ASCII
5591case `echo X|tr X '\101'` in
5592 A) # ASCII based system
5593 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5594 lt_SP2NL='tr \040 \012'
5595 lt_NL2SP='tr \015\012 \040\040'
5596 ;;
5597 *) # EBCDIC based system
5598 lt_SP2NL='tr \100 \n'
5599 lt_NL2SP='tr \r\n \100\100'
5600 ;;
5601esac
d7040cdb 5602
d7040cdb 5603
d7040cdb 5604
d7040cdb 5605
d7040cdb 5606
d7040cdb
SE
5607
5608
5af11cab 5609
d7040cdb 5610
81ecdfbb
RW
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5612$as_echo_n "checking for $LD option to reload object files... " >&6; }
5613if test "${lt_cv_ld_reload_flag+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
7357c5b6
AM
5615else
5616 lt_cv_ld_reload_flag='-r'
5617fi
81ecdfbb
RW
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5619$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5620reload_flag=$lt_cv_ld_reload_flag
5621case $reload_flag in
5622"" | " "*) ;;
5623*) reload_flag=" $reload_flag" ;;
5624esac
5625reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626case $host_os in
5627 darwin*)
5628 if test "$GCC" = yes; then
5629 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5630 else
5631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632 fi
5633 ;;
5634esac
20e95c23 5635
6bf9431b 5636
20e95c23
DJ
5637
5638
20e95c23 5639
20e95c23 5640
ce2cded5 5641
ce2cded5 5642
ce2cded5 5643
b214d478
SE
5644if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
b214d478
SE
5651else
5652 if test -n "$OBJDUMP"; then
5653 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5662 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5664 break 2
5665 fi
5666done
81ecdfbb
RW
5667 done
5668IFS=$as_save_IFS
b214d478
SE
5669
5670fi
5671fi
5672OBJDUMP=$ac_cv_prog_OBJDUMP
5673if test -n "$OBJDUMP"; then
81ecdfbb
RW
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5675$as_echo "$OBJDUMP" >&6; }
b214d478 5676else
81ecdfbb
RW
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
b214d478
SE
5679fi
5680
81ecdfbb 5681
b214d478
SE
5682fi
5683if test -z "$ac_cv_prog_OBJDUMP"; then
5684 ac_ct_OBJDUMP=$OBJDUMP
5685 # Extract the first word of "objdump", so it can be a program name with args.
5686set dummy objdump; ac_word=$2
81ecdfbb
RW
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
b214d478
SE
5691else
5692 if test -n "$ac_ct_OBJDUMP"; then
5693 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5702 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5704 break 2
5705 fi
5706done
81ecdfbb
RW
5707 done
5708IFS=$as_save_IFS
b214d478 5709
b214d478
SE
5710fi
5711fi
5712ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5713if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5715$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5716else
81ecdfbb
RW
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
b214d478
SE
5719fi
5720
81ecdfbb
RW
5721 if test "x$ac_ct_OBJDUMP" = x; then
5722 OBJDUMP="false"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730 OBJDUMP=$ac_ct_OBJDUMP
5731 fi
b214d478
SE
5732else
5733 OBJDUMP="$ac_cv_prog_OBJDUMP"
5734fi
5735
5736test -z "$OBJDUMP" && OBJDUMP=objdump
5737
5738
5739
5740
5741
5742
5743
5744
ce2cded5 5745
81ecdfbb
RW
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5747$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5748if test "${lt_cv_deplibs_check_method+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
6bf9431b 5750else
7357c5b6
AM
5751 lt_cv_file_magic_cmd='$MAGIC_CMD'
5752lt_cv_file_magic_test_file=
5753lt_cv_deplibs_check_method='unknown'
5754# Need to set the preceding variable on all platforms that support
5755# interlibrary dependencies.
5756# 'none' -- dependencies not supported.
5757# `unknown' -- same as none, but documents that we really don't know.
5758# 'pass_all' -- all dependencies passed with no checks.
5759# 'test_compile' -- check by making test program.
5760# 'file_magic [[regex]]' -- check by looking for files in library path
5761# which responds to the $file_magic_cmd with a given extended regex.
5762# If you have `file' or equivalent on your system and you're not sure
5763# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 5764
ce2cded5 5765case $host_os in
7357c5b6
AM
5766aix[4-9]*)
5767 lt_cv_deplibs_check_method=pass_all
ce2cded5 5768 ;;
7357c5b6
AM
5769
5770beos*)
5771 lt_cv_deplibs_check_method=pass_all
ce2cded5 5772 ;;
7357c5b6
AM
5773
5774bsdi[45]*)
5775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5776 lt_cv_file_magic_cmd='/usr/bin/file -L'
5777 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 5778 ;;
7357c5b6
AM
5779
5780cygwin*)
5781 # func_win32_libid is a shell function defined in ltmain.sh
5782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 5784 ;;
7357c5b6
AM
5785
5786mingw* | pw32*)
5787 # Base MSYS/MinGW do not provide the 'file' command needed by
5788 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5789 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5790 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5791 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
5792 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5793 lt_cv_file_magic_cmd='func_win32_libid'
5794 else
5795 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5796 lt_cv_file_magic_cmd='$OBJDUMP -f'
5797 fi
ce2cded5 5798 ;;
7357c5b6 5799
3725885a 5800cegcc*)
b214d478
SE
5801 # use the weaker test based on 'objdump'. See mingw*.
5802 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5803 lt_cv_file_magic_cmd='$OBJDUMP -f'
5804 ;;
5805
7357c5b6
AM
5806darwin* | rhapsody*)
5807 lt_cv_deplibs_check_method=pass_all
d7040cdb 5808 ;;
d7040cdb 5809
7357c5b6
AM
5810freebsd* | dragonfly*)
5811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5812 case $host_cpu in
5813 i*86 )
5814 # Not sure whether the presence of OpenBSD here was a mistake.
5815 # Let's accept both of them until this is cleared up.
5816 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5817 lt_cv_file_magic_cmd=/usr/bin/file
5818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5819 ;;
5820 esac
5821 else
5822 lt_cv_deplibs_check_method=pass_all
5823 fi
5824 ;;
20e95c23 5825
7357c5b6
AM
5826gnu*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
20e95c23 5829
3725885a
RW
5830haiku*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
7357c5b6
AM
5834hpux10.20* | hpux11*)
5835 lt_cv_file_magic_cmd=/usr/bin/file
5836 case $host_cpu in
5837 ia64*)
5838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5840 ;;
5841 hppa*64*)
3725885a 5842 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]'
7357c5b6
AM
5843 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5844 ;;
5845 *)
3725885a 5846 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
5847 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5848 ;;
5849 esac
5850 ;;
5af11cab 5851
7357c5b6
AM
5852interix[3-9]*)
5853 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5855 ;;
20e95c23 5856
7357c5b6
AM
5857irix5* | irix6* | nonstopux*)
5858 case $LD in
5859 *-32|*"-32 ") libmagic=32-bit;;
5860 *-n32|*"-n32 ") libmagic=N32;;
5861 *-64|*"-64 ") libmagic=64-bit;;
5862 *) libmagic=never-match;;
5863 esac
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
d7040cdb 5866
7357c5b6 5867# This must be Linux ELF.
58e24671 5868linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
d7040cdb 5871
7357c5b6
AM
5872netbsd*)
5873 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 5875 else
7357c5b6 5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 5877 fi
7357c5b6 5878 ;;
d7040cdb 5879
7357c5b6
AM
5880newos6*)
5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5882 lt_cv_file_magic_cmd=/usr/bin/file
5883 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5884 ;;
d7040cdb 5885
7357c5b6
AM
5886*nto* | *qnx*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
d7040cdb 5889
7357c5b6
AM
5890openbsd*)
5891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5893 else
5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5895 fi
5896 ;;
d7040cdb 5897
7357c5b6
AM
5898osf3* | osf4* | osf5*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
d7040cdb 5901
7357c5b6
AM
5902rdos*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
d7040cdb 5905
7357c5b6
AM
5906solaris*)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
d7040cdb 5909
7357c5b6
AM
5910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
d7040cdb 5913
7357c5b6
AM
5914sysv4 | sysv4.3*)
5915 case $host_vendor in
5916 motorola)
5917 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]'
5918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5919 ;;
5920 ncr)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923 sequent)
5924 lt_cv_file_magic_cmd='/bin/file'
5925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5926 ;;
5927 sni)
5928 lt_cv_file_magic_cmd='/bin/file'
5929 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5930 lt_cv_file_magic_test_file=/lib/libc.so
5931 ;;
5932 siemens)
5933 lt_cv_deplibs_check_method=pass_all
5934 ;;
5935 pc)
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938 esac
5939 ;;
d7040cdb 5940
7357c5b6
AM
5941tpf*)
5942 lt_cv_deplibs_check_method=pass_all
5943 ;;
5944esac
d7040cdb 5945
ce2cded5 5946fi
81ecdfbb
RW
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5948$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
5949file_magic_cmd=$lt_cv_file_magic_cmd
5950deplibs_check_method=$lt_cv_deplibs_check_method
5951test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5952
d7040cdb 5953
d7040cdb 5954
d7040cdb 5955
5af11cab 5956
20e95c23 5957
20e95c23 5958
20e95c23 5959
20e95c23
DJ
5960
5961
5962
20e95c23 5963
7357c5b6
AM
5964if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5966set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if test "${ac_cv_prog_AR+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
7357c5b6
AM
5971else
5972 if test -n "$AR"; then
5973 ac_cv_prog_AR="$AR" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5982 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 5984 break 2
ce2cded5 5985 fi
7357c5b6 5986done
81ecdfbb
RW
5987 done
5988IFS=$as_save_IFS
d5fbea21 5989
7357c5b6
AM
5990fi
5991fi
5992AR=$ac_cv_prog_AR
5993if test -n "$AR"; then
81ecdfbb
RW
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5995$as_echo "$AR" >&6; }
7357c5b6 5996else
81ecdfbb
RW
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
7357c5b6 5999fi
d5fbea21 6000
81ecdfbb 6001
7357c5b6
AM
6002fi
6003if test -z "$ac_cv_prog_AR"; then
6004 ac_ct_AR=$AR
6005 # Extract the first word of "ar", so it can be a program name with args.
6006set dummy ar; ac_word=$2
81ecdfbb
RW
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
ce2cded5 6011else
7357c5b6
AM
6012 if test -n "$ac_ct_AR"; then
6013 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6022 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6024 break 2
6025 fi
6026done
81ecdfbb
RW
6027 done
6028IFS=$as_save_IFS
d7040cdb 6029
7357c5b6
AM
6030fi
6031fi
6032ac_ct_AR=$ac_cv_prog_ac_ct_AR
6033if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6035$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6036else
81ecdfbb
RW
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
ce2cded5 6039fi
d7040cdb 6040
81ecdfbb
RW
6041 if test "x$ac_ct_AR" = x; then
6042 AR="false"
6043 else
6044 case $cross_compiling:$ac_tool_warned in
6045yes:)
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048ac_tool_warned=yes ;;
6049esac
6050 AR=$ac_ct_AR
6051 fi
7357c5b6
AM
6052else
6053 AR="$ac_cv_prog_AR"
ce2cded5 6054fi
d7040cdb 6055
7357c5b6
AM
6056test -z "$AR" && AR=ar
6057test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6058
7357c5b6
AM
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6071set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073$as_echo_n "checking for $ac_word... " >&6; }
6074if test "${ac_cv_prog_STRIP+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
252b5132 6076else
7357c5b6
AM
6077 if test -n "$STRIP"; then
6078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
ce2cded5 6082do
7357c5b6
AM
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6087 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6089 break 2
ce2cded5 6090 fi
7357c5b6 6091done
81ecdfbb
RW
6092 done
6093IFS=$as_save_IFS
7357c5b6 6094
252b5132 6095fi
7357c5b6
AM
6096fi
6097STRIP=$ac_cv_prog_STRIP
6098if test -n "$STRIP"; then
81ecdfbb
RW
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6100$as_echo "$STRIP" >&6; }
252b5132 6101else
81ecdfbb
RW
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103$as_echo "no" >&6; }
252b5132 6104fi
d7040cdb 6105
81ecdfbb 6106
6bf9431b 6107fi
7357c5b6
AM
6108if test -z "$ac_cv_prog_STRIP"; then
6109 ac_ct_STRIP=$STRIP
6110 # Extract the first word of "strip", so it can be a program name with args.
6111set dummy strip; ac_word=$2
81ecdfbb
RW
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113$as_echo_n "checking for $ac_word... " >&6; }
6114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
ac48eca1 6116else
7357c5b6
AM
6117 if test -n "$ac_ct_STRIP"; then
6118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6127 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6129 break 2
6130 fi
6131done
81ecdfbb
RW
6132 done
6133IFS=$as_save_IFS
6bf9431b 6134
7357c5b6
AM
6135fi
6136fi
6137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6138if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6140$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6141else
81ecdfbb
RW
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143$as_echo "no" >&6; }
6bf9431b 6144fi
6bf9431b 6145
81ecdfbb
RW
6146 if test "x$ac_ct_STRIP" = x; then
6147 STRIP=":"
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150yes:)
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155 STRIP=$ac_ct_STRIP
6156 fi
7357c5b6
AM
6157else
6158 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6159fi
6bf9431b 6160
7357c5b6
AM
6161test -z "$STRIP" && STRIP=:
6162
6163
6164
6165
6166
6167
6168if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if test "${ac_cv_prog_RANLIB+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
7357c5b6
AM
6175else
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6188 break 2
6189 fi
6190done
81ecdfbb
RW
6191 done
6192IFS=$as_save_IFS
6bf9431b 6193
ce2cded5 6194fi
7357c5b6
AM
6195fi
6196RANLIB=$ac_cv_prog_RANLIB
6197if test -n "$RANLIB"; then
81ecdfbb
RW
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6199$as_echo "$RANLIB" >&6; }
ac48eca1 6200else
81ecdfbb
RW
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
d7040cdb 6203fi
7357c5b6 6204
81ecdfbb 6205
7357c5b6
AM
6206fi
6207if test -z "$ac_cv_prog_RANLIB"; then
6208 ac_ct_RANLIB=$RANLIB
6209 # Extract the first word of "ranlib", so it can be a program name with args.
6210set dummy ranlib; ac_word=$2
81ecdfbb
RW
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
7357c5b6
AM
6215else
6216 if test -n "$ac_ct_RANLIB"; then
6217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
ce2cded5 6221do
7357c5b6
AM
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6226 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6228 break 2
ce2cded5 6229 fi
7357c5b6 6230done
81ecdfbb
RW
6231 done
6232IFS=$as_save_IFS
7357c5b6 6233
ce2cded5 6234fi
7357c5b6
AM
6235fi
6236ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6239$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6240else
81ecdfbb
RW
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
ce2cded5 6243fi
d7040cdb 6244
81ecdfbb
RW
6245 if test "x$ac_ct_RANLIB" = x; then
6246 RANLIB=":"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252ac_tool_warned=yes ;;
6253esac
6254 RANLIB=$ac_ct_RANLIB
6255 fi
d7040cdb 6256else
7357c5b6 6257 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6258fi
6259
7357c5b6
AM
6260test -z "$RANLIB" && RANLIB=:
6261
6262
6263
6264
6265
6266
6267# Determine commands to create old-style static archives.
b214d478 6268old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6269old_postinstall_cmds='chmod 644 $oldlib'
6270old_postuninstall_cmds=
6271
6272if test -n "$RANLIB"; then
6273 case $host_os in
6274 openbsd*)
6275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6276 ;;
6277 *)
6278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6279 ;;
6280 esac
6281 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6282fi
d7040cdb 6283
3725885a
RW
6284case $host_os in
6285 darwin*)
6286 lock_old_archive_extraction=yes ;;
6287 *)
6288 lock_old_archive_extraction=no ;;
6289esac
6290
6291
6292
6293
6294
6295
d7040cdb
SE
6296
6297
6298
6299
d7040cdb 6300
7357c5b6
AM
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329# If no C compiler was specified, use CC.
6330LTCC=${LTCC-"$CC"}
6331
6332# If no C compiler flags were specified, use CFLAGS.
6333LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334
6335# Allow CC to be a program name with arguments.
6336compiler=$CC
6337
6338
6339# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6341$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6342if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
7357c5b6
AM
6344else
6345
6346# These are sane defaults that work on at least a few old systems.
6347# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6348
6349# Character class describing NM global symbol codes.
6350symcode='[BCDEGRST]'
6351
6352# Regexp to match symbols that can be accessed directly from C.
6353sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6354
6355# Define system-specific variables.
6356case $host_os in
6357aix*)
6358 symcode='[BCDT]'
6359 ;;
b214d478 6360cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6361 symcode='[ABCDGISTW]'
6362 ;;
6363hpux*)
6364 if test "$host_cpu" = ia64; then
6365 symcode='[ABCDEGRST]'
6366 fi
6367 ;;
6368irix* | nonstopux*)
6369 symcode='[BCDEGRST]'
6370 ;;
6371osf*)
6372 symcode='[BCDEGQRST]'
6373 ;;
6374solaris*)
6375 symcode='[BDRT]'
6376 ;;
6377sco3.2v5*)
6378 symcode='[DT]'
6379 ;;
6380sysv4.2uw2*)
6381 symcode='[DT]'
6382 ;;
6383sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384 symcode='[ABDT]'
6385 ;;
6386sysv4)
6387 symcode='[DFNSTU]'
6388 ;;
6389esac
6390
6391# If we're using GNU nm, then use its standard symbol codes.
6392case `$NM -V 2>&1` in
6393*GNU* | *'with BFD'*)
6394 symcode='[ABCDGIRSTW]' ;;
6395esac
6396
6397# Transform an extracted symbol line into a proper C declaration.
6398# Some systems (esp. on ia64) link data and code symbols differently,
6399# so use this general approach.
6400lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6401
6402# Transform an extracted symbol line into symbol name and symbol address
6403lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6404lt_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'"
7357c5b6
AM
6405
6406# Handle CRLF in mingw tool chain
6407opt_cr=
6408case $build_os in
6409mingw*)
6410 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6411 ;;
6412esac
6413
6414# Try without a prefix underscore, then with it.
6415for ac_symprfx in "" "_"; do
6416
6417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6418 symxfrm="\\1 $ac_symprfx\\2 \\2"
6419
6420 # Write the raw and C identifiers.
6421 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6422 # Fake it for dumpbin and say T for any non-static function
6423 # and D for any global variable.
6424 # Also find C++ and __fastcall symbols from MSVC++,
6425 # which start with @ or ?.
6426 lt_cv_sys_global_symbol_pipe="$AWK '"\
6427" {last_section=section; section=\$ 3};"\
6428" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6429" \$ 0!~/External *\|/{next};"\
6430" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6431" {if(hide[section]) next};"\
6432" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6433" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6434" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6435" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6436" ' prfx=^$ac_symprfx"
6437 else
6438 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6439 fi
6440
6441 # Check to see that the pipe works correctly.
6442 pipe_works=no
6443
6444 rm -f conftest*
6445 cat > conftest.$ac_ext <<_LT_EOF
6446#ifdef __cplusplus
6447extern "C" {
6448#endif
6449char nm_test_var;
6450void nm_test_func(void);
6451void nm_test_func(void){}
6452#ifdef __cplusplus
ce2cded5 6453}
7357c5b6
AM
6454#endif
6455int main(){nm_test_var='a';nm_test_func();return(0);}
6456_LT_EOF
6457
81ecdfbb 6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6459 (eval $ac_compile) 2>&5
ce2cded5 6460 ac_status=$?
81ecdfbb
RW
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
7357c5b6
AM
6463 # Now try to grab the symbols.
6464 nlist=conftest.nm
3725885a
RW
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6466 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6467 ac_status=$?
81ecdfbb
RW
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6470 # Try sorting and uniquifying the output.
6471 if sort "$nlist" | uniq > "$nlist"T; then
6472 mv -f "$nlist"T "$nlist"
6473 else
6474 rm -f "$nlist"T
6475 fi
6bf9431b 6476
7357c5b6
AM
6477 # Make sure that we snagged all the symbols we need.
6478 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6479 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6480 cat <<_LT_EOF > conftest.$ac_ext
6481#ifdef __cplusplus
6482extern "C" {
6483#endif
d7040cdb 6484
7357c5b6
AM
6485_LT_EOF
6486 # Now generate the symbol file.
6487 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6488
7357c5b6 6489 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6490
7357c5b6
AM
6491/* The mapping between symbol names and symbols. */
6492const struct {
6493 const char *name;
6494 void *address;
6495}
6496lt__PROGRAM__LTX_preloaded_symbols[] =
6497{
6498 { "@PROGRAM@", (void *) 0 },
6499_LT_EOF
6500 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6501 cat <<\_LT_EOF >> conftest.$ac_ext
6502 {0, (void *) 0}
6503};
d7040cdb 6504
7357c5b6
AM
6505/* This works around a problem in FreeBSD linker */
6506#ifdef FREEBSD_WORKAROUND
6507static const void *lt_preloaded_setup() {
6508 return lt__PROGRAM__LTX_preloaded_symbols;
6509}
ce2cded5 6510#endif
d7040cdb 6511
7357c5b6 6512#ifdef __cplusplus
ce2cded5 6513}
7357c5b6
AM
6514#endif
6515_LT_EOF
6516 # Now try linking the two files.
6517 mv conftest.$ac_objext conftstm.$ac_objext
6518 lt_save_LIBS="$LIBS"
6519 lt_save_CFLAGS="$CFLAGS"
6520 LIBS="conftstm.$ac_objext"
6521 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6523 (eval $ac_link) 2>&5
6524 ac_status=$?
81ecdfbb
RW
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6527 pipe_works=yes
6528 fi
6529 LIBS="$lt_save_LIBS"
6530 CFLAGS="$lt_save_CFLAGS"
6531 else
6532 echo "cannot find nm_test_func in $nlist" >&5
6533 fi
6534 else
6535 echo "cannot find nm_test_var in $nlist" >&5
6536 fi
6537 else
6538 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6539 fi
6540 else
6541 echo "$progname: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6543 fi
b214d478 6544 rm -rf conftest* conftst*
7357c5b6
AM
6545
6546 # Do not use the global_symbol_pipe unless it works.
6547 if test "$pipe_works" = yes; then
6548 break
6549 else
6550 lt_cv_sys_global_symbol_pipe=
6551 fi
6552done
d7040cdb 6553
ce2cded5 6554fi
7357c5b6
AM
6555
6556if test -z "$lt_cv_sys_global_symbol_pipe"; then
6557 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6558fi
7357c5b6 6559if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6561$as_echo "failed" >&6; }
7357c5b6 6562else
81ecdfbb
RW
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6564$as_echo "ok" >&6; }
ce2cded5 6565fi
d7040cdb 6566
d7040cdb 6567
d7040cdb 6568
d7040cdb 6569
d7040cdb 6570
d7040cdb 6571
d7040cdb 6572
d7040cdb 6573
d7040cdb 6574
d7040cdb 6575
d7040cdb 6576
d7040cdb 6577
7357c5b6
AM
6578
6579
6580
b214d478
SE
6581
6582
6583
6584
6585
7357c5b6
AM
6586
6587
81ecdfbb
RW
6588# Check whether --enable-libtool-lock was given.
6589if test "${enable_libtool_lock+set}" = set; then :
6590 enableval=$enable_libtool_lock;
6591fi
7357c5b6 6592
7357c5b6
AM
6593test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6594
6595# Some flags need to be propagated to the compiler or linker for good
6596# libtool support.
6597case $host in
6598ia64-*-hpux*)
6599 # Find out which ABI we are using.
6600 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6602 (eval $ac_compile) 2>&5
6603 ac_status=$?
81ecdfbb
RW
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }; then
7357c5b6
AM
6606 case `/usr/bin/file conftest.$ac_objext` in
6607 *ELF-32*)
6608 HPUX_IA64_MODE="32"
6609 ;;
6610 *ELF-64*)
6611 HPUX_IA64_MODE="64"
6612 ;;
6613 esac
6614 fi
6615 rm -rf conftest*
6616 ;;
6617*-*-irix6*)
6618 # Find out which ABI we are using.
3725885a 6619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
81ecdfbb
RW
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
7357c5b6
AM
6625 if test "$lt_cv_prog_gnu_ld" = yes; then
6626 case `/usr/bin/file conftest.$ac_objext` in
6627 *32-bit*)
6628 LD="${LD-ld} -melf32bsmip"
6629 ;;
6630 *N32*)
6631 LD="${LD-ld} -melf32bmipn32"
6632 ;;
6633 *64-bit*)
6634 LD="${LD-ld} -melf64bmip"
6635 ;;
6636 esac
6637 else
6638 case `/usr/bin/file conftest.$ac_objext` in
6639 *32-bit*)
6640 LD="${LD-ld} -32"
6641 ;;
6642 *N32*)
6643 LD="${LD-ld} -n32"
6644 ;;
6645 *64-bit*)
6646 LD="${LD-ld} -64"
6647 ;;
6648 esac
6649 fi
6650 fi
6651 rm -rf conftest*
6652 ;;
6653
cc9afea3 6654x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6655s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6656 # Find out which ABI we are using.
6657 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6659 (eval $ac_compile) 2>&5
6660 ac_status=$?
81ecdfbb
RW
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }; then
7357c5b6
AM
6663 case `/usr/bin/file conftest.o` in
6664 *32-bit*)
6665 case $host in
6666 x86_64-*kfreebsd*-gnu)
6667 LD="${LD-ld} -m elf_i386_fbsd"
6668 ;;
6669 x86_64-*linux*)
6d2920c8
L
6670 case `/usr/bin/file conftest.o` in
6671 *x86-64*)
6672 LD="${LD-ld} -m elf32_x86_64"
6673 ;;
6674 *)
6675 LD="${LD-ld} -m elf_i386"
6676 ;;
6677 esac
7357c5b6 6678 ;;
cc9afea3
AM
6679 powerpc64le-*linux*)
6680 LD="${LD-ld} -m elf32lppclinux"
6681 ;;
6682 powerpc64-*linux*)
7357c5b6
AM
6683 LD="${LD-ld} -m elf32ppclinux"
6684 ;;
6685 s390x-*linux*)
6686 LD="${LD-ld} -m elf_s390"
6687 ;;
6688 sparc64-*linux*)
6689 LD="${LD-ld} -m elf32_sparc"
6690 ;;
6691 esac
6692 ;;
6693 *64-bit*)
6694 case $host in
6695 x86_64-*kfreebsd*-gnu)
6696 LD="${LD-ld} -m elf_x86_64_fbsd"
6697 ;;
6698 x86_64-*linux*)
6699 LD="${LD-ld} -m elf_x86_64"
6700 ;;
cc9afea3
AM
6701 powerpcle-*linux*)
6702 LD="${LD-ld} -m elf64lppc"
6703 ;;
6704 powerpc-*linux*)
7357c5b6
AM
6705 LD="${LD-ld} -m elf64ppc"
6706 ;;
6707 s390*-*linux*|s390*-*tpf*)
6708 LD="${LD-ld} -m elf64_s390"
6709 ;;
6710 sparc*-*linux*)
6711 LD="${LD-ld} -m elf64_sparc"
6712 ;;
6713 esac
6714 ;;
6715 esac
6716 fi
6717 rm -rf conftest*
6718 ;;
6719
6720*-*-sco3.2v5*)
6721 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6722 SAVE_CFLAGS="$CFLAGS"
6723 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6725$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6726if test "${lt_cv_cc_needs_belf+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
ce2cded5 6728else
7357c5b6
AM
6729 ac_ext=c
6730ac_cpp='$CPP $CPPFLAGS'
6731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734
81ecdfbb 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6736/* end confdefs.h. */
20e95c23 6737
7357c5b6
AM
6738int
6739main ()
6740{
6741
6742 ;
6743 return 0;
6744}
6bf9431b 6745_ACEOF
81ecdfbb 6746if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6747 lt_cv_cc_needs_belf=yes
6bf9431b 6748else
81ecdfbb 6749 lt_cv_cc_needs_belf=no
ce2cded5 6750fi
81ecdfbb
RW
6751rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6753 ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6758
b214d478 6759fi
81ecdfbb
RW
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6761$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
6762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6764 CFLAGS="$SAVE_CFLAGS"
6765 fi
6766 ;;
6767sparc*-*solaris*)
6768 # Find out which ABI we are using.
6769 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
6771 (eval $ac_compile) 2>&5
6772 ac_status=$?
81ecdfbb
RW
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }; then
b214d478
SE
6775 case `/usr/bin/file conftest.o` in
6776 *64-bit*)
6777 case $lt_cv_prog_gnu_ld in
6778 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6779 *)
6780 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6781 LD="${LD-ld} -64"
6782 fi
6783 ;;
6784 esac
6785 ;;
6786 esac
6787 fi
6788 rm -rf conftest*
6789 ;;
6790esac
6791
6792need_locks="$enable_libtool_lock"
6793
6794
6795 case $host_os in
6796 rhapsody* | darwin*)
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
b214d478
SE
6804else
6805 if test -n "$DSYMUTIL"; then
6806 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6815 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6817 break 2
6818 fi
6819done
81ecdfbb
RW
6820 done
6821IFS=$as_save_IFS
b214d478
SE
6822
6823fi
6824fi
6825DSYMUTIL=$ac_cv_prog_DSYMUTIL
6826if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6828$as_echo "$DSYMUTIL" >&6; }
b214d478 6829else
81ecdfbb
RW
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
b214d478
SE
6832fi
6833
81ecdfbb 6834
b214d478
SE
6835fi
6836if test -z "$ac_cv_prog_DSYMUTIL"; then
6837 ac_ct_DSYMUTIL=$DSYMUTIL
6838 # Extract the first word of "dsymutil", so it can be a program name with args.
6839set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
b214d478
SE
6844else
6845 if test -n "$ac_ct_DSYMUTIL"; then
6846 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6855 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6857 break 2
6858 fi
6859done
81ecdfbb
RW
6860 done
6861IFS=$as_save_IFS
b214d478 6862
b214d478
SE
6863fi
6864fi
6865ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6866if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6868$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 6869else
81ecdfbb
RW
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
b214d478
SE
6872fi
6873
81ecdfbb
RW
6874 if test "x$ac_ct_DSYMUTIL" = x; then
6875 DSYMUTIL=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878yes:)
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883 DSYMUTIL=$ac_ct_DSYMUTIL
6884 fi
b214d478
SE
6885else
6886 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6887fi
6888
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6891set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893$as_echo_n "checking for $ac_word... " >&6; }
6894if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
b214d478
SE
6896else
6897 if test -n "$NMEDIT"; then
6898 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6899else
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6907 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6909 break 2
6910 fi
6911done
81ecdfbb
RW
6912 done
6913IFS=$as_save_IFS
b214d478
SE
6914
6915fi
6916fi
6917NMEDIT=$ac_cv_prog_NMEDIT
6918if test -n "$NMEDIT"; then
81ecdfbb
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6920$as_echo "$NMEDIT" >&6; }
b214d478 6921else
81ecdfbb
RW
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
b214d478
SE
6924fi
6925
81ecdfbb 6926
b214d478
SE
6927fi
6928if test -z "$ac_cv_prog_NMEDIT"; then
6929 ac_ct_NMEDIT=$NMEDIT
6930 # Extract the first word of "nmedit", so it can be a program name with args.
6931set dummy nmedit; ac_word=$2
81ecdfbb
RW
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933$as_echo_n "checking for $ac_word... " >&6; }
6934if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
b214d478
SE
6936else
6937 if test -n "$ac_ct_NMEDIT"; then
6938 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6947 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6949 break 2
6950 fi
6951done
81ecdfbb
RW
6952 done
6953IFS=$as_save_IFS
b214d478 6954
b214d478
SE
6955fi
6956fi
6957ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6958if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6960$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 6961else
81ecdfbb
RW
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
b214d478
SE
6964fi
6965
81ecdfbb
RW
6966 if test "x$ac_ct_NMEDIT" = x; then
6967 NMEDIT=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970yes:)
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973ac_tool_warned=yes ;;
6974esac
6975 NMEDIT=$ac_ct_NMEDIT
6976 fi
b214d478
SE
6977else
6978 NMEDIT="$ac_cv_prog_NMEDIT"
6979fi
6980
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6983set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if test "${ac_cv_prog_LIPO+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
b214d478
SE
6988else
6989 if test -n "$LIPO"; then
6990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6999 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7001 break 2
7002 fi
7003done
81ecdfbb
RW
7004 done
7005IFS=$as_save_IFS
b214d478
SE
7006
7007fi
7008fi
7009LIPO=$ac_cv_prog_LIPO
7010if test -n "$LIPO"; then
81ecdfbb
RW
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7012$as_echo "$LIPO" >&6; }
b214d478 7013else
81ecdfbb
RW
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
b214d478
SE
7016fi
7017
81ecdfbb 7018
b214d478
SE
7019fi
7020if test -z "$ac_cv_prog_LIPO"; then
7021 ac_ct_LIPO=$LIPO
7022 # Extract the first word of "lipo", so it can be a program name with args.
7023set dummy lipo; ac_word=$2
81ecdfbb
RW
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
7026if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
b214d478
SE
7028else
7029 if test -n "$ac_ct_LIPO"; then
7030 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7039 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7041 break 2
7042 fi
7043done
81ecdfbb
RW
7044 done
7045IFS=$as_save_IFS
b214d478 7046
b214d478
SE
7047fi
7048fi
7049ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7050if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7052$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7053else
81ecdfbb
RW
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
b214d478
SE
7056fi
7057
81ecdfbb
RW
7058 if test "x$ac_ct_LIPO" = x; then
7059 LIPO=":"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062yes:)
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065ac_tool_warned=yes ;;
7066esac
7067 LIPO=$ac_ct_LIPO
7068 fi
b214d478
SE
7069else
7070 LIPO="$ac_cv_prog_LIPO"
7071fi
7072
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7075set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
7078if test "${ac_cv_prog_OTOOL+set}" = set; then :
7079 $as_echo_n "(cached) " >&6
b214d478
SE
7080else
7081 if test -n "$OTOOL"; then
7082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7093 break 2
7094 fi
7095done
81ecdfbb
RW
7096 done
7097IFS=$as_save_IFS
b214d478
SE
7098
7099fi
7100fi
7101OTOOL=$ac_cv_prog_OTOOL
7102if test -n "$OTOOL"; then
81ecdfbb
RW
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7104$as_echo "$OTOOL" >&6; }
b214d478 7105else
81ecdfbb
RW
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
b214d478
SE
7108fi
7109
81ecdfbb 7110
b214d478
SE
7111fi
7112if test -z "$ac_cv_prog_OTOOL"; then
7113 ac_ct_OTOOL=$OTOOL
7114 # Extract the first word of "otool", so it can be a program name with args.
7115set dummy otool; ac_word=$2
81ecdfbb
RW
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7119 $as_echo_n "(cached) " >&6
b214d478
SE
7120else
7121 if test -n "$ac_ct_OTOOL"; then
7122 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7131 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7133 break 2
7134 fi
7135done
81ecdfbb
RW
7136 done
7137IFS=$as_save_IFS
b214d478 7138
b214d478
SE
7139fi
7140fi
7141ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7142if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7144$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7145else
81ecdfbb
RW
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
b214d478
SE
7148fi
7149
81ecdfbb
RW
7150 if test "x$ac_ct_OTOOL" = x; then
7151 OTOOL=":"
7152 else
7153 case $cross_compiling:$ac_tool_warned in
7154yes:)
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157ac_tool_warned=yes ;;
7158esac
7159 OTOOL=$ac_ct_OTOOL
7160 fi
b214d478
SE
7161else
7162 OTOOL="$ac_cv_prog_OTOOL"
7163fi
7164
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7167set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
b214d478
SE
7172else
7173 if test -n "$OTOOL64"; then
7174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7185 break 2
7186 fi
7187done
81ecdfbb
RW
7188 done
7189IFS=$as_save_IFS
b214d478
SE
7190
7191fi
7192fi
7193OTOOL64=$ac_cv_prog_OTOOL64
7194if test -n "$OTOOL64"; then
81ecdfbb
RW
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7196$as_echo "$OTOOL64" >&6; }
b214d478 7197else
81ecdfbb
RW
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
b214d478
SE
7200fi
7201
81ecdfbb 7202
b214d478
SE
7203fi
7204if test -z "$ac_cv_prog_OTOOL64"; then
7205 ac_ct_OTOOL64=$OTOOL64
7206 # Extract the first word of "otool64", so it can be a program name with args.
7207set dummy otool64; ac_word=$2
81ecdfbb
RW
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
b214d478
SE
7212else
7213 if test -n "$ac_ct_OTOOL64"; then
7214 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7223 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7225 break 2
7226 fi
7227done
81ecdfbb
RW
7228 done
7229IFS=$as_save_IFS
b214d478 7230
b214d478
SE
7231fi
7232fi
7233ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7234if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7236$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7237else
81ecdfbb
RW
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
b214d478
SE
7240fi
7241
81ecdfbb
RW
7242 if test "x$ac_ct_OTOOL64" = x; then
7243 OTOOL64=":"
7244 else
7245 case $cross_compiling:$ac_tool_warned in
7246yes:)
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249ac_tool_warned=yes ;;
7250esac
7251 OTOOL64=$ac_ct_OTOOL64
7252 fi
b214d478
SE
7253else
7254 OTOOL64="$ac_cv_prog_OTOOL64"
7255fi
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
81ecdfbb
RW
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7284$as_echo_n "checking for -single_module linker flag... " >&6; }
7285if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
b214d478
SE
7287else
7288 lt_cv_apple_cc_single_mod=no
7289 if test -z "${LT_MULTI_MODULE}"; then
7290 # By default we will add the -single_module flag. You can override
7291 # by either setting the environment variable LT_MULTI_MODULE
7292 # non-empty at configure time, or by adding -multi_module to the
7293 # link flags.
7294 rm -rf libconftest.dylib*
7295 echo "int foo(void){return 1;}" > conftest.c
7296 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7297-dynamiclib -Wl,-single_module conftest.c" >&5
7298 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7299 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7300 _lt_result=$?
7301 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7302 lt_cv_apple_cc_single_mod=yes
7303 else
7304 cat conftest.err >&5
7305 fi
7306 rm -rf libconftest.dylib*
7307 rm -f conftest.*
7308 fi
7309fi
81ecdfbb
RW
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7311$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7313$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7314if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
b214d478
SE
7316else
7317 lt_cv_ld_exported_symbols_list=no
7318 save_LDFLAGS=$LDFLAGS
7319 echo "_main" > conftest.sym
7320 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7322/* end confdefs.h. */
7323
7324int
7325main ()
7326{
7327
7328 ;
7329 return 0;
7330}
7331_ACEOF
81ecdfbb 7332if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7333 lt_cv_ld_exported_symbols_list=yes
7334else
81ecdfbb 7335 lt_cv_ld_exported_symbols_list=no
b214d478 7336fi
81ecdfbb
RW
7337rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7339 LDFLAGS="$save_LDFLAGS"
7340
7341fi
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7343$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7345$as_echo_n "checking for -force_load linker flag... " >&6; }
7346if test "${lt_cv_ld_force_load+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7348else
7349 lt_cv_ld_force_load=no
7350 cat > conftest.c << _LT_EOF
7351int forced_loaded() { return 2;}
7352_LT_EOF
7353 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7354 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7355 echo "$AR cru libconftest.a conftest.o" >&5
7356 $AR cru libconftest.a conftest.o 2>&5
7357 cat > conftest.c << _LT_EOF
7358int main() { return 0;}
7359_LT_EOF
7360 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7361 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7362 _lt_result=$?
7363 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7364 lt_cv_ld_force_load=yes
7365 else
7366 cat conftest.err >&5
7367 fi
7368 rm -f conftest.err libconftest.a conftest conftest.c
7369 rm -rf conftest.dSYM
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7373$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
7374 case $host_os in
7375 rhapsody* | darwin1.[012])
7376 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7377 darwin1.*)
7378 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379 darwin*) # darwin 5.x on
7380 # if running on 10.5 or later, the deployment target defaults
7381 # to the OS version, if on x86, and 10.4, the deployment
7382 # target defaults to 10.4. Don't you love it?
7383 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7384 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7385 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7386 10.[012][,.]*)
b214d478
SE
7387 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7388 10.*)
7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390 esac
7391 ;;
7392 esac
7393 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7394 _lt_dar_single_mod='$single_module'
7395 fi
7396 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7397 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7398 else
7399 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7400 fi
3725885a 7401 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
7402 _lt_dsymutil='~$DSYMUTIL $lib || :'
7403 else
7404 _lt_dsymutil=
7405 fi
7406 ;;
7407 esac
7408
b214d478 7409for ac_header in dlfcn.h
81ecdfbb
RW
7410do :
7411 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7412"
7413if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7414 cat >>confdefs.h <<_ACEOF
81ecdfbb 7415#define HAVE_DLFCN_H 1
b214d478
SE
7416_ACEOF
7417
7418fi
7419
7420done
7421
7422
7423
3725885a
RW
7424
7425
b214d478
SE
7426# Set options
7427
7428
7429
7430 enable_dlopen=no
7431
7432
7433 enable_win32_dll=no
7434
7435
81ecdfbb
RW
7436 # Check whether --enable-shared was given.
7437if test "${enable_shared+set}" = set; then :
7438 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7439 case $enableval in
7440 yes) enable_shared=yes ;;
7441 no) enable_shared=no ;;
7442 *)
7443 enable_shared=no
7444 # Look at the argument we got. We use all the common list separators.
7445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7446 for pkg in $enableval; do
7447 IFS="$lt_save_ifs"
7448 if test "X$pkg" = "X$p"; then
7449 enable_shared=yes
7450 fi
7451 done
7452 IFS="$lt_save_ifs"
7453 ;;
7454 esac
7455else
7456 enable_shared=yes
81ecdfbb
RW
7457fi
7458
b214d478
SE
7459
7460
7461
7462
7463
7464
7465
7466
81ecdfbb
RW
7467 # Check whether --enable-static was given.
7468if test "${enable_static+set}" = set; then :
7469 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7470 case $enableval in
7471 yes) enable_static=yes ;;
7472 no) enable_static=no ;;
7473 *)
7474 enable_static=no
7475 # Look at the argument we got. We use all the common list separators.
7476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7477 for pkg in $enableval; do
7478 IFS="$lt_save_ifs"
7479 if test "X$pkg" = "X$p"; then
7480 enable_static=yes
7481 fi
7482 done
7483 IFS="$lt_save_ifs"
7484 ;;
7485 esac
7486else
7487 enable_static=yes
81ecdfbb
RW
7488fi
7489
b214d478
SE
7490
7491
7492
7493
7494
7495
7496
7497
7498
81ecdfbb
RW
7499# Check whether --with-pic was given.
7500if test "${with_pic+set}" = set; then :
7501 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7502else
7503 pic_mode=default
81ecdfbb
RW
7504fi
7505
b214d478
SE
7506
7507test -z "$pic_mode" && pic_mode=default
7508
7509
7510
7511
7512
7513
7514
81ecdfbb
RW
7515 # Check whether --enable-fast-install was given.
7516if test "${enable_fast_install+set}" = set; then :
7517 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7518 case $enableval in
7519 yes) enable_fast_install=yes ;;
7520 no) enable_fast_install=no ;;
7521 *)
7522 enable_fast_install=no
7523 # Look at the argument we got. We use all the common list separators.
7524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7525 for pkg in $enableval; do
7526 IFS="$lt_save_ifs"
7527 if test "X$pkg" = "X$p"; then
7528 enable_fast_install=yes
7529 fi
7530 done
7531 IFS="$lt_save_ifs"
7357c5b6
AM
7532 ;;
7533 esac
b214d478
SE
7534else
7535 enable_fast_install=yes
81ecdfbb
RW
7536fi
7537
d7040cdb 7538
ce2cded5
L
7539
7540
ce2cded5 7541
252b5132 7542
d7040cdb 7543
252b5132 7544
6bf9431b 7545
252b5132 7546
6bf9431b 7547
ce2cded5
L
7548# This can be used to rebuild libtool when needed
7549LIBTOOL_DEPS="$ltmain"
6bf9431b 7550
ce2cded5
L
7551# Always use our own libtool.
7552LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7553
6bf9431b 7554
252b5132 7555
6bf9431b 7556
252b5132 7557
252b5132 7558
d7040cdb 7559
6bf9431b 7560
252b5132 7561
d7040cdb 7562
d7040cdb 7563
d7040cdb 7564
d7040cdb 7565
d7040cdb 7566
d7040cdb 7567
d7040cdb 7568
d7040cdb 7569
d7040cdb 7570
d7040cdb 7571
d7040cdb 7572
d7040cdb
SE
7573
7574
7575
3725885a 7576
d7040cdb
SE
7577
7578
ce2cded5 7579test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
ce2cded5
L
7594if test -n "${ZSH_VERSION+set}" ; then
7595 setopt NO_GLOB_SUBST
7596fi
d7040cdb 7597
81ecdfbb
RW
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7599$as_echo_n "checking for objdir... " >&6; }
7600if test "${lt_cv_objdir+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
ce2cded5
L
7602else
7603 rm -f .libs 2>/dev/null
7604mkdir .libs 2>/dev/null
7605if test -d .libs; then
7606 lt_cv_objdir=.libs
7607else
7608 # MS-DOS does not allow filenames that begin with a dot.
7609 lt_cv_objdir=_libs
7610fi
7611rmdir .libs 2>/dev/null
7612fi
81ecdfbb
RW
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7614$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7615objdir=$lt_cv_objdir
d7040cdb
SE
7616
7617
7618
7619
7620
ce2cded5
L
7621cat >>confdefs.h <<_ACEOF
7622#define LT_OBJDIR "$lt_cv_objdir/"
7623_ACEOF
d7040cdb
SE
7624
7625
7626
7627
ce2cded5
L
7628case $host_os in
7629aix3*)
7630 # AIX sometimes has problems with the GCC collect2 program. For some
7631 # reason, if we set the COLLECT_NAMES environment variable, the problems
7632 # vanish in a puff of smoke.
7633 if test "X${COLLECT_NAMES+set}" != Xset; then
7634 COLLECT_NAMES=
7635 export COLLECT_NAMES
7636 fi
7637 ;;
7638esac
d7040cdb 7639
ce2cded5
L
7640# Global variables:
7641ofile=libtool
7642can_build_shared=yes
d7040cdb 7643
ce2cded5
L
7644# All known linkers require a `.a' archive for static linking (except MSVC,
7645# which needs '.lib').
7646libext=a
d7040cdb 7647
ce2cded5 7648with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7649
ce2cded5
L
7650old_CC="$CC"
7651old_CFLAGS="$CFLAGS"
d7040cdb 7652
ce2cded5
L
7653# Set sane defaults for various variables
7654test -z "$CC" && CC=cc
7655test -z "$LTCC" && LTCC=$CC
7656test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7657test -z "$LD" && LD=ld
7658test -z "$ac_objext" && ac_objext=o
d7040cdb 7659
ce2cded5
L
7660for cc_temp in $compiler""; do
7661 case $cc_temp in
7662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7664 \-*) ;;
7665 *) break;;
7666 esac
7667done
3725885a 7668cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7669
7670
ce2cded5
L
7671# Only perform the check for file, if the check method requires it
7672test -z "$MAGIC_CMD" && MAGIC_CMD=file
7673case $deplibs_check_method in
7674file_magic*)
7675 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7677$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7678if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
ce2cded5
L
7680else
7681 case $MAGIC_CMD in
7682[\\/*] | ?:[\\/]*)
7683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7684 ;;
7685*)
7686 lt_save_MAGIC_CMD="$MAGIC_CMD"
7687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7689 for ac_dir in $ac_dummy; do
7690 IFS="$lt_save_ifs"
7691 test -z "$ac_dir" && ac_dir=.
7692 if test -f $ac_dir/${ac_tool_prefix}file; then
7693 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7694 if test -n "$file_magic_test_file"; then
7695 case $deplibs_check_method in
7696 "file_magic "*)
7697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7700 $EGREP "$file_magic_regex" > /dev/null; then
7701 :
7702 else
7703 cat <<_LT_EOF 1>&2
d7040cdb 7704
ce2cded5
L
7705*** Warning: the command libtool uses to detect shared libraries,
7706*** $file_magic_cmd, produces output that libtool cannot recognize.
7707*** The result is that libtool may fail to recognize shared libraries
7708*** as such. This will affect the creation of libtool libraries that
7709*** depend on shared libraries, but programs linked with such libtool
7710*** libraries will work regardless of this problem. Nevertheless, you
7711*** may want to report the problem to your system manager and/or to
7712*** bug-libtool@gnu.org
d7040cdb 7713
ce2cded5
L
7714_LT_EOF
7715 fi ;;
7716 esac
7717 fi
7718 break
7719 fi
7720 done
7721 IFS="$lt_save_ifs"
7722 MAGIC_CMD="$lt_save_MAGIC_CMD"
7723 ;;
7724esac
7725fi
d7040cdb 7726
ce2cded5
L
7727MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7730$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7731else
81ecdfbb
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
ce2cded5 7734fi
d7040cdb
SE
7735
7736
7737
7738
7739
ce2cded5
L
7740if test -z "$lt_cv_path_MAGIC_CMD"; then
7741 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7743$as_echo_n "checking for file... " >&6; }
7744if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
ce2cded5
L
7746else
7747 case $MAGIC_CMD in
7748[\\/*] | ?:[\\/]*)
7749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7750 ;;
7751*)
7752 lt_save_MAGIC_CMD="$MAGIC_CMD"
7753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7755 for ac_dir in $ac_dummy; do
7756 IFS="$lt_save_ifs"
7757 test -z "$ac_dir" && ac_dir=.
7758 if test -f $ac_dir/file; then
7759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7760 if test -n "$file_magic_test_file"; then
7761 case $deplibs_check_method in
7762 "file_magic "*)
7763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7766 $EGREP "$file_magic_regex" > /dev/null; then
7767 :
7768 else
7769 cat <<_LT_EOF 1>&2
d7040cdb 7770
ce2cded5
L
7771*** Warning: the command libtool uses to detect shared libraries,
7772*** $file_magic_cmd, produces output that libtool cannot recognize.
7773*** The result is that libtool may fail to recognize shared libraries
7774*** as such. This will affect the creation of libtool libraries that
7775*** depend on shared libraries, but programs linked with such libtool
7776*** libraries will work regardless of this problem. Nevertheless, you
7777*** may want to report the problem to your system manager and/or to
7778*** bug-libtool@gnu.org
d7040cdb 7779
ce2cded5
L
7780_LT_EOF
7781 fi ;;
7782 esac
7783 fi
7784 break
7785 fi
7786 done
7787 IFS="$lt_save_ifs"
7788 MAGIC_CMD="$lt_save_MAGIC_CMD"
7789 ;;
7790esac
7791fi
d7040cdb 7792
ce2cded5
L
7793MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7794if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7796$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7797else
81ecdfbb
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
ce2cded5 7800fi
d7040cdb
SE
7801
7802
ce2cded5
L
7803 else
7804 MAGIC_CMD=:
7805 fi
7806fi
d7040cdb 7807
ce2cded5
L
7808 fi
7809 ;;
7810esac
d7040cdb 7811
ce2cded5 7812# Use C for the default configuration in the libtool script
d7040cdb 7813
ce2cded5
L
7814lt_save_CC="$CC"
7815ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7820
7821
ce2cded5
L
7822# Source file extension for C test sources.
7823ac_ext=c
d7040cdb 7824
ce2cded5
L
7825# Object file extension for compiled C test sources.
7826objext=o
7827objext=$objext
d7040cdb 7828
ce2cded5
L
7829# Code to be used in simple compile tests
7830lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 7831
ce2cded5
L
7832# Code to be used in simple link tests
7833lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
7834
7835
7836
7837
7838
7839
7840
ce2cded5
L
7841# If no C compiler was specified, use CC.
7842LTCC=${LTCC-"$CC"}
d7040cdb 7843
ce2cded5
L
7844# If no C compiler flags were specified, use CFLAGS.
7845LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 7846
ce2cded5
L
7847# Allow CC to be a program name with arguments.
7848compiler=$CC
d7040cdb 7849
ce2cded5
L
7850# Save the default compiler, since it gets overwritten when the other
7851# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7852compiler_DEFAULT=$CC
d7040cdb 7853
ce2cded5
L
7854# save warnings/boilerplate of simple test code
7855ac_outfile=conftest.$ac_objext
7856echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7857eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7858_lt_compiler_boilerplate=`cat conftest.err`
7859$RM conftest*
d7040cdb 7860
ce2cded5
L
7861ac_outfile=conftest.$ac_objext
7862echo "$lt_simple_link_test_code" >conftest.$ac_ext
7863eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7864_lt_linker_boilerplate=`cat conftest.err`
b214d478 7865$RM -r conftest*
d7040cdb
SE
7866
7867
ce2cded5
L
7868## CAVEAT EMPTOR:
7869## There is no encapsulation within the following macros, do not change
7870## the running order or otherwise move them around unless you know exactly
7871## what you are doing...
7872if test -n "$compiler"; then
d7040cdb 7873
ce2cded5 7874lt_prog_compiler_no_builtin_flag=
d7040cdb 7875
ce2cded5 7876if test "$GCC" = yes; then
3725885a
RW
7877 case $cc_basename in
7878 nvcc*)
7879 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7880 *)
7881 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7882 esac
d7040cdb 7883
81ecdfbb
RW
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7885$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7886if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
ce2cded5
L
7888else
7889 lt_cv_prog_compiler_rtti_exceptions=no
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892 lt_compiler_flag="-fno-rtti -fno-exceptions"
7893 # Insert the option either (1) after the last *FLAGS variable, or
7894 # (2) before a word containing "conftest.", or (3) at the end.
7895 # Note that $ac_compile itself does not contain backslashes and begins
7896 # with a dollar sign (not a hyphen), so the echo should work correctly.
7897 # The option is referenced via a variable to avoid confusing sed.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
3725885a 7902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7903 (eval "$lt_compile" 2>conftest.err)
7904 ac_status=$?
7905 cat conftest.err >&5
3725885a 7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7907 if (exit $ac_status) && test -s "$ac_outfile"; then
7908 # The compiler can only warn and ignore the option if not recognized
7909 # So say no if there are warnings other than the usual output.
3725885a 7910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_rtti_exceptions=yes
7914 fi
7915 fi
7916 $RM conftest*
d7040cdb 7917
ce2cded5 7918fi
81ecdfbb
RW
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7920$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 7921
ce2cded5
L
7922if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7923 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7924else
7925 :
7926fi
d7040cdb 7927
ce2cded5 7928fi
d7040cdb
SE
7929
7930
7931
7932
7933
7934
ce2cded5
L
7935 lt_prog_compiler_wl=
7936lt_prog_compiler_pic=
7937lt_prog_compiler_static=
d7040cdb 7938
81ecdfbb
RW
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7940$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 7941
ce2cded5
L
7942 if test "$GCC" = yes; then
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_static='-static'
d7040cdb 7945
ce2cded5
L
7946 case $host_os in
7947 aix*)
7948 # All AIX code is PIC.
7949 if test "$host_cpu" = ia64; then
7950 # AIX 5 now supports IA64 processor
7951 lt_prog_compiler_static='-Bstatic'
7952 fi
6c9c0a50 7953 lt_prog_compiler_pic='-fPIC'
ce2cded5 7954 ;;
d7040cdb 7955
ce2cded5 7956 amigaos*)
b214d478
SE
7957 case $host_cpu in
7958 powerpc)
7959 # see comment about AmigaOS4 .so support
7960 lt_prog_compiler_pic='-fPIC'
7961 ;;
7962 m68k)
7963 # FIXME: we need at least 68020 code to build shared libraries, but
7964 # adding the `-m68020' flag to GCC prevents building anything better,
7965 # like `-m68040'.
7966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7967 ;;
7968 esac
ce2cded5 7969 ;;
d7040cdb 7970
ce2cded5
L
7971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7972 # PIC is the default for these OSes.
7973 ;;
d7040cdb 7974
b214d478 7975 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
7976 # This hack is so that the source file can tell whether it is being
7977 # built for inclusion in a dll (and should export symbols for example).
7978 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7979 # (--disable-auto-import) libraries
7980 lt_prog_compiler_pic='-DDLL_EXPORT'
7981 ;;
d7040cdb 7982
ce2cded5
L
7983 darwin* | rhapsody*)
7984 # PIC is the default on this platform
7985 # Common symbols not allowed in MH_DYLIB files
7986 lt_prog_compiler_pic='-fno-common'
7987 ;;
d7040cdb 7988
3725885a
RW
7989 haiku*)
7990 # PIC is the default for Haiku.
7991 # The "-static" flag exists, but is broken.
7992 lt_prog_compiler_static=
7993 ;;
7994
ce2cded5 7995 hpux*)
b214d478
SE
7996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7998 # sets the default TLS model and affects inlining.
ce2cded5 7999 case $host_cpu in
b214d478 8000 hppa*64*)
ce2cded5
L
8001 # +Z the default
8002 ;;
8003 *)
8004 lt_prog_compiler_pic='-fPIC'
8005 ;;
8006 esac
8007 ;;
d7040cdb 8008
ce2cded5
L
8009 interix[3-9]*)
8010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8011 # Instead, we relocate shared libraries at runtime.
8012 ;;
d7040cdb 8013
ce2cded5
L
8014 msdosdjgpp*)
8015 # Just because we use GCC doesn't mean we suddenly get shared libraries
8016 # on systems that don't support them.
8017 lt_prog_compiler_can_build_shared=no
8018 enable_shared=no
8019 ;;
d7040cdb 8020
ce2cded5
L
8021 *nto* | *qnx*)
8022 # QNX uses GNU C++, but need to define -shared option too, otherwise
8023 # it will coredump.
8024 lt_prog_compiler_pic='-fPIC -shared'
8025 ;;
d7040cdb 8026
ce2cded5
L
8027 sysv4*MP*)
8028 if test -d /usr/nec; then
8029 lt_prog_compiler_pic=-Kconform_pic
8030 fi
8031 ;;
d7040cdb 8032
ce2cded5
L
8033 *)
8034 lt_prog_compiler_pic='-fPIC'
8035 ;;
8036 esac
3725885a
RW
8037
8038 case $cc_basename in
8039 nvcc*) # Cuda Compiler Driver 2.2
8040 lt_prog_compiler_wl='-Xlinker '
8041 lt_prog_compiler_pic='-Xcompiler -fPIC'
8042 ;;
8043 esac
ce2cded5
L
8044 else
8045 # PORTME Check for flag to pass linker flags through the system compiler.
8046 case $host_os in
8047 aix*)
8048 lt_prog_compiler_wl='-Wl,'
8049 if test "$host_cpu" = ia64; then
8050 # AIX 5 now supports IA64 processor
8051 lt_prog_compiler_static='-Bstatic'
8052 else
8053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8054 fi
8055 ;;
d7040cdb 8056
b214d478 8057 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8058 # This hack is so that the source file can tell whether it is being
8059 # built for inclusion in a dll (and should export symbols for example).
8060 lt_prog_compiler_pic='-DDLL_EXPORT'
8061 ;;
d7040cdb 8062
ce2cded5
L
8063 hpux9* | hpux10* | hpux11*)
8064 lt_prog_compiler_wl='-Wl,'
8065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8066 # not for PA HP-UX.
8067 case $host_cpu in
8068 hppa*64*|ia64*)
8069 # +Z the default
8070 ;;
8071 *)
8072 lt_prog_compiler_pic='+Z'
8073 ;;
8074 esac
8075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8076 lt_prog_compiler_static='${wl}-a ${wl}archive'
8077 ;;
d7040cdb 8078
ce2cded5
L
8079 irix5* | irix6* | nonstopux*)
8080 lt_prog_compiler_wl='-Wl,'
8081 # PIC (with -KPIC) is the default.
8082 lt_prog_compiler_static='-non_shared'
8083 ;;
d7040cdb 8084
58e24671 8085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8086 case $cc_basename in
b214d478
SE
8087 # old Intel for x86_64 which still supported -KPIC.
8088 ecc*)
ce2cded5
L
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-static'
8092 ;;
b214d478
SE
8093 # icc used to be incompatible with GCC.
8094 # ICC 10 doesn't accept -KPIC any more.
8095 icc* | ifort*)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-fPIC'
8098 lt_prog_compiler_static='-static'
8099 ;;
8100 # Lahey Fortran 8.1.
8101 lf95*)
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_pic='--shared'
8104 lt_prog_compiler_static='--static'
8105 ;;
3725885a 8106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8107 # Portland Group compilers (*not* the Pentium gcc compiler,
8108 # which looks to be a dead project)
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-fpic'
8111 lt_prog_compiler_static='-Bstatic'
8112 ;;
8113 ccc*)
8114 lt_prog_compiler_wl='-Wl,'
8115 # All Alpha code is PIC.
8116 lt_prog_compiler_static='-non_shared'
8117 ;;
3725885a
RW
8118 xl* | bgxl* | bgf* | mpixl*)
8119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-qpic'
8122 lt_prog_compiler_static='-qstaticlink'
8123 ;;
ce2cded5
L
8124 *)
8125 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8126 *Sun\ F* | *Sun*Fortran*)
8127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8128 lt_prog_compiler_pic='-KPIC'
8129 lt_prog_compiler_static='-Bstatic'
3725885a 8130 lt_prog_compiler_wl=''
ce2cded5 8131 ;;
3725885a
RW
8132 *Sun\ C*)
8133 # Sun C 5.9
ce2cded5
L
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-Bstatic'
3725885a 8136 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8137 ;;
8138 esac
8139 ;;
8140 esac
8141 ;;
d7040cdb 8142
ce2cded5
L
8143 newsos6)
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 ;;
d7040cdb 8147
ce2cded5
L
8148 *nto* | *qnx*)
8149 # QNX uses GNU C++, but need to define -shared option too, otherwise
8150 # it will coredump.
8151 lt_prog_compiler_pic='-fPIC -shared'
8152 ;;
d7040cdb 8153
ce2cded5
L
8154 osf3* | osf4* | osf5*)
8155 lt_prog_compiler_wl='-Wl,'
8156 # All OSF/1 code is PIC.
8157 lt_prog_compiler_static='-non_shared'
8158 ;;
d7040cdb 8159
ce2cded5
L
8160 rdos*)
8161 lt_prog_compiler_static='-non_shared'
8162 ;;
d7040cdb 8163
ce2cded5
L
8164 solaris*)
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 case $cc_basename in
8168 f77* | f90* | f95*)
8169 lt_prog_compiler_wl='-Qoption ld ';;
8170 *)
8171 lt_prog_compiler_wl='-Wl,';;
8172 esac
8173 ;;
d7040cdb 8174
ce2cded5
L
8175 sunos4*)
8176 lt_prog_compiler_wl='-Qoption ld '
8177 lt_prog_compiler_pic='-PIC'
8178 lt_prog_compiler_static='-Bstatic'
8179 ;;
d7040cdb 8180
ce2cded5
L
8181 sysv4 | sysv4.2uw2* | sysv4.3*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
d7040cdb 8186
ce2cded5
L
8187 sysv4*MP*)
8188 if test -d /usr/nec ;then
8189 lt_prog_compiler_pic='-Kconform_pic'
8190 lt_prog_compiler_static='-Bstatic'
8191 fi
8192 ;;
d7040cdb 8193
ce2cded5
L
8194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8198 ;;
d7040cdb 8199
ce2cded5
L
8200 unicos*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_can_build_shared=no
8203 ;;
d7040cdb 8204
ce2cded5
L
8205 uts4*)
8206 lt_prog_compiler_pic='-pic'
8207 lt_prog_compiler_static='-Bstatic'
8208 ;;
d7040cdb 8209
ce2cded5
L
8210 *)
8211 lt_prog_compiler_can_build_shared=no
8212 ;;
8213 esac
8214 fi
d7040cdb 8215
ce2cded5
L
8216case $host_os in
8217 # For platforms which do not support PIC, -DPIC is meaningless:
8218 *djgpp*)
8219 lt_prog_compiler_pic=
8220 ;;
8221 *)
8222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8223 ;;
8224esac
81ecdfbb
RW
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8226$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8227
8228
8229
8230
8231
8232
ce2cded5
L
8233#
8234# Check to make sure the PIC flag actually works.
8235#
8236if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8238$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8239if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
ce2cded5 8241else
b214d478 8242 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8243 ac_outfile=conftest.$ac_objext
8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8246 # Insert the option either (1) after the last *FLAGS variable, or
8247 # (2) before a word containing "conftest.", or (3) at the end.
8248 # Note that $ac_compile itself does not contain backslashes and begins
8249 # with a dollar sign (not a hyphen), so the echo should work correctly.
8250 # The option is referenced via a variable to avoid confusing sed.
8251 lt_compile=`echo "$ac_compile" | $SED \
8252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8254 -e 's:$: $lt_compiler_flag:'`
3725885a 8255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8256 (eval "$lt_compile" 2>conftest.err)
8257 ac_status=$?
8258 cat conftest.err >&5
3725885a 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8260 if (exit $ac_status) && test -s "$ac_outfile"; then
8261 # The compiler can only warn and ignore the option if not recognized
8262 # So say no if there are warnings other than the usual output.
3725885a 8263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8266 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8267 fi
8268 fi
8269 $RM conftest*
d7040cdb 8270
ce2cded5 8271fi
81ecdfbb
RW
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8273$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8274
b214d478 8275if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8276 case $lt_prog_compiler_pic in
8277 "" | " "*) ;;
8278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8279 esac
8280else
8281 lt_prog_compiler_pic=
8282 lt_prog_compiler_can_build_shared=no
8283fi
d7040cdb 8284
ce2cded5 8285fi
d7040cdb
SE
8286
8287
8288
8289
8290
8291
ce2cded5
L
8292#
8293# Check to make sure the static flag actually works.
8294#
8295wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8297$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8298if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
ce2cded5 8300else
b214d478 8301 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8302 save_LDFLAGS="$LDFLAGS"
8303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8306 # The linker can only warn and ignore the option if not recognized
8307 # So say no if there are warnings
8308 if test -s conftest.err; then
8309 # Append any errors to the config.log.
8310 cat conftest.err 1>&5
3725885a 8311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8313 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8314 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8315 fi
8316 else
b214d478 8317 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8318 fi
8319 fi
b214d478 8320 $RM -r conftest*
ce2cded5 8321 LDFLAGS="$save_LDFLAGS"
d7040cdb 8322
ce2cded5 8323fi
81ecdfbb
RW
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8325$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8326
b214d478 8327if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8328 :
8329else
8330 lt_prog_compiler_static=
8331fi
d7040cdb
SE
8332
8333
8334
8335
8336
8337
8338
81ecdfbb
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8341if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
ce2cded5
L
8343else
8344 lt_cv_prog_compiler_c_o=no
8345 $RM -r conftest 2>/dev/null
8346 mkdir conftest
8347 cd conftest
8348 mkdir out
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8350
ce2cded5
L
8351 lt_compiler_flag="-o out/conftest2.$ac_objext"
8352 # Insert the option either (1) after the last *FLAGS variable, or
8353 # (2) before a word containing "conftest.", or (3) at the end.
8354 # Note that $ac_compile itself does not contain backslashes and begins
8355 # with a dollar sign (not a hyphen), so the echo should work correctly.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
3725885a 8360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8361 (eval "$lt_compile" 2>out/conftest.err)
8362 ac_status=$?
8363 cat out/conftest.err >&5
3725885a 8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8366 then
8367 # The compiler can only warn and ignore the option if not recognized
8368 # So say no if there are warnings
3725885a 8369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8372 lt_cv_prog_compiler_c_o=yes
8373 fi
8374 fi
8375 chmod u+w . 2>&5
8376 $RM conftest*
8377 # SGI C++ compiler will create directory out/ii_files/ for
8378 # template instantiation
8379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8380 $RM out/* && rmdir out
8381 cd ..
8382 $RM -r conftest
8383 $RM conftest*
8384
8385fi
81ecdfbb
RW
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8387$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8388
8389
8390
8391
8392
8393
81ecdfbb
RW
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8396if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
d7040cdb 8398else
ce2cded5
L
8399 lt_cv_prog_compiler_c_o=no
8400 $RM -r conftest 2>/dev/null
8401 mkdir conftest
8402 cd conftest
8403 mkdir out
8404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8405
8406 lt_compiler_flag="-o out/conftest2.$ac_objext"
8407 # Insert the option either (1) after the last *FLAGS variable, or
8408 # (2) before a word containing "conftest.", or (3) at the end.
8409 # Note that $ac_compile itself does not contain backslashes and begins
8410 # with a dollar sign (not a hyphen), so the echo should work correctly.
8411 lt_compile=`echo "$ac_compile" | $SED \
8412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8414 -e 's:$: $lt_compiler_flag:'`
3725885a 8415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8416 (eval "$lt_compile" 2>out/conftest.err)
8417 ac_status=$?
8418 cat out/conftest.err >&5
3725885a 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8421 then
8422 # The compiler can only warn and ignore the option if not recognized
8423 # So say no if there are warnings
3725885a 8424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8427 lt_cv_prog_compiler_c_o=yes
8428 fi
8429 fi
8430 chmod u+w . 2>&5
8431 $RM conftest*
8432 # SGI C++ compiler will create directory out/ii_files/ for
8433 # template instantiation
8434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8435 $RM out/* && rmdir out
8436 cd ..
8437 $RM -r conftest
8438 $RM conftest*
8439
d7040cdb 8440fi
81ecdfbb
RW
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8442$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8443
d7040cdb 8444
d7040cdb 8445
d7040cdb 8446
ce2cded5
L
8447hard_links="nottested"
8448if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8449 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8451$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8452 hard_links=yes
8453 $RM conftest*
8454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8455 touch conftest.a
8456 ln conftest.a conftest.b 2>&5 || hard_links=no
8457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8459$as_echo "$hard_links" >&6; }
ce2cded5 8460 if test "$hard_links" = no; then
81ecdfbb
RW
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8462$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8463 need_locks=warn
d7040cdb 8464 fi
ce2cded5
L
8465else
8466 need_locks=no
8467fi
d7040cdb 8468
d7040cdb 8469
d7040cdb 8470
d7040cdb 8471
d7040cdb 8472
d7040cdb 8473
81ecdfbb
RW
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8476
ce2cded5
L
8477 runpath_var=
8478 allow_undefined_flag=
8479 always_export_symbols=no
8480 archive_cmds=
8481 archive_expsym_cmds=
8482 compiler_needs_object=no
8483 enable_shared_with_static_runtimes=no
8484 export_dynamic_flag_spec=
8485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8486 hardcode_automatic=no
8487 hardcode_direct=no
8488 hardcode_direct_absolute=no
8489 hardcode_libdir_flag_spec=
8490 hardcode_libdir_flag_spec_ld=
8491 hardcode_libdir_separator=
8492 hardcode_minus_L=no
8493 hardcode_shlibpath_var=unsupported
8494 inherit_rpath=no
8495 link_all_deplibs=unknown
8496 module_cmds=
8497 module_expsym_cmds=
8498 old_archive_from_new_cmds=
8499 old_archive_from_expsyms_cmds=
8500 thread_safe_flag_spec=
8501 whole_archive_flag_spec=
8502 # include_expsyms should be a list of space-separated symbols to be *always*
8503 # included in the symbol list
8504 include_expsyms=
8505 # exclude_expsyms can be an extended regexp of symbols to exclude
8506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8508 # as well as any symbol that contains `d'.
b214d478 8509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8511 # platforms (ab)use it in PIC code, but their linkers get confused if
8512 # the symbol is explicitly referenced. Since portable code cannot
8513 # rely on this symbol name, it's probably fine to never include it in
8514 # preloaded symbol tables.
b214d478 8515 # Exclude shared library initialization/finalization symbols.
ce2cded5 8516 extract_expsyms_cmds=
d7040cdb 8517
d7040cdb 8518 case $host_os in
b214d478 8519 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8521 # When not using gcc, we currently assume that we are using
8522 # Microsoft Visual C++.
8523 if test "$GCC" != yes; then
8524 with_gnu_ld=no
8525 fi
d7040cdb 8526 ;;
ce2cded5
L
8527 interix*)
8528 # we just hope/assume this is gcc and not c89 (= MSVC++)
8529 with_gnu_ld=yes
d7040cdb 8530 ;;
ce2cded5
L
8531 openbsd*)
8532 with_gnu_ld=no
d7040cdb
SE
8533 ;;
8534 esac
d7040cdb 8535
ce2cded5 8536 ld_shlibs=yes
3725885a
RW
8537
8538 # On some targets, GNU ld is compatible enough with the native linker
8539 # that we're better off using the native interface for both.
8540 lt_use_gnu_ld_interface=no
ce2cded5 8541 if test "$with_gnu_ld" = yes; then
3725885a
RW
8542 case $host_os in
8543 aix*)
8544 # The AIX port of GNU ld has always aspired to compatibility
8545 # with the native linker. However, as the warning in the GNU ld
8546 # block says, versions before 2.19.5* couldn't really create working
8547 # shared libraries, regardless of the interface used.
8548 case `$LD -v 2>&1` in
8549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8552 *)
8553 lt_use_gnu_ld_interface=yes
8554 ;;
8555 esac
8556 ;;
8557 *)
8558 lt_use_gnu_ld_interface=yes
8559 ;;
8560 esac
8561 fi
8562
8563 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8564 # If archive_cmds runs LD, not CC, wlarc should be empty
8565 wlarc='${wl}'
d7040cdb 8566
ce2cded5
L
8567 # Set some defaults for GNU ld with shared library support. These
8568 # are reset later if shared libraries are not supported. Putting them
8569 # here allows them to be overridden if necessary.
8570 runpath_var=LD_RUN_PATH
8571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572 export_dynamic_flag_spec='${wl}--export-dynamic'
8573 # ancient GNU ld didn't support --whole-archive et. al.
8574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8576 else
ce2cded5 8577 whole_archive_flag_spec=
d7040cdb 8578 fi
ce2cded5
L
8579 supports_anon_versioning=no
8580 case `$LD -v 2>&1` in
3725885a 8581 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8585 *\ 2.11.*) ;; # other 2.11 versions
8586 *) supports_anon_versioning=yes ;;
8587 esac
d7040cdb 8588
ce2cded5
L
8589 # See if GNU ld supports shared libraries.
8590 case $host_os in
50e7d84b 8591 aix[3-9]*)
ce2cded5
L
8592 # On AIX/PPC, the GNU linker is very broken
8593 if test "$host_cpu" != ia64; then
8594 ld_shlibs=no
8595 cat <<_LT_EOF 1>&2
d7040cdb 8596
3725885a 8597*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8598*** to be unable to reliably create shared libraries on AIX.
8599*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8600*** really care for shared libraries, you may want to install binutils
8601*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8602*** You will then need to restart the configuration process.
d7040cdb 8603
ce2cded5
L
8604_LT_EOF
8605 fi
8606 ;;
d7040cdb 8607
ce2cded5 8608 amigaos*)
b214d478
SE
8609 case $host_cpu in
8610 powerpc)
8611 # see comment about AmigaOS4 .so support
8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613 archive_expsym_cmds=''
8614 ;;
8615 m68k)
8616 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)'
8617 hardcode_libdir_flag_spec='-L$libdir'
8618 hardcode_minus_L=yes
8619 ;;
8620 esac
ce2cded5 8621 ;;
d7040cdb 8622
ce2cded5
L
8623 beos*)
8624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625 allow_undefined_flag=unsupported
8626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8627 # support --undefined. This deserves some investigation. FIXME
8628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629 else
8630 ld_shlibs=no
8631 fi
8632 ;;
d7040cdb 8633
b214d478 8634 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8636 # as there is no search path for DLLs.
8637 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8638 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8639 allow_undefined_flag=unsupported
8640 always_export_symbols=no
8641 enable_shared_with_static_runtimes=yes
8642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8643
ce2cded5
L
8644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8646 # If the export-symbols file already is a .def file (1st line
8647 # is EXPORTS), use it as is; otherwise, prepend...
8648 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8649 cp $export_symbols $output_objdir/$soname.def;
8650 else
8651 echo EXPORTS > $output_objdir/$soname.def;
8652 cat $export_symbols >> $output_objdir/$soname.def;
8653 fi~
8654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8655 else
8656 ld_shlibs=no
8657 fi
8658 ;;
d7040cdb 8659
3725885a
RW
8660 haiku*)
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 link_all_deplibs=yes
8663 ;;
8664
ce2cded5
L
8665 interix[3-9]*)
8666 hardcode_direct=no
8667 hardcode_shlibpath_var=no
8668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8669 export_dynamic_flag_spec='${wl}-E'
8670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8671 # Instead, shared libraries are loaded at an image base (0x10000000 by
8672 # default) and relocated if they conflict, which is a slow very memory
8673 # consuming and fragmenting process. To avoid this, we pick a random,
8674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8677 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'
8678 ;;
d7040cdb 8679
58e24671 8680 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8681 tmp_diet=no
8682 if test "$host_os" = linux-dietlibc; then
8683 case $cc_basename in
8684 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8685 esac
8686 fi
8687 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8688 && test "$tmp_diet" = no
8689 then
6e733cce 8690 tmp_addflag=' $pic_flag'
b214d478 8691 tmp_sharedflag='-shared'
ce2cded5
L
8692 case $cc_basename,$host_cpu in
8693 pgcc*) # Portland Group C compiler
3725885a 8694 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'
ce2cded5
L
8695 tmp_addflag=' $pic_flag'
8696 ;;
3725885a
RW
8697 pgf77* | pgf90* | pgf95* | pgfortran*)
8698 # Portland Group f77 and f90 compilers
8699 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'
ce2cded5
L
8700 tmp_addflag=' $pic_flag -Mnomain' ;;
8701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8702 tmp_addflag=' -i_dynamic' ;;
8703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8704 tmp_addflag=' -i_dynamic -nofor_main' ;;
8705 ifc* | ifort*) # Intel Fortran compiler
8706 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8707 lf95*) # Lahey Fortran 8.1
8708 whole_archive_flag_spec=
8709 tmp_sharedflag='--shared' ;;
3725885a 8710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
8711 tmp_sharedflag='-qmkshrobj'
8712 tmp_addflag= ;;
3725885a
RW
8713 nvcc*) # Cuda Compiler Driver 2.2
8714 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'
8715 compiler_needs_object=yes
8716 ;;
ce2cded5
L
8717 esac
8718 case `$CC -V 2>&1 | sed 5q` in
8719 *Sun\ C*) # Sun C 5.9
3725885a 8720 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'
ce2cded5
L
8721 compiler_needs_object=yes
8722 tmp_sharedflag='-G' ;;
8723 *Sun\ F*) # Sun Fortran 8.3
8724 tmp_sharedflag='-G' ;;
ce2cded5
L
8725 esac
8726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8727
ce2cded5
L
8728 if test "x$supports_anon_versioning" = xyes; then
8729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8731 echo "local: *; };" >> $output_objdir/$libname.ver~
8732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8733 fi
b214d478
SE
8734
8735 case $cc_basename in
3725885a 8736 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
8737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8739 hardcode_libdir_flag_spec=
8740 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8741 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8742 if test "x$supports_anon_versioning" = xyes; then
8743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745 echo "local: *; };" >> $output_objdir/$libname.ver~
8746 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8747 fi
8748 ;;
8749 esac
ce2cded5
L
8750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
d7040cdb 8754
ce2cded5
L
8755 netbsd*)
8756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8758 wlarc=
8759 else
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 fi
8763 ;;
d7040cdb 8764
ce2cded5
L
8765 solaris*)
8766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8767 ld_shlibs=no
8768 cat <<_LT_EOF 1>&2
d7040cdb 8769
ce2cded5
L
8770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8771*** create shared libraries on Solaris systems. Therefore, libtool
8772*** is disabling shared libraries support. We urge you to upgrade GNU
8773*** binutils to release 2.9.1 or newer. Another option is to modify
8774*** your PATH or compiler configuration so that the native linker is
8775*** used, and then restart.
d7040cdb 8776
ce2cded5
L
8777_LT_EOF
8778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8781 else
8782 ld_shlibs=no
8783 fi
8784 ;;
d7040cdb 8785
ce2cded5
L
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8787 case `$LD -v 2>&1` in
8788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8789 ld_shlibs=no
8790 cat <<_LT_EOF 1>&2
d7040cdb 8791
ce2cded5
L
8792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8793*** reliably create shared libraries on SCO systems. Therefore, libtool
8794*** is disabling shared libraries support. We urge you to upgrade GNU
8795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8796*** your PATH or compiler configuration so that the native linker is
8797*** used, and then restart.
d7040cdb 8798
ce2cded5
L
8799_LT_EOF
8800 ;;
8801 *)
8802 # For security reasons, it is highly recommended that you always
8803 # use absolute paths for naming shared libraries, and exclude the
8804 # DT_RUNPATH tag from executables and libraries. But doing so
8805 # requires that you compile everything twice, which is a pain.
8806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 else
8811 ld_shlibs=no
8812 fi
8813 ;;
8814 esac
d7040cdb 8815 ;;
ce2cded5
L
8816
8817 sunos4*)
8818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819 wlarc=
8820 hardcode_direct=yes
8821 hardcode_shlibpath_var=no
d7040cdb 8822 ;;
d7040cdb 8823
ce2cded5
L
8824 *)
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832 esac
d7040cdb 8833
ce2cded5
L
8834 if test "$ld_shlibs" = no; then
8835 runpath_var=
8836 hardcode_libdir_flag_spec=
8837 export_dynamic_flag_spec=
8838 whole_archive_flag_spec=
8839 fi
d7040cdb 8840 else
ce2cded5 8841 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 8842 case $host_os in
ce2cded5
L
8843 aix3*)
8844 allow_undefined_flag=unsupported
8845 always_export_symbols=yes
8846 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'
8847 # Note: this linker hardcodes the directories in LIBPATH if there
8848 # are no directories specified by -L.
8849 hardcode_minus_L=yes
8850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8851 # Neither direct hardcoding nor static linking is supported with a
8852 # broken collect2.
8853 hardcode_direct=unsupported
8854 fi
8855 ;;
d7040cdb 8856
50e7d84b 8857 aix[4-9]*)
ce2cded5
L
8858 if test "$host_cpu" = ia64; then
8859 # On IA64, the linker does run time linking by default, so we don't
8860 # have to do anything special.
8861 aix_use_runtimelinking=no
8862 exp_sym_flag='-Bexport'
8863 no_entry_flag=""
8864 else
8865 # If we're using GNU nm, then we don't want the "-C" option.
8866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8867 # Also, AIX nm treats weak defined symbols like other global
8868 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8870 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'
ce2cded5 8871 else
5c14705f 8872 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'
ce2cded5
L
8873 fi
8874 aix_use_runtimelinking=no
d7040cdb 8875
ce2cded5
L
8876 # Test if we are trying to use run time linking or normal
8877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8878 # need to do runtime linking.
50e7d84b 8879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8880 for ld_flag in $LDFLAGS; do
8881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8882 aix_use_runtimelinking=yes
8883 break
8884 fi
8885 done
8886 ;;
8887 esac
d7040cdb 8888
ce2cded5
L
8889 exp_sym_flag='-bexport'
8890 no_entry_flag='-bnoentry'
8891 fi
d7040cdb 8892
ce2cded5
L
8893 # When large executables or shared objects are built, AIX ld can
8894 # have problems creating the table of contents. If linking a library
8895 # or program results in "error TOC overflow" add -mminimal-toc to
8896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8898
ce2cded5
L
8899 archive_cmds=''
8900 hardcode_direct=yes
8901 hardcode_direct_absolute=yes
8902 hardcode_libdir_separator=':'
8903 link_all_deplibs=yes
8904 file_list_spec='${wl}-f,'
d7040cdb 8905
ce2cded5
L
8906 if test "$GCC" = yes; then
8907 case $host_os in aix4.[012]|aix4.[012].*)
8908 # We only want to do this on AIX 4.2 and lower, the check
8909 # below for broken collect2 doesn't work under 4.3+
8910 collect2name=`${CC} -print-prog-name=collect2`
8911 if test -f "$collect2name" &&
8912 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8913 then
8914 # We have reworked collect2
8915 :
8916 else
8917 # We have old collect2
8918 hardcode_direct=unsupported
8919 # It fails to find uninstalled libraries when the uninstalled
8920 # path is not listed in the libpath. Setting hardcode_minus_L
8921 # to unsupported forces relinking
8922 hardcode_minus_L=yes
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_libdir_separator=
8925 fi
8926 ;;
8927 esac
8928 shared_flag='-shared'
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag="$shared_flag "'${wl}-G'
8931 fi
8932 else
8933 # not using gcc
8934 if test "$host_cpu" = ia64; then
8935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8936 # chokes on -Wl,-G. The following line is correct:
8937 shared_flag='-G'
8938 else
8939 if test "$aix_use_runtimelinking" = yes; then
8940 shared_flag='${wl}-G'
8941 else
8942 shared_flag='${wl}-bM:SRE'
8943 fi
8944 fi
8945 fi
d7040cdb 8946
b214d478 8947 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
8948 # It seems that -bexpall does not export symbols beginning with
8949 # underscore (_), so it is better to generate a list of symbols to export.
8950 always_export_symbols=yes
8951 if test "$aix_use_runtimelinking" = yes; then
8952 # Warning - without using the other runtime loading flags (-brtl),
8953 # -berok will link without error, but may produce a broken library.
8954 allow_undefined_flag='-berok'
8955 # Determine the default libpath from the value encoded in an
8956 # empty executable.
81ecdfbb 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
8958/* end confdefs.h. */
8959
d7040cdb
SE
8960int
8961main ()
8962{
ce2cded5 8963
d7040cdb
SE
8964 ;
8965 return 0;
8966}
8967_ACEOF
81ecdfbb 8968if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8969
ce2cded5
L
8970lt_aix_libpath_sed='
8971 /Import File Strings/,/^$/ {
8972 /^0/ {
8973 s/^0 *\(.*\)$/\1/
8974 p
8975 }
8976 }'
8977aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8978# Check for a 64-bit object if we didn't find anything.
8979if test -z "$aix_libpath"; then
8980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 8981fi
d7040cdb 8982fi
81ecdfbb
RW
8983rm -f core conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
8985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986
8987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8988 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"
ce2cded5
L
8989 else
8990 if test "$host_cpu" = ia64; then
8991 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8992 allow_undefined_flag="-z nodefs"
8993 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"
8994 else
8995 # Determine the default libpath from the value encoded in an
8996 # empty executable.
81ecdfbb 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
8998/* end confdefs.h. */
8999
d7040cdb
SE
9000int
9001main ()
9002{
ce2cded5 9003
d7040cdb
SE
9004 ;
9005 return 0;
9006}
9007_ACEOF
81ecdfbb 9008if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9009
9010lt_aix_libpath_sed='
9011 /Import File Strings/,/^$/ {
9012 /^0/ {
9013 s/^0 *\(.*\)$/\1/
9014 p
9015 }
9016 }'
9017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9018# Check for a 64-bit object if we didn't find anything.
9019if test -z "$aix_libpath"; then
9020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021fi
d7040cdb 9022fi
81ecdfbb
RW
9023rm -f core conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9026
ce2cded5
L
9027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9028 # Warning - without using the other run time loading flags,
9029 # -berok will link without error, but may produce a broken library.
9030 no_undefined_flag=' ${wl}-bernotok'
9031 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9032 if test "$with_gnu_ld" = yes; then
9033 # We only use this code for GNU lds that support --whole-archive.
9034 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9035 else
9036 # Exported symbols can be pulled into shared objects from archives
9037 whole_archive_flag_spec='$convenience'
9038 fi
ce2cded5
L
9039 archive_cmds_need_lc=yes
9040 # This is similar to how AIX traditionally builds its shared libraries.
9041 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'
9042 fi
9043 fi
9044 ;;
d7040cdb 9045
ce2cded5 9046 amigaos*)
b214d478
SE
9047 case $host_cpu in
9048 powerpc)
9049 # see comment about AmigaOS4 .so support
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds=''
9052 ;;
9053 m68k)
9054 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)'
9055 hardcode_libdir_flag_spec='-L$libdir'
9056 hardcode_minus_L=yes
9057 ;;
9058 esac
ce2cded5 9059 ;;
d7040cdb 9060
ce2cded5
L
9061 bsdi[45]*)
9062 export_dynamic_flag_spec=-rdynamic
9063 ;;
d7040cdb 9064
b214d478 9065 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9066 # When not using gcc, we currently assume that we are using
9067 # Microsoft Visual C++.
9068 # hardcode_libdir_flag_spec is actually meaningless, as there is
9069 # no search path for DLLs.
9070 hardcode_libdir_flag_spec=' '
9071 allow_undefined_flag=unsupported
9072 # Tell ltmain to make .lib files, not .a files.
9073 libext=lib
9074 # Tell ltmain to make .dll files, not .so files.
9075 shrext_cmds=".dll"
9076 # FIXME: Setting linknames here is a bad hack.
3725885a 9077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9078 # The linker will automatically build a .lib file if we build a DLL.
9079 old_archive_from_new_cmds='true'
9080 # FIXME: Should let the user specify the lib program.
9081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9082 fix_srcfile_path='`cygpath -w "$srcfile"`'
9083 enable_shared_with_static_runtimes=yes
9084 ;;
d7040cdb 9085
ce2cded5 9086 darwin* | rhapsody*)
ce2cded5 9087
b214d478
SE
9088
9089 archive_cmds_need_lc=no
9090 hardcode_direct=no
9091 hardcode_automatic=yes
9092 hardcode_shlibpath_var=unsupported
3725885a
RW
9093 if test "$lt_cv_ld_force_load" = "yes"; then
9094 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\"`'
9095 else
9096 whole_archive_flag_spec=''
9097 fi
b214d478
SE
9098 link_all_deplibs=yes
9099 allow_undefined_flag="$_lt_dar_allow_undefined"
9100 case $cc_basename in
9101 ifort*) _lt_dar_can_shared=yes ;;
9102 *) _lt_dar_can_shared=$GCC ;;
9103 esac
9104 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9105 output_verbose_link_cmd=func_echo_all
b214d478
SE
9106 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9107 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9108 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}"
9109 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}"
9110
9111 else
9112 ld_shlibs=no
9113 fi
9114
ce2cded5
L
9115 ;;
9116
9117 dgux*)
9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_shlibpath_var=no
9121 ;;
9122
ce2cded5
L
9123 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9124 # support. Future versions do this automatically, but an explicit c++rt0.o
9125 # does not break anything, and helps significantly (at the cost of a little
9126 # extra space).
9127 freebsd2.2*)
9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9129 hardcode_libdir_flag_spec='-R$libdir'
9130 hardcode_direct=yes
9131 hardcode_shlibpath_var=no
9132 ;;
9133
9134 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9135 freebsd2.*)
ce2cded5
L
9136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9137 hardcode_direct=yes
9138 hardcode_minus_L=yes
9139 hardcode_shlibpath_var=no
9140 ;;
9141
9142 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9143 freebsd* | dragonfly*)
9144 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9145 hardcode_libdir_flag_spec='-R$libdir'
9146 hardcode_direct=yes
9147 hardcode_shlibpath_var=no
9148 ;;
9149
9150 hpux9*)
9151 if test "$GCC" = yes; then
9152 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'
9153 else
9154 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'
9155 fi
9156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157 hardcode_libdir_separator=:
9158 hardcode_direct=yes
9159
9160 # hardcode_minus_L: Not really in the search PATH,
9161 # but as the default location of the library.
9162 hardcode_minus_L=yes
9163 export_dynamic_flag_spec='${wl}-E'
9164 ;;
9165
9166 hpux10*)
3725885a 9167 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9168 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169 else
9170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9171 fi
9172 if test "$with_gnu_ld" = no; then
9173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174 hardcode_libdir_flag_spec_ld='+b $libdir'
9175 hardcode_libdir_separator=:
9176 hardcode_direct=yes
9177 hardcode_direct_absolute=yes
9178 export_dynamic_flag_spec='${wl}-E'
9179 # hardcode_minus_L: Not really in the search PATH,
9180 # but as the default location of the library.
9181 hardcode_minus_L=yes
9182 fi
9183 ;;
9184
9185 hpux11*)
3725885a 9186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9187 case $host_cpu in
9188 hppa*64*)
9189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9190 ;;
9191 ia64*)
b214d478 9192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9193 ;;
9194 *)
9195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9196 ;;
9197 esac
9198 else
9199 case $host_cpu in
9200 hppa*64*)
9201 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202 ;;
9203 ia64*)
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205 ;;
9206 *)
3725885a
RW
9207
9208 # Older versions of the 11.00 compiler do not understand -b yet
9209 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9211$as_echo_n "checking if $CC understands -b... " >&6; }
9212if test "${lt_cv_prog_compiler__b+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214else
9215 lt_cv_prog_compiler__b=no
9216 save_LDFLAGS="$LDFLAGS"
9217 LDFLAGS="$LDFLAGS -b"
9218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9220 # The linker can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
9222 if test -s conftest.err; then
9223 # Append any errors to the config.log.
9224 cat conftest.err 1>&5
9225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9227 if diff conftest.exp conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler__b=yes
9229 fi
9230 else
9231 lt_cv_prog_compiler__b=yes
9232 fi
9233 fi
9234 $RM -r conftest*
9235 LDFLAGS="$save_LDFLAGS"
9236
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9239$as_echo "$lt_cv_prog_compiler__b" >&6; }
9240
9241if test x"$lt_cv_prog_compiler__b" = xyes; then
9242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243else
9244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9245fi
9246
ce2cded5
L
9247 ;;
9248 esac
9249 fi
9250 if test "$with_gnu_ld" = no; then
9251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9252 hardcode_libdir_separator=:
9253
9254 case $host_cpu in
9255 hppa*64*|ia64*)
9256 hardcode_direct=no
9257 hardcode_shlibpath_var=no
9258 ;;
9259 *)
9260 hardcode_direct=yes
9261 hardcode_direct_absolute=yes
9262 export_dynamic_flag_spec='${wl}-E'
9263
9264 # hardcode_minus_L: Not really in the search PATH,
9265 # but as the default location of the library.
9266 hardcode_minus_L=yes
9267 ;;
9268 esac
9269 fi
9270 ;;
9271
9272 irix5* | irix6* | nonstopux*)
9273 if test "$GCC" = yes; then
3725885a 9274 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'
ce2cded5
L
9275 # Try to use the -exported_symbol ld option, if it does not
9276 # work, assume that -exports_file does not work either and
9277 # implicitly export all symbols.
9278 save_LDFLAGS="$LDFLAGS"
9279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h. */
ce2cded5 9282int foo(void) {}
d7040cdb 9283_ACEOF
81ecdfbb 9284if ac_fn_c_try_link "$LINENO"; then :
3725885a 9285 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'
ce2cded5 9286
d7040cdb 9287fi
81ecdfbb
RW
9288rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9290 LDFLAGS="$save_LDFLAGS"
9291 else
3725885a
RW
9292 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'
9293 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'
ce2cded5
L
9294 fi
9295 archive_cmds_need_lc='no'
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 hardcode_libdir_separator=:
9298 inherit_rpath=yes
9299 link_all_deplibs=yes
9300 ;;
9301
9302 netbsd*)
9303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9305 else
9306 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9307 fi
9308 hardcode_libdir_flag_spec='-R$libdir'
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9311 ;;
9312
9313 newsos6)
9314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_direct=yes
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 hardcode_libdir_separator=:
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 *nto* | *qnx*)
9322 ;;
9323
9324 openbsd*)
b214d478
SE
9325 if test -f /usr/libexec/ld.so; then
9326 hardcode_direct=yes
9327 hardcode_shlibpath_var=no
9328 hardcode_direct_absolute=yes
9329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9331 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9333 export_dynamic_flag_spec='${wl}-E'
9334 else
9335 case $host_os in
9336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_libdir_flag_spec='-R$libdir'
9339 ;;
9340 *)
9341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 ;;
9344 esac
9345 fi
9346 else
9347 ld_shlibs=no
ce2cded5
L
9348 fi
9349 ;;
9350
9351 os2*)
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 hardcode_minus_L=yes
9354 allow_undefined_flag=unsupported
3725885a 9355 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'
ce2cded5
L
9356 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9357 ;;
9358
9359 osf3*)
9360 if test "$GCC" = yes; then
9361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9362 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'
ce2cded5
L
9363 else
9364 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9365 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'
ce2cded5
L
9366 fi
9367 archive_cmds_need_lc='no'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 hardcode_libdir_separator=:
9370 ;;
9371
9372 osf4* | osf5*) # as osf3* with the addition of -msym flag
9373 if test "$GCC" = yes; then
9374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9375 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'
ce2cded5
L
9376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9377 else
9378 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9379 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'
ce2cded5 9380 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~
3725885a 9381 $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'
ce2cded5
L
9382
9383 # Both c and cxx compiler support -rpath directly
9384 hardcode_libdir_flag_spec='-rpath $libdir'
9385 fi
9386 archive_cmds_need_lc='no'
9387 hardcode_libdir_separator=:
9388 ;;
9389
9390 solaris*)
9391 no_undefined_flag=' -z defs'
9392 if test "$GCC" = yes; then
9393 wlarc='${wl}'
9394 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9396 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9397 else
9398 case `$CC -V 2>&1` in
9399 *"Compilers 5.0"*)
9400 wlarc=''
9401 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9404 ;;
9405 *)
9406 wlarc='${wl}'
9407 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9409 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9410 ;;
9411 esac
9412 fi
9413 hardcode_libdir_flag_spec='-R$libdir'
9414 hardcode_shlibpath_var=no
9415 case $host_os in
9416 solaris2.[0-5] | solaris2.[0-5].*) ;;
9417 *)
9418 # The compiler driver will combine and reorder linker options,
9419 # but understands `-z linker_flag'. GCC discards it without `$wl',
9420 # but is careful enough not to reorder.
9421 # Supported since Solaris 2.6 (maybe 2.5.1?)
9422 if test "$GCC" = yes; then
9423 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9424 else
9425 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9426 fi
9427 ;;
9428 esac
9429 link_all_deplibs=yes
9430 ;;
9431
9432 sunos4*)
9433 if test "x$host_vendor" = xsequent; then
9434 # Use $CC to link under sequent, because it throws in some extra .o
9435 # files that make .init and .fini sections work.
9436 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9437 else
9438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9439 fi
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_direct=yes
9442 hardcode_minus_L=yes
9443 hardcode_shlibpath_var=no
9444 ;;
9445
9446 sysv4)
9447 case $host_vendor in
9448 sni)
9449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_direct=yes # is this really true???
9451 ;;
9452 siemens)
9453 ## LD is ld it makes a PLAMLIB
9454 ## CC just makes a GrossModule.
9455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9456 reload_cmds='$CC -r -o $output$reload_objs'
9457 hardcode_direct=no
9458 ;;
9459 motorola)
9460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9462 ;;
9463 esac
9464 runpath_var='LD_RUN_PATH'
9465 hardcode_shlibpath_var=no
9466 ;;
9467
9468 sysv4.3*)
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_shlibpath_var=no
9471 export_dynamic_flag_spec='-Bexport'
9472 ;;
9473
9474 sysv4*MP*)
9475 if test -d /usr/nec; then
9476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477 hardcode_shlibpath_var=no
9478 runpath_var=LD_RUN_PATH
9479 hardcode_runpath_var=yes
9480 ld_shlibs=yes
9481 fi
9482 ;;
9483
9484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9485 no_undefined_flag='${wl}-z,text'
9486 archive_cmds_need_lc=no
9487 hardcode_shlibpath_var=no
9488 runpath_var='LD_RUN_PATH'
9489
9490 if test "$GCC" = yes; then
9491 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 else
9494 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 fi
9497 ;;
9498
9499 sysv5* | sco3.2v5* | sco5v6*)
9500 # Note: We can NOT use -z defs as we might desire, because we do not
9501 # link with -lc, and that would cause any symbols used from libc to
9502 # always be unresolved, which means just about no library would
9503 # ever link correctly. If we're not using GNU ld we use -z text
9504 # though, which does catch some bad symbols but isn't as heavy-handed
9505 # as -z defs.
9506 no_undefined_flag='${wl}-z,text'
9507 allow_undefined_flag='${wl}-z,nodefs'
9508 archive_cmds_need_lc=no
9509 hardcode_shlibpath_var=no
9510 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9511 hardcode_libdir_separator=':'
9512 link_all_deplibs=yes
9513 export_dynamic_flag_spec='${wl}-Bexport'
9514 runpath_var='LD_RUN_PATH'
9515
9516 if test "$GCC" = yes; then
9517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 else
9520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 fi
9523 ;;
9524
9525 uts4*)
9526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 *)
9532 ld_shlibs=no
9533 ;;
9534 esac
9535
9536 if test x$host_vendor = xsni; then
9537 case $host in
9538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9539 export_dynamic_flag_spec='${wl}-Blargedynsym'
9540 ;;
9541 esac
9542 fi
9543 fi
9544
81ecdfbb
RW
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9546$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9547test "$ld_shlibs" = no && can_build_shared=no
9548
9549with_gnu_ld=$with_gnu_ld
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565#
9566# Do we need to explicitly link libc?
9567#
9568case "x$archive_cmds_need_lc" in
9569x|xyes)
9570 # Assume -lc should be added
9571 archive_cmds_need_lc=yes
9572
9573 if test "$enable_shared" = yes && test "$GCC" = yes; then
9574 case $archive_cmds in
9575 *'~'*)
9576 # FIXME: we may have to deal with multi-command sequences.
9577 ;;
9578 '$CC '*)
9579 # Test whether the compiler implicitly links with -lc since on some
9580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9581 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9583$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9584if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
39144654
RW
9586else
9587 $RM conftest*
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9589
81ecdfbb 9590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9591 (eval $ac_compile) 2>&5
9592 ac_status=$?
81ecdfbb
RW
9593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9594 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9595 soname=conftest
9596 lib=conftest
9597 libobjs=conftest.$ac_objext
9598 deplibs=
9599 wl=$lt_prog_compiler_wl
9600 pic_flag=$lt_prog_compiler_pic
9601 compiler_flags=-v
9602 linker_flags=-v
9603 verstring=
9604 output_objdir=.
9605 libname=conftest
9606 lt_save_allow_undefined_flag=$allow_undefined_flag
9607 allow_undefined_flag=
81ecdfbb 9608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9609 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9610 ac_status=$?
81ecdfbb
RW
9611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9612 test $ac_status = 0; }
39144654
RW
9613 then
9614 lt_cv_archive_cmds_need_lc=no
9615 else
9616 lt_cv_archive_cmds_need_lc=yes
9617 fi
9618 allow_undefined_flag=$lt_save_allow_undefined_flag
9619 else
9620 cat conftest.err 1>&5
9621 fi
9622 $RM conftest*
9623
9624fi
81ecdfbb
RW
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9626$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9627 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9628 ;;
9629 esac
9630 fi
9631 ;;
9632esac
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
81ecdfbb
RW
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9791$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
9792
9793if test "$GCC" = yes; then
ce2cded5
L
9794 case $host_os in
9795 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9796 *) lt_awk_arg="/^libraries:/" ;;
9797 esac
3725885a
RW
9798 case $host_os in
9799 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9800 *) lt_sed_strip_eq="s,=/,/,g" ;;
9801 esac
9802 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9803 case $lt_search_path_spec in
9804 *\;*)
ce2cded5
L
9805 # if the path contains ";" then we assume it to be the separator
9806 # otherwise default to the standard path separator (i.e. ":") - it is
9807 # assumed that no part of a normal pathname contains ";" but that should
9808 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9809 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9810 ;;
9811 *)
9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9813 ;;
9814 esac
ce2cded5
L
9815 # Ok, now we have the path, separated by spaces, we can step through it
9816 # and add multilib dir if necessary.
9817 lt_tmp_lt_search_path_spec=
9818 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9819 for lt_sys_path in $lt_search_path_spec; do
9820 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9822 else
9823 test -d "$lt_sys_path" && \
9824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9825 fi
9826 done
3725885a 9827 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9828BEGIN {RS=" "; FS="/|\n";} {
9829 lt_foo="";
9830 lt_count=0;
9831 for (lt_i = NF; lt_i > 0; lt_i--) {
9832 if ($lt_i != "" && $lt_i != ".") {
9833 if ($lt_i == "..") {
9834 lt_count++;
9835 } else {
9836 if (lt_count == 0) {
9837 lt_foo="/" $lt_i lt_foo;
9838 } else {
9839 lt_count--;
9840 }
9841 }
9842 }
9843 }
9844 if (lt_foo != "") { lt_freq[lt_foo]++; }
9845 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9846}'`
3725885a
RW
9847 # AWK program above erroneously prepends '/' to C:/dos/paths
9848 # for these hosts.
9849 case $host_os in
9850 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9851 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9852 esac
9853 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ce2cded5
L
9854else
9855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9856fi
9857library_names_spec=
9858libname_spec='lib$name'
9859soname_spec=
9860shrext_cmds=".so"
9861postinstall_cmds=
9862postuninstall_cmds=
9863finish_cmds=
9864finish_eval=
9865shlibpath_var=
9866shlibpath_overrides_runpath=unknown
9867version_type=none
9868dynamic_linker="$host_os ld.so"
9869sys_lib_dlsearch_path_spec="/lib /usr/lib"
9870need_lib_prefix=unknown
9871hardcode_into_libs=no
9872
9873# when you set need_version to no, make sure it does not cause -set_version
9874# flags to be left without arguments
9875need_version=unknown
9876
9877case $host_os in
9878aix3*)
9879 version_type=linux
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9881 shlibpath_var=LIBPATH
9882
9883 # AIX 3 has no versioning support, so we append a major version to the name.
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 ;;
9886
50e7d84b 9887aix[4-9]*)
ce2cded5
L
9888 version_type=linux
9889 need_lib_prefix=no
9890 need_version=no
9891 hardcode_into_libs=yes
9892 if test "$host_cpu" = ia64; then
9893 # AIX 5 supports IA64
9894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 else
9897 # With GCC up to 2.95.x, collect2 would create an import file
9898 # for dependence libraries. The import file would start with
9899 # the line `#! .'. This would cause the generated library to
9900 # depend on `.', always an invalid library. This was fixed in
9901 # development snapshots of GCC prior to 3.0.
9902 case $host_os in
9903 aix4 | aix4.[01] | aix4.[01].*)
9904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9905 echo ' yes '
9906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9907 :
9908 else
9909 can_build_shared=no
9910 fi
9911 ;;
9912 esac
9913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9914 # soname into executable. Probably we can add versioning support to
9915 # collect2, so additional links can be useful in future.
9916 if test "$aix_use_runtimelinking" = yes; then
9917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9918 # instead of lib<name>.a to let people know that these are not
9919 # typical AIX shared libraries.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 else
9922 # We preserve .a as extension for shared libraries through AIX4.2
9923 # and later when we are not doing run time linking.
9924 library_names_spec='${libname}${release}.a $libname.a'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 fi
9927 shlibpath_var=LIBPATH
9928 fi
9929 ;;
9930
9931amigaos*)
b214d478
SE
9932 case $host_cpu in
9933 powerpc)
9934 # Since July 2007 AmigaOS4 officially supports .so libraries.
9935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 ;;
9938 m68k)
ce2cded5
L
9939 library_names_spec='$libname.ixlibrary $libname.a'
9940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9941 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'
b214d478
SE
9942 ;;
9943 esac
ce2cded5
L
9944 ;;
9945
9946beos*)
9947 library_names_spec='${libname}${shared_ext}'
9948 dynamic_linker="$host_os ld.so"
9949 shlibpath_var=LIBRARY_PATH
9950 ;;
9951
9952bsdi[45]*)
9953 version_type=linux
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9961 # the default ld.so.conf also contains /usr/contrib/lib and
9962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9963 # libtool to hard-code these into programs
9964 ;;
9965
b214d478 9966cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9967 version_type=windows
9968 shrext_cmds=".dll"
9969 need_version=no
9970 need_lib_prefix=no
9971
b214d478
SE
9972 case $GCC,$host_os in
9973 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
9974 library_names_spec='$libname.dll.a'
9975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9976 postinstall_cmds='base_file=`basename \${file}`~
9977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9978 dldir=$destdir/`dirname \$dlpath`~
9979 test -d \$dldir || mkdir -p \$dldir~
9980 $install_prog $dir/$dlname \$dldir/$dlname~
9981 chmod a+x \$dldir/$dlname~
9982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9984 fi'
9985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9986 dlpath=$dir/\$dldll~
9987 $RM \$dlpath'
9988 shlibpath_overrides_runpath=yes
9989
9990 case $host_os in
9991 cygwin*)
9992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9994
9995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 9996 ;;
b214d478 9997 mingw* | cegcc*)
ce2cded5
L
9998 # MinGW DLLs use traditional 'lib' prefix
9999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10000 ;;
10001 pw32*)
10002 # pw32 DLLs use 'pw' prefix rather than 'lib'
10003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004 ;;
10005 esac
10006 ;;
10007
10008 *)
10009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10010 ;;
10011 esac
10012 dynamic_linker='Win32 ld.exe'
10013 # FIXME: first we should search . and the directory the executable is in
10014 shlibpath_var=PATH
10015 ;;
10016
10017darwin* | rhapsody*)
10018 dynamic_linker="$host_os dyld"
10019 version_type=darwin
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10023 soname_spec='${libname}${release}${major}$shared_ext'
10024 shlibpath_overrides_runpath=yes
10025 shlibpath_var=DYLD_LIBRARY_PATH
10026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10027
10028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10030 ;;
10031
10032dgux*)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 ;;
10040
ce2cded5
L
10041freebsd* | dragonfly*)
10042 # DragonFly does not have aout. When/if they implement a new
10043 # versioning mechanism, adjust this.
10044 if test -x /usr/bin/objformat; then
10045 objformat=`/usr/bin/objformat`
10046 else
10047 case $host_os in
6d2920c8 10048 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10049 *) objformat=elf ;;
10050 esac
10051 fi
10052 version_type=freebsd-$objformat
10053 case $version_type in
10054 freebsd-elf*)
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10056 need_version=no
10057 need_lib_prefix=no
10058 ;;
10059 freebsd-*)
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10061 need_version=yes
10062 ;;
10063 esac
10064 shlibpath_var=LD_LIBRARY_PATH
10065 case $host_os in
6d2920c8 10066 freebsd2.*)
ce2cded5
L
10067 shlibpath_overrides_runpath=yes
10068 ;;
10069 freebsd3.[01]* | freebsdelf3.[01]*)
10070 shlibpath_overrides_runpath=yes
10071 hardcode_into_libs=yes
10072 ;;
10073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10075 shlibpath_overrides_runpath=no
10076 hardcode_into_libs=yes
10077 ;;
10078 *) # from 4.6 on, and DragonFly
10079 shlibpath_overrides_runpath=yes
10080 hardcode_into_libs=yes
10081 ;;
10082 esac
10083 ;;
10084
10085gnu*)
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 hardcode_into_libs=yes
10093 ;;
10094
3725885a
RW
10095haiku*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 dynamic_linker="$host_os runtime_loader"
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes
10104 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10105 hardcode_into_libs=yes
10106 ;;
10107
ce2cded5
L
10108hpux9* | hpux10* | hpux11*)
10109 # Give a soname corresponding to the major version so that dld.sl refuses to
10110 # link against other versions.
10111 version_type=sunos
10112 need_lib_prefix=no
10113 need_version=no
10114 case $host_cpu in
10115 ia64*)
10116 shrext_cmds='.so'
10117 hardcode_into_libs=yes
10118 dynamic_linker="$host_os dld.so"
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 if test "X$HPUX_IA64_MODE" = X32; then
10124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10125 else
10126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10127 fi
10128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10129 ;;
10130 hppa*64*)
10131 shrext_cmds='.sl'
10132 hardcode_into_libs=yes
10133 dynamic_linker="$host_os dld.sl"
10134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 ;;
10141 *)
10142 shrext_cmds='.sl'
10143 dynamic_linker="$host_os dld.sl"
10144 shlibpath_var=SHLIB_PATH
10145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 ;;
10149 esac
3725885a 10150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10151 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10152 # or fails outright, so override atomically:
10153 install_override_mode=555
ce2cded5
L
10154 ;;
10155
10156interix[3-9]*)
10157 version_type=linux
10158 need_lib_prefix=no
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=no
10165 hardcode_into_libs=yes
10166 ;;
d7040cdb 10167
ce2cded5
L
10168irix5* | irix6* | nonstopux*)
10169 case $host_os in
10170 nonstopux*) version_type=nonstopux ;;
10171 *)
10172 if test "$lt_cv_prog_gnu_ld" = yes; then
10173 version_type=linux
10174 else
10175 version_type=irix
10176 fi ;;
10177 esac
10178 need_lib_prefix=no
10179 need_version=no
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10182 case $host_os in
10183 irix5* | nonstopux*)
10184 libsuff= shlibsuff=
10185 ;;
10186 *)
10187 case $LD in # libtool.m4 will add one of these switches to LD
10188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10189 libsuff= shlibsuff= libmagic=32-bit;;
10190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10191 libsuff=32 shlibsuff=N32 libmagic=N32;;
10192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10193 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10194 *) libsuff= shlibsuff= libmagic=never-match;;
10195 esac
10196 ;;
10197 esac
10198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10199 shlibpath_overrides_runpath=no
10200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10202 hardcode_into_libs=yes
10203 ;;
d7040cdb 10204
ce2cded5
L
10205# No shared lib support for Linux oldld, aout, or coff.
10206linux*oldld* | linux*aout* | linux*coff*)
10207 dynamic_linker=no
10208 ;;
10209
10210# This must be Linux ELF.
58e24671 10211linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10212 version_type=linux
10213 need_lib_prefix=no
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=no
39144654 10220
ce2cded5 10221 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10222 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
39144654
RW
10224else
10225 lt_cv_shlibpath_overrides_runpath=no
10226 save_LDFLAGS=$LDFLAGS
10227 save_libdir=$libdir
10228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10231/* end confdefs.h. */
10232
d7040cdb
SE
10233int
10234main ()
10235{
ce2cded5 10236
d7040cdb
SE
10237 ;
10238 return 0;
10239}
10240_ACEOF
81ecdfbb
RW
10241if ac_fn_c_try_link "$LINENO"; then :
10242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10243 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10244fi
d7040cdb 10245fi
81ecdfbb
RW
10246rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10248 LDFLAGS=$save_LDFLAGS
10249 libdir=$save_libdir
10250
10251fi
10252
10253 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10254
ce2cded5
L
10255 # This implies no fast_install, which is unacceptable.
10256 # Some rework will be needed to allow for fast_install
10257 # before this can be enabled.
10258 hardcode_into_libs=yes
d7040cdb 10259
ce2cded5
L
10260 # Append ld.so.conf contents to the search path
10261 if test -f /etc/ld.so.conf; then
3725885a 10262 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' ' '`
ce2cded5
L
10263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10264 fi
d7040cdb 10265
ce2cded5
L
10266 # We used to test for /lib/ld.so.1 and disable shared libraries on
10267 # powerpc, because MkLinux only supported shared libraries with the
10268 # GNU dynamic linker. Since this was broken with cross compilers,
10269 # most powerpc-linux boxes support dynamic linking these days and
10270 # people can always --disable-shared, the test was removed, and we
10271 # assume the GNU/Linux dynamic linker is in use.
10272 dynamic_linker='GNU/Linux ld.so'
10273 ;;
d7040cdb 10274
ce2cded5
L
10275netbsd*)
10276 version_type=sunos
10277 need_lib_prefix=no
10278 need_version=no
10279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 dynamic_linker='NetBSD (a.out) ld.so'
10283 else
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 dynamic_linker='NetBSD ld.elf_so'
10287 fi
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10291 ;;
d7040cdb 10292
ce2cded5
L
10293newsos6)
10294 version_type=linux
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10298 ;;
d7040cdb 10299
ce2cded5
L
10300*nto* | *qnx*)
10301 version_type=qnx
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=no
10308 hardcode_into_libs=yes
10309 dynamic_linker='ldqnx.so'
10310 ;;
d7040cdb 10311
ce2cded5
L
10312openbsd*)
10313 version_type=sunos
10314 sys_lib_dlsearch_path_spec="/usr/lib"
10315 need_lib_prefix=no
10316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10317 case $host_os in
10318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10319 *) need_version=no ;;
d7040cdb 10320 esac
ce2cded5
L
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10325 case $host_os in
10326 openbsd2.[89] | openbsd2.[89].*)
10327 shlibpath_overrides_runpath=no
10328 ;;
10329 *)
10330 shlibpath_overrides_runpath=yes
10331 ;;
10332 esac
d7040cdb 10333 else
ce2cded5 10334 shlibpath_overrides_runpath=yes
d7040cdb 10335 fi
ce2cded5 10336 ;;
d7040cdb 10337
ce2cded5
L
10338os2*)
10339 libname_spec='$name'
10340 shrext_cmds=".dll"
10341 need_lib_prefix=no
10342 library_names_spec='$libname${shared_ext} $libname.a'
10343 dynamic_linker='OS/2 ld.exe'
10344 shlibpath_var=LIBPATH
10345 ;;
d7040cdb 10346
ce2cded5
L
10347osf3* | osf4* | osf5*)
10348 version_type=osf
10349 need_lib_prefix=no
10350 need_version=no
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10356 ;;
d7040cdb 10357
ce2cded5
L
10358rdos*)
10359 dynamic_linker=no
10360 ;;
d7040cdb 10361
ce2cded5
L
10362solaris*)
10363 version_type=linux
10364 need_lib_prefix=no
10365 need_version=no
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10371 # ldd complains unless libraries are executable
10372 postinstall_cmds='chmod +x $lib'
10373 ;;
d7040cdb 10374
ce2cded5
L
10375sunos4*)
10376 version_type=sunos
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 if test "$with_gnu_ld" = yes; then
10382 need_lib_prefix=no
10383 fi
10384 need_version=yes
10385 ;;
d7040cdb 10386
ce2cded5
L
10387sysv4 | sysv4.3*)
10388 version_type=linux
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 case $host_vendor in
10393 sni)
10394 shlibpath_overrides_runpath=no
10395 need_lib_prefix=no
10396 runpath_var=LD_RUN_PATH
10397 ;;
10398 siemens)
10399 need_lib_prefix=no
10400 ;;
10401 motorola)
10402 need_lib_prefix=no
10403 need_version=no
10404 shlibpath_overrides_runpath=no
10405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10406 ;;
10407 esac
10408 ;;
d7040cdb 10409
ce2cded5
L
10410sysv4*MP*)
10411 if test -d /usr/nec ;then
10412 version_type=linux
10413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10414 soname_spec='$libname${shared_ext}.$major'
10415 shlibpath_var=LD_LIBRARY_PATH
10416 fi
10417 ;;
d7040cdb 10418
ce2cded5
L
10419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10420 version_type=freebsd-elf
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=yes
10427 hardcode_into_libs=yes
10428 if test "$with_gnu_ld" = yes; then
10429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10430 else
10431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10432 case $host_os in
10433 sco3.2v5*)
10434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10435 ;;
10436 esac
10437 fi
10438 sys_lib_dlsearch_path_spec='/usr/lib'
10439 ;;
d7040cdb 10440
ce2cded5
L
10441tpf*)
10442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10443 version_type=linux
10444 need_lib_prefix=no
10445 need_version=no
b214d478 10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=no
10449 hardcode_into_libs=yes
10450 ;;
d7040cdb 10451
ce2cded5
L
10452uts4*)
10453 version_type=linux
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 ;;
d7040cdb 10458
ce2cded5
L
10459*)
10460 dynamic_linker=no
10461 ;;
10462esac
81ecdfbb
RW
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10464$as_echo "$dynamic_linker" >&6; }
ce2cded5 10465test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10466
ce2cded5
L
10467variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10468if test "$GCC" = yes; then
10469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10470fi
d7040cdb 10471
b214d478
SE
10472if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10473 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10474fi
10475if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10477fi
10478
d7040cdb 10479
d7040cdb 10480
d7040cdb 10481
d7040cdb 10482
d7040cdb 10483
d7040cdb 10484
d7040cdb 10485
d7040cdb 10486
d7040cdb 10487
d7040cdb 10488
d7040cdb
SE
10489
10490
d7040cdb 10491
d7040cdb 10492
d7040cdb 10493
d7040cdb
SE
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
d7040cdb
SE
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
d7040cdb 10523
d7040cdb 10524
d7040cdb 10525
d7040cdb 10526
d7040cdb
SE
10527
10528
10529
10530
d7040cdb 10531
d7040cdb
SE
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
d7040cdb
SE
10545
10546
10547
10548
d7040cdb
SE
10549
10550
10551
d7040cdb
SE
10552
10553
d7040cdb 10554
d7040cdb 10555
d7040cdb 10556
ce2cded5
L
10557
10558
3725885a
RW
10559
10560
10561
10562
10563
ce2cded5
L
10564
10565
10566
10567
10568
10569
81ecdfbb
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10571$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10572hardcode_action=
10573if test -n "$hardcode_libdir_flag_spec" ||
10574 test -n "$runpath_var" ||
10575 test "X$hardcode_automatic" = "Xyes" ; then
10576
10577 # We can hardcode non-existent directories.
10578 if test "$hardcode_direct" != no &&
10579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10580 # have to relink, otherwise we might link with an installed library
10581 # when we should be linking with a yet-to-be-installed one
10582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10583 test "$hardcode_minus_L" != no; then
10584 # Linking always hardcodes the temporary library directory.
10585 hardcode_action=relink
10586 else
10587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10588 hardcode_action=immediate
10589 fi
d7040cdb 10590else
ce2cded5
L
10591 # We cannot hardcode anything, or else we can only hardcode existing
10592 # directories.
10593 hardcode_action=unsupported
d7040cdb 10594fi
81ecdfbb
RW
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10596$as_echo "$hardcode_action" >&6; }
d7040cdb 10597
ce2cded5
L
10598if test "$hardcode_action" = relink ||
10599 test "$inherit_rpath" = yes; then
10600 # Fast installation is not supported
10601 enable_fast_install=no
10602elif test "$shlibpath_overrides_runpath" = yes ||
10603 test "$enable_shared" = no; then
10604 # Fast installation is not necessary
10605 enable_fast_install=needless
d7040cdb
SE
10606fi
10607
d7040cdb 10608
d7040cdb 10609
0ab6f085 10610
0ab6f085 10611
0ab6f085 10612
ce2cded5
L
10613 if test "x$enable_dlopen" != xyes; then
10614 enable_dlopen=unknown
10615 enable_dlopen_self=unknown
10616 enable_dlopen_self_static=unknown
d7040cdb 10617else
ce2cded5
L
10618 lt_cv_dlopen=no
10619 lt_cv_dlopen_libs=
d7040cdb 10620
ce2cded5
L
10621 case $host_os in
10622 beos*)
10623 lt_cv_dlopen="load_add_on"
10624 lt_cv_dlopen_libs=
10625 lt_cv_dlopen_self=yes
10626 ;;
d7040cdb 10627
b214d478 10628 mingw* | pw32* | cegcc*)
ce2cded5
L
10629 lt_cv_dlopen="LoadLibrary"
10630 lt_cv_dlopen_libs=
10631 ;;
10632
10633 cygwin*)
10634 lt_cv_dlopen="dlopen"
10635 lt_cv_dlopen_libs=
10636 ;;
10637
10638 darwin*)
10639 # if libdl is installed we need to link against it
81ecdfbb
RW
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10641$as_echo_n "checking for dlopen in -ldl... " >&6; }
10642if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
d7040cdb 10644else
ce2cded5
L
10645 ac_check_lib_save_LIBS=$LIBS
10646LIBS="-ldl $LIBS"
81ecdfbb 10647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10648/* end confdefs.h. */
10649
81ecdfbb
RW
10650/* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
ce2cded5
L
10653#ifdef __cplusplus
10654extern "C"
10655#endif
ce2cded5
L
10656char dlopen ();
10657int
10658main ()
10659{
81ecdfbb 10660return dlopen ();
ce2cded5
L
10661 ;
10662 return 0;
10663}
10664_ACEOF
81ecdfbb 10665if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10666 ac_cv_lib_dl_dlopen=yes
10667else
81ecdfbb 10668 ac_cv_lib_dl_dlopen=no
d7040cdb 10669fi
81ecdfbb
RW
10670rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10672LIBS=$ac_check_lib_save_LIBS
d7040cdb 10673fi
81ecdfbb
RW
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10675$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10676if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10678else
d7040cdb 10679
ce2cded5
L
10680 lt_cv_dlopen="dyld"
10681 lt_cv_dlopen_libs=
10682 lt_cv_dlopen_self=yes
10683
d7040cdb 10684fi
ce2cded5
L
10685
10686 ;;
10687
10688 *)
81ecdfbb
RW
10689 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10690if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10691 lt_cv_dlopen="shl_load"
10692else
81ecdfbb
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10694$as_echo_n "checking for shl_load in -ldld... " >&6; }
10695if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
ce2cded5
L
10697else
10698 ac_check_lib_save_LIBS=$LIBS
10699LIBS="-ldld $LIBS"
81ecdfbb 10700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10701/* end confdefs.h. */
d7040cdb 10702
81ecdfbb
RW
10703/* Override any GCC internal prototype to avoid an error.
10704 Use char because int might match the return type of a GCC
10705 builtin and then its argument prototype would still apply. */
ce2cded5
L
10706#ifdef __cplusplus
10707extern "C"
10708#endif
ce2cded5
L
10709char shl_load ();
10710int
10711main ()
10712{
81ecdfbb 10713return shl_load ();
ce2cded5
L
10714 ;
10715 return 0;
10716}
10717_ACEOF
81ecdfbb 10718if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10719 ac_cv_lib_dld_shl_load=yes
10720else
81ecdfbb 10721 ac_cv_lib_dld_shl_load=no
ce2cded5 10722fi
81ecdfbb
RW
10723rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10725LIBS=$ac_check_lib_save_LIBS
10726fi
81ecdfbb
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10728$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10729if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10730 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10731else
81ecdfbb
RW
10732 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10733if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10734 lt_cv_dlopen="dlopen"
10735else
81ecdfbb
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10737$as_echo_n "checking for dlopen in -ldl... " >&6; }
10738if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
d7040cdb 10740else
ce2cded5
L
10741 ac_check_lib_save_LIBS=$LIBS
10742LIBS="-ldl $LIBS"
81ecdfbb 10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10744/* end confdefs.h. */
10745
81ecdfbb
RW
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
ce2cded5
L
10749#ifdef __cplusplus
10750extern "C"
10751#endif
ce2cded5 10752char dlopen ();
d7040cdb
SE
10753int
10754main ()
10755{
81ecdfbb 10756return dlopen ();
d7040cdb
SE
10757 ;
10758 return 0;
10759}
10760_ACEOF
81ecdfbb 10761if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10762 ac_cv_lib_dl_dlopen=yes
d7040cdb 10763else
81ecdfbb 10764 ac_cv_lib_dl_dlopen=no
1b9750d6 10765fi
81ecdfbb
RW
10766rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10768LIBS=$ac_check_lib_save_LIBS
d7040cdb 10769fi
81ecdfbb
RW
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10772if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10774else
81ecdfbb
RW
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10776$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10777if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
d7040cdb 10779else
ce2cded5
L
10780 ac_check_lib_save_LIBS=$LIBS
10781LIBS="-lsvld $LIBS"
81ecdfbb 10782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10783/* end confdefs.h. */
d7040cdb 10784
81ecdfbb
RW
10785/* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
ce2cded5
L
10788#ifdef __cplusplus
10789extern "C"
10790#endif
ce2cded5 10791char dlopen ();
d7040cdb
SE
10792int
10793main ()
10794{
81ecdfbb 10795return dlopen ();
d7040cdb
SE
10796 ;
10797 return 0;
10798}
10799_ACEOF
81ecdfbb 10800if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10801 ac_cv_lib_svld_dlopen=yes
0ab6f085 10802else
81ecdfbb 10803 ac_cv_lib_svld_dlopen=no
0ab6f085 10804fi
81ecdfbb
RW
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10807LIBS=$ac_check_lib_save_LIBS
0ab6f085 10808fi
81ecdfbb
RW
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10810$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10811if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10813else
81ecdfbb
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10815$as_echo_n "checking for dld_link in -ldld... " >&6; }
10816if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
ce2cded5
L
10818else
10819 ac_check_lib_save_LIBS=$LIBS
10820LIBS="-ldld $LIBS"
81ecdfbb 10821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 10822/* end confdefs.h. */
ce2cded5 10823
81ecdfbb
RW
10824/* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
ce2cded5
L
10827#ifdef __cplusplus
10828extern "C"
10829#endif
ce2cded5 10830char dld_link ();
0ab6f085
AM
10831int
10832main ()
10833{
81ecdfbb 10834return dld_link ();
0ab6f085
AM
10835 ;
10836 return 0;
10837}
10838_ACEOF
81ecdfbb 10839if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10840 ac_cv_lib_dld_dld_link=yes
0ab6f085 10841else
81ecdfbb 10842 ac_cv_lib_dld_dld_link=no
0ab6f085 10843fi
81ecdfbb
RW
10844rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10846LIBS=$ac_check_lib_save_LIBS
10847fi
81ecdfbb
RW
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10849$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10850if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 10851 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10852fi
10853
10854
10855fi
10856
10857
10858fi
10859
10860
10861fi
10862
10863
10864fi
10865
10866
10867fi
10868
10869 ;;
10870 esac
10871
10872 if test "x$lt_cv_dlopen" != xno; then
10873 enable_dlopen=yes
10874 else
10875 enable_dlopen=no
10876 fi
10877
10878 case $lt_cv_dlopen in
10879 dlopen)
10880 save_CPPFLAGS="$CPPFLAGS"
10881 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10882
10883 save_LDFLAGS="$LDFLAGS"
10884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10885
10886 save_LIBS="$LIBS"
10887 LIBS="$lt_cv_dlopen_libs $LIBS"
10888
81ecdfbb
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10890$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10891if test "${lt_cv_dlopen_self+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
ce2cded5
L
10893else
10894 if test "$cross_compiling" = yes; then :
10895 lt_cv_dlopen_self=cross
10896else
10897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10898 lt_status=$lt_dlunknown
10899 cat > conftest.$ac_ext <<_LT_EOF
b879806f 10900#line 10900 "configure"
ce2cded5
L
10901#include "confdefs.h"
10902
10903#if HAVE_DLFCN_H
10904#include <dlfcn.h>
10905#endif
10906
10907#include <stdio.h>
10908
10909#ifdef RTLD_GLOBAL
10910# define LT_DLGLOBAL RTLD_GLOBAL
10911#else
10912# ifdef DL_GLOBAL
10913# define LT_DLGLOBAL DL_GLOBAL
10914# else
10915# define LT_DLGLOBAL 0
10916# endif
10917#endif
10918
10919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10920 find out it does not work in some platform. */
10921#ifndef LT_DLLAZY_OR_NOW
10922# ifdef RTLD_LAZY
10923# define LT_DLLAZY_OR_NOW RTLD_LAZY
10924# else
10925# ifdef DL_LAZY
10926# define LT_DLLAZY_OR_NOW DL_LAZY
10927# else
10928# ifdef RTLD_NOW
10929# define LT_DLLAZY_OR_NOW RTLD_NOW
10930# else
10931# ifdef DL_NOW
10932# define LT_DLLAZY_OR_NOW DL_NOW
10933# else
10934# define LT_DLLAZY_OR_NOW 0
10935# endif
10936# endif
10937# endif
10938# endif
10939#endif
10940
3725885a
RW
10941/* When -fvisbility=hidden is used, assume the code has been annotated
10942 correspondingly for the symbols needed. */
10943#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10944void fnord () __attribute__((visibility("default")));
10945#endif
10946
10947void fnord () { int i=42; }
ce2cded5 10948int main ()
0ab6f085 10949{
ce2cded5
L
10950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10951 int status = $lt_dlunknown;
10952
10953 if (self)
10954 {
10955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10956 else
10957 {
10958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10959 else puts (dlerror ());
10960 }
ce2cded5
L
10961 /* dlclose (self); */
10962 }
10963 else
10964 puts (dlerror ());
10965
b214d478 10966 return status;
ce2cded5
L
10967}
10968_LT_EOF
81ecdfbb 10969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
10970 (eval $ac_link) 2>&5
10971 ac_status=$?
81ecdfbb
RW
10972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10973 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
10974 (./conftest; exit; ) >&5 2>/dev/null
10975 lt_status=$?
10976 case x$lt_status in
10977 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10978 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10979 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10980 esac
10981 else :
10982 # compilation failed
10983 lt_cv_dlopen_self=no
10984 fi
10985fi
10986rm -fr conftest*
10987
10988
10989fi
81ecdfbb
RW
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10991$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
10992
10993 if test "x$lt_cv_dlopen_self" = xyes; then
10994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10996$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10997if test "${lt_cv_dlopen_self_static+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
ce2cded5
L
10999else
11000 if test "$cross_compiling" = yes; then :
11001 lt_cv_dlopen_self_static=cross
11002else
11003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11004 lt_status=$lt_dlunknown
11005 cat > conftest.$ac_ext <<_LT_EOF
b879806f 11006#line 11006 "configure"
ce2cded5
L
11007#include "confdefs.h"
11008
11009#if HAVE_DLFCN_H
11010#include <dlfcn.h>
11011#endif
11012
11013#include <stdio.h>
11014
11015#ifdef RTLD_GLOBAL
11016# define LT_DLGLOBAL RTLD_GLOBAL
11017#else
11018# ifdef DL_GLOBAL
11019# define LT_DLGLOBAL DL_GLOBAL
11020# else
11021# define LT_DLGLOBAL 0
11022# endif
11023#endif
11024
11025/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11026 find out it does not work in some platform. */
11027#ifndef LT_DLLAZY_OR_NOW
11028# ifdef RTLD_LAZY
11029# define LT_DLLAZY_OR_NOW RTLD_LAZY
11030# else
11031# ifdef DL_LAZY
11032# define LT_DLLAZY_OR_NOW DL_LAZY
11033# else
11034# ifdef RTLD_NOW
11035# define LT_DLLAZY_OR_NOW RTLD_NOW
11036# else
11037# ifdef DL_NOW
11038# define LT_DLLAZY_OR_NOW DL_NOW
11039# else
11040# define LT_DLLAZY_OR_NOW 0
11041# endif
11042# endif
11043# endif
11044# endif
11045#endif
11046
3725885a
RW
11047/* When -fvisbility=hidden is used, assume the code has been annotated
11048 correspondingly for the symbols needed. */
11049#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11050void fnord () __attribute__((visibility("default")));
11051#endif
11052
11053void fnord () { int i=42; }
ce2cded5
L
11054int main ()
11055{
11056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11057 int status = $lt_dlunknown;
11058
11059 if (self)
11060 {
11061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11062 else
11063 {
11064 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11065 else puts (dlerror ());
11066 }
ce2cded5
L
11067 /* dlclose (self); */
11068 }
11069 else
11070 puts (dlerror ());
11071
b214d478 11072 return status;
0ab6f085 11073}
ce2cded5 11074_LT_EOF
81ecdfbb 11075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11076 (eval $ac_link) 2>&5
0ab6f085 11077 ac_status=$?
81ecdfbb
RW
11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11080 (./conftest; exit; ) >&5 2>/dev/null
11081 lt_status=$?
11082 case x$lt_status in
11083 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11084 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11085 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11086 esac
11087 else :
11088 # compilation failed
11089 lt_cv_dlopen_self_static=no
11090 fi
11091fi
11092rm -fr conftest*
11093
d7040cdb
SE
11094
11095fi
81ecdfbb
RW
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11097$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11098 fi
11099
11100 CPPFLAGS="$save_CPPFLAGS"
11101 LDFLAGS="$save_LDFLAGS"
11102 LIBS="$save_LIBS"
11103 ;;
11104 esac
11105
11106 case $lt_cv_dlopen_self in
11107 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11108 *) enable_dlopen_self=unknown ;;
11109 esac
11110
11111 case $lt_cv_dlopen_self_static in
11112 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11113 *) enable_dlopen_self_static=unknown ;;
11114 esac
d7040cdb
SE
11115fi
11116
ce2cded5
L
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133striplib=
11134old_striplib=
81ecdfbb
RW
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11136$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11137if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141$as_echo "yes" >&6; }
0ab6f085 11142else
ce2cded5
L
11143# FIXME - insert some real tests, host_os isn't really good enough
11144 case $host_os in
11145 darwin*)
11146 if test -n "$STRIP" ; then
11147 striplib="$STRIP -x"
11148 old_striplib="$STRIP -S"
81ecdfbb
RW
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150$as_echo "yes" >&6; }
ce2cded5 11151 else
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
ce2cded5
L
11154 fi
11155 ;;
11156 *)
81ecdfbb
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158$as_echo "no" >&6; }
ce2cded5
L
11159 ;;
11160 esac
11161fi
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174 # Report which library types will actually be built
81ecdfbb
RW
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11176$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11178$as_echo "$can_build_shared" >&6; }
ce2cded5 11179
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11181$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11182 test "$can_build_shared" = "no" && enable_shared=no
11183
11184 # On AIX, shared libraries and static libraries use the same namespace, and
11185 # are all built from PIC.
11186 case $host_os in
11187 aix3*)
11188 test "$enable_shared" = yes && enable_static=no
11189 if test -n "$RANLIB"; then
11190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11191 postinstall_cmds='$RANLIB $lib'
11192 fi
11193 ;;
11194
50e7d84b 11195 aix[4-9]*)
ce2cded5
L
11196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11197 test "$enable_shared" = yes && enable_static=no
11198 fi
11199 ;;
11200 esac
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11202$as_echo "$enable_shared" >&6; }
ce2cded5 11203
81ecdfbb
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11205$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11206 # Make sure either enable_shared or enable_static is yes.
11207 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11209$as_echo "$enable_static" >&6; }
ce2cded5
L
11210
11211
11212
d7040cdb 11213
0ab6f085 11214fi
d7040cdb
SE
11215ac_ext=c
11216ac_cpp='$CPP $CPPFLAGS'
11217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220
ce2cded5 11221CC="$lt_save_CC"
0ab6f085 11222
0ab6f085
AM
11223
11224
d7040cdb
SE
11225
11226
d7040cdb 11227
d7040cdb 11228
d7040cdb 11229
ce2cded5
L
11230
11231
11232
11233
11234
81ecdfbb 11235 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11236
11237
11238
11239
11240# Only expand once:
11241
d7040cdb
SE
11242
11243
b879806f
AM
11244# The tests for host and target for $enable_largefile require
11245# canonical names.
11246
11247
11248
11249# As the $enable_largefile decision depends on --enable-plugins we must set it
11250# even in directories otherwise not depending on the $plugins option.
11251
11252
11253 maybe_plugins=no
11254 for ac_header in dlfcn.h
11255do :
11256 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11257"
11258if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11259 cat >>confdefs.h <<_ACEOF
11260#define HAVE_DLFCN_H 1
11261_ACEOF
11262 maybe_plugins=yes
11263fi
11264
11265done
11266
11267 for ac_header in windows.h
11268do :
11269 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11270"
11271if test "x$ac_cv_header_windows_h" = x""yes; then :
11272 cat >>confdefs.h <<_ACEOF
11273#define HAVE_WINDOWS_H 1
11274_ACEOF
11275 maybe_plugins=yes
11276fi
11277
11278done
11279
11280
11281 # Check whether --enable-plugins was given.
11282if test "${enable_plugins+set}" = set; then :
11283 enableval=$enable_plugins; case "${enableval}" in
11284 no) plugins=no ;;
11285 *) plugins=yes
11286 if test "$maybe_plugins" != "yes" ; then
11287 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11288 fi ;;
11289 esac
11290else
11291 plugins=$maybe_plugins
11292
11293fi
11294
2974be62
AM
11295 if test "$plugins" = "yes"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11297$as_echo_n "checking for library containing dlopen... " >&6; }
11298if test "${ac_cv_search_dlopen+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11300else
11301 ac_func_search_save_LIBS=$LIBS
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304
11305/* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char dlopen ();
11312int
11313main ()
11314{
11315return dlopen ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320for ac_lib in '' dl; do
11321 if test -z "$ac_lib"; then
11322 ac_res="none required"
11323 else
11324 ac_res=-l$ac_lib
11325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11326 fi
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_search_dlopen=$ac_res
11329fi
11330rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext
11332 if test "${ac_cv_search_dlopen+set}" = set; then :
11333 break
11334fi
11335done
11336if test "${ac_cv_search_dlopen+set}" = set; then :
11337
11338else
11339 ac_cv_search_dlopen=no
11340fi
11341rm conftest.$ac_ext
11342LIBS=$ac_func_search_save_LIBS
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11345$as_echo "$ac_cv_search_dlopen" >&6; }
11346ac_res=$ac_cv_search_dlopen
11347if test "$ac_res" != no; then :
11348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11349
11350fi
11351
11352 fi
b879806f
AM
11353
11354
11355case "${host}" in
11356 sparc-*-solaris*|i[3-7]86-*-solaris*)
11357 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11358 # are mutually exclusive; and without procfs support, the bfd/ elf module
11359 # cannot provide certain routines such as elfcore_write_prpsinfo
11360 # or elfcore_write_prstatus. So unless the user explicitly requested
11361 # large-file support through the --enable-largefile switch, disable
11362 # large-file support in favor of procfs support.
11363 test "${target}" = "${host}" -a "x$plugins" = xno \
11364 && : ${enable_largefile="no"}
11365 ;;
11366esac
11367
11368# Check whether --enable-largefile was given.
11369if test "${enable_largefile+set}" = set; then :
11370 enableval=$enable_largefile;
11371fi
11372
11373if test "$enable_largefile" != no; then
11374
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11376$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11377if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11379else
11380 ac_cv_sys_largefile_CC=no
11381 if test "$GCC" != yes; then
11382 ac_save_CC=$CC
11383 while :; do
11384 # IRIX 6.2 and later do not support large files by default,
11385 # so use the C compiler's -n32 option if that helps.
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387/* end confdefs.h. */
11388#include <sys/types.h>
11389 /* Check that off_t can represent 2**63 - 1 correctly.
11390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11391 since some C++ compilers masquerading as C compilers
11392 incorrectly reject 9223372036854775807. */
11393#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11395 && LARGE_OFF_T % 2147483647 == 1)
11396 ? 1 : -1];
11397int
11398main ()
11399{
11400
11401 ;
11402 return 0;
11403}
11404_ACEOF
11405 if ac_fn_c_try_compile "$LINENO"; then :
11406 break
11407fi
11408rm -f core conftest.err conftest.$ac_objext
11409 CC="$CC -n32"
11410 if ac_fn_c_try_compile "$LINENO"; then :
11411 ac_cv_sys_largefile_CC=' -n32'; break
11412fi
11413rm -f core conftest.err conftest.$ac_objext
11414 break
11415 done
11416 CC=$ac_save_CC
11417 rm -f conftest.$ac_ext
11418 fi
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11421$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11422 if test "$ac_cv_sys_largefile_CC" != no; then
11423 CC=$CC$ac_cv_sys_largefile_CC
11424 fi
11425
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11427$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11428if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430else
11431 while :; do
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h. */
11434#include <sys/types.h>
11435 /* Check that off_t can represent 2**63 - 1 correctly.
11436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11437 since some C++ compilers masquerading as C compilers
11438 incorrectly reject 9223372036854775807. */
11439#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11441 && LARGE_OFF_T % 2147483647 == 1)
11442 ? 1 : -1];
11443int
11444main ()
11445{
11446
11447 ;
11448 return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_compile "$LINENO"; then :
11452 ac_cv_sys_file_offset_bits=no; break
11453fi
11454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456/* end confdefs.h. */
11457#define _FILE_OFFSET_BITS 64
11458#include <sys/types.h>
11459 /* Check that off_t can represent 2**63 - 1 correctly.
11460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11461 since some C++ compilers masquerading as C compilers
11462 incorrectly reject 9223372036854775807. */
11463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11465 && LARGE_OFF_T % 2147483647 == 1)
11466 ? 1 : -1];
11467int
11468main ()
11469{
11470
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_compile "$LINENO"; then :
11476 ac_cv_sys_file_offset_bits=64; break
11477fi
11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 ac_cv_sys_file_offset_bits=unknown
11480 break
11481done
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11484$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11485case $ac_cv_sys_file_offset_bits in #(
11486 no | unknown) ;;
11487 *)
11488cat >>confdefs.h <<_ACEOF
11489#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11490_ACEOF
11491;;
11492esac
11493rm -rf conftest*
11494 if test $ac_cv_sys_file_offset_bits = unknown; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11496$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11497if test "${ac_cv_sys_large_files+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11499else
11500 while :; do
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h. */
11503#include <sys/types.h>
11504 /* Check that off_t can represent 2**63 - 1 correctly.
11505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11506 since some C++ compilers masquerading as C compilers
11507 incorrectly reject 9223372036854775807. */
11508#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11510 && LARGE_OFF_T % 2147483647 == 1)
11511 ? 1 : -1];
11512int
11513main ()
11514{
11515
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520if ac_fn_c_try_compile "$LINENO"; then :
11521 ac_cv_sys_large_files=no; break
11522fi
11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525/* end confdefs.h. */
11526#define _LARGE_FILES 1
11527#include <sys/types.h>
11528 /* Check that off_t can represent 2**63 - 1 correctly.
11529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11530 since some C++ compilers masquerading as C compilers
11531 incorrectly reject 9223372036854775807. */
11532#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11534 && LARGE_OFF_T % 2147483647 == 1)
11535 ? 1 : -1];
11536int
11537main ()
11538{
11539
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_compile "$LINENO"; then :
11545 ac_cv_sys_large_files=1; break
11546fi
11547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 ac_cv_sys_large_files=unknown
11549 break
11550done
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11553$as_echo "$ac_cv_sys_large_files" >&6; }
11554case $ac_cv_sys_large_files in #(
11555 no | unknown) ;;
11556 *)
11557cat >>confdefs.h <<_ACEOF
11558#define _LARGE_FILES $ac_cv_sys_large_files
11559_ACEOF
11560;;
11561esac
11562rm -rf conftest*
11563 fi
11564fi
11565
11566
11567
d7040cdb 11568for ac_func in setmode
81ecdfbb
RW
11569do :
11570 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11571if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11572 cat >>confdefs.h <<_ACEOF
81ecdfbb 11573#define HAVE_SETMODE 1
d7040cdb
SE
11574_ACEOF
11575
11576fi
11577done
11578
11579
ba241f2d 11580ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr hu"
d7040cdb
SE
11581# If we haven't got the data from the intl directory,
11582# assume NLS is disabled.
11583USE_NLS=no
11584LIBINTL=
11585LIBINTL_DEP=
11586INCINTL=
11587XGETTEXT=
11588GMSGFMT=
11589POSUB=
11590
11591if test -f ../intl/config.intl; then
11592 . ../intl/config.intl
11593fi
81ecdfbb
RW
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11595$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11596if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
d7040cdb 11599else
81ecdfbb
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601$as_echo "yes" >&6; }
d7040cdb 11602
81ecdfbb 11603$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11604
11605
81ecdfbb
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11607$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11608 # Look for .po and .gmo files in the source directory.
11609 CATALOGS=
11610 XLINGUAS=
11611 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11612 # If there aren't any .gmo files the shell will give us the
11613 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11614 # weeded out.
11615 case "$cat" in *\**)
11616 continue;;
11617 esac
11618 # The quadruple backslash is collapsed to a double backslash
11619 # by the backticks, then collapsed again by the double quotes,
11620 # leaving us with one backslash in the sed expression (right
11621 # before the dot that mustn't act as a wildcard).
11622 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11623 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11624 # The user is allowed to set LINGUAS to a list of languages to
11625 # install catalogs for. If it's empty that means "all of them."
11626 if test "x$LINGUAS" = x; then
11627 CATALOGS="$CATALOGS $cat"
11628 XLINGUAS="$XLINGUAS $lang"
11629 else
11630 case "$LINGUAS" in *$lang*)
11631 CATALOGS="$CATALOGS $cat"
11632 XLINGUAS="$XLINGUAS $lang"
11633 ;;
11634 esac
11635 fi
11636 done
11637 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11639$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11640
11641
11642 DATADIRNAME=share
11643
11644 INSTOBJEXT=.mo
11645
11646 GENCAT=gencat
11647
11648 CATOBJEXT=.gmo
11649
11650fi
11651
11652 MKINSTALLDIRS=
11653 if test -n "$ac_aux_dir"; then
11654 case "$ac_aux_dir" in
11655 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11656 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11657 esac
11658 fi
11659 if test -z "$MKINSTALLDIRS"; then
11660 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11661 fi
11662
11663
11664
81ecdfbb
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11666$as_echo_n "checking whether NLS is requested... " >&6; }
11667 # Check whether --enable-nls was given.
11668if test "${enable_nls+set}" = set; then :
11669 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11670else
11671 USE_NLS=yes
81ecdfbb
RW
11672fi
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11675$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11676
11677
11678
11679
11680
11681
11682# Prepare PATH_SEPARATOR.
11683# The user is always right.
11684if test "${PATH_SEPARATOR+set}" != set; then
11685 echo "#! /bin/sh" >conf$$.sh
11686 echo "exit 0" >>conf$$.sh
11687 chmod +x conf$$.sh
11688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11689 PATH_SEPARATOR=';'
11690 else
11691 PATH_SEPARATOR=:
11692 fi
11693 rm -f conf$$.sh
11694fi
11695
11696# Find out how to test for executable files. Don't use a zero-byte file,
11697# as systems may use methods other than mode bits to determine executability.
11698cat >conf$$.file <<_ASEOF
11699#! /bin/sh
11700exit 0
11701_ASEOF
11702chmod +x conf$$.file
11703if test -x conf$$.file >/dev/null 2>&1; then
11704 ac_executable_p="test -x"
11705else
11706 ac_executable_p="test -f"
11707fi
11708rm -f conf$$.file
11709
11710# Extract the first word of "msgfmt", so it can be a program name with args.
11711set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713$as_echo_n "checking for $ac_word... " >&6; }
11714if test "${ac_cv_path_MSGFMT+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
d7040cdb
SE
11716else
11717 case "$MSGFMT" in
11718 [\\/]* | ?:[\\/]*)
11719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11720 ;;
11721 *)
11722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11723 for ac_dir in $PATH; do
11724 IFS="$ac_save_IFS"
11725 test -z "$ac_dir" && ac_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11731 break 2
11732 fi
11733 fi
11734 done
11735 done
11736 IFS="$ac_save_IFS"
11737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11738 ;;
11739esac
11740fi
11741MSGFMT="$ac_cv_path_MSGFMT"
11742if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11744$as_echo "$MSGFMT" >&6; }
d7040cdb 11745else
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
d7040cdb
SE
11748fi
11749
11750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11751set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
11754if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
d7040cdb
SE
11756else
11757 case $GMSGFMT in
11758 [\\/]* | ?:[\\/]*)
11759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11760 ;;
11761 *)
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11771 break 2
11772 fi
11773done
81ecdfbb
RW
11774 done
11775IFS=$as_save_IFS
d7040cdb
SE
11776
11777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11778 ;;
11779esac
11780fi
11781GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11782if test -n "$GMSGFMT"; then
81ecdfbb
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11784$as_echo "$GMSGFMT" >&6; }
d7040cdb 11785else
81ecdfbb
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787$as_echo "no" >&6; }
d7040cdb
SE
11788fi
11789
11790
11791
81ecdfbb 11792
d7040cdb
SE
11793# Prepare PATH_SEPARATOR.
11794# The user is always right.
11795if test "${PATH_SEPARATOR+set}" != set; then
11796 echo "#! /bin/sh" >conf$$.sh
11797 echo "exit 0" >>conf$$.sh
11798 chmod +x conf$$.sh
11799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11800 PATH_SEPARATOR=';'
11801 else
11802 PATH_SEPARATOR=:
11803 fi
11804 rm -f conf$$.sh
11805fi
11806
11807# Find out how to test for executable files. Don't use a zero-byte file,
11808# as systems may use methods other than mode bits to determine executability.
11809cat >conf$$.file <<_ASEOF
11810#! /bin/sh
11811exit 0
11812_ASEOF
11813chmod +x conf$$.file
11814if test -x conf$$.file >/dev/null 2>&1; then
11815 ac_executable_p="test -x"
11816else
11817 ac_executable_p="test -f"
11818fi
11819rm -f conf$$.file
11820
11821# Extract the first word of "xgettext", so it can be a program name with args.
11822set dummy xgettext; ac_word=$2
81ecdfbb
RW
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824$as_echo_n "checking for $ac_word... " >&6; }
11825if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
d7040cdb
SE
11827else
11828 case "$XGETTEXT" in
11829 [\\/]* | ?:[\\/]*)
11830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11831 ;;
11832 *)
11833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11834 for ac_dir in $PATH; do
11835 IFS="$ac_save_IFS"
11836 test -z "$ac_dir" && ac_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11839 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11840 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11841 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11842 break 2
11843 fi
11844 fi
11845 done
11846 done
11847 IFS="$ac_save_IFS"
11848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11849 ;;
11850esac
11851fi
11852XGETTEXT="$ac_cv_path_XGETTEXT"
11853if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11855$as_echo "$XGETTEXT" >&6; }
d7040cdb 11856else
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858$as_echo "no" >&6; }
d7040cdb
SE
11859fi
11860
11861 rm -f messages.po
11862
11863
11864# Prepare PATH_SEPARATOR.
11865# The user is always right.
11866if test "${PATH_SEPARATOR+set}" != set; then
11867 echo "#! /bin/sh" >conf$$.sh
11868 echo "exit 0" >>conf$$.sh
11869 chmod +x conf$$.sh
11870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11871 PATH_SEPARATOR=';'
11872 else
11873 PATH_SEPARATOR=:
11874 fi
11875 rm -f conf$$.sh
11876fi
11877
11878# Find out how to test for executable files. Don't use a zero-byte file,
11879# as systems may use methods other than mode bits to determine executability.
11880cat >conf$$.file <<_ASEOF
11881#! /bin/sh
11882exit 0
11883_ASEOF
11884chmod +x conf$$.file
11885if test -x conf$$.file >/dev/null 2>&1; then
11886 ac_executable_p="test -x"
11887else
11888 ac_executable_p="test -f"
11889fi
11890rm -f conf$$.file
11891
11892# Extract the first word of "msgmerge", so it can be a program name with args.
11893set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895$as_echo_n "checking for $ac_word... " >&6; }
11896if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
d7040cdb
SE
11898else
11899 case "$MSGMERGE" in
11900 [\\/]* | ?:[\\/]*)
11901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11902 ;;
11903 *)
11904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11905 for ac_dir in $PATH; do
11906 IFS="$ac_save_IFS"
11907 test -z "$ac_dir" && ac_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11910 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11911 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11912 break 2
11913 fi
11914 fi
11915 done
11916 done
11917 IFS="$ac_save_IFS"
11918 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11919 ;;
11920esac
11921fi
11922MSGMERGE="$ac_cv_path_MSGMERGE"
11923if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11925$as_echo "$MSGMERGE" >&6; }
d7040cdb 11926else
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
d7040cdb
SE
11929fi
11930
11931
11932 if test "$GMSGFMT" != ":"; then
11933 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11934 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11935 : ;
11936 else
11937 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11939$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11940 GMSGFMT=":"
11941 fi
11942 fi
11943
11944 if test "$XGETTEXT" != ":"; then
11945 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11946 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11947 : ;
11948 else
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11950$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11951 XGETTEXT=":"
11952 fi
11953 rm -f messages.po
11954 fi
11955
81ecdfbb
RW
11956 ac_config_commands="$ac_config_commands default-1"
11957
d7040cdb
SE
11958
11959
11960
81ecdfbb
RW
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11962$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11963 # Check whether --enable-maintainer-mode was given.
11964if test "${enable_maintainer_mode+set}" = set; then :
11965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11966else
d7040cdb 11967 USE_MAINTAINER_MODE=no
81ecdfbb 11968fi
d7040cdb 11969
81ecdfbb
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11971$as_echo "$USE_MAINTAINER_MODE" >&6; }
11972 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11973 MAINTAINER_MODE_TRUE=
11974 MAINTAINER_MODE_FALSE='#'
11975else
11976 MAINTAINER_MODE_TRUE='#'
11977 MAINTAINER_MODE_FALSE=
20e95c23 11978fi
6bf9431b 11979
d7040cdb
SE
11980 MAINT=$MAINTAINER_MODE_TRUE
11981
11982
81ecdfbb 11983 if false; then
d7040cdb
SE
11984 GENINSRC_NEVER_TRUE=
11985 GENINSRC_NEVER_FALSE='#'
11986else
11987 GENINSRC_NEVER_TRUE='#'
11988 GENINSRC_NEVER_FALSE=
20e95c23 11989fi
6bf9431b
BE
11990
11991
11992
6bf9431b 11993for ac_header in sys/gmon_out.h
81ecdfbb
RW
11994do :
11995 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11996if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11997 cat >>confdefs.h <<_ACEOF
81ecdfbb 11998#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11999_ACEOF
12000
12001fi
12002
12003done
12004
12005
81ecdfbb
RW
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12007$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12008if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
34875e64 12010else
81ecdfbb 12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
12012/* end confdefs.h. */
12013#include <unistd.h>
12014int
12015main ()
12016{
12017extern int getopt (int, char *const*, const char *);
12018 ;
12019 return 0;
12020}
12021_ACEOF
81ecdfbb 12022if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
12023 gprof_cv_decl_getopt_unistd_h=yes
12024else
81ecdfbb 12025 gprof_cv_decl_getopt_unistd_h=no
34875e64 12026fi
81ecdfbb 12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12028fi
12029
81ecdfbb
RW
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
12031$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
12032if test $gprof_cv_decl_getopt_unistd_h = yes; then
12033
81ecdfbb 12034$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
12035
12036fi
12037
1b9750d6 12038# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12040$as_echo_n "checking for library containing fabs... " >&6; }
12041if test "${ac_cv_search_fabs+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
1b9750d6
NC
12043else
12044 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
12046/* end confdefs.h. */
12047
81ecdfbb
RW
12048/* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
1b9750d6
NC
12051#ifdef __cplusplus
12052extern "C"
12053#endif
12054char fabs ();
12055int
12056main ()
12057{
81ecdfbb 12058return fabs ();
1b9750d6
NC
12059 ;
12060 return 0;
12061}
12062_ACEOF
81ecdfbb
RW
12063for ac_lib in '' m; do
12064 if test -z "$ac_lib"; then
12065 ac_res="none required"
12066 else
12067 ac_res=-l$ac_lib
0ab6f085 12068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12069 fi
12070 if ac_fn_c_try_link "$LINENO"; then :
12071 ac_cv_search_fabs=$ac_res
12072fi
12073rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext
12075 if test "${ac_cv_search_fabs+set}" = set; then :
12076 break
12077fi
12078done
12079if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 12080
1b9750d6 12081else
81ecdfbb 12082 ac_cv_search_fabs=no
1b9750d6 12083fi
81ecdfbb 12084rm conftest.$ac_ext
1b9750d6
NC
12085LIBS=$ac_func_search_save_LIBS
12086fi
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12088$as_echo "$ac_cv_search_fabs" >&6; }
12089ac_res=$ac_cv_search_fabs
12090if test "$ac_res" != no; then :
12091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
12092
12093fi
12094
12095
9e9b66a9 12096
270c9937
JB
12097# Set the 'development' global.
12098. $srcdir/../bfd/development.sh
12099
397841b5
AM
12100GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102/* end confdefs.h. */
12103__GNUC__
12104_ACEOF
12105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12106 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12107
12108else
12109 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12110fi
12111rm -f conftest*
12112
1ad12f97 12113
81ecdfbb
RW
12114# Check whether --enable-werror was given.
12115if test "${enable_werror+set}" = set; then :
12116 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
12117 yes | y) ERROR_ON_WARNING="yes" ;;
12118 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12119 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 12120 esac
81ecdfbb
RW
12121fi
12122
1ad12f97 12123
397841b5 12124# Disable -Wformat by default when using gcc on mingw
32b1cf22
L
12125case "${host}" in
12126 *-*-mingw32*)
12127 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12128 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12129 fi
12130 ;;
12131 *) ;;
12132esac
12133
270c9937
JB
12134# Enable -Werror by default when using gcc. Turn it off for releases.
12135if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9e9b66a9
AM
12136 ERROR_ON_WARNING=yes
12137fi
12138
12139NO_WERROR=
12140if test "${ERROR_ON_WARNING}" = yes ; then
e1fa0163 12141 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror -Wstack-usage=262144"
9e9b66a9 12142 NO_WERROR="-Wno-error"
1ad12f97
NC
12143fi
12144
a541e3ce
SE
12145if test "${GCC}" = yes ; then
12146 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12147fi
12148
81ecdfbb
RW
12149# Check whether --enable-build-warnings was given.
12150if test "${enable_build_warnings+set}" = set; then :
12151 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
12152 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12153 no) if test "${GCC}" = yes ; then
12154 WARN_CFLAGS="-w"
12155 fi;;
6bf9431b 12156 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12157 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 12158 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12159 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 12160 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 12161esac
81ecdfbb
RW
12162fi
12163
9e9b66a9
AM
12164
12165if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12166 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
12167fi
12168
12169
9e9b66a9
AM
12170
12171
12172
108a6f8e
CD
12173
12174
12175
12176
31dd3154 12177
81ecdfbb 12178ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 12179
6bf9431b
BE
12180cat >confcache <<\_ACEOF
12181# This file is a shell script that caches the results of configure
12182# tests run on this system so they can be shared between configure
12183# scripts and configure runs, see configure's option --config-cache.
12184# It is not useful on other systems. If it contains results you don't
12185# want to keep, you may remove or edit it.
12186#
12187# config.status only pays attention to the cache file if you give it
12188# the --recheck option to rerun configure.
12189#
12190# `ac_cv_env_foo' variables (set or unset) will be overridden when
12191# loading this file, other *unset* `ac_cv_foo' will be assigned the
12192# following values.
12193
12194_ACEOF
12195
12196# The following way of writing the cache mishandles newlines in values,
12197# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12198# So, we kill variables containing newlines.
6bf9431b
BE
12199# Ultrix sh set writes to stderr and can't be redirected directly,
12200# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12201(
12202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12203 eval ac_val=\$$ac_var
12204 case $ac_val in #(
12205 *${as_nl}*)
12206 case $ac_var in #(
12207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12209 esac
12210 case $ac_var in #(
12211 _ | IFS | as_nl) ;; #(
12212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12213 *) { eval $ac_var=; unset $ac_var;} ;;
12214 esac ;;
12215 esac
12216 done
12217
6bf9431b 12218 (set) 2>&1 |
81ecdfbb
RW
12219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12220 *${as_nl}ac_space=\ *)
12221 # `set' does not quote correctly, so add quotes: double-quote
12222 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
12223 sed -n \
12224 "s/'/'\\\\''/g;
12225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12226 ;; #(
6bf9431b
BE
12227 *)
12228 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 12230 ;;
81ecdfbb
RW
12231 esac |
12232 sort
12233) |
6bf9431b 12234 sed '
81ecdfbb 12235 /^ac_cv_env_/b end
6bf9431b 12236 t clear
81ecdfbb 12237 :clear
6bf9431b
BE
12238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12239 t end
81ecdfbb
RW
12240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12241 :end' >>confcache
12242if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12243 if test -w "$cache_file"; then
12244 test "x$cache_file" != "x/dev/null" &&
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12246$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12247 cat confcache >$cache_file
12248 else
81ecdfbb
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12250$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12251 fi
12252fi
12253rm -f confcache
12254
12255test "x$prefix" = xNONE && prefix=$ac_default_prefix
12256# Let make expand exec_prefix.
12257test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12258
6bf9431b
BE
12259DEFS=-DHAVE_CONFIG_H
12260
12261ac_libobjs=
12262ac_ltlibobjs=
12263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12264 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12265 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12266 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12267 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12268 # will be set to the directory where LIBOBJS objects are built.
12269 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12270 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12271done
12272LIBOBJS=$ac_libobjs
12273
12274LTLIBOBJS=$ac_ltlibobjs
12275
12276
12277if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12278 as_fn_error "conditional \"AMDEP\" was never defined.
12279Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12280fi
12281if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12282 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12283Usually this means the macro was only invoked conditionally." "$LINENO" 5
12284fi
12285 if test -n "$EXEEXT"; then
12286 am__EXEEXT_TRUE=
12287 am__EXEEXT_FALSE='#'
12288else
12289 am__EXEEXT_TRUE='#'
12290 am__EXEEXT_FALSE=
6bf9431b 12291fi
81ecdfbb 12292
6bf9431b 12293if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12294 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12295Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12296fi
d5fbea21 12297if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12298 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12299Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12300fi
6bf9431b
BE
12301
12302: ${CONFIG_STATUS=./config.status}
81ecdfbb 12303ac_write_fail=0
6bf9431b
BE
12304ac_clean_files_save=$ac_clean_files
12305ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12307$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12308as_write_fail=0
12309cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12310#! $SHELL
12311# Generated by $as_me.
12312# Run this file to recreate the current configuration.
12313# Compiler output produced by configure, useful for debugging
12314# configure, is in config.log if it exists.
12315
12316debug=false
12317ac_cs_recheck=false
12318ac_cs_silent=false
6bf9431b 12319
81ecdfbb
RW
12320SHELL=\${CONFIG_SHELL-$SHELL}
12321export SHELL
12322_ASEOF
12323cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12324## -------------------- ##
12325## M4sh Initialization. ##
12326## -------------------- ##
6bf9431b 12327
81ecdfbb
RW
12328# Be more Bourne compatible
12329DUALCASE=1; export DUALCASE # for MKS sh
12330if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12331 emulate sh
12332 NULLCMD=:
81ecdfbb 12333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12334 # is contrary to our usage. Disable this feature.
12335 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12336 setopt NO_GLOB_SUBST
12337else
12338 case `(set -o) 2>/dev/null` in #(
12339 *posix*) :
12340 set -o posix ;; #(
12341 *) :
12342 ;;
12343esac
6bf9431b 12344fi
6bf9431b 12345
81ecdfbb
RW
12346
12347as_nl='
12348'
12349export as_nl
12350# Printing a long string crashes Solaris 7 /usr/bin/printf.
12351as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12352as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12354# Prefer a ksh shell builtin over an external printf program on Solaris,
12355# but without wasting forks for bash or zsh.
12356if test -z "$BASH_VERSION$ZSH_VERSION" \
12357 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12358 as_echo='print -r --'
12359 as_echo_n='print -rn --'
12360elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12361 as_echo='printf %s\n'
12362 as_echo_n='printf %s'
12363else
12364 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12365 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12366 as_echo_n='/usr/ucb/echo -n'
12367 else
12368 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12369 as_echo_n_body='eval
12370 arg=$1;
12371 case $arg in #(
12372 *"$as_nl"*)
12373 expr "X$arg" : "X\\(.*\\)$as_nl";
12374 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12375 esac;
12376 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12377 '
12378 export as_echo_n_body
12379 as_echo_n='sh -c $as_echo_n_body as_echo'
12380 fi
12381 export as_echo_body
12382 as_echo='sh -c $as_echo_body as_echo'
12383fi
12384
12385# The user is always right.
12386if test "${PATH_SEPARATOR+set}" != set; then
12387 PATH_SEPARATOR=:
12388 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12389 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12390 PATH_SEPARATOR=';'
12391 }
6bf9431b
BE
12392fi
12393
12394
81ecdfbb
RW
12395# IFS
12396# We need space, tab and new line, in precisely that order. Quoting is
12397# there to prevent editors from complaining about space-tab.
12398# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12399# splitting by setting IFS to empty value.)
12400IFS=" "" $as_nl"
12401
12402# Find who we are. Look in the path if we contain no directory separator.
12403case $0 in #((
12404 *[\\/]* ) as_myself=$0 ;;
12405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12411 done
12412IFS=$as_save_IFS
12413
12414 ;;
12415esac
12416# We did not find ourselves, most probably we were run as `sh COMMAND'
12417# in which case we are not to be found in the path.
12418if test "x$as_myself" = x; then
12419 as_myself=$0
12420fi
12421if test ! -f "$as_myself"; then
12422 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12423 exit 1
12424fi
12425
12426# Unset variables that we do not need and which cause bugs (e.g. in
12427# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12428# suppresses any "Segmentation fault" message there. '((' could
12429# trigger a bug in pdksh 5.2.14.
12430for as_var in BASH_ENV ENV MAIL MAILPATH
12431do eval test x\${$as_var+set} = xset \
12432 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12433done
6bf9431b
BE
12434PS1='$ '
12435PS2='> '
12436PS4='+ '
12437
12438# NLS nuisances.
81ecdfbb
RW
12439LC_ALL=C
12440export LC_ALL
12441LANGUAGE=C
12442export LANGUAGE
12443
12444# CDPATH.
12445(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12446
12447
12448# as_fn_error ERROR [LINENO LOG_FD]
12449# ---------------------------------
12450# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12451# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12452# script with status $?, using 1 if that was 0.
12453as_fn_error ()
12454{
12455 as_status=$?; test $as_status -eq 0 && as_status=1
12456 if test "$3"; then
12457 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12458 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12459 fi
81ecdfbb
RW
12460 $as_echo "$as_me: error: $1" >&2
12461 as_fn_exit $as_status
12462} # as_fn_error
12463
12464
12465# as_fn_set_status STATUS
12466# -----------------------
12467# Set $? to STATUS, without forking.
12468as_fn_set_status ()
12469{
12470 return $1
12471} # as_fn_set_status
6bf9431b 12472
81ecdfbb
RW
12473# as_fn_exit STATUS
12474# -----------------
12475# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12476as_fn_exit ()
12477{
12478 set +e
12479 as_fn_set_status $1
12480 exit $1
12481} # as_fn_exit
12482
12483# as_fn_unset VAR
12484# ---------------
12485# Portably unset VAR.
12486as_fn_unset ()
12487{
12488 { eval $1=; unset $1;}
12489}
12490as_unset=as_fn_unset
12491# as_fn_append VAR VALUE
12492# ----------------------
12493# Append the text in VALUE to the end of the definition contained in VAR. Take
12494# advantage of any shell optimizations that allow amortized linear growth over
12495# repeated appends, instead of the typical quadratic growth present in naive
12496# implementations.
12497if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12498 eval 'as_fn_append ()
12499 {
12500 eval $1+=\$2
12501 }'
12502else
12503 as_fn_append ()
12504 {
12505 eval $1=\$$1\$2
12506 }
12507fi # as_fn_append
12508
12509# as_fn_arith ARG...
12510# ------------------
12511# Perform arithmetic evaluation on the ARGs, and store the result in the
12512# global $as_val. Take advantage of shells that can avoid forks. The arguments
12513# must be portable across $(()) and expr.
12514if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12515 eval 'as_fn_arith ()
12516 {
12517 as_val=$(( $* ))
12518 }'
12519else
12520 as_fn_arith ()
12521 {
12522 as_val=`expr "$@" || test $? -eq 1`
12523 }
12524fi # as_fn_arith
12525
12526
12527if expr a : '\(a\)' >/dev/null 2>&1 &&
12528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12529 as_expr=expr
12530else
12531 as_expr=false
12532fi
12533
81ecdfbb 12534if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12535 as_basename=basename
12536else
12537 as_basename=false
252b5132 12538fi
252b5132 12539
81ecdfbb
RW
12540if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12541 as_dirname=dirname
12542else
12543 as_dirname=false
12544fi
252b5132 12545
81ecdfbb 12546as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12547$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12548 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12549 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12550$as_echo X/"$0" |
12551 sed '/^.*\/\([^/][^/]*\)\/*$/{
12552 s//\1/
12553 q
12554 }
12555 /^X\/\(\/\/\)$/{
12556 s//\1/
12557 q
12558 }
12559 /^X\/\(\/\).*/{
12560 s//\1/
12561 q
12562 }
12563 s/.*/./; q'`
0ab6f085 12564
0ab6f085
AM
12565# Avoid depending upon Character Ranges.
12566as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12567as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12568as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12569as_cr_digits='0123456789'
12570as_cr_alnum=$as_cr_Letters$as_cr_digits
12571
81ecdfbb
RW
12572ECHO_C= ECHO_N= ECHO_T=
12573case `echo -n x` in #(((((
12574-n*)
12575 case `echo 'xy\c'` in
12576 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12577 xy) ECHO_C='\c';;
12578 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12579 ECHO_T=' ';;
12580 esac;;
12581*)
12582 ECHO_N='-n';;
6bf9431b
BE
12583esac
12584
81ecdfbb
RW
12585rm -f conf$$ conf$$.exe conf$$.file
12586if test -d conf$$.dir; then
12587 rm -f conf$$.dir/conf$$.file
0eee5820 12588else
81ecdfbb
RW
12589 rm -f conf$$.dir
12590 mkdir conf$$.dir 2>/dev/null
0eee5820 12591fi
81ecdfbb
RW
12592if (echo >conf$$.file) 2>/dev/null; then
12593 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12594 as_ln_s='ln -s'
81ecdfbb
RW
12595 # ... but there are two gotchas:
12596 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12597 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12598 # In both cases, we have to default to `cp -p'.
12599 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12600 as_ln_s='cp -p'
12601 elif ln conf$$.file conf$$ 2>/dev/null; then
12602 as_ln_s=ln
12603 else
12604 as_ln_s='cp -p'
0ab6f085 12605 fi
6bf9431b
BE
12606else
12607 as_ln_s='cp -p'
0eee5820 12608fi
81ecdfbb
RW
12609rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12610rmdir conf$$.dir 2>/dev/null
12611
12612
12613# as_fn_mkdir_p
12614# -------------
12615# Create "$as_dir" as a directory, including parents if necessary.
12616as_fn_mkdir_p ()
12617{
12618
12619 case $as_dir in #(
12620 -*) as_dir=./$as_dir;;
12621 esac
12622 test -d "$as_dir" || eval $as_mkdir_p || {
12623 as_dirs=
12624 while :; do
12625 case $as_dir in #(
12626 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12627 *) as_qdir=$as_dir;;
12628 esac
12629 as_dirs="'$as_qdir' $as_dirs"
12630 as_dir=`$as_dirname -- "$as_dir" ||
12631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12632 X"$as_dir" : 'X\(//\)[^/]' \| \
12633 X"$as_dir" : 'X\(//\)$' \| \
12634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12635$as_echo X"$as_dir" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12637 s//\1/
12638 q
12639 }
12640 /^X\(\/\/\)[^/].*/{
12641 s//\1/
12642 q
12643 }
12644 /^X\(\/\/\)$/{
12645 s//\1/
12646 q
12647 }
12648 /^X\(\/\).*/{
12649 s//\1/
12650 q
12651 }
12652 s/.*/./; q'`
12653 test -d "$as_dir" && break
12654 done
12655 test -z "$as_dirs" || eval "mkdir $as_dirs"
12656 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12657
81ecdfbb
RW
12658
12659} # as_fn_mkdir_p
6bf9431b 12660if mkdir -p . 2>/dev/null; then
81ecdfbb 12661 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12662else
12663 test -d ./-p && rmdir ./-p
12664 as_mkdir_p=false
1b9750d6 12665fi
0ab6f085 12666
81ecdfbb
RW
12667if test -x / >/dev/null 2>&1; then
12668 as_test_x='test -x'
12669else
12670 if ls -dL / >/dev/null 2>&1; then
12671 as_ls_L_option=L
12672 else
12673 as_ls_L_option=
12674 fi
12675 as_test_x='
12676 eval sh -c '\''
12677 if test -d "$1"; then
12678 test -d "$1/.";
12679 else
12680 case $1 in #(
12681 -*)set "./$1";;
12682 esac;
12683 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12684 ???[sx]*):;;*)false;;esac;fi
12685 '\'' sh
12686 '
12687fi
12688as_executable_p=$as_test_x
0eee5820 12689
6bf9431b
BE
12690# Sed expression to map a string onto a valid CPP name.
12691as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12692
12693# Sed expression to map a string onto a valid variable name.
12694as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12695
1b9750d6 12696
6bf9431b 12697exec 6>&1
81ecdfbb
RW
12698## ----------------------------------- ##
12699## Main body of $CONFIG_STATUS script. ##
12700## ----------------------------------- ##
12701_ASEOF
12702test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12703
81ecdfbb
RW
12704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12705# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12706# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12707# values after options handling.
12708ac_log="
d8bd95ef 12709This file was extended by gprof $as_me 2.26.51, which was
81ecdfbb 12710generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12711
12712 CONFIG_FILES = $CONFIG_FILES
12713 CONFIG_HEADERS = $CONFIG_HEADERS
12714 CONFIG_LINKS = $CONFIG_LINKS
12715 CONFIG_COMMANDS = $CONFIG_COMMANDS
12716 $ $0 $@
12717
81ecdfbb
RW
12718on `(hostname || uname -n) 2>/dev/null | sed 1q`
12719"
12720
6bf9431b
BE
12721_ACEOF
12722
81ecdfbb
RW
12723case $ac_config_files in *"
12724"*) set x $ac_config_files; shift; ac_config_files=$*;;
12725esac
a2d91340 12726
81ecdfbb
RW
12727case $ac_config_headers in *"
12728"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12729esac
0ab6f085 12730
0ab6f085 12731
81ecdfbb
RW
12732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12733# Files that config.status was made for.
12734config_files="$ac_config_files"
12735config_headers="$ac_config_headers"
12736config_commands="$ac_config_commands"
a2d91340 12737
81ecdfbb 12738_ACEOF
0ab6f085 12739
81ecdfbb 12740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12741ac_cs_usage="\
81ecdfbb
RW
12742\`$as_me' instantiates files and other configuration actions
12743from templates according to the current configuration. Unless the files
12744and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12745
81ecdfbb 12746Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12747
12748 -h, --help print this help, then exit
81ecdfbb
RW
12749 -V, --version print version number and configuration settings, then exit
12750 -q, --quiet, --silent
12751 do not print progress messages
6bf9431b
BE
12752 -d, --debug don't remove temporary files
12753 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12754 --file=FILE[:TEMPLATE]
12755 instantiate the configuration file FILE
12756 --header=FILE[:TEMPLATE]
12757 instantiate the configuration header FILE
6bf9431b
BE
12758
12759Configuration files:
12760$config_files
12761
12762Configuration headers:
12763$config_headers
12764
12765Configuration commands:
12766$config_commands
12767
81ecdfbb 12768Report bugs to the package provider."
0ab6f085 12769
81ecdfbb
RW
12770_ACEOF
12771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12772ac_cs_version="\\
d8bd95ef 12773gprof config.status 2.26.51
81ecdfbb
RW
12774configured by $0, generated by GNU Autoconf 2.64,
12775 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12776
81ecdfbb 12777Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12778This config.status script is free software; the Free Software Foundation
12779gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12780
12781ac_pwd='$ac_pwd'
12782srcdir='$srcdir'
12783INSTALL='$INSTALL'
12784MKDIR_P='$MKDIR_P'
12785AWK='$AWK'
12786test -n "\$AWK" || AWK=awk
6bf9431b
BE
12787_ACEOF
12788
81ecdfbb
RW
12789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12790# The default lists apply if the user does not specify any file.
6bf9431b
BE
12791ac_need_defaults=:
12792while test $# != 0
12793do
12794 case $1 in
12795 --*=*)
81ecdfbb
RW
12796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12797 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12798 ac_shift=:
252b5132 12799 ;;
81ecdfbb 12800 *)
6bf9431b
BE
12801 ac_option=$1
12802 ac_optarg=$2
12803 ac_shift=shift
252b5132 12804 ;;
6bf9431b 12805 esac
252b5132 12806
6bf9431b
BE
12807 case $ac_option in
12808 # Handling of the options.
6bf9431b
BE
12809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12810 ac_cs_recheck=: ;;
81ecdfbb
RW
12811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12812 $as_echo "$ac_cs_version"; exit ;;
12813 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12814 debug=: ;;
12815 --file | --fil | --fi | --f )
12816 $ac_shift
81ecdfbb
RW
12817 case $ac_optarg in
12818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12819 esac
12820 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12821 ac_need_defaults=false;;
12822 --header | --heade | --head | --hea )
12823 $ac_shift
81ecdfbb
RW
12824 case $ac_optarg in
12825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12826 esac
12827 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12828 ac_need_defaults=false;;
81ecdfbb
RW
12829 --he | --h)
12830 # Conflict between --help and --header
12831 as_fn_error "ambiguous option: \`$1'
12832Try \`$0 --help' for more information.";;
12833 --help | --hel | -h )
12834 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12837 ac_cs_silent=: ;;
252b5132 12838
6bf9431b 12839 # This is an error.
81ecdfbb
RW
12840 -*) as_fn_error "unrecognized option: \`$1'
12841Try \`$0 --help' for more information." ;;
252b5132 12842
81ecdfbb
RW
12843 *) as_fn_append ac_config_targets " $1"
12844 ac_need_defaults=false ;;
252b5132 12845
6bf9431b
BE
12846 esac
12847 shift
12848done
252b5132 12849
6bf9431b 12850ac_configure_extra_args=
252b5132 12851
6bf9431b
BE
12852if $ac_cs_silent; then
12853 exec 6>/dev/null
12854 ac_configure_extra_args="$ac_configure_extra_args --silent"
12855fi
252b5132 12856
6bf9431b 12857_ACEOF
81ecdfbb 12858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12859if \$ac_cs_recheck; then
81ecdfbb
RW
12860 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12861 shift
12862 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12863 CONFIG_SHELL='$SHELL'
12864 export CONFIG_SHELL
12865 exec "\$@"
6bf9431b
BE
12866fi
12867
12868_ACEOF
81ecdfbb
RW
12869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870exec 5>>config.log
12871{
12872 echo
12873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12874## Running $as_me. ##
12875_ASBOX
12876 $as_echo "$ac_log"
12877} >&5
6bf9431b 12878
81ecdfbb
RW
12879_ACEOF
12880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12881#
81ecdfbb 12882# INIT-COMMANDS
252b5132 12883#
6bf9431b 12884AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12885
12886
12887# The HP-UX ksh and POSIX shell print the target directory to stdout
12888# if CDPATH is set.
12889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12890
12891sed_quote_subst='$sed_quote_subst'
12892double_quote_subst='$double_quote_subst'
12893delay_variable_subst='$delay_variable_subst'
3725885a
RW
12894macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12895macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12896enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12897enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12898pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12899enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12900SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12901ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12902host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12903host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12904host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12905build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12906build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12907build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12908SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12909Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12910GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12911EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12912FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12913LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12914NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12915LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12916max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12917ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12918exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12919lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12920lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12921lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12922reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12923reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12924OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12925deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12926file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12927AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12928AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12929STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12930RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12931old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12932old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12933old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12934lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12935CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12936CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12937compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12938GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12939lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12940lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12941lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12942lt_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"`'
12943objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12944MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12945lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12946lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12947lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12948lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12949lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12950need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12951DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12952NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12953LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12954OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12955OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12956libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12957shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12958extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12959archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12960enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12961export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12962whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12963compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12964old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12965old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12966archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12967archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12968module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12969module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12970with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12971allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12972no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12973hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12974hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12975hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12976hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12977hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12978hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12979hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12980hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12981inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12982link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12983fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12984always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12985export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12986exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12987include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12988prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12989file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12990variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12991need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12992need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12993version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12994runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12995shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12996shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12997libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12998library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12999soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13000install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13001postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13002postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13003finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13004finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13005hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13006sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13007sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13008hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13009enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13010enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13011enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13012old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13013striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13014
13015LTCC='$LTCC'
13016LTCFLAGS='$LTCFLAGS'
13017compiler='$compiler_DEFAULT'
13018
3725885a
RW
13019# A function that is used when there is no print builtin or printf.
13020func_fallback_echo ()
13021{
13022 eval 'cat <<_LTECHO_EOF
13023\$1
13024_LTECHO_EOF'
13025}
13026
d7040cdb 13027# Quote evaled strings.
3725885a
RW
13028for var in SHELL \
13029ECHO \
13030SED \
d7040cdb
SE
13031GREP \
13032EGREP \
13033FGREP \
13034LD \
13035NM \
13036LN_S \
13037lt_SP2NL \
13038lt_NL2SP \
13039reload_flag \
b214d478 13040OBJDUMP \
d7040cdb
SE
13041deplibs_check_method \
13042file_magic_cmd \
13043AR \
13044AR_FLAGS \
13045STRIP \
13046RANLIB \
13047CC \
13048CFLAGS \
13049compiler \
13050lt_cv_sys_global_symbol_pipe \
13051lt_cv_sys_global_symbol_to_cdecl \
13052lt_cv_sys_global_symbol_to_c_name_address \
b214d478 13053lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13054lt_prog_compiler_no_builtin_flag \
13055lt_prog_compiler_wl \
13056lt_prog_compiler_pic \
13057lt_prog_compiler_static \
13058lt_cv_prog_compiler_c_o \
13059need_locks \
b214d478
SE
13060DSYMUTIL \
13061NMEDIT \
13062LIPO \
13063OTOOL \
13064OTOOL64 \
d7040cdb
SE
13065shrext_cmds \
13066export_dynamic_flag_spec \
13067whole_archive_flag_spec \
13068compiler_needs_object \
13069with_gnu_ld \
13070allow_undefined_flag \
13071no_undefined_flag \
13072hardcode_libdir_flag_spec \
13073hardcode_libdir_flag_spec_ld \
13074hardcode_libdir_separator \
13075fix_srcfile_path \
13076exclude_expsyms \
13077include_expsyms \
13078file_list_spec \
13079variables_saved_for_relink \
13080libname_spec \
13081library_names_spec \
13082soname_spec \
3725885a 13083install_override_mode \
d7040cdb
SE
13084finish_eval \
13085old_striplib \
13086striplib; do
3725885a 13087 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13088 *[\\\\\\\`\\"\\\$]*)
3725885a 13089 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13090 ;;
13091 *)
13092 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13093 ;;
13094 esac
13095done
13096
13097# Double-quote double-evaled strings.
13098for var in reload_cmds \
13099old_postinstall_cmds \
13100old_postuninstall_cmds \
13101old_archive_cmds \
13102extract_expsyms_cmds \
13103old_archive_from_new_cmds \
13104old_archive_from_expsyms_cmds \
13105archive_cmds \
13106archive_expsym_cmds \
13107module_cmds \
13108module_expsym_cmds \
13109export_symbols_cmds \
13110prelink_cmds \
13111postinstall_cmds \
13112postuninstall_cmds \
13113finish_cmds \
13114sys_lib_search_path_spec \
13115sys_lib_dlsearch_path_spec; do
3725885a 13116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13117 *[\\\\\\\`\\"\\\$]*)
3725885a 13118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13119 ;;
13120 *)
13121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13122 ;;
13123 esac
13124done
13125
d7040cdb
SE
13126ac_aux_dir='$ac_aux_dir'
13127xsi_shell='$xsi_shell'
13128lt_shell_append='$lt_shell_append'
13129
13130# See if we are running on zsh, and set the options which allow our
13131# commands through without removal of \ escapes INIT.
13132if test -n "\${ZSH_VERSION+set}" ; then
13133 setopt NO_GLOB_SUBST
13134fi
13135
13136
13137 PACKAGE='$PACKAGE'
13138 VERSION='$VERSION'
13139 TIMESTAMP='$TIMESTAMP'
13140 RM='$RM'
13141 ofile='$ofile'
13142
13143
13144
20e95c23
DJ
13145# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13146 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13147 # from automake.
13148 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13149 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13150 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
13151
13152
13153_ACEOF
13154
81ecdfbb 13155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 13156
81ecdfbb 13157# Handling of arguments.
6bf9431b 13158for ac_config_target in $ac_config_targets
252b5132 13159do
81ecdfbb
RW
13160 case $ac_config_target in
13161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13162 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13163 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13164 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13166 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13167
13168 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
13169 esac
13170done
13171
81ecdfbb 13172
6bf9431b
BE
13173# If the user did not use the arguments to specify the items to instantiate,
13174# then the envvar interface is used. Set only those that are not.
13175# We use the long form for the default assignment because of an extremely
13176# bizarre bug on SunOS 4.1.3.
13177if $ac_need_defaults; then
13178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13181fi
13182
13183# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13184# simply because there is no reason against having it here, and in addition,
6bf9431b 13185# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13186# Hook for its removal unless debugging.
13187# Note that there is a small window in which the directory will not be cleaned:
13188# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
13189$debug ||
13190{
81ecdfbb
RW
13191 tmp=
13192 trap 'exit_status=$?
13193 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13194' 0
13195 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 13196}
6bf9431b 13197# Create a (secure) tmp directory for tmp files.
252b5132 13198
6bf9431b 13199{
81ecdfbb 13200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
13201 test -n "$tmp" && test -d "$tmp"
13202} ||
13203{
81ecdfbb
RW
13204 tmp=./conf$$-$RANDOM
13205 (umask 077 && mkdir "$tmp")
13206} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13207
13208# Set up the scripts for CONFIG_FILES section.
13209# No need to generate them if there are no CONFIG_FILES.
13210# This happens for instance with `./config.status config.h'.
13211if test -n "$CONFIG_FILES"; then
13212
13213
13214ac_cr=`echo X | tr X '\015'`
13215# On cygwin, bash can eat \r inside `` if the user requested igncr.
13216# But we know of no other shell where ac_cr would be empty at this
13217# point, so we can use a bashism as a fallback.
13218if test "x$ac_cr" = x; then
13219 eval ac_cr=\$\'\\r\'
13220fi
13221ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13222if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13223 ac_cs_awk_cr='\r'
13224else
13225 ac_cs_awk_cr=$ac_cr
13226fi
13227
13228echo 'BEGIN {' >"$tmp/subs1.awk" &&
13229_ACEOF
13230
13231
13232{
13233 echo "cat >conf$$subs.awk <<_ACEOF" &&
13234 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13235 echo "_ACEOF"
13236} >conf$$subs.sh ||
13237 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13238ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13239ac_delim='%!_!# '
13240for ac_last_try in false false false false false :; do
13241 . ./conf$$subs.sh ||
13242 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13243
13244 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13245 if test $ac_delim_n = $ac_delim_num; then
13246 break
13247 elif $ac_last_try; then
13248 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13249 else
13250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13251 fi
13252done
13253rm -f conf$$subs.sh
13254
13255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13257_ACEOF
13258sed -n '
13259h
13260s/^/S["/; s/!.*/"]=/
13261p
13262g
13263s/^[^!]*!//
13264:repl
13265t repl
13266s/'"$ac_delim"'$//
13267t delim
13268:nl
13269h
13270s/\(.\{148\}\).*/\1/
13271t more1
13272s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13273p
13274n
13275b repl
13276:more1
13277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13278p
13279g
13280s/.\{148\}//
13281t nl
13282:delim
13283h
13284s/\(.\{148\}\).*/\1/
13285t more2
13286s/["\\]/\\&/g; s/^/"/; s/$/"/
13287p
13288b
13289:more2
13290s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13291p
13292g
13293s/.\{148\}//
13294t delim
13295' <conf$$subs.awk | sed '
13296/^[^""]/{
13297 N
13298 s/\n//
13299}
13300' >>$CONFIG_STATUS || ac_write_fail=1
13301rm -f conf$$subs.awk
13302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13303_ACAWK
13304cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13305 for (key in S) S_is_set[key] = 1
13306 FS = "\a"
13307
13308}
6bf9431b 13309{
81ecdfbb
RW
13310 line = $ 0
13311 nfields = split(line, field, "@")
13312 substed = 0
13313 len = length(field[1])
13314 for (i = 2; i < nfields; i++) {
13315 key = field[i]
13316 keylen = length(key)
13317 if (S_is_set[key]) {
13318 value = S[key]
13319 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13320 len += length(value) + length(field[++i])
13321 substed = 1
13322 } else
13323 len += 1 + keylen
13324 }
13325
13326 print line
6bf9431b 13327}
252b5132 13328
81ecdfbb
RW
13329_ACAWK
13330_ACEOF
13331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13332if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13333 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13334else
13335 cat
13336fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13337 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13338_ACEOF
13339
81ecdfbb
RW
13340# VPATH may cause trouble with some makes, so we remove $(srcdir),
13341# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13342# trailing colons and then remove the whole line if VPATH becomes empty
13343# (actually we leave an empty line to preserve line numbers).
13344if test "x$srcdir" = x.; then
13345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13346s/:*\$(srcdir):*/:/
13347s/:*\${srcdir}:*/:/
13348s/:*@srcdir@:*/:/
13349s/^\([^=]*=[ ]*\):*/\1/
13350s/:*$//
13351s/^[^=]*=[ ]*$//
13352}'
13353fi
13354
13355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356fi # test -n "$CONFIG_FILES"
0ab6f085 13357
81ecdfbb
RW
13358# Set up the scripts for CONFIG_HEADERS section.
13359# No need to generate them if there are no CONFIG_HEADERS.
13360# This happens for instance with `./config.status Makefile'.
13361if test -n "$CONFIG_HEADERS"; then
13362cat >"$tmp/defines.awk" <<\_ACAWK ||
13363BEGIN {
13364_ACEOF
6bf9431b 13365
81ecdfbb
RW
13366# Transform confdefs.h into an awk script `defines.awk', embedded as
13367# here-document in config.status, that substitutes the proper values into
13368# config.h.in to produce config.h.
1b9750d6 13369
81ecdfbb
RW
13370# Create a delimiter string that does not exist in confdefs.h, to ease
13371# handling of long lines.
13372ac_delim='%!_!# '
13373for ac_last_try in false false :; do
13374 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13375 if test -z "$ac_t"; then
13376 break
13377 elif $ac_last_try; then
13378 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13379 else
13380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13381 fi
13382done
13383
13384# For the awk script, D is an array of macro values keyed by name,
13385# likewise P contains macro parameters if any. Preserve backslash
13386# newline sequences.
13387
13388ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13389sed -n '
13390s/.\{148\}/&'"$ac_delim"'/g
13391t rset
13392:rset
13393s/^[ ]*#[ ]*define[ ][ ]*/ /
13394t def
13395d
13396:def
13397s/\\$//
13398t bsnl
13399s/["\\]/\\&/g
13400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13401D["\1"]=" \3"/p
13402s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13403d
13404:bsnl
13405s/["\\]/\\&/g
13406s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13407D["\1"]=" \3\\\\\\n"\\/p
13408t cont
13409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13410t cont
13411d
13412:cont
13413n
13414s/.\{148\}/&'"$ac_delim"'/g
13415t clear
13416:clear
13417s/\\$//
13418t bsnlc
13419s/["\\]/\\&/g; s/^/"/; s/$/"/p
13420d
13421:bsnlc
13422s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13423b cont
13424' <confdefs.h | sed '
13425s/'"$ac_delim"'/"\\\
13426"/g' >>$CONFIG_STATUS || ac_write_fail=1
13427
13428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13429 for (key in D) D_is_set[key] = 1
13430 FS = "\a"
13431}
13432/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13433 line = \$ 0
13434 split(line, arg, " ")
13435 if (arg[1] == "#") {
13436 defundef = arg[2]
13437 mac1 = arg[3]
13438 } else {
13439 defundef = substr(arg[1], 2)
13440 mac1 = arg[2]
13441 }
13442 split(mac1, mac2, "(") #)
13443 macro = mac2[1]
13444 prefix = substr(line, 1, index(line, defundef) - 1)
13445 if (D_is_set[macro]) {
13446 # Preserve the white space surrounding the "#".
13447 print prefix "define", macro P[macro] D[macro]
13448 next
13449 } else {
13450 # Replace #undef with comments. This is necessary, for example,
13451 # in the case of _POSIX_SOURCE, which is predefined and required
13452 # on some systems where configure will not decide to define it.
13453 if (defundef == "undef") {
13454 print "/*", prefix defundef, macro, "*/"
13455 next
13456 }
13457 }
13458}
13459{ print }
13460_ACAWK
1b9750d6 13461_ACEOF
81ecdfbb
RW
13462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13463 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13464fi # test -n "$CONFIG_HEADERS"
1b9750d6 13465
81ecdfbb
RW
13466
13467eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13468shift
13469for ac_tag
13470do
13471 case $ac_tag in
13472 :[FHLC]) ac_mode=$ac_tag; continue;;
13473 esac
13474 case $ac_mode$ac_tag in
13475 :[FHL]*:*);;
13476 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13477 :[FH]-) ac_tag=-:-;;
13478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13479 esac
13480 ac_save_IFS=$IFS
13481 IFS=:
13482 set x $ac_tag
13483 IFS=$ac_save_IFS
13484 shift
13485 ac_file=$1
13486 shift
13487
13488 case $ac_mode in
13489 :L) ac_source=$1;;
13490 :[FH])
13491 ac_file_inputs=
13492 for ac_f
13493 do
13494 case $ac_f in
13495 -) ac_f="$tmp/stdin";;
13496 *) # Look for the file first in the build tree, then in the source tree
13497 # (if the path is not absolute). The absolute path cannot be DOS-style,
13498 # because $ac_f cannot contain `:'.
13499 test -f "$ac_f" ||
13500 case $ac_f in
13501 [\\/$]*) false;;
13502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13503 esac ||
13504 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13505 esac
13506 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13507 as_fn_append ac_file_inputs " '$ac_f'"
13508 done
13509
13510 # Let's still pretend it is `configure' which instantiates (i.e., don't
13511 # use $as_me), people would be surprised to read:
13512 # /* config.h. Generated by config.status. */
13513 configure_input='Generated from '`
13514 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13515 `' by configure.'
13516 if test x"$ac_file" != x-; then
13517 configure_input="$ac_file. $configure_input"
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13519$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13520 fi
81ecdfbb
RW
13521 # Neutralize special characters interpreted by sed in replacement strings.
13522 case $configure_input in #(
13523 *\&* | *\|* | *\\* )
13524 ac_sed_conf_input=`$as_echo "$configure_input" |
13525 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13526 *) ac_sed_conf_input=$configure_input;;
13527 esac
1b9750d6 13528
81ecdfbb
RW
13529 case $ac_tag in
13530 *:-:* | *:-) cat >"$tmp/stdin" \
13531 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13532 esac
13533 ;;
252b5132
RH
13534 esac
13535
81ecdfbb 13536 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13537$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13538 X"$ac_file" : 'X\(//\)[^/]' \| \
13539 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13541$as_echo X"$ac_file" |
13542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13543 s//\1/
13544 q
13545 }
13546 /^X\(\/\/\)[^/].*/{
13547 s//\1/
13548 q
13549 }
13550 /^X\(\/\/\)$/{
13551 s//\1/
13552 q
13553 }
13554 /^X\(\/\).*/{
13555 s//\1/
13556 q
13557 }
13558 s/.*/./; q'`
13559 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13560 ac_builddir=.
13561
81ecdfbb
RW
13562case "$ac_dir" in
13563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13564*)
13565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13566 # A ".." for each directory in $ac_dir_suffix.
13567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13568 case $ac_top_builddir_sub in
13569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13571 esac ;;
13572esac
13573ac_abs_top_builddir=$ac_pwd
13574ac_abs_builddir=$ac_pwd$ac_dir_suffix
13575# for backward compatibility:
13576ac_top_builddir=$ac_top_build_prefix
252b5132 13577
6bf9431b 13578case $srcdir in
81ecdfbb 13579 .) # We are building in place.
6bf9431b 13580 ac_srcdir=.
81ecdfbb
RW
13581 ac_top_srcdir=$ac_top_builddir_sub
13582 ac_abs_top_srcdir=$ac_pwd ;;
13583 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13584 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13585 ac_top_srcdir=$srcdir
13586 ac_abs_top_srcdir=$srcdir ;;
13587 *) # Relative name.
13588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13589 ac_top_srcdir=$ac_top_build_prefix$srcdir
13590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13591esac
81ecdfbb 13592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13593
252b5132 13594
81ecdfbb
RW
13595 case $ac_mode in
13596 :F)
13597 #
13598 # CONFIG_FILE
13599 #
6bf9431b
BE
13600
13601 case $INSTALL in
13602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13604 esac
13605 ac_MKDIR_P=$MKDIR_P
13606 case $MKDIR_P in
13607 [\\/$]* | ?:[\\/]* ) ;;
13608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13609 esac
81ecdfbb 13610_ACEOF
1b9750d6 13611
81ecdfbb
RW
13612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13613# If the template does not know about datarootdir, expand it.
13614# FIXME: This hack should be removed a few years after 2.60.
13615ac_datarootdir_hack=; ac_datarootdir_seen=
13616ac_sed_dataroot='
13617/datarootdir/ {
13618 p
13619 q
13620}
13621/@datadir@/p
13622/@docdir@/p
13623/@infodir@/p
13624/@localedir@/p
13625/@mandir@/p'
13626case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13627*datarootdir*) ac_datarootdir_seen=yes;;
13628*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13630$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13631_ACEOF
13632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633 ac_datarootdir_hack='
13634 s&@datadir@&$datadir&g
13635 s&@docdir@&$docdir&g
13636 s&@infodir@&$infodir&g
13637 s&@localedir@&$localedir&g
13638 s&@mandir@&$mandir&g
13639 s&\\\${datarootdir}&$datarootdir&g' ;;
13640esac
6bf9431b 13641_ACEOF
81ecdfbb
RW
13642
13643# Neutralize VPATH when `$srcdir' = `.'.
13644# Shell code in configure.ac might set extrasub.
13645# FIXME: do we really want to maintain this feature?
13646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647ac_sed_extra="$ac_vpsub
6bf9431b
BE
13648$extrasub
13649_ACEOF
81ecdfbb 13650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13651:t
13652/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13653s|@configure_input@|$ac_sed_conf_input|;t t
13654s&@top_builddir@&$ac_top_builddir_sub&;t t
13655s&@top_build_prefix@&$ac_top_build_prefix&;t t
13656s&@srcdir@&$ac_srcdir&;t t
13657s&@abs_srcdir@&$ac_abs_srcdir&;t t
13658s&@top_srcdir@&$ac_top_srcdir&;t t
13659s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13660s&@builddir@&$ac_builddir&;t t
13661s&@abs_builddir@&$ac_abs_builddir&;t t
13662s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13663s&@INSTALL@&$ac_INSTALL&;t t
13664s&@MKDIR_P@&$ac_MKDIR_P&;t t
13665$ac_datarootdir_hack
13666"
13667eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13668 || as_fn_error "could not create $ac_file" "$LINENO" 5
13669
13670test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13671 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13674which seems to be undefined. Please make sure it is defined." >&5
13675$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13676which seems to be undefined. Please make sure it is defined." >&2;}
13677
13678 rm -f "$tmp/stdin"
6bf9431b 13679 case $ac_file in
81ecdfbb
RW
13680 -) cat "$tmp/out" && rm -f "$tmp/out";;
13681 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13682 esac \
13683 || as_fn_error "could not create $ac_file" "$LINENO" 5
13684 ;;
13685 :H)
13686 #
13687 # CONFIG_HEADER
13688 #
6bf9431b 13689 if test x"$ac_file" != x-; then
81ecdfbb
RW
13690 {
13691 $as_echo "/* $configure_input */" \
13692 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13693 } >"$tmp/config.h" \
13694 || as_fn_error "could not create $ac_file" "$LINENO" 5
13695 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13697$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13698 else
81ecdfbb
RW
13699 rm -f "$ac_file"
13700 mv "$tmp/config.h" "$ac_file" \
13701 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13702 fi
6bf9431b 13703 else
81ecdfbb
RW
13704 $as_echo "/* $configure_input */" \
13705 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13706 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13707 fi
81ecdfbb
RW
13708# Compute "$ac_file"'s index in $config_headers.
13709_am_arg="$ac_file"
6bf9431b
BE
13710_am_stamp_count=1
13711for _am_header in $config_headers :; do
13712 case $_am_header in
81ecdfbb 13713 $_am_arg | $_am_arg:* )
6bf9431b
BE
13714 break ;;
13715 * )
13716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13717 esac
13718done
81ecdfbb
RW
13719echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13720$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13721 X"$_am_arg" : 'X\(//\)[^/]' \| \
13722 X"$_am_arg" : 'X\(//\)$' \| \
13723 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13724$as_echo X"$_am_arg" |
13725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13726 s//\1/
13727 q
13728 }
13729 /^X\(\/\/\)[^/].*/{
13730 s//\1/
13731 q
13732 }
13733 /^X\(\/\/\)$/{
13734 s//\1/
13735 q
13736 }
13737 /^X\(\/\).*/{
13738 s//\1/
13739 q
13740 }
13741 s/.*/./; q'`/stamp-h$_am_stamp_count
13742 ;;
0ab6f085 13743
81ecdfbb
RW
13744 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13745$as_echo "$as_me: executing $ac_file commands" >&6;}
13746 ;;
13747 esac
6bf9431b
BE
13748
13749
81ecdfbb
RW
13750 case $ac_file$ac_mode in
13751 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13752 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13753 # are listed without --file. Let's play safe and only enable the eval
13754 # if we detect the quoting.
13755 case $CONFIG_FILES in
13756 *\'*) eval set x "$CONFIG_FILES" ;;
13757 *) set x $CONFIG_FILES ;;
13758 esac
13759 shift
13760 for mf
13761 do
13762 # Strip MF so we end up with the name of the file.
13763 mf=`echo "$mf" | sed -e 's/:.*$//'`
13764 # Check whether this is an Automake generated Makefile or not.
13765 # We used to match only the files named `Makefile.in', but
13766 # some people rename them; so instead we look at the file content.
13767 # Grep'ing the first line is not enough: some people post-process
13768 # each Makefile.in and add a new line on top of each file to say so.
13769 # Grep'ing the whole file is not good either: AIX grep has a line
13770 # limit of 2048, but all sed's we know have understand at least 4000.
13771 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13772 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13773$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13774 X"$mf" : 'X\(//\)[^/]' \| \
13775 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13776 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13777$as_echo X"$mf" |
13778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13779 s//\1/
13780 q
13781 }
13782 /^X\(\/\/\)[^/].*/{
13783 s//\1/
13784 q
13785 }
13786 /^X\(\/\/\)$/{
13787 s//\1/
13788 q
13789 }
13790 /^X\(\/\).*/{
13791 s//\1/
13792 q
13793 }
13794 s/.*/./; q'`
13795 else
13796 continue
13797 fi
13798 # Extract the definition of DEPDIR, am__include, and am__quote
13799 # from the Makefile without running `make'.
13800 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13801 test -z "$DEPDIR" && continue
13802 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13803 test -z "am__include" && continue
13804 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13805 # When using ansi2knr, U may be empty or an underscore; expand it
13806 U=`sed -n 's/^U = //p' < "$mf"`
13807 # Find all dependency output files, they are included files with
13808 # $(DEPDIR) in their names. We invoke sed twice because it is the
13809 # simplest approach to changing $(DEPDIR) to its actual value in the
13810 # expansion.
13811 for file in `sed -n "
13812 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13813 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13814 # Make sure the directory exists.
13815 test -f "$dirpart/$file" && continue
13816 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13817$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13818 X"$file" : 'X\(//\)[^/]' \| \
13819 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13820 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13821$as_echo X"$file" |
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13823 s//\1/
13824 q
13825 }
13826 /^X\(\/\/\)[^/].*/{
13827 s//\1/
13828 q
13829 }
13830 /^X\(\/\/\)$/{
13831 s//\1/
13832 q
13833 }
13834 /^X\(\/\).*/{
13835 s//\1/
13836 q
13837 }
13838 s/.*/./; q'`
13839 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13840 # echo "creating $dirpart/$file"
13841 echo '# dummy' > "$dirpart/$file"
6bf9431b 13842 done
6bf9431b 13843 done
81ecdfbb 13844}
d7040cdb 13845 ;;
81ecdfbb 13846 "libtool":C)
d7040cdb
SE
13847
13848 # See if we are running on zsh, and set the options which allow our
13849 # commands through without removal of \ escapes.
13850 if test -n "${ZSH_VERSION+set}" ; then
13851 setopt NO_GLOB_SUBST
13852 fi
13853
13854 cfgfile="${ofile}T"
13855 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13856 $RM "$cfgfile"
13857
13858 cat <<_LT_EOF >> "$cfgfile"
13859#! $SHELL
13860
13861# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13862# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13863# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13864# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13865#
b214d478 13866# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 13867# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 13868# Written by Gordon Matzigkeit, 1996
d7040cdb 13869#
b214d478 13870# This file is part of GNU Libtool.
d7040cdb 13871#
b214d478
SE
13872# GNU Libtool is free software; you can redistribute it and/or
13873# modify it under the terms of the GNU General Public License as
13874# published by the Free Software Foundation; either version 2 of
13875# the License, or (at your option) any later version.
d7040cdb 13876#
b214d478
SE
13877# As a special exception to the GNU General Public License,
13878# if you distribute this file as part of a program or library that
13879# is built using GNU Libtool, you may include this file under the
13880# same distribution terms that you use for the rest of that program.
d7040cdb 13881#
b214d478
SE
13882# GNU Libtool is distributed in the hope that it will be useful,
13883# but WITHOUT ANY WARRANTY; without even the implied warranty of
13884# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13885# GNU General Public License for more details.
d7040cdb 13886#
b214d478
SE
13887# You should have received a copy of the GNU General Public License
13888# along with GNU Libtool; see the file COPYING. If not, a copy
13889# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13890# obtained by writing to the Free Software Foundation, Inc.,
13891# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13892
13893
13894# The names of the tagged configurations supported by this script.
13895available_tags=""
13896
13897# ### BEGIN LIBTOOL CONFIG
13898
13899# Which release of libtool.m4 was used?
13900macro_version=$macro_version
13901macro_revision=$macro_revision
13902
13903# Whether or not to build shared libraries.
13904build_libtool_libs=$enable_shared
13905
13906# Whether or not to build static libraries.
13907build_old_libs=$enable_static
13908
13909# What type of objects to build.
13910pic_mode=$pic_mode
13911
13912# Whether or not to optimize for fast installation.
13913fast_install=$enable_fast_install
13914
3725885a
RW
13915# Shell to use when invoking shell scripts.
13916SHELL=$lt_SHELL
13917
13918# An echo program that protects backslashes.
13919ECHO=$lt_ECHO
13920
d7040cdb
SE
13921# The host system.
13922host_alias=$host_alias
13923host=$host
13924host_os=$host_os
13925
13926# The build system.
13927build_alias=$build_alias
13928build=$build
13929build_os=$build_os
13930
13931# A sed program that does not truncate output.
13932SED=$lt_SED
13933
13934# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13935Xsed="\$SED -e 1s/^X//"
13936
13937# A grep program that handles long lines.
13938GREP=$lt_GREP
13939
13940# An ERE matcher.
13941EGREP=$lt_EGREP
13942
13943# A literal string matcher.
13944FGREP=$lt_FGREP
13945
13946# A BSD- or MS-compatible name lister.
13947NM=$lt_NM
13948
13949# Whether we need soft or hard links.
13950LN_S=$lt_LN_S
13951
13952# What is the maximum length of a command?
13953max_cmd_len=$max_cmd_len
13954
13955# Object file suffix (normally "o").
13956objext=$ac_objext
13957
13958# Executable file suffix (normally "").
13959exeext=$exeext
13960
13961# whether the shell understands "unset".
13962lt_unset=$lt_unset
13963
13964# turn spaces into newlines.
13965SP2NL=$lt_lt_SP2NL
13966
13967# turn newlines into spaces.
13968NL2SP=$lt_lt_NL2SP
13969
b214d478
SE
13970# An object symbol dumper.
13971OBJDUMP=$lt_OBJDUMP
13972
d7040cdb
SE
13973# Method to check whether dependent libraries are shared objects.
13974deplibs_check_method=$lt_deplibs_check_method
13975
13976# Command to use when deplibs_check_method == "file_magic".
13977file_magic_cmd=$lt_file_magic_cmd
13978
13979# The archiver.
13980AR=$lt_AR
13981AR_FLAGS=$lt_AR_FLAGS
13982
13983# A symbol stripping program.
13984STRIP=$lt_STRIP
13985
13986# Commands used to install an old-style archive.
13987RANLIB=$lt_RANLIB
13988old_postinstall_cmds=$lt_old_postinstall_cmds
13989old_postuninstall_cmds=$lt_old_postuninstall_cmds
13990
3725885a
RW
13991# Whether to use a lock for old archive extraction.
13992lock_old_archive_extraction=$lock_old_archive_extraction
13993
d7040cdb
SE
13994# A C compiler.
13995LTCC=$lt_CC
13996
13997# LTCC compiler flags.
13998LTCFLAGS=$lt_CFLAGS
13999
14000# Take the output of nm and produce a listing of raw symbols and C names.
14001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14002
14003# Transform the output of nm in a proper C declaration.
14004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14005
14006# Transform the output of nm in a C name address pair.
14007global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14008
b214d478
SE
14009# Transform the output of nm in a C name address pair when lib prefix is needed.
14010global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14011
d7040cdb
SE
14012# The name of the directory that contains temporary libtool files.
14013objdir=$objdir
14014
d7040cdb
SE
14015# Used to examine libraries when file_magic_cmd begins with "file".
14016MAGIC_CMD=$MAGIC_CMD
14017
14018# Must we lock files when doing compilation?
14019need_locks=$lt_need_locks
14020
b214d478
SE
14021# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14022DSYMUTIL=$lt_DSYMUTIL
14023
14024# Tool to change global to local symbols on Mac OS X.
14025NMEDIT=$lt_NMEDIT
14026
14027# Tool to manipulate fat objects and archives on Mac OS X.
14028LIPO=$lt_LIPO
14029
14030# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14031OTOOL=$lt_OTOOL
14032
14033# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14034OTOOL64=$lt_OTOOL64
14035
d7040cdb
SE
14036# Old archive suffix (normally "a").
14037libext=$libext
14038
14039# Shared library suffix (normally ".so").
14040shrext_cmds=$lt_shrext_cmds
14041
14042# The commands to extract the exported symbol list from a shared archive.
14043extract_expsyms_cmds=$lt_extract_expsyms_cmds
14044
14045# Variables whose values should be saved in libtool wrapper scripts and
14046# restored at link time.
14047variables_saved_for_relink=$lt_variables_saved_for_relink
14048
14049# Do we need the "lib" prefix for modules?
14050need_lib_prefix=$need_lib_prefix
14051
14052# Do we need a version for libraries?
14053need_version=$need_version
14054
14055# Library versioning type.
14056version_type=$version_type
14057
14058# Shared library runtime path variable.
14059runpath_var=$runpath_var
14060
14061# Shared library path variable.
14062shlibpath_var=$shlibpath_var
14063
14064# Is shlibpath searched before the hard-coded library search path?
14065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14066
14067# Format of library name prefix.
14068libname_spec=$lt_libname_spec
14069
14070# List of archive names. First name is the real one, the rest are links.
14071# The last name is the one that the linker finds with -lNAME
14072library_names_spec=$lt_library_names_spec
14073
14074# The coded name of the library, if different from the real name.
14075soname_spec=$lt_soname_spec
14076
3725885a
RW
14077# Permission mode override for installation of shared libraries.
14078install_override_mode=$lt_install_override_mode
14079
d7040cdb
SE
14080# Command to use after installation of a shared archive.
14081postinstall_cmds=$lt_postinstall_cmds
14082
14083# Command to use after uninstallation of a shared archive.
14084postuninstall_cmds=$lt_postuninstall_cmds
14085
14086# Commands used to finish a libtool library installation in a directory.
14087finish_cmds=$lt_finish_cmds
14088
14089# As "finish_cmds", except a single script fragment to be evaled but
14090# not shown.
14091finish_eval=$lt_finish_eval
14092
14093# Whether we should hardcode library paths into libraries.
14094hardcode_into_libs=$hardcode_into_libs
14095
14096# Compile-time system search path for libraries.
14097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14098
14099# Run-time system search path for libraries.
14100sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14101
14102# Whether dlopen is supported.
14103dlopen_support=$enable_dlopen
14104
14105# Whether dlopen of programs is supported.
14106dlopen_self=$enable_dlopen_self
14107
14108# Whether dlopen of statically linked programs is supported.
14109dlopen_self_static=$enable_dlopen_self_static
14110
14111# Commands to strip libraries.
14112old_striplib=$lt_old_striplib
14113striplib=$lt_striplib
14114
14115
14116# The linker used to build libraries.
14117LD=$lt_LD
14118
3725885a
RW
14119# How to create reloadable object files.
14120reload_flag=$lt_reload_flag
14121reload_cmds=$lt_reload_cmds
14122
d7040cdb
SE
14123# Commands used to build an old-style archive.
14124old_archive_cmds=$lt_old_archive_cmds
14125
14126# A language specific compiler.
14127CC=$lt_compiler
14128
14129# Is the compiler the GNU compiler?
14130with_gcc=$GCC
14131
14132# Compiler flag to turn off builtin functions.
14133no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14134
14135# How to pass a linker flag through the compiler.
14136wl=$lt_lt_prog_compiler_wl
14137
14138# Additional compiler flags for building library objects.
14139pic_flag=$lt_lt_prog_compiler_pic
14140
14141# Compiler flag to prevent dynamic linking.
14142link_static_flag=$lt_lt_prog_compiler_static
14143
14144# Does compiler simultaneously support -c and -o options?
14145compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14146
14147# Whether or not to add -lc for building shared libraries.
14148build_libtool_need_lc=$archive_cmds_need_lc
14149
14150# Whether or not to disallow shared libs when runtime libs are static.
14151allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14152
14153# Compiler flag to allow reflexive dlopens.
14154export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14155
14156# Compiler flag to generate shared objects directly from archives.
14157whole_archive_flag_spec=$lt_whole_archive_flag_spec
14158
14159# Whether the compiler copes with passing no objects directly.
14160compiler_needs_object=$lt_compiler_needs_object
14161
14162# Create an old-style archive from a shared archive.
14163old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14164
14165# Create a temporary old-style archive to link instead of a shared archive.
14166old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14167
14168# Commands used to build a shared archive.
14169archive_cmds=$lt_archive_cmds
14170archive_expsym_cmds=$lt_archive_expsym_cmds
14171
14172# Commands used to build a loadable module if different from building
14173# a shared archive.
14174module_cmds=$lt_module_cmds
14175module_expsym_cmds=$lt_module_expsym_cmds
14176
14177# Whether we are building with GNU ld or not.
14178with_gnu_ld=$lt_with_gnu_ld
14179
14180# Flag that allows shared libraries with undefined symbols to be built.
14181allow_undefined_flag=$lt_allow_undefined_flag
14182
14183# Flag that enforces no undefined symbols.
14184no_undefined_flag=$lt_no_undefined_flag
14185
14186# Flag to hardcode \$libdir into a binary during linking.
14187# This must work even if \$libdir does not exist
14188hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14189
14190# If ld is used when linking, flag to hardcode \$libdir into a binary
14191# during linking. This must work even if \$libdir does not exist.
14192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14193
14194# Whether we need a single "-rpath" flag with a separated argument.
14195hardcode_libdir_separator=$lt_hardcode_libdir_separator
14196
14197# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14198# DIR into the resulting binary.
14199hardcode_direct=$hardcode_direct
14200
14201# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14202# DIR into the resulting binary and the resulting library dependency is
14203# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14204# library is relocated.
14205hardcode_direct_absolute=$hardcode_direct_absolute
14206
14207# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14208# into the resulting binary.
14209hardcode_minus_L=$hardcode_minus_L
14210
14211# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14212# into the resulting binary.
14213hardcode_shlibpath_var=$hardcode_shlibpath_var
14214
14215# Set to "yes" if building a shared library automatically hardcodes DIR
14216# into the library and all subsequent libraries and executables linked
14217# against it.
14218hardcode_automatic=$hardcode_automatic
14219
14220# Set to yes if linker adds runtime paths of dependent libraries
14221# to runtime path list.
14222inherit_rpath=$inherit_rpath
14223
14224# Whether libtool must link a program against all its dependency libraries.
14225link_all_deplibs=$link_all_deplibs
14226
14227# Fix the shell variable \$srcfile for the compiler.
14228fix_srcfile_path=$lt_fix_srcfile_path
14229
14230# Set to "yes" if exported symbols are required.
14231always_export_symbols=$always_export_symbols
14232
14233# The commands to list exported symbols.
14234export_symbols_cmds=$lt_export_symbols_cmds
14235
14236# Symbols that should not be listed in the preloaded symbols.
14237exclude_expsyms=$lt_exclude_expsyms
14238
14239# Symbols that must always be exported.
14240include_expsyms=$lt_include_expsyms
14241
14242# Commands necessary for linking programs (against libraries) with templates.
14243prelink_cmds=$lt_prelink_cmds
14244
14245# Specify filename containing input files.
14246file_list_spec=$lt_file_list_spec
14247
14248# How to hardcode a shared library path into an executable.
14249hardcode_action=$hardcode_action
14250
14251# ### END LIBTOOL CONFIG
14252
14253_LT_EOF
14254
14255 case $host_os in
14256 aix3*)
14257 cat <<\_LT_EOF >> "$cfgfile"
14258# AIX sometimes has problems with the GCC collect2 program. For some
14259# reason, if we set the COLLECT_NAMES environment variable, the problems
14260# vanish in a puff of smoke.
14261if test "X${COLLECT_NAMES+set}" != Xset; then
14262 COLLECT_NAMES=
14263 export COLLECT_NAMES
14264fi
14265_LT_EOF
14266 ;;
14267 esac
14268
14269
14270ltmain="$ac_aux_dir/ltmain.sh"
14271
14272
14273 # We use sed instead of cat because bash on DJGPP gets confused if
14274 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14275 # text mode, it properly converts lines to CR/LF. This bash problem
14276 # is reportedly fixed, but why not run on old versions too?
14277 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14278 || (rm -f "$cfgfile"; exit 1)
14279
14280 case $xsi_shell in
14281 yes)
14282 cat << \_LT_EOF >> "$cfgfile"
b214d478 14283
d7040cdb
SE
14284# func_dirname file append nondir_replacement
14285# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14286# otherwise set result to NONDIR_REPLACEMENT.
14287func_dirname ()
14288{
14289 case ${1} in
14290 */*) func_dirname_result="${1%/*}${2}" ;;
14291 * ) func_dirname_result="${3}" ;;
14292 esac
14293}
14294
14295# func_basename file
14296func_basename ()
14297{
14298 func_basename_result="${1##*/}"
14299}
14300
b214d478
SE
14301# func_dirname_and_basename file append nondir_replacement
14302# perform func_basename and func_dirname in a single function
14303# call:
14304# dirname: Compute the dirname of FILE. If nonempty,
14305# add APPEND to the result, otherwise set result
14306# to NONDIR_REPLACEMENT.
14307# value returned in "$func_dirname_result"
14308# basename: Compute filename of FILE.
14309# value retuned in "$func_basename_result"
14310# Implementation must be kept synchronized with func_dirname
14311# and func_basename. For efficiency, we do not delegate to
14312# those functions but instead duplicate the functionality here.
14313func_dirname_and_basename ()
14314{
14315 case ${1} in
14316 */*) func_dirname_result="${1%/*}${2}" ;;
14317 * ) func_dirname_result="${3}" ;;
14318 esac
14319 func_basename_result="${1##*/}"
14320}
14321
d7040cdb
SE
14322# func_stripname prefix suffix name
14323# strip PREFIX and SUFFIX off of NAME.
14324# PREFIX and SUFFIX must not contain globbing or regex special
14325# characters, hashes, percent signs, but SUFFIX may contain a leading
14326# dot (in which case that matches only a dot).
14327func_stripname ()
14328{
14329 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14330 # positional parameters, so assign one to ordinary parameter first.
14331 func_stripname_result=${3}
14332 func_stripname_result=${func_stripname_result#"${1}"}
14333 func_stripname_result=${func_stripname_result%"${2}"}
14334}
14335
14336# func_opt_split
14337func_opt_split ()
14338{
14339 func_opt_split_opt=${1%%=*}
14340 func_opt_split_arg=${1#*=}
14341}
14342
14343# func_lo2o object
14344func_lo2o ()
14345{
14346 case ${1} in
14347 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14348 *) func_lo2o_result=${1} ;;
14349 esac
14350}
b214d478
SE
14351
14352# func_xform libobj-or-source
14353func_xform ()
14354{
14355 func_xform_result=${1%.*}.lo
14356}
14357
14358# func_arith arithmetic-term...
14359func_arith ()
14360{
14361 func_arith_result=$(( $* ))
14362}
14363
14364# func_len string
14365# STRING may not start with a hyphen.
14366func_len ()
14367{
14368 func_len_result=${#1}
14369}
14370
d7040cdb
SE
14371_LT_EOF
14372 ;;
14373 *) # Bourne compatible functions.
14374 cat << \_LT_EOF >> "$cfgfile"
b214d478 14375
d7040cdb
SE
14376# func_dirname file append nondir_replacement
14377# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14378# otherwise set result to NONDIR_REPLACEMENT.
14379func_dirname ()
14380{
14381 # Extract subdirectory from the argument.
3725885a 14382 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14383 if test "X$func_dirname_result" = "X${1}"; then
14384 func_dirname_result="${3}"
14385 else
14386 func_dirname_result="$func_dirname_result${2}"
14387 fi
14388}
14389
14390# func_basename file
14391func_basename ()
14392{
3725885a 14393 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14394}
14395
b214d478 14396
d7040cdb
SE
14397# func_stripname prefix suffix name
14398# strip PREFIX and SUFFIX off of NAME.
14399# PREFIX and SUFFIX must not contain globbing or regex special
14400# characters, hashes, percent signs, but SUFFIX may contain a leading
14401# dot (in which case that matches only a dot).
14402# func_strip_suffix prefix name
14403func_stripname ()
14404{
14405 case ${2} in
3725885a
RW
14406 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14407 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14408 esac
14409}
14410
14411# sed scripts:
14412my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14413my_sed_long_arg='1s/^-[^=]*=//'
14414
14415# func_opt_split
14416func_opt_split ()
14417{
3725885a
RW
14418 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14419 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14420}
14421
14422# func_lo2o object
14423func_lo2o ()
14424{
3725885a 14425 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14426}
b214d478
SE
14427
14428# func_xform libobj-or-source
14429func_xform ()
14430{
3725885a 14431 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
14432}
14433
14434# func_arith arithmetic-term...
14435func_arith ()
14436{
14437 func_arith_result=`expr "$@"`
14438}
14439
14440# func_len string
14441# STRING may not start with a hyphen.
14442func_len ()
14443{
14444 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14445}
14446
d7040cdb
SE
14447_LT_EOF
14448esac
14449
14450case $lt_shell_append in
14451 yes)
14452 cat << \_LT_EOF >> "$cfgfile"
14453
14454# func_append var value
14455# Append VALUE to the end of shell variable VAR.
14456func_append ()
14457{
14458 eval "$1+=\$2"
14459}
14460_LT_EOF
14461 ;;
14462 *)
14463 cat << \_LT_EOF >> "$cfgfile"
14464
14465# func_append var value
14466# Append VALUE to the end of shell variable VAR.
14467func_append ()
14468{
14469 eval "$1=\$$1\$2"
14470}
b214d478 14471
d7040cdb
SE
14472_LT_EOF
14473 ;;
14474 esac
14475
14476
14477 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14478 || (rm -f "$cfgfile"; exit 1)
14479
14480 mv -f "$cfgfile" "$ofile" ||
14481 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14482 chmod +x "$ofile"
14483
6bf9431b 14484 ;;
81ecdfbb 14485 "default-1":C)
20e95c23
DJ
14486 for ac_file in $CONFIG_FILES; do
14487 # Support "outfile[:infile[:infile...]]"
14488 case "$ac_file" in
14489 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14490 esac
14491 # PO directories have a Makefile.in generated from Makefile.in.in.
14492 case "$ac_file" in */Makefile.in)
14493 # Adjust a relative srcdir.
14494 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14495 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14496 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14497 # In autoconf-2.13 it is called $ac_given_srcdir.
14498 # In autoconf-2.50 it is called $srcdir.
14499 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14500 case "$ac_given_srcdir" in
14501 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14502 /*) top_srcdir="$ac_given_srcdir" ;;
14503 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14504 esac
14505 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14506 rm -f "$ac_dir/POTFILES"
14507 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14508 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14509 POMAKEFILEDEPS="POTFILES.in"
14510 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14511 # on $ac_dir but don't depend on user-specified configuration
14512 # parameters.
14513 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14514 # The LINGUAS file contains the set of available languages.
14515 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 14516 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
14517 fi
14518 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14519 # Hide the ALL_LINGUAS assigment from automake.
14520 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14521 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14522 else
37a42ee9 14523 # The set of available languages was given in configure.ac.
20e95c23
DJ
14524 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14525 fi
14526 case "$ac_given_srcdir" in
14527 .) srcdirpre= ;;
14528 *) srcdirpre='$(srcdir)/' ;;
14529 esac
14530 POFILES=
14531 GMOFILES=
14532 UPDATEPOFILES=
14533 DUMMYPOFILES=
14534 for lang in $ALL_LINGUAS; do
14535 POFILES="$POFILES $srcdirpre$lang.po"
14536 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14537 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14538 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14539 done
14540 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14541 # environment variable.
14542 INST_LINGUAS=
14543 if test -n "$ALL_LINGUAS"; then
14544 for presentlang in $ALL_LINGUAS; do
14545 useit=no
14546 if test "%UNSET%" != "$LINGUAS"; then
14547 desiredlanguages="$LINGUAS"
14548 else
14549 desiredlanguages="$ALL_LINGUAS"
14550 fi
14551 for desiredlang in $desiredlanguages; do
14552 # Use the presentlang catalog if desiredlang is
14553 # a. equal to presentlang, or
14554 # b. a variant of presentlang (because in this case,
14555 # presentlang can be used as a fallback for messages
14556 # which are not translated in the desiredlang catalog).
14557 case "$desiredlang" in
14558 "$presentlang"*) useit=yes;;
14559 esac
14560 done
14561 if test $useit = yes; then
14562 INST_LINGUAS="$INST_LINGUAS $presentlang"
14563 fi
14564 done
14565 fi
14566 CATALOGS=
14567 if test -n "$INST_LINGUAS"; then
14568 for lang in $INST_LINGUAS; do
14569 CATALOGS="$CATALOGS $lang.gmo"
14570 done
14571 fi
14572 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14573 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14574 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14575 if test -f "$f"; then
14576 case "$f" in
14577 *.orig | *.bak | *~) ;;
14578 *) cat "$f" >> "$ac_dir/Makefile" ;;
14579 esac
14580 fi
14581 done
14582 fi
14583 ;;
14584 esac
14585 done ;;
81ecdfbb 14586
6bf9431b 14587 esac
81ecdfbb 14588done # for ac_tag
6bf9431b 14589
6bf9431b 14590
81ecdfbb 14591as_fn_exit 0
6bf9431b 14592_ACEOF
6bf9431b
BE
14593ac_clean_files=$ac_clean_files_save
14594
81ecdfbb
RW
14595test $ac_write_fail = 0 ||
14596 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14597
6bf9431b
BE
14598
14599# configure is writing to config.log, and then calls config.status.
14600# config.status does its own redirection, appending to config.log.
14601# Unfortunately, on DOS this fails, as config.log is still kept open
14602# by configure, so config.status won't be able to write to it; its
14603# output is simply discarded. So we exec the FD to /dev/null,
14604# effectively closing config.log, so it can be properly (re)opened and
14605# appended to by config.status. When coming back to configure, we
14606# need to make the FD available again.
14607if test "$no_create" != yes; then
14608 ac_cs_success=:
14609 ac_config_status_args=
14610 test "$silent" = yes &&
14611 ac_config_status_args="$ac_config_status_args --quiet"
14612 exec 5>/dev/null
14613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14614 exec 5>>config.log
14615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14616 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14617 $ac_cs_success || as_fn_exit $?
14618fi
14619if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14621$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14622fi
252b5132 14623
This page took 1.528903 seconds and 4 git commands to generate.