Regenerate configure
[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
6757cf57 605WARN_WRITE_STRINGS
81ecdfbb
RW
606NO_WERROR
607WARN_CFLAGS
608GENINSRC_NEVER_FALSE
609GENINSRC_NEVER_TRUE
610MAINT
611MAINTAINER_MODE_FALSE
612MAINTAINER_MODE_TRUE
613MSGMERGE
614MSGFMT
615MKINSTALLDIRS
616CATOBJEXT
617GENCAT
618INSTOBJEXT
619DATADIRNAME
620CATALOGS
621POSUB
622GMSGFMT
623XGETTEXT
624INCINTL
625LIBINTL_DEP
626LIBINTL
627USE_NLS
628OTOOL64
629OTOOL
630LIPO
631NMEDIT
632DSYMUTIL
81ecdfbb
RW
633RANLIB
634AR
635OBJDUMP
636LN_S
637NM
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
642SED
643LIBTOOL
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
6eb7d830 650am__nodep
81ecdfbb
RW
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657am__untar
658am__tar
659AMTAR
660am__leading_dot
661SET_MAKE
662AWK
663mkdir_p
664MKDIR_P
665INSTALL_STRIP_PROGRAM
666STRIP
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676am__isrc
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
6bf9431b 737ac_subst_files=''
81ecdfbb
RW
738ac_user_opts='
739enable_option_checking
740enable_dependency_tracking
81ecdfbb
RW
741enable_shared
742enable_static
743with_pic
744enable_fast_install
745with_gnu_ld
746enable_libtool_lock
b879806f
AM
747enable_plugins
748enable_largefile
81ecdfbb
RW
749enable_nls
750enable_maintainer_mode
751enable_werror
752enable_build_warnings
753'
754 ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP'
763
252b5132
RH
764
765# Initialize some variables set by options.
6bf9431b
BE
766ac_init_help=
767ac_init_version=false
81ecdfbb
RW
768ac_unrecognized_opts=
769ac_unrecognized_sep=
252b5132
RH
770# The variables have the same names as the options, with
771# dashes changed to underlines.
6bf9431b 772cache_file=/dev/null
252b5132 773exec_prefix=NONE
252b5132 774no_create=
252b5132
RH
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
252b5132
RH
783verbose=
784x_includes=NONE
785x_libraries=NONE
6bf9431b
BE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 792# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
252b5132
RH
798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
252b5132
RH
801includedir='${prefix}/include'
802oldincludedir='/usr/include'
2e98a7bd 803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
252b5132 812
252b5132 813ac_prev=
81ecdfbb 814ac_dashdash=
252b5132
RH
815for ac_option
816do
252b5132
RH
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
81ecdfbb 819 eval $ac_prev=\$ac_option
252b5132
RH
820 ac_prev=
821 continue
822 fi
823
81ecdfbb
RW
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
252b5132
RH
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
81ecdfbb
RW
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
252b5132
RH
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 838 bindir=$ac_optarg ;;
252b5132
RH
839
840 -build | --build | --buil | --bui | --bu)
6bf9431b 841 ac_prev=build_alias ;;
252b5132 842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 843 build_alias=$ac_optarg ;;
252b5132
RH
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
252b5132 854
81ecdfbb 855 -datadir | --datadir | --datadi | --datad)
252b5132 856 ac_prev=datadir ;;
81ecdfbb 857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 858 datadir=$ac_optarg ;;
252b5132 859
81ecdfbb
RW
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
252b5132 867 -disable-* | --disable-*)
81ecdfbb 868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 869 # Reject names that are not valid shell variable names.
81ecdfbb
RW
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
252b5132
RH
892
893 -enable-* | --enable-*)
81ecdfbb 894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 895 # Reject names that are not valid shell variable names.
81ecdfbb
RW
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
0ab6f085 906 esac
81ecdfbb 907 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
6bf9431b 916 exec_prefix=$ac_optarg ;;
252b5132
RH
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
6bf9431b
BE
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
252b5132
RH
928
929 -host | --host | --hos | --ho)
6bf9431b 930 ac_prev=host_alias ;;
252b5132 931 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 932 host_alias=$ac_optarg ;;
252b5132 933
81ecdfbb
RW
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
252b5132
RH
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 945 includedir=$ac_optarg ;;
252b5132
RH
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 950 infodir=$ac_optarg ;;
252b5132
RH
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 955 libdir=$ac_optarg ;;
252b5132
RH
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
6bf9431b 962 libexecdir=$ac_optarg ;;
252b5132 963
81ecdfbb
RW
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
252b5132 969 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 970 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 974 localstatedir=$ac_optarg ;;
252b5132
RH
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 979 mandir=$ac_optarg ;;
252b5132
RH
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 986 | --no-cr | --no-c | -n)
252b5132
RH
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 1000 oldincludedir=$ac_optarg ;;
252b5132
RH
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1005 prefix=$ac_optarg ;;
252b5132
RH
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1012 program_prefix=$ac_optarg ;;
252b5132
RH
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1019 program_suffix=$ac_optarg ;;
252b5132
RH
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1036 program_transform_name=$ac_optarg ;;
252b5132 1037
81ecdfbb
RW
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
252b5132
RH
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
6bf9431b 1056 sbindir=$ac_optarg ;;
252b5132
RH
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
6bf9431b 1067 sharedstatedir=$ac_optarg ;;
252b5132
RH
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
6bf9431b 1072 site=$ac_optarg ;;
093872ec 1073
252b5132
RH
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1077 srcdir=$ac_optarg ;;
252b5132
RH
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1084 sysconfdir=$ac_optarg ;;
252b5132
RH
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1087 ac_prev=target_alias ;;
252b5132 1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1089 target_alias=$ac_optarg ;;
252b5132
RH
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
6bf9431b
BE
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
252b5132
RH
1096
1097 -with-* | --with-*)
81ecdfbb 1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1099 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
0ab6f085 1110 esac
81ecdfbb 1111 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1112
1113 -without-* | --without-*)
81ecdfbb 1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1115 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
252b5132
RH
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1138 x_includes=$ac_optarg ;;
252b5132
RH
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1145 x_libraries=$ac_optarg ;;
252b5132 1146
81ecdfbb
RW
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148Try \`$0 --help' for more information."
252b5132
RH
1149 ;;
1150
6bf9431b
BE
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1159 export $ac_envvar ;;
1160
252b5132 1161 *)
6bf9431b 1162 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
6bf9431b 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1174 as_fn_error "missing argument to $ac_option"
252b5132
RH
1175fi
1176
81ecdfbb
RW
1177if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1182 esac
81ecdfbb 1183fi
0ab6f085 1184
81ecdfbb
RW
1185# Check all directory arguments for consistency.
1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
0ab6f085 1190do
81ecdfbb
RW
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
0ab6f085 1193 case $ac_val in
81ecdfbb
RW
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
252b5132 1197 esac
81ecdfbb
RW
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1204done
1205
6bf9431b
BE
1206# There might be people who depend on the old broken behavior: `$host'
1207# used to hold the argument of --host etc.
1208# FIXME: To remove some day.
1209build=$build_alias
1210host=$host_alias
1211target=$target_alias
1212
1213# FIXME: To remove some day.
1214if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
81ecdfbb 1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222fi
252b5132 1223
6bf9431b
BE
1224ac_tool_prefix=
1225test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227test "$silent" = yes && exec 6>/dev/null
252b5132 1228
252b5132 1229
81ecdfbb
RW
1230ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231ac_ls_di=`ls -di .` &&
1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1236
1237
252b5132
RH
1238# Find the source files, if location was not specified.
1239if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
81ecdfbb
RW
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247$as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
252b5132 1265 srcdir=$ac_confdir
81ecdfbb 1266 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1267 srcdir=..
1268 fi
1269else
1270 ac_srcdir_defaulted=no
1271fi
81ecdfbb
RW
1272if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1275fi
1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
252b5132 1296
6bf9431b
BE
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
d8bd95ef 1304\`configure' configures gprof 2.26.51 to adapt to many kinds of systems.
252b5132 1305
6bf9431b 1306Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1307
6bf9431b
BE
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1310
6bf9431b 1311Defaults for the options are specified in brackets.
ac48eca1 1312
6bf9431b
BE
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
6bf9431b
BE
1324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1326 [$ac_default_prefix]
6bf9431b 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1328 [PREFIX]
ac48eca1 1329
6bf9431b
BE
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
ac48eca1 1334
6bf9431b 1335For better control, use the options below.
ac48eca1 1336
6bf9431b 1337Fine tuning of the installation directories:
81ecdfbb
RW
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
81ecdfbb
RW
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1357_ACEOF
ac48eca1 1358
6bf9431b 1359 cat <<\_ACEOF
252b5132 1360
6bf9431b
BE
1361Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1365
6bf9431b
BE
1366System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370_ACEOF
252b5132 1371fi
252b5132 1372
6bf9431b 1373if test -n "$ac_init_help"; then
2e98a7bd 1374 case $ac_init_help in
d8bd95ef 1375 short | recursive ) echo "Configuration of gprof 2.26.51:";;
2e98a7bd 1376 esac
6bf9431b 1377 cat <<\_ACEOF
252b5132 1378
6bf9431b 1379Optional Features:
81ecdfbb 1380 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1385 --enable-shared[=PKGS] build shared libraries [default=yes]
1386 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1387 --enable-fast-install[=PKGS]
1388 optimize for fast installation [default=yes]
6bf9431b 1389 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1390 --enable-plugins Enable support for plugins
1391 --disable-largefile omit support for large files
6bf9431b
BE
1392 --disable-nls do not use Native Language Support
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
241a6c40
AM
1395 --enable-werror treat compile warnings as errors
1396 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1397
1398Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1401 --with-pic try to use only PIC/non-PIC objects [default=use
1402 both]
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1404
6bf9431b
BE
1405Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
81ecdfbb
RW
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
6bf9431b 1413 CPP C preprocessor
252b5132 1414
6bf9431b
BE
1415Use these variables to override the choices made by `configure' or to help
1416it to find libraries and programs with nonstandard names/locations.
1417
81ecdfbb 1418Report bugs to the package provider.
6bf9431b 1419_ACEOF
81ecdfbb 1420ac_status=$?
252b5132
RH
1421fi
1422
6bf9431b
BE
1423if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
6bf9431b 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
6bf9431b 1429 ac_builddir=.
252b5132 1430
81ecdfbb
RW
1431case "$ac_dir" in
1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433*)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441esac
1442ac_abs_top_builddir=$ac_pwd
1443ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444# for backward compatibility:
1445ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1446
1447case $srcdir in
81ecdfbb 1448 .) # We are building in place.
6bf9431b 1449 ac_srcdir=.
81ecdfbb
RW
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1453 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1460esac
81ecdfbb
RW
1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1471 else
81ecdfbb
RW
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1475 done
1476fi
252b5132 1477
81ecdfbb 1478test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1479if $ac_init_version; then
1480 cat <<\_ACEOF
d8bd95ef 1481gprof configure 2.26.51
81ecdfbb 1482generated by GNU Autoconf 2.64
252b5132 1483
81ecdfbb 1484Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1485This configure script is free software; the Free Software Foundation
1486gives unlimited permission to copy, distribute and modify it.
1487_ACEOF
81ecdfbb 1488 exit
6bf9431b 1489fi
5d64ca4e 1490
81ecdfbb
RW
1491## ------------------------ ##
1492## Autoconf initialization. ##
1493## ------------------------ ##
5d64ca4e 1494
81ecdfbb
RW
1495# ac_fn_c_try_compile LINENO
1496# --------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_c_try_compile ()
6bf9431b 1499{
81ecdfbb
RW
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522else
1523 $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1525
81ecdfbb
RW
1526 ac_retval=1
1527fi
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529 return $ac_retval
6bf9431b 1530
81ecdfbb 1531} # ac_fn_c_try_compile
6bf9431b 1532
81ecdfbb
RW
1533# ac_fn_c_try_link LINENO
1534# -----------------------
1535# Try to link conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_link ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext conftest$ac_exeext
1540 if { { ac_try="$ac_link"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_link") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest$ac_exeext && {
1559 test "$cross_compiling" = yes ||
1560 $as_test_x conftest$ac_exeext
1561 }; then :
1562 ac_retval=0
1563else
1564 $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1566
81ecdfbb
RW
1567 ac_retval=1
1568fi
1569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571 # interfere with the next link command; also delete a directory that is
1572 # left behind by Apple's compiler. We do this before executing the actions.
1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
6bf9431b 1576
81ecdfbb
RW
1577} # ac_fn_c_try_link
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } >/dev/null && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610fi
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 return $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634 # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644else
1645 ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660else
1661 ac_header_preproc=no
1662fi
1663rm -f conftest.err conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So? What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687esac
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691 $as_echo_n "(cached) " >&6
1692else
1693 eval "$3=\$ac_header_compiler"
1694fi
1695eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698fi
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700
1701} # ac_fn_c_check_header_mongrel
1702
1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_check_func LINENO FUNC VAR
1777# ----------------------------------
1778# Tests whether FUNC exists, setting the cache variable VAR accordingly
1779ac_fn_c_check_func ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1791#define $2 innocuous_$2
1792
1793/* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $2 (); below.
1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1796 <limits.h> exists even on freestanding compilers. */
1797
1798#ifdef __STDC__
1799# include <limits.h>
1800#else
1801# include <assert.h>
1802#endif
1803
1804#undef $2
1805
1806/* Override any GCC internal prototype to avoid an error.
1807 Use char because int might match the return type of a GCC
1808 builtin and then its argument prototype would still apply. */
1809#ifdef __cplusplus
1810extern "C"
1811#endif
1812char $2 ();
1813/* The GNU C library defines this for functions which it implements
1814 to always fail with ENOSYS. Some functions are actually named
1815 something starting with __ and the normal name is an alias. */
1816#if defined __stub_$2 || defined __stub___$2
1817choke me
1818#endif
1819
1820int
1821main ()
1822{
1823return $2 ();
1824 ;
1825 return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_link "$LINENO"; then :
1829 eval "$3=yes"
1830else
1831 eval "$3=no"
1832fi
1833rm -f core conftest.err conftest.$ac_objext \
1834 conftest$ac_exeext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840
1841} # ac_fn_c_check_func
1842cat >config.log <<_ACEOF
1843This file contains any messages produced by compilers while
1844running configure, to aid debugging if configure makes a mistake.
1845
d8bd95ef 1846It was created by gprof $as_me 2.26.51, which was
81ecdfbb
RW
1847generated by GNU Autoconf 2.64. Invocation command line was
1848
1849 $ $0 $@
1850
1851_ACEOF
1852exec 5>>config.log
1853{
1854cat <<_ASUNAME
1855## --------- ##
1856## Platform. ##
1857## --------- ##
1858
1859hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863uname -v = `(uname -v) 2>/dev/null || echo unknown`
1864
1865/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1867
1868/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1869/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1870/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1872/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1873/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1874/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875
1876_ASUNAME
1877
1878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
1879for as_dir in $PATH
1880do
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1883 $as_echo "PATH: $as_dir"
1884 done
1885IFS=$as_save_IFS
5d64ca4e 1886
6bf9431b 1887} >&5
093872ec 1888
6bf9431b 1889cat >&5 <<_ACEOF
252b5132 1890
6bf9431b
BE
1891
1892## ----------- ##
1893## Core tests. ##
1894## ----------- ##
1895
1896_ACEOF
1897
1898
1899# Keep a trace of the command line.
1900# Strip out --no-create and --no-recursion so they do not pile up.
1901# Strip out --silent because we don't want to record it for future runs.
1902# Also quote any args containing shell meta-characters.
1903# Make two passes to allow for proper duplicate-argument suppression.
1904ac_configure_args=
1905ac_configure_args0=
1906ac_configure_args1=
6bf9431b
BE
1907ac_must_keep_next=false
1908for ac_pass in 1 2
1909do
1910 for ac_arg
1911 do
1912 case $ac_arg in
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915 | -silent | --silent | --silen | --sile | --sil)
1916 continue ;;
81ecdfbb
RW
1917 *\'*)
1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1919 esac
1920 case $ac_pass in
81ecdfbb 1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 1922 2)
81ecdfbb 1923 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
1924 if test $ac_must_keep_next = true; then
1925 ac_must_keep_next=false # Got value, back to normal.
1926 else
1927 case $ac_arg in
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931 | -with-* | --with-* | -without-* | --without-* | --x)
1932 case "$ac_configure_args0 " in
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1934 esac
1935 ;;
1936 -* ) ac_must_keep_next=true ;;
1937 esac
1938 fi
81ecdfbb 1939 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
1940 ;;
1941 esac
1942 done
1943done
81ecdfbb
RW
1944{ ac_configure_args0=; unset ac_configure_args0;}
1945{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
1946
1947# When interrupted or exit'd, cleanup temporary files, and complete
1948# config.log. We remove comments because anyway the quotes in there
1949# would cause problems or look ugly.
81ecdfbb
RW
1950# WARNING: Use '\'' to represent an apostrophe within the trap.
1951# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
1952trap 'exit_status=$?
1953 # Save into config.log some information that might help in debugging.
1954 {
1955 echo
1956
1957 cat <<\_ASBOX
1958## ---------------- ##
1959## Cache variables. ##
1960## ---------------- ##
1961_ASBOX
1962 echo
1963 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1964(
1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in #(
1968 *${as_nl}*)
1969 case $ac_var in #(
1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1972 esac
1973 case $ac_var in #(
1974 _ | IFS | as_nl) ;; #(
1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1976 *) { eval $ac_var=; unset $ac_var;} ;;
1977 esac ;;
1978 esac
1979 done
6bf9431b 1980 (set) 2>&1 |
81ecdfbb
RW
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space=\ *)
6bf9431b 1983 sed -n \
81ecdfbb
RW
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986 ;; #(
6bf9431b 1987 *)
81ecdfbb 1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 1989 ;;
81ecdfbb
RW
1990 esac |
1991 sort
1992)
6bf9431b
BE
1993 echo
1994
1995 cat <<\_ASBOX
1996## ----------------- ##
1997## Output variables. ##
1998## ----------------- ##
1999_ASBOX
2000 echo
2001 for ac_var in $ac_subst_vars
2002 do
81ecdfbb
RW
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2008 done | sort
2009 echo
2010
2011 if test -n "$ac_subst_files"; then
2012 cat <<\_ASBOX
81ecdfbb
RW
2013## ------------------- ##
2014## File substitutions. ##
2015## ------------------- ##
6bf9431b
BE
2016_ASBOX
2017 echo
2018 for ac_var in $ac_subst_files
2019 do
81ecdfbb
RW
2020 eval ac_val=\$$ac_var
2021 case $ac_val in
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 esac
2024 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2025 done | sort
2026 echo
2027 fi
2028
2029 if test -s confdefs.h; then
2030 cat <<\_ASBOX
2031## ----------- ##
2032## confdefs.h. ##
2033## ----------- ##
2034_ASBOX
2035 echo
81ecdfbb 2036 cat confdefs.h
6bf9431b
BE
2037 echo
2038 fi
2039 test "$ac_signal" != 0 &&
81ecdfbb
RW
2040 $as_echo "$as_me: caught signal $ac_signal"
2041 $as_echo "$as_me: exit $exit_status"
6bf9431b 2042 } >&5
81ecdfbb
RW
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2045 exit $exit_status
81ecdfbb 2046' 0
6bf9431b 2047for ac_signal in 1 2 13 15; do
81ecdfbb 2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2049done
2050ac_signal=0
2051
2052# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2053rm -f -r conftest* confdefs.h
2054
2055$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2056
2057# Predefined preprocessor variables.
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_NAME "$PACKAGE_NAME"
2061_ACEOF
2062
6bf9431b
BE
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065_ACEOF
2066
6bf9431b
BE
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_VERSION "$PACKAGE_VERSION"
2069_ACEOF
2070
6bf9431b
BE
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_STRING "$PACKAGE_STRING"
2073_ACEOF
2074
6bf9431b
BE
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077_ACEOF
2078
81ecdfbb
RW
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_URL "$PACKAGE_URL"
2081_ACEOF
2082
6bf9431b
BE
2083
2084# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2085# Prefer an explicitly selected file to automatically selected ones.
2086ac_site_file1=NONE
2087ac_site_file2=NONE
2088if test -n "$CONFIG_SITE"; then
2089 ac_site_file1=$CONFIG_SITE
2090elif test "x$prefix" != xNONE; then
2091 ac_site_file1=$prefix/share/config.site
2092 ac_site_file2=$prefix/etc/config.site
2093else
2094 ac_site_file1=$ac_default_prefix/share/config.site
2095 ac_site_file2=$ac_default_prefix/etc/config.site
2096fi
2097for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2098do
2099 test "x$ac_site_file" = xNONE && continue
6bf9431b 2100 if test -r "$ac_site_file"; then
81ecdfbb
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2103 sed 's/^/| /' "$ac_site_file" >&5
2104 . "$ac_site_file"
2105 fi
2106done
2107
2108if test -r "$cache_file"; then
2109 # Some versions of bash will fail to source /dev/null (special
2110 # files actually), so we avoid doing that.
2111 if test -f "$cache_file"; then
81ecdfbb
RW
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2113$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2114 case $cache_file in
81ecdfbb
RW
2115 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2116 *) . "./$cache_file";;
6bf9431b
BE
2117 esac
2118 fi
2119else
81ecdfbb
RW
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2121$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2122 >$cache_file
2123fi
2124
2125# Check that the precious variables saved in the cache have kept the same
2126# value.
2127ac_cache_corrupted=false
81ecdfbb 2128for ac_var in $ac_precious_vars; do
6bf9431b
BE
2129 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2130 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2131 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2132 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2133 case $ac_old_set,$ac_new_set in
2134 set,)
81ecdfbb
RW
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2136$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2137 ac_cache_corrupted=: ;;
2138 ,set)
81ecdfbb
RW
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2140$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2141 ac_cache_corrupted=: ;;
2142 ,);;
2143 *)
2144 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2145 # differences in whitespace do not lead to failure.
2146 ac_old_val_w=`echo x $ac_old_val`
2147 ac_new_val_w=`echo x $ac_new_val`
2148 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2150$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2151 ac_cache_corrupted=:
2152 else
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2154$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2155 eval $ac_var=\$ac_old_val
2156 fi
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2158$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2160$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2161 fi;;
2162 esac
2163 # Pass precious variables to config.status.
2164 if test "$ac_new_set" = set; then
2165 case $ac_new_val in
81ecdfbb 2166 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2167 *) ac_arg=$ac_var=$ac_new_val ;;
2168 esac
2169 case " $ac_configure_args " in
2170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2171 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2172 esac
2173 fi
2174done
2175if $ac_cache_corrupted; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2179$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2180 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2181fi
81ecdfbb
RW
2182## -------------------- ##
2183## Main body of script. ##
2184## -------------------- ##
6bf9431b 2185
0ab6f085
AM
2186ac_ext=c
2187ac_cpp='$CPP $CPPFLAGS'
2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
6bf9431b
BE
2192
2193
6bf9431b
BE
2194
2195
2196
2197
2198ac_aux_dir=
81ecdfbb
RW
2199for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200 for ac_t in install-sh install.sh shtool; do
2201 if test -f "$ac_dir/$ac_t"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/$ac_t -c"
2204 break 2
2205 fi
2206 done
6bf9431b
BE
2207done
2208if test -z "$ac_aux_dir"; then
81ecdfbb 2209 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2210fi
81ecdfbb
RW
2211
2212# These three variables are undocumented and unsupported,
2213# and are intended to be withdrawn in a future Autoconf release.
2214# They can cause serious problems if a builder's source tree is in a directory
2215# whose full name contains unusual characters.
2216ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2217ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2218ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2219
6bf9431b
BE
2220
2221# Make sure we can run config.sub.
81ecdfbb
RW
2222$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2223 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2224
2225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2226$as_echo_n "checking build system type... " >&6; }
2227if test "${ac_cv_build+set}" = set; then :
2228 $as_echo_n "(cached) " >&6
2229else
2230 ac_build_alias=$build_alias
2231test "x$ac_build_alias" = x &&
2232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2233test "x$ac_build_alias" = x &&
2234 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2235ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2236 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2237
2238fi
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2240$as_echo "$ac_cv_build" >&6; }
2241case $ac_cv_build in
2242*-*-*) ;;
2243*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2244esac
6bf9431b 2245build=$ac_cv_build
81ecdfbb
RW
2246ac_save_IFS=$IFS; IFS='-'
2247set x $ac_cv_build
2248shift
2249build_cpu=$1
2250build_vendor=$2
2251shift; shift
2252# Remember, the first character of IFS is used to create $*,
2253# except with old shells:
2254build_os=$*
2255IFS=$ac_save_IFS
2256case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2257
2258
81ecdfbb
RW
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2260$as_echo_n "checking host system type... " >&6; }
2261if test "${ac_cv_host+set}" = set; then :
2262 $as_echo_n "(cached) " >&6
6bf9431b 2263else
81ecdfbb
RW
2264 if test "x$host_alias" = x; then
2265 ac_cv_host=$ac_cv_build
2266else
2267 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2268 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2269fi
6bf9431b
BE
2270
2271fi
81ecdfbb
RW
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2273$as_echo "$ac_cv_host" >&6; }
2274case $ac_cv_host in
2275*-*-*) ;;
2276*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2277esac
6bf9431b 2278host=$ac_cv_host
81ecdfbb
RW
2279ac_save_IFS=$IFS; IFS='-'
2280set x $ac_cv_host
2281shift
2282host_cpu=$1
2283host_vendor=$2
2284shift; shift
2285# Remember, the first character of IFS is used to create $*,
2286# except with old shells:
2287host_os=$*
2288IFS=$ac_save_IFS
2289case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2290
2291
81ecdfbb
RW
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2293$as_echo_n "checking target system type... " >&6; }
2294if test "${ac_cv_target+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
2296else
2297 if test "x$target_alias" = x; then
2298 ac_cv_target=$ac_cv_host
6bf9431b 2299else
81ecdfbb
RW
2300 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2302fi
6bf9431b
BE
2303
2304fi
81ecdfbb
RW
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2306$as_echo "$ac_cv_target" >&6; }
2307case $ac_cv_target in
2308*-*-*) ;;
2309*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2310esac
6bf9431b 2311target=$ac_cv_target
81ecdfbb
RW
2312ac_save_IFS=$IFS; IFS='-'
2313set x $ac_cv_target
2314shift
2315target_cpu=$1
2316target_vendor=$2
2317shift; shift
2318# Remember, the first character of IFS is used to create $*,
2319# except with old shells:
2320target_os=$*
2321IFS=$ac_save_IFS
2322case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2323
2324
2325# The aliases save the names the user supplied, while $host etc.
2326# will get canonicalized.
2327test -n "$target_alias" &&
2328 test "$program_prefix$program_suffix$program_transform_name" = \
2329 NONENONEs,x,x, &&
2330 program_prefix=${target_alias}-
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340$as_echo_n "checking for $ac_word... " >&6; }
2341if test "${ac_cv_prog_CC+set}" = set; then :
2342 $as_echo_n "(cached) " >&6
6bf9431b
BE
2343else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346else
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2356 break 2
2357 fi
2358done
81ecdfbb
RW
2359 done
2360IFS=$as_save_IFS
6bf9431b
BE
2361
2362fi
2363fi
2364CC=$ac_cv_prog_CC
2365if test -n "$CC"; then
81ecdfbb
RW
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367$as_echo "$CC" >&6; }
6bf9431b 2368else
81ecdfbb
RW
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370$as_echo "no" >&6; }
6bf9431b
BE
2371fi
2372
81ecdfbb 2373
6bf9431b
BE
2374fi
2375if test -z "$ac_cv_prog_CC"; then
2376 ac_ct_CC=$CC
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378set dummy gcc; ac_word=$2
81ecdfbb
RW
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380$as_echo_n "checking for $ac_word... " >&6; }
2381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
6bf9431b
BE
2383else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2394 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2396 break 2
2397 fi
2398done
81ecdfbb
RW
2399 done
2400IFS=$as_save_IFS
6bf9431b
BE
2401
2402fi
2403fi
2404ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2408else
81ecdfbb
RW
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410$as_echo "no" >&6; }
6bf9431b
BE
2411fi
2412
81ecdfbb
RW
2413 if test "x$ac_ct_CC" = x; then
2414 CC=""
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417yes:)
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2420ac_tool_warned=yes ;;
2421esac
2422 CC=$ac_ct_CC
2423 fi
6bf9431b
BE
2424else
2425 CC="$ac_cv_prog_CC"
2426fi
2427
2428if test -z "$CC"; then
81ecdfbb
RW
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2431set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433$as_echo_n "checking for $ac_word... " >&6; }
2434if test "${ac_cv_prog_CC+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
6bf9431b
BE
2436else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2449 break 2
2450 fi
2451done
81ecdfbb
RW
2452 done
2453IFS=$as_save_IFS
6bf9431b
BE
2454
2455fi
2456fi
2457CC=$ac_cv_prog_CC
2458if test -n "$CC"; then
81ecdfbb
RW
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2460$as_echo "$CC" >&6; }
0ab6f085 2461else
81ecdfbb
RW
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
0ab6f085
AM
2464fi
2465
0ab6f085 2466
81ecdfbb 2467 fi
6bf9431b
BE
2468fi
2469if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471set dummy cc; ac_word=$2
81ecdfbb
RW
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if test "${ac_cv_prog_CC+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
6bf9431b
BE
2476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
2480 ac_prog_rejected=no
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected=yes
2490 continue
2491 fi
2492 ac_cv_prog_CC="cc"
81ecdfbb 2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2494 break 2
2495 fi
2496done
81ecdfbb
RW
2497 done
2498IFS=$as_save_IFS
6bf9431b
BE
2499
2500if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2503 shift
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2508 shift
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2510 fi
2511fi
2512fi
2513fi
2514CC=$ac_cv_prog_CC
2515if test -n "$CC"; then
81ecdfbb
RW
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2517$as_echo "$CC" >&6; }
6bf9431b 2518else
81ecdfbb
RW
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520$as_echo "no" >&6; }
6bf9431b
BE
2521fi
2522
81ecdfbb 2523
6bf9431b
BE
2524fi
2525if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
81ecdfbb 2527 for ac_prog in cl.exe
6bf9431b
BE
2528 do
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if test "${ac_cv_prog_CC+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
6bf9431b
BE
2535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2548 break 2
2549 fi
2550done
81ecdfbb
RW
2551 done
2552IFS=$as_save_IFS
6bf9431b
BE
2553
2554fi
2555fi
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
81ecdfbb
RW
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2559$as_echo "$CC" >&6; }
6bf9431b 2560else
81ecdfbb
RW
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
6bf9431b
BE
2563fi
2564
81ecdfbb 2565
6bf9431b
BE
2566 test -n "$CC" && break
2567 done
2568fi
2569if test -z "$CC"; then
2570 ac_ct_CC=$CC
81ecdfbb 2571 for ac_prog in cl.exe
6bf9431b
BE
2572do
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
6bf9431b
BE
2579else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2590 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2592 break 2
2593 fi
2594done
81ecdfbb
RW
2595 done
2596IFS=$as_save_IFS
6bf9431b
BE
2597
2598fi
2599fi
2600ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2603$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2604else
81ecdfbb
RW
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
6bf9431b
BE
2607fi
2608
81ecdfbb 2609
6bf9431b
BE
2610 test -n "$ac_ct_CC" && break
2611done
2612
81ecdfbb
RW
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617yes:)
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620ac_tool_warned=yes ;;
2621esac
2622 CC=$ac_ct_CC
2623 fi
6bf9431b
BE
2624fi
2625
2626fi
2627
2628
81ecdfbb
RW
2629test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631as_fn_error "no acceptable C compiler found in \$PATH
2632See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2633
2634# Provide some information about the compiler.
81ecdfbb
RW
2635$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2636set X $ac_compile
2637ac_compiler=$2
2638for ac_option in --version -v -V -qversion; do
2639 { { ac_try="$ac_compiler $ac_option >&5"
2640case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643esac
2644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645$as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2647 ac_status=$?
81ecdfbb
RW
2648 if test -s conftest.err; then
2649 sed '10a\
2650... rest of stderr output deleted ...
2651 10q' conftest.err >conftest.er1
2652 cat conftest.er1 >&5
2653 rm -f conftest.er1 conftest.err
2654 fi
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }
2657done
6bf9431b 2658
81ecdfbb 2659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2660/* end confdefs.h. */
2661
2662int
2663main ()
2664{
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670ac_clean_files_save=$ac_clean_files
81ecdfbb 2671ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2672# Try to create an executable without -o first, disregard a.out.
2673# It will help us diagnose broken compilers, and finding out an intuition
2674# of exeext.
81ecdfbb
RW
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2676$as_echo_n "checking for C compiler default output file name... " >&6; }
2677ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2678
2679# The possible output files:
2680ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2681
2682ac_rmfiles=
2683for ac_file in $ac_files
2684do
2685 case $ac_file in
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2687 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2688 esac
2689done
2690rm -f $ac_rmfiles
2691
2692if { { ac_try="$ac_link_default"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698$as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_link_default") 2>&5
2700 ac_status=$?
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; then :
2703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2704# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2705# in a Makefile. We should not override ac_cv_exeext if it was cached,
2706# so that the user can short-circuit this test for compilers unknown to
2707# Autoconf.
2708for ac_file in $ac_files ''
6bf9431b
BE
2709do
2710 test -f "$ac_file" || continue
2711 case $ac_file in
81ecdfbb 2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2713 ;;
2714 [ab].out )
2715 # We found the default executable, but exeext='' is most
2716 # certainly right.
2717 break;;
2718 *.* )
81ecdfbb
RW
2719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2720 then :; else
2721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 fi
2723 # We set ac_cv_exeext here because the later test for it is not
2724 # safe: cross compilers may not add the suffix if given an `-o'
2725 # argument, so we may need to know it at that point already.
2726 # Even if this section looks crufty: it has the advantage of
2727 # actually working.
6bf9431b
BE
2728 break;;
2729 * )
2730 break;;
2731 esac
2732done
81ecdfbb
RW
2733test "$ac_cv_exeext" = no && ac_cv_exeext=
2734
6bf9431b 2735else
81ecdfbb
RW
2736 ac_file=''
2737fi
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2739$as_echo "$ac_file" >&6; }
2740if test -z "$ac_file"; then :
2741 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
81ecdfbb
RW
2744{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746{ as_fn_set_status 77
2747as_fn_error "C compiler cannot create executables
2748See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2749fi
6bf9431b 2750ac_exeext=$ac_cv_exeext
6bf9431b 2751
81ecdfbb 2752# Check that the compiler produces executables we can run. If not, either
6bf9431b 2753# the compiler is broken, or we cross compile.
81ecdfbb
RW
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2755$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2756# If not cross compiling, check that we can run a simple program.
2757if test "$cross_compiling" != yes; then
2758 if { ac_try='./$ac_file'
81ecdfbb
RW
2759 { { case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764$as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_try") 2>&5
6bf9431b 2766 ac_status=$?
81ecdfbb
RW
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; }; then
6bf9431b
BE
2769 cross_compiling=no
2770 else
2771 if test "$cross_compiling" = maybe; then
2772 cross_compiling=yes
2773 else
81ecdfbb
RW
2774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776as_fn_error "cannot run C compiled programs.
6bf9431b 2777If you meant to cross compile, use \`--host'.
81ecdfbb 2778See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2779 fi
2780 fi
2781fi
81ecdfbb
RW
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783$as_echo "yes" >&6; }
6bf9431b 2784
81ecdfbb 2785rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2786ac_clean_files=$ac_clean_files_save
81ecdfbb 2787# Check that the compiler produces executables we can run. If not, either
6bf9431b 2788# the compiler is broken, or we cross compile.
81ecdfbb
RW
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2790$as_echo_n "checking whether we are cross compiling... " >&6; }
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2792$as_echo "$cross_compiling" >&6; }
2793
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2795$as_echo_n "checking for suffix of executables... " >&6; }
2796if { { ac_try="$ac_link"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2802$as_echo "$ac_try_echo"; } >&5
2803 (eval "$ac_link") 2>&5
6bf9431b 2804 ac_status=$?
81ecdfbb
RW
2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806 test $ac_status = 0; }; then :
6bf9431b
BE
2807 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2809# work properly (i.e., refer to `conftest.exe'), while it won't with
2810# `rm'.
2811for ac_file in conftest.exe conftest conftest.*; do
2812 test -f "$ac_file" || continue
2813 case $ac_file in
81ecdfbb 2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2816 break;;
2817 * ) break;;
2818 esac
2819done
2820else
81ecdfbb
RW
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823as_fn_error "cannot compute suffix of executables: cannot compile and link
2824See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2825fi
6bf9431b 2826rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2828$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2829
2830rm -f conftest.$ac_ext
2831EXEEXT=$ac_cv_exeext
2832ac_exeext=$EXEEXT
81ecdfbb
RW
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2834$as_echo_n "checking for suffix of object files... " >&6; }
2835if test "${ac_cv_objext+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
6bf9431b 2837else
81ecdfbb 2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2839/* end confdefs.h. */
2840
2841int
2842main ()
2843{
2844
2845 ;
2846 return 0;
2847}
2848_ACEOF
2849rm -f conftest.o conftest.obj
81ecdfbb
RW
2850if { { ac_try="$ac_compile"
2851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_compile") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 for ac_file in conftest.o conftest.obj conftest.*; do
2862 test -f "$ac_file" || continue;
6bf9431b 2863 case $ac_file in
81ecdfbb 2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
2865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2866 break;;
2867 esac
2868done
2869else
81ecdfbb 2870 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
81ecdfbb
RW
2873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error "cannot compute suffix of object files: cannot compile
2876See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2877fi
6bf9431b
BE
2878rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879fi
81ecdfbb
RW
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2881$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
2882OBJEXT=$ac_cv_objext
2883ac_objext=$OBJEXT
81ecdfbb
RW
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2885$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2886if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
6bf9431b 2888else
81ecdfbb 2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2890/* end confdefs.h. */
2891
2892int
2893main ()
2894{
2895#ifndef __GNUC__
2896 choke me
2897#endif
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
81ecdfbb 2903if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2904 ac_compiler_gnu=yes
2905else
81ecdfbb 2906 ac_compiler_gnu=no
6bf9431b 2907fi
81ecdfbb 2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2909ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910
2911fi
81ecdfbb
RW
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2913$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2914if test $ac_compiler_gnu = yes; then
2915 GCC=yes
2916else
2917 GCC=
2918fi
6bf9431b
BE
2919ac_test_CFLAGS=${CFLAGS+set}
2920ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2922$as_echo_n "checking whether $CC accepts -g... " >&6; }
2923if test "${ac_cv_prog_cc_g+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925else
2926 ac_save_c_werror_flag=$ac_c_werror_flag
2927 ac_c_werror_flag=yes
2928 ac_cv_prog_cc_g=no
2929 CFLAGS="-g"
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
81ecdfbb 2941if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2942 ac_cv_prog_cc_g=yes
2943else
81ecdfbb
RW
2944 CFLAGS=""
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957
2958else
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
6bf9431b 2967
81ecdfbb
RW
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_cv_prog_cc_g=yes
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2976fi
81ecdfbb 2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2978fi
81ecdfbb
RW
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2983$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
2984if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2988 CFLAGS="-g -O2"
2989 else
2990 CFLAGS="-g"
2991 fi
2992else
2993 if test "$GCC" = yes; then
2994 CFLAGS="-O2"
2995 else
2996 CFLAGS=
2997 fi
2998fi
81ecdfbb
RW
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3000$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3001if test "${ac_cv_prog_cc_c89+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
6bf9431b 3003else
81ecdfbb 3004 ac_cv_prog_cc_c89=no
6bf9431b 3005ac_save_CC=$CC
81ecdfbb 3006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3007/* end confdefs.h. */
3008#include <stdarg.h>
3009#include <stdio.h>
3010#include <sys/types.h>
3011#include <sys/stat.h>
3012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013struct buf { int x; };
3014FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015static char *e (p, i)
3016 char **p;
3017 int i;
3018{
3019 return p[i];
3020}
3021static char *f (char * (*g) (char **, int), char **p, ...)
3022{
3023 char *s;
3024 va_list v;
3025 va_start (v,p);
3026 s = g (p, va_arg (v,int));
3027 va_end (v);
3028 return s;
3029}
3030
3031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3034 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3037 that's true only with -std. */
6bf9431b
BE
3038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039
81ecdfbb
RW
3040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3042#define FOO(x) 'x'
3043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044
6bf9431b
BE
3045int test (int i, double x);
3046struct s1 {int (*f) (int a);};
3047struct s2 {int (*f) (double a);};
3048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3049int argc;
3050char **argv;
3051int
3052main ()
3053{
3054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3055 ;
3056 return 0;
3057}
3058_ACEOF
81ecdfbb
RW
3059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3061do
3062 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3065fi
81ecdfbb
RW
3066rm -f core conftest.err conftest.$ac_objext
3067 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3068done
81ecdfbb 3069rm -f conftest.$ac_ext
6bf9431b
BE
3070CC=$ac_save_CC
3071
3072fi
81ecdfbb
RW
3073# AC_CACHE_VAL
3074case "x$ac_cv_prog_cc_c89" in
3075 x)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3077$as_echo "none needed" >&6; } ;;
3078 xno)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3080$as_echo "unsupported" >&6; } ;;
6bf9431b 3081 *)
81ecdfbb
RW
3082 CC="$CC $ac_cv_prog_cc_c89"
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3085esac
81ecdfbb 3086if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3087
0ab6f085
AM
3088fi
3089
6bf9431b
BE
3090ac_ext=c
3091ac_cpp='$CPP $CPPFLAGS'
3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096
81ecdfbb
RW
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3098$as_echo_n "checking for library containing strerror... " >&6; }
3099if test "${ac_cv_search_strerror+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
6bf9431b
BE
3101else
3102 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3104/* end confdefs.h. */
3105
81ecdfbb
RW
3106/* Override any GCC internal prototype to avoid an error.
3107 Use char because int might match the return type of a GCC
3108 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3109#ifdef __cplusplus
3110extern "C"
3111#endif
6bf9431b
BE
3112char strerror ();
3113int
3114main ()
3115{
81ecdfbb 3116return strerror ();
6bf9431b
BE
3117 ;
3118 return 0;
3119}
3120_ACEOF
81ecdfbb
RW
3121for ac_lib in '' cposix; do
3122 if test -z "$ac_lib"; then
3123 ac_res="none required"
3124 else
3125 ac_res=-l$ac_lib
0ab6f085 3126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3127 fi
3128 if ac_fn_c_try_link "$LINENO"; then :
3129 ac_cv_search_strerror=$ac_res
3130fi
3131rm -f core conftest.err conftest.$ac_objext \
3132 conftest$ac_exeext
3133 if test "${ac_cv_search_strerror+set}" = set; then :
3134 break
3135fi
3136done
3137if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3138
1b9750d6 3139else
81ecdfbb 3140 ac_cv_search_strerror=no
6bf9431b 3141fi
81ecdfbb 3142rm conftest.$ac_ext
6bf9431b
BE
3143LIBS=$ac_func_search_save_LIBS
3144fi
81ecdfbb
RW
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3146$as_echo "$ac_cv_search_strerror" >&6; }
3147ac_res=$ac_cv_search_strerror
3148if test "$ac_res" != no; then :
3149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3150
3151fi
3152
3153
81ecdfbb
RW
3154am__api_version='1.11'
3155
6bf9431b
BE
3156# Find a good install program. We prefer a C program (faster),
3157# so one script is as good as another. But avoid the broken or
3158# incompatible versions:
3159# SysV /etc/install, /usr/sbin/install
3160# SunOS /usr/etc/install
3161# IRIX /sbin/install
3162# AIX /bin/install
3163# AmigaOS /C/install, which installs bootblocks on floppy discs
3164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3165# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3167# OS/2's system install, which has a completely different semantic
3168# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3169# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3171$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3172if test -z "$INSTALL"; then
81ecdfbb
RW
3173if test "${ac_cv_path_install+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
6bf9431b
BE
3175else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3181 # Account for people who put trailing slashes in PATH elements.
3182case $as_dir/ in #((
3183 ./ | .// | /[cC]/* | \
6bf9431b 3184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3185 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3186 /usr/ucb/* ) ;;
3187 *)
3188 # OSF1 and SCO ODT 3.0 have their own names for install.
3189 # Don't use installbsd from OSF since it installs stuff as root
3190 # by default.
3191 for ac_prog in ginstall scoinst install; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3194 if test $ac_prog = install &&
3195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196 # AIX install. It has an incompatible calling convention.
3197 :
3198 elif test $ac_prog = install &&
3199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # program-specific install script used by HP pwplus--don't use.
3201 :
252b5132 3202 else
58c85be7
RW
3203 rm -rf conftest.one conftest.two conftest.dir
3204 echo one > conftest.one
3205 echo two > conftest.two
3206 mkdir conftest.dir
3207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3208 test -s conftest.one && test -s conftest.two &&
3209 test -s conftest.dir/conftest.one &&
3210 test -s conftest.dir/conftest.two
3211 then
3212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3213 break 3
3214 fi
252b5132
RH
3215 fi
3216 fi
3217 done
6bf9431b
BE
3218 done
3219 ;;
3220esac
81ecdfbb
RW
3221
3222 done
3223IFS=$as_save_IFS
6bf9431b 3224
58c85be7 3225rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3226
3227fi
3228 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3229 INSTALL=$ac_cv_path_install
252b5132 3230 else
58c85be7
RW
3231 # As a last resort, use the slow shell script. Don't cache a
3232 # value for INSTALL within a source directory, because that will
252b5132 3233 # break other packages using the cache if that directory is
58c85be7 3234 # removed, or if the value is a relative name.
6bf9431b 3235 INSTALL=$ac_install_sh
252b5132
RH
3236 fi
3237fi
81ecdfbb
RW
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3239$as_echo "$INSTALL" >&6; }
252b5132
RH
3240
3241# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3242# It thinks the first close brace ends the variable substitution.
3243test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3244
6bf9431b 3245test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3246
3247test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3248
81ecdfbb
RW
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3250$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3251# Just in case
3252sleep 1
6bf9431b 3253echo timestamp > conftest.file
81ecdfbb
RW
3254# Reject unsafe characters in $srcdir or the absolute working directory
3255# name. Accept space and tab only in the latter.
3256am_lf='
3257'
3258case `pwd` in
3259 *[\\\"\#\$\&\'\`$am_lf]*)
3260 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3261esac
3262case $srcdir in
3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3264 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3265esac
3266
252b5132
RH
3267# Do `set' in a subshell so we don't clobber the current shell's
3268# arguments. Must try -L first in case configure is actually a
3269# symlink; some systems play weird games with the mod time of symlinks
3270# (eg FreeBSD returns the mod time of the symlink's containing
3271# directory).
3272if (
81ecdfbb 3273 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3274 if test "$*" = "X"; then
3275 # -L didn't work.
81ecdfbb 3276 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3277 fi
6bf9431b
BE
3278 rm -f conftest.file
3279 if test "$*" != "X $srcdir/configure conftest.file" \
3280 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3281
3282 # If neither matched, then we have a broken ls. This can happen
3283 # if, for instance, CONFIG_SHELL is bash and it inherits a
3284 # broken ls alias from the environment. This has actually
3285 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3286 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3287alias in your environment" "$LINENO" 5
252b5132
RH
3288 fi
3289
6bf9431b 3290 test "$2" = conftest.file
252b5132
RH
3291 )
3292then
3293 # Ok.
3294 :
3295else
81ecdfbb
RW
3296 as_fn_error "newly created file is older than distributed files!
3297Check your system clock" "$LINENO" 5
252b5132 3298fi
81ecdfbb
RW
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300$as_echo "yes" >&6; }
252b5132 3301test "$program_prefix" != NONE &&
81ecdfbb 3302 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3303# Use a double $ so make ignores it.
3304test "$program_suffix" != NONE &&
81ecdfbb
RW
3305 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3306# Double any \ or $.
6bf9431b 3307# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3308ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3309program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3310
3311# expand $ac_aux_dir to an absolute path
3312am_aux_dir=`cd $ac_aux_dir && pwd`
3313
81ecdfbb
RW
3314if test x"${MISSING+set}" != xset; then
3315 case $am_aux_dir in
3316 *\ * | *\ *)
3317 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3318 *)
3319 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3320 esac
3321fi
6bf9431b
BE
3322# Use eval to expand $SHELL
3323if eval "$MISSING --run true"; then
3324 am_missing_run="$MISSING --run "
3325else
3326 am_missing_run=
81ecdfbb
RW
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3328$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3329fi
252b5132 3330
81ecdfbb
RW
3331if test x"${install_sh}" != xset; then
3332 case $am_aux_dir in
3333 *\ * | *\ *)
3334 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3335 *)
3336 install_sh="\${SHELL} $am_aux_dir/install-sh"
3337 esac
3338fi
3339
3340# Installed binaries are usually stripped using `strip' when the user
3341# run `make install-strip'. However `strip' might not be the right
3342# tool to use in cross-compilation environments, therefore Automake
3343# will honor the `STRIP' environment variable to overrule this program.
3344if test "$cross_compiling" != no; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3347set dummy ${ac_tool_prefix}strip; ac_word=$2
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349$as_echo_n "checking for $ac_word... " >&6; }
3350if test "${ac_cv_prog_STRIP+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
6bf9431b 3352else
81ecdfbb
RW
3353 if test -n "$STRIP"; then
3354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3365 break 2
3366 fi
3367done
81ecdfbb
RW
3368 done
3369IFS=$as_save_IFS
6bf9431b
BE
3370
3371fi
3372fi
81ecdfbb
RW
3373STRIP=$ac_cv_prog_STRIP
3374if test -n "$STRIP"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3376$as_echo "$STRIP" >&6; }
6bf9431b 3377else
81ecdfbb
RW
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
6bf9431b
BE
3380fi
3381
252b5132 3382
81ecdfbb
RW
3383fi
3384if test -z "$ac_cv_prog_STRIP"; then
3385 ac_ct_STRIP=$STRIP
3386 # Extract the first word of "strip", so it can be a program name with args.
3387set dummy strip; ac_word=$2
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389$as_echo_n "checking for $ac_word... " >&6; }
3390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
252b5132 3392else
81ecdfbb
RW
3393 if test -n "$ac_ct_STRIP"; then
3394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3395else
81ecdfbb
RW
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_STRIP="strip"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3406 fi
3407done
3408 done
3409IFS=$as_save_IFS
3410
0ab6f085 3411fi
252b5132 3412fi
81ecdfbb
RW
3413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3414if test -n "$ac_ct_STRIP"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3416$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3417else
81ecdfbb
RW
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
252b5132
RH
3420fi
3421
81ecdfbb
RW
3422 if test "x$ac_ct_STRIP" = x; then
3423 STRIP=":"
3424 else
3425 case $cross_compiling:$ac_tool_warned in
3426yes:)
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429ac_tool_warned=yes ;;
3430esac
3431 STRIP=$ac_ct_STRIP
3432 fi
3433else
3434 STRIP="$ac_cv_prog_STRIP"
3435fi
3436
3437fi
3438INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3439
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3441$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3442if test -z "$MKDIR_P"; then
3443 if test "${ac_cv_path_mkdir+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_prog in mkdir gmkdir; do
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3454 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3455 'mkdir (GNU coreutils) '* | \
3456 'mkdir (coreutils) '* | \
3457 'mkdir (fileutils) '4.1*)
3458 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3459 break 3;;
3460 esac
3461 done
3462 done
3463 done
3464IFS=$as_save_IFS
3465
3466fi
3467
3468 if test "${ac_cv_path_mkdir+set}" = set; then
3469 MKDIR_P="$ac_cv_path_mkdir -p"
3470 else
3471 # As a last resort, use the slow shell script. Don't cache a
3472 # value for MKDIR_P within a source directory, because that will
3473 # break other packages using the cache if that directory is
3474 # removed, or if the value is a relative name.
3475 test -d ./--version && rmdir ./--version
3476 MKDIR_P="$ac_install_sh -d"
3477 fi
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3480$as_echo "$MKDIR_P" >&6; }
3481
3482mkdir_p="$MKDIR_P"
3483case $mkdir_p in
3484 [\\/$]* | ?:[\\/]*) ;;
3485 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3486esac
3487
3488for ac_prog in gawk mawk nawk awk
3489do
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491set dummy $ac_prog; ac_word=$2
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493$as_echo_n "checking for $ac_word... " >&6; }
3494if test "${ac_cv_prog_AWK+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496else
3497 if test -n "$AWK"; then
3498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_AWK="$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512 done
3513IFS=$as_save_IFS
3514
3515fi
3516fi
3517AWK=$ac_cv_prog_AWK
3518if test -n "$AWK"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3520$as_echo "$AWK" >&6; }
3521else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523$as_echo "no" >&6; }
3524fi
3525
3526
3527 test -n "$AWK" && break
3528done
3529
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3531$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3532set x ${MAKE-make}
3533ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3534if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3535 $as_echo_n "(cached) " >&6
3536else
3537 cat >conftest.make <<\_ACEOF
3538SHELL = /bin/sh
3539all:
3540 @echo '@@@%%%=$(MAKE)=@@@%%%'
3541_ACEOF
3542# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3543case `${MAKE-make} -f conftest.make 2>/dev/null` in
3544 *@@@%%%=?*=@@@%%%*)
3545 eval ac_cv_prog_make_${ac_make}_set=yes;;
3546 *)
3547 eval ac_cv_prog_make_${ac_make}_set=no;;
3548esac
3549rm -f conftest.make
3550fi
3551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553$as_echo "yes" >&6; }
3554 SET_MAKE=
3555else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558 SET_MAKE="MAKE=${MAKE-make}"
3559fi
3560
3561rm -rf .tst 2>/dev/null
6bf9431b
BE
3562mkdir .tst 2>/dev/null
3563if test -d .tst; then
3564 am__leading_dot=.
3565else
3566 am__leading_dot=_
3567fi
3568rmdir .tst 2>/dev/null
3569
3570DEPDIR="${am__leading_dot}deps"
3571
81ecdfbb 3572ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3573
3574
3575am_make=${MAKE-make}
3576cat > confinc << 'END'
3577am__doit:
81ecdfbb 3578 @echo this is the am__doit target
6bf9431b
BE
3579.PHONY: am__doit
3580END
3581# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3583$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3584am__include="#"
3585am__quote=
3586_am_result=none
3587# First try GNU make style include.
3588echo "include confinc" > confmf
81ecdfbb
RW
3589# Ignore all kinds of additional output from `make'.
3590case `$am_make -s -f confmf 2> /dev/null` in #(
3591*the\ am__doit\ target*)
3592 am__include=include
3593 am__quote=
3594 _am_result=GNU
3595 ;;
3596esac
6bf9431b
BE
3597# Now try BSD make style include.
3598if test "$am__include" = "#"; then
3599 echo '.include "confinc"' > confmf
81ecdfbb
RW
3600 case `$am_make -s -f confmf 2> /dev/null` in #(
3601 *the\ am__doit\ target*)
3602 am__include=.include
3603 am__quote="\""
3604 _am_result=BSD
3605 ;;
3606 esac
6bf9431b
BE
3607fi
3608
252b5132 3609
81ecdfbb
RW
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3611$as_echo "$_am_result" >&6; }
6bf9431b 3612rm -f confinc confmf
252b5132 3613
81ecdfbb
RW
3614# Check whether --enable-dependency-tracking was given.
3615if test "${enable_dependency_tracking+set}" = set; then :
3616 enableval=$enable_dependency_tracking;
3617fi
252b5132 3618
6bf9431b
BE
3619if test "x$enable_dependency_tracking" != xno; then
3620 am_depcomp="$ac_aux_dir/depcomp"
3621 AMDEPBACKSLASH='\'
6eb7d830 3622 am__nodep='_no'
252b5132 3623fi
81ecdfbb 3624 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3625 AMDEP_TRUE=
3626 AMDEP_FALSE='#'
3627else
3628 AMDEP_TRUE='#'
3629 AMDEP_FALSE=
3630fi
3631
3632
81ecdfbb
RW
3633if test "`cd $srcdir && pwd`" != "`pwd`"; then
3634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3635 # is not polluted with repeated "-I."
3636 am__isrc=' -I$(srcdir)'
3637 # test to see if srcdir already configured
3638 if test -f $srcdir/config.status; then
3639 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3640 fi
6bf9431b
BE
3641fi
3642
3643# test whether we have cygpath
3644if test -z "$CYGPATH_W"; then
3645 if (cygpath --version) >/dev/null 2>/dev/null; then
3646 CYGPATH_W='cygpath -w'
3647 else
3648 CYGPATH_W=echo
3649 fi
3650fi
3651
3652
3653# Define the identity of the package.
2e98a7bd 3654 PACKAGE='gprof'
d8bd95ef 3655 VERSION='2.26.51'
6bf9431b
BE
3656
3657
3658cat >>confdefs.h <<_ACEOF
252b5132 3659#define PACKAGE "$PACKAGE"
6bf9431b
BE
3660_ACEOF
3661
252b5132 3662
6bf9431b 3663cat >>confdefs.h <<_ACEOF
252b5132 3664#define VERSION "$VERSION"
6bf9431b
BE
3665_ACEOF
3666
3667# Some tools Automake needs.
3668
3669ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3670
3671
3672AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3673
3674
3675AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3676
3677
3678AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3679
3680
3681MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3682
6bf9431b
BE
3683# We need awk for the "check" target. The system "awk" is bad on
3684# some platforms.
6eb7d830
AM
3685# Always define AMTAR for backward compatibility. Yes, it's still used
3686# in the wild :-( We should find a proper way to deprecate it ...
3687AMTAR='$${TAR-tar}'
df76639a 3688
6eb7d830 3689am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
df76639a
AM
3690
3691
6bf9431b
BE
3692
3693
3694depcc="$CC" am_compiler_list=
3695
81ecdfbb
RW
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3697$as_echo_n "checking dependency style of $depcc... " >&6; }
3698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
6bf9431b
BE
3700else
3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702 # We make a subdir and do the tests there. Otherwise we can end up
3703 # making bogus files that we don't know about and never remove. For
3704 # instance it was reported that on HP-UX the gcc test will end up
3705 # making a dummy file named `D' -- because `-MD' means `put the output
3706 # in D'.
6eb7d830 3707 rm -rf conftest.dir
6bf9431b
BE
3708 mkdir conftest.dir
3709 # Copy depcomp to subdir because otherwise we won't find it if we're
3710 # using a relative directory.
3711 cp "$am_depcomp" conftest.dir
3712 cd conftest.dir
3713 # We will build objects and dependencies in a subdirectory because
3714 # it helps to detect inapplicable dependency modes. For instance
3715 # both Tru64's cc and ICC support -MD to output dependencies as a
3716 # side effect of compilation, but ICC will put the dependencies in
3717 # the current directory while Tru64 will put them in the object
3718 # directory.
3719 mkdir sub
3720
3721 am_cv_CC_dependencies_compiler_type=none
3722 if test "$am_compiler_list" = ""; then
3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 fi
81ecdfbb
RW
3725 am__universal=false
3726 case " $depcc " in #(
3727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728 esac
3729
6bf9431b
BE
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3734 #
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3738 : > sub/conftest.c
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742 # Solaris 8's {/usr,}/bin/sh.
3743 touch sub/conftst$i.h
3744 done
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
81ecdfbb
RW
3747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748 # mode. It turns out that the SunPro C++ compiler does not properly
3749 # handle `-M -o', and we need to detect this. Also, some Intel
3750 # versions had trouble with output in subdirs
3751 am__obj=sub/conftest.${OBJEXT-o}
3752 am__minus_obj="-o $am__obj"
6bf9431b 3753 case $depmode in
81ecdfbb
RW
3754 gcc)
3755 # This depmode causes a compiler race in universal mode.
3756 test "$am__universal" = false || continue
3757 ;;
6bf9431b
BE
3758 nosideeffect)
3759 # after this tag, mechanisms are not by side-effect, so they'll
3760 # only be used when explicitly requested
3761 if test "x$enable_dependency_tracking" = xyes; then
3762 continue
3763 else
3764 break
3765 fi
3766 ;;
6eb7d830 3767 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
3768 # This compiler won't grok `-c -o', but also, the minuso test has
3769 # not run yet. These depmodes are late enough in the game, and
3770 # so weak that their functioning should not be impacted.
3771 am__obj=conftest.${OBJEXT-o}
3772 am__minus_obj=
3773 ;;
6bf9431b
BE
3774 none) break ;;
3775 esac
6bf9431b 3776 if depmode=$depmode \
81ecdfbb 3777 source=sub/conftest.c object=$am__obj \
6bf9431b 3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3780 >/dev/null 2>conftest.err &&
81ecdfbb 3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785 # icc doesn't choke on unknown options, it will just issue warnings
3786 # or remarks (even with -Werror). So we grep stderr for any message
3787 # that says an option was ignored or not supported.
3788 # When given -MP, icc 7.0 and 7.1 complain thusly:
3789 # icc: Command line warning: ignoring option '-M'; no argument required
3790 # The diagnosis changed in icc 8.0:
3791 # icc: Command line remark: option '-MP' not supported
3792 if (grep 'ignoring option' conftest.err ||
3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794 am_cv_CC_dependencies_compiler_type=$depmode
3795 break
3796 fi
3797 fi
3798 done
3799
3800 cd ..
3801 rm -rf conftest.dir
252b5132 3802else
6bf9431b 3803 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3804fi
3805
252b5132 3806fi
81ecdfbb
RW
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
81ecdfbb 3811 if
6bf9431b
BE
3812 test "x$enable_dependency_tracking" != xno \
3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814 am__fastdepCC_TRUE=
3815 am__fastdepCC_FALSE='#'
252b5132 3816else
6bf9431b
BE
3817 am__fastdepCC_TRUE='#'
3818 am__fastdepCC_FALSE=
252b5132
RH
3819fi
3820
3821
3822
6bf9431b 3823
81ecdfbb 3824ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3825
3826
ce2cded5
L
3827ac_ext=c
3828ac_cpp='$CPP $CPPFLAGS'
3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3834set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836$as_echo_n "checking for $ac_word... " >&6; }
3837if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
1b9750d6 3839else
ce2cded5
L
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3842else
ce2cded5
L
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3852 break 2
3853 fi
3854done
81ecdfbb
RW
3855 done
3856IFS=$as_save_IFS
0ab6f085 3857
ce2cded5
L
3858fi
3859fi
3860CC=$ac_cv_prog_CC
3861if test -n "$CC"; then
81ecdfbb
RW
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863$as_echo "$CC" >&6; }
0ab6f085 3864else
81ecdfbb
RW
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
ce2cded5 3867fi
d7040cdb 3868
81ecdfbb 3869
ce2cded5
L
3870fi
3871if test -z "$ac_cv_prog_CC"; then
3872 ac_ct_CC=$CC
3873 # Extract the first word of "gcc", so it can be a program name with args.
3874set dummy gcc; ac_word=$2
81ecdfbb
RW
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876$as_echo_n "checking for $ac_word... " >&6; }
3877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
1b9750d6 3879else
ce2cded5
L
3880 if test -n "$ac_ct_CC"; then
3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882else
d7040cdb 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3884for as_dir in $PATH
d7040cdb
SE
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3890 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3892 break 2
0ab6f085 3893 fi
ce2cded5 3894done
81ecdfbb
RW
3895 done
3896IFS=$as_save_IFS
d7040cdb 3897
ce2cded5
L
3898fi
3899fi
3900ac_ct_CC=$ac_cv_prog_ac_ct_CC
3901if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3903$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3904else
81ecdfbb
RW
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906$as_echo "no" >&6; }
1b9750d6 3907fi
d7040cdb 3908
81ecdfbb
RW
3909 if test "x$ac_ct_CC" = x; then
3910 CC=""
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913yes:)
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916ac_tool_warned=yes ;;
3917esac
3918 CC=$ac_ct_CC
3919 fi
ce2cded5
L
3920else
3921 CC="$ac_cv_prog_CC"
3922fi
d7040cdb 3923
ce2cded5 3924if test -z "$CC"; then
81ecdfbb
RW
3925 if test -n "$ac_tool_prefix"; then
3926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3927set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
3930if test "${ac_cv_prog_CC+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
d7040cdb 3932else
ce2cded5
L
3933 if test -n "$CC"; then
3934 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3935else
ce2cded5
L
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3943 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3945 break 2
3946 fi
3947done
81ecdfbb
RW
3948 done
3949IFS=$as_save_IFS
d7040cdb 3950
252b5132
RH
3951fi
3952fi
ce2cded5
L
3953CC=$ac_cv_prog_CC
3954if test -n "$CC"; then
81ecdfbb
RW
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956$as_echo "$CC" >&6; }
ce2cded5 3957else
81ecdfbb
RW
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
d7040cdb 3960fi
6be7c12c 3961
ce2cded5 3962
81ecdfbb 3963 fi
ce2cded5
L
3964fi
3965if test -z "$CC"; then
3966 # Extract the first word of "cc", so it can be a program name with args.
3967set dummy cc; ac_word=$2
81ecdfbb
RW
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969$as_echo_n "checking for $ac_word... " >&6; }
3970if test "${ac_cv_prog_CC+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
ce2cded5
L
3972else
3973 if test -n "$CC"; then
3974 ac_cv_prog_CC="$CC" # Let the user override the test.
3975else
3976 ac_prog_rejected=no
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
3984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3985 ac_prog_rejected=yes
3986 continue
3987 fi
3988 ac_cv_prog_CC="cc"
81ecdfbb 3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3990 break 2
3991 fi
3992done
81ecdfbb
RW
3993 done
3994IFS=$as_save_IFS
ce2cded5
L
3995
3996if test $ac_prog_rejected = yes; then
3997 # We found a bogon in the path, so make sure we never use it.
3998 set dummy $ac_cv_prog_CC
3999 shift
4000 if test $# != 0; then
4001 # We chose a different compiler from the bogus one.
4002 # However, it has the same basename, so the bogon will be chosen
4003 # first if we set CC to just the basename; use the full file name.
4004 shift
4005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4006 fi
4007fi
4008fi
4009fi
4010CC=$ac_cv_prog_CC
4011if test -n "$CC"; then
81ecdfbb
RW
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013$as_echo "$CC" >&6; }
ce2cded5 4014else
81ecdfbb
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
ce2cded5
L
4017fi
4018
81ecdfbb 4019
ce2cded5
L
4020fi
4021if test -z "$CC"; then
4022 if test -n "$ac_tool_prefix"; then
81ecdfbb 4023 for ac_prog in cl.exe
ce2cded5
L
4024 do
4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028$as_echo_n "checking for $ac_word... " >&6; }
4029if test "${ac_cv_prog_CC+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
ce2cded5
L
4031else
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC="$CC" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4044 break 2
4045 fi
4046done
81ecdfbb
RW
4047 done
4048IFS=$as_save_IFS
ce2cded5
L
4049
4050fi
4051fi
4052CC=$ac_cv_prog_CC
4053if test -n "$CC"; then
81ecdfbb
RW
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4055$as_echo "$CC" >&6; }
ce2cded5 4056else
81ecdfbb
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058$as_echo "no" >&6; }
ce2cded5
L
4059fi
4060
81ecdfbb 4061
ce2cded5 4062 test -n "$CC" && break
d7040cdb
SE
4063 done
4064fi
ce2cded5
L
4065if test -z "$CC"; then
4066 ac_ct_CC=$CC
81ecdfbb 4067 for ac_prog in cl.exe
d7040cdb
SE
4068do
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
4073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
d7040cdb 4075else
ce2cded5
L
4076 if test -n "$ac_ct_CC"; then
4077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4086 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4088 break 2
ac48eca1 4089 fi
d7040cdb 4090done
81ecdfbb
RW
4091 done
4092IFS=$as_save_IFS
ac48eca1 4093
d7040cdb
SE
4094fi
4095fi
ce2cded5
L
4096ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4100else
81ecdfbb
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
d7040cdb 4103fi
ac48eca1 4104
81ecdfbb 4105
ce2cded5 4106 test -n "$ac_ct_CC" && break
d7040cdb 4107done
ac48eca1 4108
81ecdfbb
RW
4109 if test "x$ac_ct_CC" = x; then
4110 CC=""
4111 else
4112 case $cross_compiling:$ac_tool_warned in
4113yes:)
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116ac_tool_warned=yes ;;
4117esac
4118 CC=$ac_ct_CC
4119 fi
d7040cdb 4120fi
ac48eca1 4121
d7040cdb 4122fi
ac48eca1 4123
ac48eca1 4124
81ecdfbb
RW
4125test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127as_fn_error "no acceptable C compiler found in \$PATH
4128See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4129
ce2cded5 4130# Provide some information about the compiler.
81ecdfbb
RW
4131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4132set X $ac_compile
4133ac_compiler=$2
4134for ac_option in --version -v -V -qversion; do
4135 { { ac_try="$ac_compiler $ac_option >&5"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141$as_echo "$ac_try_echo"; } >&5
4142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4143 ac_status=$?
81ecdfbb
RW
4144 if test -s conftest.err; then
4145 sed '10a\
4146... rest of stderr output deleted ...
4147 10q' conftest.err >conftest.er1
4148 cat conftest.er1 >&5
4149 rm -f conftest.er1 conftest.err
4150 fi
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }
4153done
ac48eca1 4154
81ecdfbb
RW
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4156$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4157if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
d7040cdb 4159else
81ecdfbb 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4161/* end confdefs.h. */
ac48eca1 4162
ce2cded5
L
4163int
4164main ()
4165{
4166#ifndef __GNUC__
4167 choke me
4168#endif
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
81ecdfbb 4174if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4175 ac_compiler_gnu=yes
d7040cdb 4176else
81ecdfbb 4177 ac_compiler_gnu=no
d7040cdb 4178fi
81ecdfbb 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4180ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4181
ce2cded5 4182fi
81ecdfbb
RW
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4184$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4185if test $ac_compiler_gnu = yes; then
4186 GCC=yes
4187else
4188 GCC=
4189fi
ce2cded5
L
4190ac_test_CFLAGS=${CFLAGS+set}
4191ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193$as_echo_n "checking whether $CC accepts -g... " >&6; }
4194if test "${ac_cv_prog_cc_g+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 ac_save_c_werror_flag=$ac_c_werror_flag
4198 ac_c_werror_flag=yes
4199 ac_cv_prog_cc_g=no
4200 CFLAGS="-g"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4202/* end confdefs.h. */
d7040cdb 4203
ce2cded5
L
4204int
4205main ()
4206{
d7040cdb 4207
ce2cded5
L
4208 ;
4209 return 0;
4210}
4211_ACEOF
81ecdfbb 4212if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4213 ac_cv_prog_cc_g=yes
4214else
81ecdfbb
RW
4215 CFLAGS=""
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
108a6f8e 4218
81ecdfbb
RW
4219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_compile "$LINENO"; then :
4228
4229else
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4231 CFLAGS="-g"
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234
4235int
4236main ()
4237{
4238
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_g=yes
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247fi
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249fi
4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4254$as_echo "$ac_cv_prog_cc_g" >&6; }
4255if test "$ac_test_CFLAGS" = set; then
4256 CFLAGS=$ac_save_CFLAGS
4257elif test $ac_cv_prog_cc_g = yes; then
4258 if test "$GCC" = yes; then
4259 CFLAGS="-g -O2"
4260 else
ce2cded5
L
4261 CFLAGS="-g"
4262 fi
ac48eca1 4263else
ce2cded5
L
4264 if test "$GCC" = yes; then
4265 CFLAGS="-O2"
4266 else
4267 CFLAGS=
4268 fi
ac48eca1 4269fi
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4271$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4272if test "${ac_cv_prog_cc_c89+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
ac48eca1 4274else
81ecdfbb 4275 ac_cv_prog_cc_c89=no
ce2cded5 4276ac_save_CC=$CC
81ecdfbb 4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4278/* end confdefs.h. */
4279#include <stdarg.h>
4280#include <stdio.h>
4281#include <sys/types.h>
4282#include <sys/stat.h>
4283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4284struct buf { int x; };
4285FILE * (*rcsopen) (struct buf *, struct stat *, int);
4286static char *e (p, i)
4287 char **p;
4288 int i;
4289{
4290 return p[i];
4291}
4292static char *f (char * (*g) (char **, int), char **p, ...)
4293{
4294 char *s;
4295 va_list v;
4296 va_start (v,p);
4297 s = g (p, va_arg (v,int));
4298 va_end (v);
4299 return s;
4300}
d7040cdb 4301
ce2cded5
L
4302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4303 function prototypes and stuff, but not '\xHH' hex character constants.
4304 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4305 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4307 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4308 that's true only with -std. */
ce2cded5 4309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4310
81ecdfbb
RW
4311/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4312 inside strings and character constants. */
4313#define FOO(x) 'x'
4314int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4315
ce2cded5
L
4316int test (int i, double x);
4317struct s1 {int (*f) (int a);};
4318struct s2 {int (*f) (double a);};
4319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4320int argc;
4321char **argv;
4322int
4323main ()
4324{
4325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4326 ;
4327 return 0;
4328}
4329_ACEOF
81ecdfbb
RW
4330for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4332do
4333 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4336fi
81ecdfbb
RW
4337rm -f core conftest.err conftest.$ac_objext
4338 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4339done
81ecdfbb 4340rm -f conftest.$ac_ext
ce2cded5 4341CC=$ac_save_CC
d7040cdb 4342
ce2cded5 4343fi
81ecdfbb
RW
4344# AC_CACHE_VAL
4345case "x$ac_cv_prog_cc_c89" in
4346 x)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4348$as_echo "none needed" >&6; } ;;
4349 xno)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4351$as_echo "unsupported" >&6; } ;;
ce2cded5 4352 *)
81ecdfbb
RW
4353 CC="$CC $ac_cv_prog_cc_c89"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4355$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4356esac
81ecdfbb 4357if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4358
ce2cded5 4359fi
d7040cdb 4360
ce2cded5
L
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4366
7357c5b6
AM
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4373$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4374# On Suns, sometimes $CPP names a directory.
4375if test -n "$CPP" && test -d "$CPP"; then
4376 CPP=
4377fi
4378if test -z "$CPP"; then
81ecdfbb
RW
4379 if test "${ac_cv_prog_CPP+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
ce2cded5 4381else
7357c5b6
AM
4382 # Double quotes because CPP needs to be expanded
4383 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4384 do
4385 ac_preproc_ok=false
4386for ac_c_preproc_warn_flag in '' yes
ce2cded5 4387do
7357c5b6
AM
4388 # Use a header file that comes with gcc, so configuring glibc
4389 # with a fresh cross-compiler works.
4390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4391 # <limits.h> exists even on freestanding compilers.
4392 # On the NeXT, cc -E runs the code through the compiler's parser,
4393 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4395/* end confdefs.h. */
4396#ifdef __STDC__
4397# include <limits.h>
4398#else
4399# include <assert.h>
4400#endif
4401 Syntax error
4402_ACEOF
81ecdfbb 4403if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4404
81ecdfbb 4405else
7357c5b6
AM
4406 # Broken: fails on valid input.
4407continue
4408fi
4409rm -f conftest.err conftest.$ac_ext
ce2cded5 4410
81ecdfbb 4411 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4412 # can be detected and how.
81ecdfbb 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4414/* end confdefs.h. */
4415#include <ac_nonexistent.h>
4416_ACEOF
81ecdfbb 4417if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4418 # Broken: success on invalid input.
4419continue
4420else
7357c5b6
AM
4421 # Passes both tests.
4422ac_preproc_ok=:
4423break
4424fi
4425rm -f conftest.err conftest.$ac_ext
6bf9431b 4426
7357c5b6
AM
4427done
4428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429rm -f conftest.err conftest.$ac_ext
81ecdfbb 4430if $ac_preproc_ok; then :
7357c5b6
AM
4431 break
4432fi
6bf9431b 4433
7357c5b6
AM
4434 done
4435 ac_cv_prog_CPP=$CPP
252b5132 4436
7357c5b6
AM
4437fi
4438 CPP=$ac_cv_prog_CPP
4439else
4440 ac_cv_prog_CPP=$CPP
4441fi
81ecdfbb
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4443$as_echo "$CPP" >&6; }
7357c5b6
AM
4444ac_preproc_ok=false
4445for ac_c_preproc_warn_flag in '' yes
4446do
4447 # Use a header file that comes with gcc, so configuring glibc
4448 # with a fresh cross-compiler works.
4449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450 # <limits.h> exists even on freestanding compilers.
4451 # On the NeXT, cc -E runs the code through the compiler's parser,
4452 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4454/* end confdefs.h. */
4455#ifdef __STDC__
4456# include <limits.h>
4457#else
4458# include <assert.h>
4459#endif
4460 Syntax error
4461_ACEOF
81ecdfbb 4462if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4463
81ecdfbb 4464else
7357c5b6
AM
4465 # Broken: fails on valid input.
4466continue
4467fi
4468rm -f conftest.err conftest.$ac_ext
252b5132 4469
81ecdfbb 4470 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4471 # can be detected and how.
81ecdfbb 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4473/* end confdefs.h. */
4474#include <ac_nonexistent.h>
4475_ACEOF
81ecdfbb 4476if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4477 # Broken: success on invalid input.
4478continue
4479else
7357c5b6
AM
4480 # Passes both tests.
4481ac_preproc_ok=:
4482break
4483fi
4484rm -f conftest.err conftest.$ac_ext
252b5132 4485
7357c5b6
AM
4486done
4487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4488rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4489if $ac_preproc_ok; then :
4490
7357c5b6 4491else
81ecdfbb
RW
4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494as_fn_error "C preprocessor \"$CPP\" fails sanity check
4495See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4496fi
6bf9431b 4497
7357c5b6
AM
4498ac_ext=c
4499ac_cpp='$CPP $CPPFLAGS'
4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4503
252b5132 4504
81ecdfbb
RW
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4506$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4507if test "${ac_cv_path_GREP+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
ce2cded5 4509else
81ecdfbb
RW
4510 if test -z "$GREP"; then
4511 ac_path_GREP_found=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_prog in grep ggrep; do
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4521 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4522# Check for GNU ac_path_GREP and select it if it is found.
4523 # Check for GNU $ac_path_GREP
4524case `"$ac_path_GREP" --version 2>&1` in
4525*GNU*)
4526 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4527*)
4528 ac_count=0
4529 $as_echo_n 0123456789 >"conftest.in"
4530 while :
4531 do
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'GREP' >> "conftest.nl"
4536 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538 as_fn_arith $ac_count + 1 && ac_count=$as_val
4539 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_GREP="$ac_path_GREP"
4542 ac_path_GREP_max=$ac_count
ce2cded5 4543 fi
81ecdfbb
RW
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4546 done
4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548esac
4549
4550 $ac_path_GREP_found && break 3
4551 done
4552 done
4553 done
4554IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_GREP"; then
4556 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 fi
4558else
4559 ac_cv_path_GREP=$GREP
4560fi
4561
ce2cded5 4562fi
81ecdfbb
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4564$as_echo "$ac_cv_path_GREP" >&6; }
4565 GREP="$ac_cv_path_GREP"
ce2cded5 4566
6bf9431b 4567
81ecdfbb
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4569$as_echo_n "checking for egrep... " >&6; }
4570if test "${ac_cv_path_EGREP+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
7357c5b6 4572else
81ecdfbb
RW
4573 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4574 then ac_cv_path_EGREP="$GREP -E"
4575 else
4576 if test -z "$EGREP"; then
4577 ac_path_EGREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in egrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4588# Check for GNU ac_path_EGREP and select it if it is found.
4589 # Check for GNU $ac_path_EGREP
4590case `"$ac_path_EGREP" --version 2>&1` in
4591*GNU*)
4592 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4593*)
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4597 do
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'EGREP' >> "conftest.nl"
4602 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_EGREP="$ac_path_EGREP"
4608 ac_path_EGREP_max=$ac_count
4609 fi
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614esac
4615
4616 $ac_path_EGREP_found && break 3
4617 done
4618 done
4619 done
4620IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_EGREP"; then
4622 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623 fi
4624else
4625 ac_cv_path_EGREP=$EGREP
4626fi
4627
4628 fi
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4631$as_echo "$ac_cv_path_EGREP" >&6; }
4632 EGREP="$ac_cv_path_EGREP"
4633
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4636$as_echo_n "checking for ANSI C header files... " >&6; }
4637if test "${ac_cv_header_stdc+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4641/* end confdefs.h. */
4642#include <stdlib.h>
4643#include <stdarg.h>
4644#include <string.h>
4645#include <float.h>
4646
4647int
4648main ()
4649{
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
81ecdfbb 4655if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4656 ac_cv_header_stdc=yes
4657else
81ecdfbb 4658 ac_cv_header_stdc=no
7357c5b6 4659fi
81ecdfbb 4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4661
4662if test $ac_cv_header_stdc = yes; then
4663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4665/* end confdefs.h. */
4666#include <string.h>
4667
4668_ACEOF
4669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4670 $EGREP "memchr" >/dev/null 2>&1; then :
4671
7357c5b6
AM
4672else
4673 ac_cv_header_stdc=no
4674fi
4675rm -f conftest*
4676
4677fi
4678
4679if test $ac_cv_header_stdc = yes; then
4680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4682/* end confdefs.h. */
4683#include <stdlib.h>
4684
4685_ACEOF
4686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4687 $EGREP "free" >/dev/null 2>&1; then :
4688
7357c5b6
AM
4689else
4690 ac_cv_header_stdc=no
4691fi
4692rm -f conftest*
4693
4694fi
4695
4696if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4698 if test "$cross_compiling" = yes; then :
7357c5b6 4699 :
ce2cded5 4700else
81ecdfbb 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4702/* end confdefs.h. */
4703#include <ctype.h>
81ecdfbb 4704#include <stdlib.h>
7357c5b6
AM
4705#if ((' ' & 0x0FF) == 0x020)
4706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4708#else
4709# define ISLOWER(c) \
4710 (('a' <= (c) && (c) <= 'i') \
4711 || ('j' <= (c) && (c) <= 'r') \
4712 || ('s' <= (c) && (c) <= 'z'))
4713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4714#endif
6bf9431b 4715
7357c5b6
AM
4716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4717int
4718main ()
4719{
4720 int i;
4721 for (i = 0; i < 256; i++)
4722 if (XOR (islower (i), ISLOWER (i))
4723 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4724 return 2;
4725 return 0;
7357c5b6
AM
4726}
4727_ACEOF
81ecdfbb 4728if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4729
81ecdfbb
RW
4730else
4731 ac_cv_header_stdc=no
7357c5b6 4732fi
81ecdfbb
RW
4733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4734 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4735fi
81ecdfbb 4736
7357c5b6
AM
4737fi
4738fi
81ecdfbb
RW
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4740$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4741if test $ac_cv_header_stdc = yes; then
6bf9431b 4742
81ecdfbb 4743$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4744
7357c5b6 4745fi
d7040cdb 4746
7357c5b6 4747# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4750do :
4751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4753"
4754eval as_val=\$$as_ac_Header
4755 if test "x$as_val" = x""yes; then :
7357c5b6 4756 cat >>confdefs.h <<_ACEOF
81ecdfbb 4757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4758_ACEOF
d7040cdb 4759
7357c5b6 4760fi
d7040cdb 4761
7357c5b6 4762done
d7040cdb
SE
4763
4764
4765
81ecdfbb
RW
4766 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4767if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4768 MINIX=yes
4769else
4770 MINIX=
4771fi
d7040cdb
SE
4772
4773
7357c5b6 4774 if test "$MINIX" = yes; then
d7040cdb 4775
81ecdfbb 4776$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4777
d7040cdb 4778
81ecdfbb 4779$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4780
d7040cdb 4781
81ecdfbb 4782$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4783
ce2cded5 4784 fi
d7040cdb 4785
d7040cdb 4786
81ecdfbb
RW
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4788$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4789if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
ce2cded5 4791else
81ecdfbb 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4793/* end confdefs.h. */
d7040cdb 4794
7357c5b6
AM
4795# define __EXTENSIONS__ 1
4796 $ac_includes_default
4797int
4798main ()
4799{
d7040cdb 4800
7357c5b6
AM
4801 ;
4802 return 0;
4803}
4804_ACEOF
81ecdfbb 4805if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4806 ac_cv_safe_to_define___extensions__=yes
4807else
81ecdfbb 4808 ac_cv_safe_to_define___extensions__=no
ce2cded5 4809fi
81ecdfbb 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4811fi
81ecdfbb
RW
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4813$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4814 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4815 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4816
81ecdfbb 4817 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4818
81ecdfbb 4819 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4820
81ecdfbb 4821 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4822
81ecdfbb 4823 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4824
d7040cdb 4825
d053aef8 4826
81ecdfbb 4827
da2f07f1 4828
da2f07f1 4829
b214d478
SE
4830case `pwd` in
4831 *\ * | *\ *)
81ecdfbb
RW
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4833$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 4834esac
d7040cdb
SE
4835
4836
6bf9431b 4837
3725885a
RW
4838macro_version='2.2.7a'
4839macro_revision='1.3134'
ce2cded5 4840
d7040cdb 4841
d7040cdb 4842
d7040cdb 4843
d7040cdb 4844
7357c5b6 4845
6bf9431b 4846
6bf9431b 4847
6bf9431b 4848
6bf9431b 4849
d7040cdb 4850
d7040cdb 4851
6bf9431b 4852
b214d478 4853ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4854
3725885a
RW
4855# Backslashify metacharacters that are still active within
4856# double-quoted strings.
4857sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4858
4859# Same as above, but do not quote variable references.
4860double_quote_subst='s/\(["`\\]\)/\\\1/g'
4861
4862# Sed substitution to delay expansion of an escaped shell variable in a
4863# double_quote_subst'ed string.
4864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4865
4866# Sed substitution to delay expansion of an escaped single quote.
4867delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4868
4869# Sed substitution to avoid accidental globbing in evaled expressions
4870no_glob_subst='s/\*/\\\*/g'
4871
4872ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4873ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4874ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4877$as_echo_n "checking how to print strings... " >&6; }
4878# Test print first, because it will be a builtin if present.
4879if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4880 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4881 ECHO='print -r --'
4882elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4883 ECHO='printf %s\n'
4884else
4885 # Use this function as a fallback that always works.
4886 func_fallback_echo ()
4887 {
4888 eval 'cat <<_LTECHO_EOF
4889$1
4890_LTECHO_EOF'
4891 }
4892 ECHO='func_fallback_echo'
4893fi
4894
4895# func_echo_all arg...
4896# Invoke $ECHO with all args, space-separated.
4897func_echo_all ()
4898{
4899 $ECHO ""
4900}
4901
4902case "$ECHO" in
4903 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4904$as_echo "printf" >&6; } ;;
4905 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4906$as_echo "print -r" >&6; } ;;
4907 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4908$as_echo "cat" >&6; } ;;
4909esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
81ecdfbb
RW
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4925$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4926if test "${ac_cv_path_SED+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928else
4929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4930 for ac_i in 1 2 3 4 5 6 7; do
4931 ac_script="$ac_script$as_nl$ac_script"
4932 done
4933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4934 { ac_script=; unset ac_script;}
4935 if test -z "$SED"; then
4936 ac_path_SED_found=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
81ecdfbb 4943 for ac_prog in sed gsed; do
7357c5b6 4944 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
4945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4946 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4947# Check for GNU ac_path_SED and select it if it is found.
4948 # Check for GNU $ac_path_SED
4949case `"$ac_path_SED" --version 2>&1` in
4950*GNU*)
4951 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4952*)
4953 ac_count=0
4954 $as_echo_n 0123456789 >"conftest.in"
4955 while :
4956 do
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 $as_echo '' >> "conftest.nl"
4961 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963 as_fn_arith $ac_count + 1 && ac_count=$as_val
4964 if test $ac_count -gt ${ac_path_SED_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_SED="$ac_path_SED"
4967 ac_path_SED_max=$ac_count
4968 fi
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4971 done
4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973esac
4974
4975 $ac_path_SED_found && break 3
7357c5b6
AM
4976 done
4977 done
81ecdfbb 4978 done
7357c5b6 4979IFS=$as_save_IFS
81ecdfbb
RW
4980 if test -z "$ac_cv_path_SED"; then
4981 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4982 fi
81ecdfbb
RW
4983else
4984 ac_cv_path_SED=$SED
7357c5b6
AM
4985fi
4986
81ecdfbb
RW
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4989$as_echo "$ac_cv_path_SED" >&6; }
4990 SED="$ac_cv_path_SED"
4991 rm -f conftest.sed
7357c5b6
AM
4992
4993test -z "$SED" && SED=sed
4994Xsed="$SED -e 1s/^X//"
4995
4996
4997
d7040cdb 4998
d7040cdb 4999
d7040cdb 5000
d7040cdb 5001
d7040cdb 5002
d7040cdb 5003
d7040cdb 5004
6bf9431b 5005
81ecdfbb
RW
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5007$as_echo_n "checking for fgrep... " >&6; }
5008if test "${ac_cv_path_FGREP+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
7357c5b6 5010else
81ecdfbb
RW
5011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5012 then ac_cv_path_FGREP="$GREP -F"
5013 else
5014 if test -z "$FGREP"; then
5015 ac_path_FGREP_found=false
5016 # Loop through the user's path and test for each of PROGNAME-LIST
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_prog in fgrep; do
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5025 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5026# Check for GNU ac_path_FGREP and select it if it is found.
5027 # Check for GNU $ac_path_FGREP
5028case `"$ac_path_FGREP" --version 2>&1` in
5029*GNU*)
5030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5031*)
5032 ac_count=0
5033 $as_echo_n 0123456789 >"conftest.in"
5034 while :
5035 do
5036 cat "conftest.in" "conftest.in" >"conftest.tmp"
5037 mv "conftest.tmp" "conftest.in"
5038 cp "conftest.in" "conftest.nl"
5039 $as_echo 'FGREP' >> "conftest.nl"
5040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042 as_fn_arith $ac_count + 1 && ac_count=$as_val
5043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5044 # Best one so far, save it but keep looking for a better one
5045 ac_cv_path_FGREP="$ac_path_FGREP"
5046 ac_path_FGREP_max=$ac_count
7357c5b6 5047 fi
81ecdfbb
RW
5048 # 10*(2^10) chars as input seems more than enough
5049 test $ac_count -gt 10 && break
5050 done
5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052esac
5053
5054 $ac_path_FGREP_found && break 3
5055 done
5056 done
5057 done
5058IFS=$as_save_IFS
5059 if test -z "$ac_cv_path_FGREP"; then
5060 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061 fi
5062else
5063 ac_cv_path_FGREP=$FGREP
5064fi
5065
5066 fi
6bf9431b 5067fi
81ecdfbb
RW
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5069$as_echo "$ac_cv_path_FGREP" >&6; }
5070 FGREP="$ac_cv_path_FGREP"
d7040cdb 5071
6bf9431b 5072
7357c5b6 5073test -z "$GREP" && GREP=grep
252b5132 5074
6bf9431b 5075
252b5132 5076
252b5132 5077
252b5132 5078
252b5132 5079
252b5132
RH
5080
5081
6bf9431b 5082
d7040cdb 5083
6bf9431b 5084
6bf9431b 5085
7357c5b6
AM
5086
5087
5088
5089
5090
5091
5092
81ecdfbb
RW
5093# Check whether --with-gnu-ld was given.
5094if test "${with_gnu_ld+set}" = set; then :
5095 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5096else
5097 with_gnu_ld=no
81ecdfbb
RW
5098fi
5099
7357c5b6
AM
5100ac_prog=ld
5101if test "$GCC" = yes; then
5102 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5104$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5105 case $host in
5106 *-*-mingw*)
5107 # gcc leaves a trailing carriage return which upsets mingw
5108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5109 *)
5110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5111 esac
5112 case $ac_prog in
5113 # Accept absolute paths.
5114 [\\/]* | ?:[\\/]*)
5115 re_direlt='/[^/][^/]*/\.\./'
5116 # Canonicalize the pathname of ld
5117 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5118 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5119 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5120 done
5121 test -z "$LD" && LD="$ac_prog"
5122 ;;
5123 "")
5124 # If it fails, then pretend we aren't using GCC.
5125 ac_prog=ld
5126 ;;
5127 *)
5128 # If it is relative, then search for the first ld in PATH.
5129 with_gnu_ld=unknown
5130 ;;
5131 esac
5132elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5134$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5135else
81ecdfbb
RW
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5137$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5138fi
81ecdfbb
RW
5139if test "${lt_cv_path_LD+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
d7040cdb 5141else
7357c5b6
AM
5142 if test -z "$LD"; then
5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH; do
5145 IFS="$lt_save_ifs"
5146 test -z "$ac_dir" && ac_dir=.
5147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5148 lt_cv_path_LD="$ac_dir/$ac_prog"
5149 # Check to see if the program is GNU ld. I'd rather use --version,
5150 # but apparently some variants of GNU ld only accept -v.
5151 # Break only if it was the GNU/non-GNU ld that we prefer.
5152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5153 *GNU* | *'with BFD'*)
5154 test "$with_gnu_ld" != no && break
5155 ;;
5156 *)
5157 test "$with_gnu_ld" != yes && break
5158 ;;
5159 esac
5160 fi
5161 done
5162 IFS="$lt_save_ifs"
6bf9431b 5163else
7357c5b6 5164 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5165fi
6bf9431b 5166fi
7357c5b6
AM
5167
5168LD="$lt_cv_path_LD"
5169if test -n "$LD"; then
81ecdfbb
RW
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5171$as_echo "$LD" >&6; }
ce2cded5 5172else
81ecdfbb
RW
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
6bf9431b 5175fi
81ecdfbb
RW
5176test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5179if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
ce2cded5 5181else
7357c5b6
AM
5182 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5183case `$LD -v 2>&1 </dev/null` in
5184*GNU* | *'with BFD'*)
5185 lt_cv_prog_gnu_ld=yes
5186 ;;
5187*)
5188 lt_cv_prog_gnu_ld=no
5189 ;;
5190esac
ce2cded5 5191fi
81ecdfbb
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5193$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5194with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5195
5196
5197
20e95c23 5198
d7040cdb
SE
5199
5200
5201
5202
5203
81ecdfbb
RW
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5206if test "${lt_cv_path_NM+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
ce2cded5 5208else
7357c5b6
AM
5209 if test -n "$NM"; then
5210 # Let the user override the test.
5211 lt_cv_path_NM="$NM"
ce2cded5 5212else
7357c5b6
AM
5213 lt_nm_to_check="${ac_tool_prefix}nm"
5214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5215 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5216 fi
7357c5b6
AM
5217 for lt_tmp_nm in $lt_nm_to_check; do
5218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5220 IFS="$lt_save_ifs"
5221 test -z "$ac_dir" && ac_dir=.
5222 tmp_nm="$ac_dir/$lt_tmp_nm"
5223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5224 # Check to see if the nm accepts a BSD-compat flag.
5225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5226 # nm: unknown option "B" ignored
5227 # Tru64's nm complains that /dev/null is an invalid object file
5228 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5229 */dev/null* | *'Invalid file or object type'*)
5230 lt_cv_path_NM="$tmp_nm -B"
5231 break
5232 ;;
5233 *)
5234 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5235 */dev/null*)
5236 lt_cv_path_NM="$tmp_nm -p"
5237 break
5238 ;;
5239 *)
5240 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5241 continue # so that we can try to find one that supports BSD flags
5242 ;;
5243 esac
5244 ;;
5245 esac
5246 fi
5247 done
5248 IFS="$lt_save_ifs"
5249 done
5250 : ${lt_cv_path_NM=no}
ce2cded5
L
5251fi
5252fi
81ecdfbb
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5254$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5255if test "$lt_cv_path_NM" != "no"; then
5256 NM="$lt_cv_path_NM"
ce2cded5 5257else
7357c5b6 5258 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5259 if test -n "$DUMPBIN"; then :
5260 # Let the user override the test.
5261 else
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5264 do
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268$as_echo_n "checking for $ac_word... " >&6; }
5269if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
ce2cded5 5271else
7357c5b6
AM
5272 if test -n "$DUMPBIN"; then
5273 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5282 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5284 break 2
5285 fi
5286done
81ecdfbb
RW
5287 done
5288IFS=$as_save_IFS
d7040cdb 5289
ce2cded5
L
5290fi
5291fi
7357c5b6
AM
5292DUMPBIN=$ac_cv_prog_DUMPBIN
5293if test -n "$DUMPBIN"; then
81ecdfbb
RW
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5295$as_echo "$DUMPBIN" >&6; }
ce2cded5 5296else
81ecdfbb
RW
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
ce2cded5 5299fi
d7040cdb 5300
81ecdfbb 5301
7357c5b6
AM
5302 test -n "$DUMPBIN" && break
5303 done
ce2cded5 5304fi
7357c5b6
AM
5305if test -z "$DUMPBIN"; then
5306 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5307 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5308do
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
ce2cded5 5315else
7357c5b6
AM
5316 if test -n "$ac_ct_DUMPBIN"; then
5317 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5326 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5328 break 2
5329 fi
5330done
81ecdfbb
RW
5331 done
5332IFS=$as_save_IFS
d7040cdb 5333
ce2cded5
L
5334fi
5335fi
7357c5b6
AM
5336ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5337if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5339$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5340else
81ecdfbb
RW
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
20e95c23 5343fi
20e95c23 5344
81ecdfbb 5345
7357c5b6 5346 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5347done
5348
81ecdfbb
RW
5349 if test "x$ac_ct_DUMPBIN" = x; then
5350 DUMPBIN=":"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353yes:)
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356ac_tool_warned=yes ;;
5357esac
5358 DUMPBIN=$ac_ct_DUMPBIN
5359 fi
d7040cdb 5360fi
7357c5b6 5361
3725885a
RW
5362 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5363 *COFF*)
5364 DUMPBIN="$DUMPBIN -symbols"
5365 ;;
5366 *)
5367 DUMPBIN=:
5368 ;;
5369 esac
5370 fi
7357c5b6
AM
5371
5372 if test "$DUMPBIN" != ":"; then
5373 NM="$DUMPBIN"
5374 fi
20e95c23 5375fi
7357c5b6
AM
5376test -z "$NM" && NM=nm
5377
5378
5379
5380
5381
5382
81ecdfbb
RW
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5384$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5385if test "${lt_cv_nm_interface+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
ce2cded5 5387else
7357c5b6
AM
5388 lt_cv_nm_interface="BSD nm"
5389 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5390 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
5391 (eval "$ac_compile" 2>conftest.err)
5392 cat conftest.err >&5
3725885a 5393 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5394 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5395 cat conftest.err >&5
3725885a 5396 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
5397 cat conftest.out >&5
5398 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5399 lt_cv_nm_interface="MS dumpbin"
5400 fi
5401 rm -f conftest*
ce2cded5 5402fi
81ecdfbb
RW
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5404$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5405
81ecdfbb
RW
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5407$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5408LN_S=$as_ln_s
5409if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411$as_echo "yes" >&6; }
ce2cded5 5412else
81ecdfbb
RW
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5414$as_echo "no, using $LN_S" >&6; }
ce2cded5 5415fi
d7040cdb 5416
7357c5b6 5417# find the maximum length of command line arguments
81ecdfbb
RW
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5419$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5420if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
7357c5b6
AM
5422else
5423 i=0
5424 teststring="ABCD"
d7040cdb 5425
7357c5b6
AM
5426 case $build_os in
5427 msdosdjgpp*)
5428 # On DJGPP, this test can blow up pretty badly due to problems in libc
5429 # (any single argument exceeding 2000 bytes causes a buffer overrun
5430 # during glob expansion). Even if it were fixed, the result of this
5431 # check would be larger than it should be.
5432 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5433 ;;
d7040cdb 5434
7357c5b6
AM
5435 gnu*)
5436 # Under GNU Hurd, this test is not required because there is
5437 # no limit to the length of command line arguments.
5438 # Libtool will interpret -1 as no limit whatsoever
5439 lt_cv_sys_max_cmd_len=-1;
5440 ;;
d7040cdb 5441
b214d478 5442 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5443 # On Win9x/ME, this test blows up -- it succeeds, but takes
5444 # about 5 minutes as the teststring grows exponentially.
5445 # Worse, since 9x/ME are not pre-emptively multitasking,
5446 # you end up with a "frozen" computer, even though with patience
5447 # the test eventually succeeds (with a max line length of 256k).
5448 # Instead, let's just punt: use the minimum linelength reported by
5449 # all of the supported platforms: 8192 (on NT/2K/XP).
5450 lt_cv_sys_max_cmd_len=8192;
5451 ;;
d7040cdb 5452
3725885a
RW
5453 mint*)
5454 # On MiNT this can take a long time and run out of memory.
5455 lt_cv_sys_max_cmd_len=8192;
5456 ;;
5457
7357c5b6
AM
5458 amigaos*)
5459 # On AmigaOS with pdksh, this test takes hours, literally.
5460 # So we just punt and use a minimum line length of 8192.
5461 lt_cv_sys_max_cmd_len=8192;
5462 ;;
d7040cdb 5463
7357c5b6
AM
5464 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5465 # This has been around since 386BSD, at least. Likely further.
5466 if test -x /sbin/sysctl; then
5467 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5468 elif test -x /usr/sbin/sysctl; then
5469 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5470 else
5471 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5472 fi
5473 # And add a safety zone
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5476 ;;
d7040cdb 5477
7357c5b6
AM
5478 interix*)
5479 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5480 lt_cv_sys_max_cmd_len=196608
5481 ;;
d7040cdb 5482
7357c5b6
AM
5483 osf*)
5484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5486 # nice to cause kernel panics so lets avoid the loop below.
5487 # First set a reasonable default.
5488 lt_cv_sys_max_cmd_len=16384
5489 #
5490 if test -x /sbin/sysconfig; then
5491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5493 esac
5494 fi
5495 ;;
5496 sco3.2v5*)
5497 lt_cv_sys_max_cmd_len=102400
5498 ;;
5499 sysv5* | sco5v6* | sysv4.2uw2*)
5500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5501 if test -n "$kargmax"; then
5502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5503 else
5504 lt_cv_sys_max_cmd_len=32768
5505 fi
ce2cded5
L
5506 ;;
5507 *)
b214d478
SE
5508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5509 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512 else
5513 # Make teststring a little bigger before we do anything with it.
5514 # a 1K string should be a reasonable start.
5515 for i in 1 2 3 4 5 6 7 8 ; do
5516 teststring=$teststring$teststring
5517 done
5518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5519 # If test is not a shell built-in, we'll probably end up computing a
5520 # maximum length that is only half of the actual maximum length, but
5521 # we can't tell.
3725885a
RW
5522 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5523 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
5524 test $i != 17 # 1/2 MB should be enough
5525 do
5526 i=`expr $i + 1`
5527 teststring=$teststring$teststring
5528 done
5529 # Only check the string length outside the loop.
5530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5531 teststring=
5532 # Add a significant safety factor because C++ compilers can tack on
5533 # massive amounts of additional arguments before passing them to the
5534 # linker. It appears as though 1/2 is a usable value.
5535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5536 fi
ce2cded5
L
5537 ;;
5538 esac
d7040cdb 5539
7357c5b6 5540fi
d7040cdb 5541
7357c5b6 5542if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5544$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5545else
81ecdfbb
RW
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5547$as_echo "none" >&6; }
7357c5b6
AM
5548fi
5549max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5550
5551
5552
5553
5554
5555
7357c5b6
AM
5556: ${CP="cp -f"}
5557: ${MV="mv -f"}
5558: ${RM="rm -f"}
d7040cdb 5559
81ecdfbb
RW
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5561$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5562# Try some XSI features
5563xsi_shell=no
5564( _lt_dummy="a/b/c"
5565 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5566 = c,a/b,, \
5567 && eval 'test $(( 1 + 1 )) -eq 2 \
5568 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5569 && xsi_shell=yes
81ecdfbb
RW
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5571$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5572
5573
81ecdfbb
RW
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5575$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5576lt_shell_append=no
5577( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5578 >/dev/null 2>&1 \
5579 && lt_shell_append=yes
81ecdfbb
RW
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5581$as_echo "$lt_shell_append" >&6; }
d7040cdb 5582
d7040cdb 5583
7357c5b6
AM
5584if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5585 lt_unset=unset
5586else
5587 lt_unset=false
5588fi
d7040cdb 5589
d7040cdb 5590
d7040cdb 5591
d7040cdb 5592
d7040cdb 5593
7357c5b6
AM
5594# test EBCDIC or ASCII
5595case `echo X|tr X '\101'` in
5596 A) # ASCII based system
5597 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5598 lt_SP2NL='tr \040 \012'
5599 lt_NL2SP='tr \015\012 \040\040'
5600 ;;
5601 *) # EBCDIC based system
5602 lt_SP2NL='tr \100 \n'
5603 lt_NL2SP='tr \r\n \100\100'
5604 ;;
5605esac
d7040cdb 5606
d7040cdb 5607
d7040cdb 5608
d7040cdb 5609
d7040cdb 5610
d7040cdb
SE
5611
5612
5af11cab 5613
d7040cdb 5614
81ecdfbb
RW
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5616$as_echo_n "checking for $LD option to reload object files... " >&6; }
5617if test "${lt_cv_ld_reload_flag+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
7357c5b6
AM
5619else
5620 lt_cv_ld_reload_flag='-r'
5621fi
81ecdfbb
RW
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5623$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5624reload_flag=$lt_cv_ld_reload_flag
5625case $reload_flag in
5626"" | " "*) ;;
5627*) reload_flag=" $reload_flag" ;;
5628esac
5629reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630case $host_os in
5631 darwin*)
5632 if test "$GCC" = yes; then
5633 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5634 else
5635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5636 fi
5637 ;;
5638esac
20e95c23 5639
6bf9431b 5640
20e95c23
DJ
5641
5642
20e95c23 5643
20e95c23 5644
ce2cded5 5645
ce2cded5 5646
ce2cded5 5647
b214d478
SE
5648if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5650set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
b214d478
SE
5655else
5656 if test -n "$OBJDUMP"; then
5657 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5668 break 2
5669 fi
5670done
81ecdfbb
RW
5671 done
5672IFS=$as_save_IFS
b214d478
SE
5673
5674fi
5675fi
5676OBJDUMP=$ac_cv_prog_OBJDUMP
5677if test -n "$OBJDUMP"; then
81ecdfbb
RW
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5679$as_echo "$OBJDUMP" >&6; }
b214d478 5680else
81ecdfbb
RW
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
b214d478
SE
5683fi
5684
81ecdfbb 5685
b214d478
SE
5686fi
5687if test -z "$ac_cv_prog_OBJDUMP"; then
5688 ac_ct_OBJDUMP=$OBJDUMP
5689 # Extract the first word of "objdump", so it can be a program name with args.
5690set dummy objdump; ac_word=$2
81ecdfbb
RW
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692$as_echo_n "checking for $ac_word... " >&6; }
5693if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
b214d478
SE
5695else
5696 if test -n "$ac_ct_OBJDUMP"; then
5697 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5706 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5708 break 2
5709 fi
5710done
81ecdfbb
RW
5711 done
5712IFS=$as_save_IFS
b214d478 5713
b214d478
SE
5714fi
5715fi
5716ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5717if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5719$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5720else
81ecdfbb
RW
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722$as_echo "no" >&6; }
b214d478
SE
5723fi
5724
81ecdfbb
RW
5725 if test "x$ac_ct_OBJDUMP" = x; then
5726 OBJDUMP="false"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729yes:)
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732ac_tool_warned=yes ;;
5733esac
5734 OBJDUMP=$ac_ct_OBJDUMP
5735 fi
b214d478
SE
5736else
5737 OBJDUMP="$ac_cv_prog_OBJDUMP"
5738fi
5739
5740test -z "$OBJDUMP" && OBJDUMP=objdump
5741
5742
5743
5744
5745
5746
5747
5748
ce2cded5 5749
81ecdfbb
RW
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5751$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5752if test "${lt_cv_deplibs_check_method+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
6bf9431b 5754else
7357c5b6
AM
5755 lt_cv_file_magic_cmd='$MAGIC_CMD'
5756lt_cv_file_magic_test_file=
5757lt_cv_deplibs_check_method='unknown'
5758# Need to set the preceding variable on all platforms that support
5759# interlibrary dependencies.
5760# 'none' -- dependencies not supported.
5761# `unknown' -- same as none, but documents that we really don't know.
5762# 'pass_all' -- all dependencies passed with no checks.
5763# 'test_compile' -- check by making test program.
5764# 'file_magic [[regex]]' -- check by looking for files in library path
5765# which responds to the $file_magic_cmd with a given extended regex.
5766# If you have `file' or equivalent on your system and you're not sure
5767# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 5768
ce2cded5 5769case $host_os in
7357c5b6
AM
5770aix[4-9]*)
5771 lt_cv_deplibs_check_method=pass_all
ce2cded5 5772 ;;
7357c5b6
AM
5773
5774beos*)
5775 lt_cv_deplibs_check_method=pass_all
ce2cded5 5776 ;;
7357c5b6
AM
5777
5778bsdi[45]*)
5779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5780 lt_cv_file_magic_cmd='/usr/bin/file -L'
5781 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 5782 ;;
7357c5b6
AM
5783
5784cygwin*)
5785 # func_win32_libid is a shell function defined in ltmain.sh
5786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5787 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 5788 ;;
7357c5b6
AM
5789
5790mingw* | pw32*)
5791 # Base MSYS/MinGW do not provide the 'file' command needed by
5792 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5793 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5794 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5795 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797 lt_cv_file_magic_cmd='func_win32_libid'
5798 else
5799 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5800 lt_cv_file_magic_cmd='$OBJDUMP -f'
5801 fi
ce2cded5 5802 ;;
7357c5b6 5803
3725885a 5804cegcc*)
b214d478
SE
5805 # use the weaker test based on 'objdump'. See mingw*.
5806 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5807 lt_cv_file_magic_cmd='$OBJDUMP -f'
5808 ;;
5809
7357c5b6
AM
5810darwin* | rhapsody*)
5811 lt_cv_deplibs_check_method=pass_all
d7040cdb 5812 ;;
d7040cdb 5813
7357c5b6
AM
5814freebsd* | dragonfly*)
5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5816 case $host_cpu in
5817 i*86 )
5818 # Not sure whether the presence of OpenBSD here was a mistake.
5819 # Let's accept both of them until this is cleared up.
5820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5821 lt_cv_file_magic_cmd=/usr/bin/file
5822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5823 ;;
5824 esac
5825 else
5826 lt_cv_deplibs_check_method=pass_all
5827 fi
5828 ;;
20e95c23 5829
7357c5b6
AM
5830gnu*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
20e95c23 5833
3725885a
RW
5834haiku*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
7357c5b6
AM
5838hpux10.20* | hpux11*)
5839 lt_cv_file_magic_cmd=/usr/bin/file
5840 case $host_cpu in
5841 ia64*)
5842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5843 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5844 ;;
5845 hppa*64*)
3725885a 5846 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
5847 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5848 ;;
5849 *)
3725885a 5850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
5851 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5852 ;;
5853 esac
5854 ;;
5af11cab 5855
7357c5b6
AM
5856interix[3-9]*)
5857 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5859 ;;
20e95c23 5860
7357c5b6
AM
5861irix5* | irix6* | nonstopux*)
5862 case $LD in
5863 *-32|*"-32 ") libmagic=32-bit;;
5864 *-n32|*"-n32 ") libmagic=N32;;
5865 *-64|*"-64 ") libmagic=64-bit;;
5866 *) libmagic=never-match;;
5867 esac
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
d7040cdb 5870
7357c5b6 5871# This must be Linux ELF.
58e24671 5872linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
d7040cdb 5875
7357c5b6
AM
5876netbsd*)
5877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 5879 else
7357c5b6 5880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 5881 fi
7357c5b6 5882 ;;
d7040cdb 5883
7357c5b6
AM
5884newos6*)
5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5886 lt_cv_file_magic_cmd=/usr/bin/file
5887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5888 ;;
d7040cdb 5889
7357c5b6
AM
5890*nto* | *qnx*)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
d7040cdb 5893
7357c5b6
AM
5894openbsd*)
5895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5897 else
5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5899 fi
5900 ;;
d7040cdb 5901
7357c5b6
AM
5902osf3* | osf4* | osf5*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
d7040cdb 5905
7357c5b6
AM
5906rdos*)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
d7040cdb 5909
7357c5b6
AM
5910solaris*)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
d7040cdb 5913
7357c5b6
AM
5914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
d7040cdb 5917
7357c5b6
AM
5918sysv4 | sysv4.3*)
5919 case $host_vendor in
5920 motorola)
5921 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]'
5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5923 ;;
5924 ncr)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927 sequent)
5928 lt_cv_file_magic_cmd='/bin/file'
5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5930 ;;
5931 sni)
5932 lt_cv_file_magic_cmd='/bin/file'
5933 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5934 lt_cv_file_magic_test_file=/lib/libc.so
5935 ;;
5936 siemens)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939 pc)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942 esac
5943 ;;
d7040cdb 5944
7357c5b6
AM
5945tpf*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948esac
d7040cdb 5949
ce2cded5 5950fi
81ecdfbb
RW
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
5953file_magic_cmd=$lt_cv_file_magic_cmd
5954deplibs_check_method=$lt_cv_deplibs_check_method
5955test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5956
d7040cdb 5957
d7040cdb 5958
d7040cdb 5959
5af11cab 5960
20e95c23 5961
20e95c23 5962
20e95c23 5963
20e95c23
DJ
5964
5965
5966
20e95c23 5967
7357c5b6
AM
5968if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5970set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if test "${ac_cv_prog_AR+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
7357c5b6
AM
5975else
5976 if test -n "$AR"; then
5977 ac_cv_prog_AR="$AR" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5986 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 5988 break 2
ce2cded5 5989 fi
7357c5b6 5990done
81ecdfbb
RW
5991 done
5992IFS=$as_save_IFS
d5fbea21 5993
7357c5b6
AM
5994fi
5995fi
5996AR=$ac_cv_prog_AR
5997if test -n "$AR"; then
81ecdfbb
RW
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5999$as_echo "$AR" >&6; }
7357c5b6 6000else
81ecdfbb
RW
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
7357c5b6 6003fi
d5fbea21 6004
81ecdfbb 6005
7357c5b6
AM
6006fi
6007if test -z "$ac_cv_prog_AR"; then
6008 ac_ct_AR=$AR
6009 # Extract the first word of "ar", so it can be a program name with args.
6010set dummy ar; ac_word=$2
81ecdfbb
RW
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
ce2cded5 6015else
7357c5b6
AM
6016 if test -n "$ac_ct_AR"; then
6017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6026 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6028 break 2
6029 fi
6030done
81ecdfbb
RW
6031 done
6032IFS=$as_save_IFS
d7040cdb 6033
7357c5b6
AM
6034fi
6035fi
6036ac_ct_AR=$ac_cv_prog_ac_ct_AR
6037if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6039$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6040else
81ecdfbb
RW
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
ce2cded5 6043fi
d7040cdb 6044
81ecdfbb
RW
6045 if test "x$ac_ct_AR" = x; then
6046 AR="false"
6047 else
6048 case $cross_compiling:$ac_tool_warned in
6049yes:)
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052ac_tool_warned=yes ;;
6053esac
6054 AR=$ac_ct_AR
6055 fi
7357c5b6
AM
6056else
6057 AR="$ac_cv_prog_AR"
ce2cded5 6058fi
d7040cdb 6059
7357c5b6
AM
6060test -z "$AR" && AR=ar
6061test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6062
7357c5b6
AM
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6075set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077$as_echo_n "checking for $ac_word... " >&6; }
6078if test "${ac_cv_prog_STRIP+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
252b5132 6080else
7357c5b6
AM
6081 if test -n "$STRIP"; then
6082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
ce2cded5 6086do
7357c5b6
AM
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6093 break 2
ce2cded5 6094 fi
7357c5b6 6095done
81ecdfbb
RW
6096 done
6097IFS=$as_save_IFS
7357c5b6 6098
252b5132 6099fi
7357c5b6
AM
6100fi
6101STRIP=$ac_cv_prog_STRIP
6102if test -n "$STRIP"; then
81ecdfbb
RW
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104$as_echo "$STRIP" >&6; }
252b5132 6105else
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107$as_echo "no" >&6; }
252b5132 6108fi
d7040cdb 6109
81ecdfbb 6110
6bf9431b 6111fi
7357c5b6
AM
6112if test -z "$ac_cv_prog_STRIP"; then
6113 ac_ct_STRIP=$STRIP
6114 # Extract the first word of "strip", so it can be a program name with args.
6115set dummy strip; ac_word=$2
81ecdfbb
RW
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117$as_echo_n "checking for $ac_word... " >&6; }
6118if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
ac48eca1 6120else
7357c5b6
AM
6121 if test -n "$ac_ct_STRIP"; then
6122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6131 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6133 break 2
6134 fi
6135done
81ecdfbb
RW
6136 done
6137IFS=$as_save_IFS
6bf9431b 6138
7357c5b6
AM
6139fi
6140fi
6141ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6142if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6144$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6145else
81ecdfbb
RW
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147$as_echo "no" >&6; }
6bf9431b 6148fi
6bf9431b 6149
81ecdfbb
RW
6150 if test "x$ac_ct_STRIP" = x; then
6151 STRIP=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159 STRIP=$ac_ct_STRIP
6160 fi
7357c5b6
AM
6161else
6162 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6163fi
6bf9431b 6164
7357c5b6
AM
6165test -z "$STRIP" && STRIP=:
6166
6167
6168
6169
6170
6171
6172if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if test "${ac_cv_prog_RANLIB+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
7357c5b6
AM
6179else
6180 if test -n "$RANLIB"; then
6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6192 break 2
6193 fi
6194done
81ecdfbb
RW
6195 done
6196IFS=$as_save_IFS
6bf9431b 6197
ce2cded5 6198fi
7357c5b6
AM
6199fi
6200RANLIB=$ac_cv_prog_RANLIB
6201if test -n "$RANLIB"; then
81ecdfbb
RW
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6203$as_echo "$RANLIB" >&6; }
ac48eca1 6204else
81ecdfbb
RW
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
d7040cdb 6207fi
7357c5b6 6208
81ecdfbb 6209
7357c5b6
AM
6210fi
6211if test -z "$ac_cv_prog_RANLIB"; then
6212 ac_ct_RANLIB=$RANLIB
6213 # Extract the first word of "ranlib", so it can be a program name with args.
6214set dummy ranlib; ac_word=$2
81ecdfbb
RW
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216$as_echo_n "checking for $ac_word... " >&6; }
6217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
7357c5b6
AM
6219else
6220 if test -n "$ac_ct_RANLIB"; then
6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
ce2cded5 6225do
7357c5b6
AM
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6230 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6232 break 2
ce2cded5 6233 fi
7357c5b6 6234done
81ecdfbb
RW
6235 done
6236IFS=$as_save_IFS
7357c5b6 6237
ce2cded5 6238fi
7357c5b6
AM
6239fi
6240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6244else
81ecdfbb
RW
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246$as_echo "no" >&6; }
ce2cded5 6247fi
d7040cdb 6248
81ecdfbb
RW
6249 if test "x$ac_ct_RANLIB" = x; then
6250 RANLIB=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253yes:)
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256ac_tool_warned=yes ;;
6257esac
6258 RANLIB=$ac_ct_RANLIB
6259 fi
d7040cdb 6260else
7357c5b6 6261 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6262fi
6263
7357c5b6
AM
6264test -z "$RANLIB" && RANLIB=:
6265
6266
6267
6268
6269
6270
6271# Determine commands to create old-style static archives.
b214d478 6272old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6273old_postinstall_cmds='chmod 644 $oldlib'
6274old_postuninstall_cmds=
6275
6276if test -n "$RANLIB"; then
6277 case $host_os in
6278 openbsd*)
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6280 ;;
6281 *)
6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6283 ;;
6284 esac
6285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6286fi
d7040cdb 6287
3725885a
RW
6288case $host_os in
6289 darwin*)
6290 lock_old_archive_extraction=yes ;;
6291 *)
6292 lock_old_archive_extraction=no ;;
6293esac
6294
6295
6296
6297
6298
6299
d7040cdb
SE
6300
6301
6302
6303
d7040cdb 6304
7357c5b6
AM
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
6330
6331
6332
6333# If no C compiler was specified, use CC.
6334LTCC=${LTCC-"$CC"}
6335
6336# If no C compiler flags were specified, use CFLAGS.
6337LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6338
6339# Allow CC to be a program name with arguments.
6340compiler=$CC
6341
6342
6343# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6345$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6346if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
7357c5b6
AM
6348else
6349
6350# These are sane defaults that work on at least a few old systems.
6351# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6352
6353# Character class describing NM global symbol codes.
6354symcode='[BCDEGRST]'
6355
6356# Regexp to match symbols that can be accessed directly from C.
6357sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6358
6359# Define system-specific variables.
6360case $host_os in
6361aix*)
6362 symcode='[BCDT]'
6363 ;;
b214d478 6364cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6365 symcode='[ABCDGISTW]'
6366 ;;
6367hpux*)
6368 if test "$host_cpu" = ia64; then
6369 symcode='[ABCDEGRST]'
6370 fi
6371 ;;
6372irix* | nonstopux*)
6373 symcode='[BCDEGRST]'
6374 ;;
6375osf*)
6376 symcode='[BCDEGQRST]'
6377 ;;
6378solaris*)
6379 symcode='[BDRT]'
6380 ;;
6381sco3.2v5*)
6382 symcode='[DT]'
6383 ;;
6384sysv4.2uw2*)
6385 symcode='[DT]'
6386 ;;
6387sysv5* | sco5v6* | unixware* | OpenUNIX*)
6388 symcode='[ABDT]'
6389 ;;
6390sysv4)
6391 symcode='[DFNSTU]'
6392 ;;
6393esac
6394
6395# If we're using GNU nm, then use its standard symbol codes.
6396case `$NM -V 2>&1` in
6397*GNU* | *'with BFD'*)
6398 symcode='[ABCDGIRSTW]' ;;
6399esac
6400
6401# Transform an extracted symbol line into a proper C declaration.
6402# Some systems (esp. on ia64) link data and code symbols differently,
6403# so use this general approach.
6404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6405
6406# Transform an extracted symbol line into symbol name and symbol address
6407lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6408lt_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
6409
6410# Handle CRLF in mingw tool chain
6411opt_cr=
6412case $build_os in
6413mingw*)
6414 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415 ;;
6416esac
6417
6418# Try without a prefix underscore, then with it.
6419for ac_symprfx in "" "_"; do
6420
6421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422 symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424 # Write the raw and C identifiers.
6425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426 # Fake it for dumpbin and say T for any non-static function
6427 # and D for any global variable.
6428 # Also find C++ and __fastcall symbols from MSVC++,
6429 # which start with @ or ?.
6430 lt_cv_sys_global_symbol_pipe="$AWK '"\
6431" {last_section=section; section=\$ 3};"\
6432" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6433" \$ 0!~/External *\|/{next};"\
6434" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6435" {if(hide[section]) next};"\
6436" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6437" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6438" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6439" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6440" ' prfx=^$ac_symprfx"
6441 else
6442 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6443 fi
6444
6445 # Check to see that the pipe works correctly.
6446 pipe_works=no
6447
6448 rm -f conftest*
6449 cat > conftest.$ac_ext <<_LT_EOF
6450#ifdef __cplusplus
6451extern "C" {
6452#endif
6453char nm_test_var;
6454void nm_test_func(void);
6455void nm_test_func(void){}
6456#ifdef __cplusplus
ce2cded5 6457}
7357c5b6
AM
6458#endif
6459int main(){nm_test_var='a';nm_test_func();return(0);}
6460_LT_EOF
6461
81ecdfbb 6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6463 (eval $ac_compile) 2>&5
ce2cded5 6464 ac_status=$?
81ecdfbb
RW
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
7357c5b6
AM
6467 # Now try to grab the symbols.
6468 nlist=conftest.nm
3725885a
RW
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6470 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6471 ac_status=$?
81ecdfbb
RW
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6474 # Try sorting and uniquifying the output.
6475 if sort "$nlist" | uniq > "$nlist"T; then
6476 mv -f "$nlist"T "$nlist"
6477 else
6478 rm -f "$nlist"T
6479 fi
6bf9431b 6480
7357c5b6
AM
6481 # Make sure that we snagged all the symbols we need.
6482 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6483 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6484 cat <<_LT_EOF > conftest.$ac_ext
6485#ifdef __cplusplus
6486extern "C" {
6487#endif
d7040cdb 6488
7357c5b6
AM
6489_LT_EOF
6490 # Now generate the symbol file.
6491 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6492
7357c5b6 6493 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6494
7357c5b6
AM
6495/* The mapping between symbol names and symbols. */
6496const struct {
6497 const char *name;
6498 void *address;
6499}
6500lt__PROGRAM__LTX_preloaded_symbols[] =
6501{
6502 { "@PROGRAM@", (void *) 0 },
6503_LT_EOF
6504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6505 cat <<\_LT_EOF >> conftest.$ac_ext
6506 {0, (void *) 0}
6507};
d7040cdb 6508
7357c5b6
AM
6509/* This works around a problem in FreeBSD linker */
6510#ifdef FREEBSD_WORKAROUND
6511static const void *lt_preloaded_setup() {
6512 return lt__PROGRAM__LTX_preloaded_symbols;
6513}
ce2cded5 6514#endif
d7040cdb 6515
7357c5b6 6516#ifdef __cplusplus
ce2cded5 6517}
7357c5b6
AM
6518#endif
6519_LT_EOF
6520 # Now try linking the two files.
6521 mv conftest.$ac_objext conftstm.$ac_objext
6522 lt_save_LIBS="$LIBS"
6523 lt_save_CFLAGS="$CFLAGS"
6524 LIBS="conftstm.$ac_objext"
6525 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6527 (eval $ac_link) 2>&5
6528 ac_status=$?
81ecdfbb
RW
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6531 pipe_works=yes
6532 fi
6533 LIBS="$lt_save_LIBS"
6534 CFLAGS="$lt_save_CFLAGS"
6535 else
6536 echo "cannot find nm_test_func in $nlist" >&5
6537 fi
6538 else
6539 echo "cannot find nm_test_var in $nlist" >&5
6540 fi
6541 else
6542 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6543 fi
6544 else
6545 echo "$progname: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 fi
b214d478 6548 rm -rf conftest* conftst*
7357c5b6
AM
6549
6550 # Do not use the global_symbol_pipe unless it works.
6551 if test "$pipe_works" = yes; then
6552 break
6553 else
6554 lt_cv_sys_global_symbol_pipe=
6555 fi
6556done
d7040cdb 6557
ce2cded5 6558fi
7357c5b6
AM
6559
6560if test -z "$lt_cv_sys_global_symbol_pipe"; then
6561 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6562fi
7357c5b6 6563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6565$as_echo "failed" >&6; }
7357c5b6 6566else
81ecdfbb
RW
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6568$as_echo "ok" >&6; }
ce2cded5 6569fi
d7040cdb 6570
d7040cdb 6571
d7040cdb 6572
d7040cdb 6573
d7040cdb 6574
d7040cdb 6575
d7040cdb 6576
d7040cdb 6577
d7040cdb 6578
d7040cdb 6579
d7040cdb 6580
d7040cdb 6581
7357c5b6
AM
6582
6583
6584
b214d478
SE
6585
6586
6587
6588
6589
7357c5b6
AM
6590
6591
81ecdfbb
RW
6592# Check whether --enable-libtool-lock was given.
6593if test "${enable_libtool_lock+set}" = set; then :
6594 enableval=$enable_libtool_lock;
6595fi
7357c5b6 6596
7357c5b6
AM
6597test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6598
6599# Some flags need to be propagated to the compiler or linker for good
6600# libtool support.
6601case $host in
6602ia64-*-hpux*)
6603 # Find out which ABI we are using.
6604 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6606 (eval $ac_compile) 2>&5
6607 ac_status=$?
81ecdfbb
RW
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
7357c5b6
AM
6610 case `/usr/bin/file conftest.$ac_objext` in
6611 *ELF-32*)
6612 HPUX_IA64_MODE="32"
6613 ;;
6614 *ELF-64*)
6615 HPUX_IA64_MODE="64"
6616 ;;
6617 esac
6618 fi
6619 rm -rf conftest*
6620 ;;
6621*-*-irix6*)
6622 # Find out which ABI we are using.
3725885a 6623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
81ecdfbb
RW
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
7357c5b6
AM
6629 if test "$lt_cv_prog_gnu_ld" = yes; then
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 LD="${LD-ld} -melf32bsmip"
6633 ;;
6634 *N32*)
6635 LD="${LD-ld} -melf32bmipn32"
6636 ;;
6637 *64-bit*)
6638 LD="${LD-ld} -melf64bmip"
6639 ;;
6640 esac
6641 else
6642 case `/usr/bin/file conftest.$ac_objext` in
6643 *32-bit*)
6644 LD="${LD-ld} -32"
6645 ;;
6646 *N32*)
6647 LD="${LD-ld} -n32"
6648 ;;
6649 *64-bit*)
6650 LD="${LD-ld} -64"
6651 ;;
6652 esac
6653 fi
6654 fi
6655 rm -rf conftest*
6656 ;;
6657
cc9afea3 6658x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6659s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6660 # Find out which ABI we are using.
6661 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
81ecdfbb
RW
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
7357c5b6
AM
6667 case `/usr/bin/file conftest.o` in
6668 *32-bit*)
6669 case $host in
6670 x86_64-*kfreebsd*-gnu)
6671 LD="${LD-ld} -m elf_i386_fbsd"
6672 ;;
6673 x86_64-*linux*)
6d2920c8
L
6674 case `/usr/bin/file conftest.o` in
6675 *x86-64*)
6676 LD="${LD-ld} -m elf32_x86_64"
6677 ;;
6678 *)
6679 LD="${LD-ld} -m elf_i386"
6680 ;;
6681 esac
7357c5b6 6682 ;;
cc9afea3
AM
6683 powerpc64le-*linux*)
6684 LD="${LD-ld} -m elf32lppclinux"
6685 ;;
6686 powerpc64-*linux*)
7357c5b6
AM
6687 LD="${LD-ld} -m elf32ppclinux"
6688 ;;
6689 s390x-*linux*)
6690 LD="${LD-ld} -m elf_s390"
6691 ;;
6692 sparc64-*linux*)
6693 LD="${LD-ld} -m elf32_sparc"
6694 ;;
6695 esac
6696 ;;
6697 *64-bit*)
6698 case $host in
6699 x86_64-*kfreebsd*-gnu)
6700 LD="${LD-ld} -m elf_x86_64_fbsd"
6701 ;;
6702 x86_64-*linux*)
6703 LD="${LD-ld} -m elf_x86_64"
6704 ;;
cc9afea3
AM
6705 powerpcle-*linux*)
6706 LD="${LD-ld} -m elf64lppc"
6707 ;;
6708 powerpc-*linux*)
7357c5b6
AM
6709 LD="${LD-ld} -m elf64ppc"
6710 ;;
6711 s390*-*linux*|s390*-*tpf*)
6712 LD="${LD-ld} -m elf64_s390"
6713 ;;
6714 sparc*-*linux*)
6715 LD="${LD-ld} -m elf64_sparc"
6716 ;;
6717 esac
6718 ;;
6719 esac
6720 fi
6721 rm -rf conftest*
6722 ;;
6723
6724*-*-sco3.2v5*)
6725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6726 SAVE_CFLAGS="$CFLAGS"
6727 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6729$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6730if test "${lt_cv_cc_needs_belf+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
ce2cded5 6732else
7357c5b6
AM
6733 ac_ext=c
6734ac_cpp='$CPP $CPPFLAGS'
6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738
81ecdfbb 6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6740/* end confdefs.h. */
20e95c23 6741
7357c5b6
AM
6742int
6743main ()
6744{
6745
6746 ;
6747 return 0;
6748}
6bf9431b 6749_ACEOF
81ecdfbb 6750if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6751 lt_cv_cc_needs_belf=yes
6bf9431b 6752else
81ecdfbb 6753 lt_cv_cc_needs_belf=no
ce2cded5 6754fi
81ecdfbb
RW
6755rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6757 ac_ext=c
6758ac_cpp='$CPP $CPPFLAGS'
6759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6762
b214d478 6763fi
81ecdfbb
RW
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6765$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
6766 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6767 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6768 CFLAGS="$SAVE_CFLAGS"
6769 fi
6770 ;;
6771sparc*-*solaris*)
6772 # Find out which ABI we are using.
6773 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
6775 (eval $ac_compile) 2>&5
6776 ac_status=$?
81ecdfbb
RW
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
b214d478
SE
6779 case `/usr/bin/file conftest.o` in
6780 *64-bit*)
6781 case $lt_cv_prog_gnu_ld in
6782 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6783 *)
6784 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6785 LD="${LD-ld} -64"
6786 fi
6787 ;;
6788 esac
6789 ;;
6790 esac
6791 fi
6792 rm -rf conftest*
6793 ;;
6794esac
6795
6796need_locks="$enable_libtool_lock"
6797
6798
6799 case $host_os in
6800 rhapsody* | darwin*)
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6803set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
b214d478
SE
6808else
6809 if test -n "$DSYMUTIL"; then
6810 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6819 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6821 break 2
6822 fi
6823done
81ecdfbb
RW
6824 done
6825IFS=$as_save_IFS
b214d478
SE
6826
6827fi
6828fi
6829DSYMUTIL=$ac_cv_prog_DSYMUTIL
6830if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6832$as_echo "$DSYMUTIL" >&6; }
b214d478 6833else
81ecdfbb
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
b214d478
SE
6836fi
6837
81ecdfbb 6838
b214d478
SE
6839fi
6840if test -z "$ac_cv_prog_DSYMUTIL"; then
6841 ac_ct_DSYMUTIL=$DSYMUTIL
6842 # Extract the first word of "dsymutil", so it can be a program name with args.
6843set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
6846if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
b214d478
SE
6848else
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6859 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6861 break 2
6862 fi
6863done
81ecdfbb
RW
6864 done
6865IFS=$as_save_IFS
b214d478 6866
b214d478
SE
6867fi
6868fi
6869ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6870if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6872$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 6873else
81ecdfbb
RW
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
b214d478
SE
6876fi
6877
81ecdfbb
RW
6878 if test "x$ac_ct_DSYMUTIL" = x; then
6879 DSYMUTIL=":"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882yes:)
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885ac_tool_warned=yes ;;
6886esac
6887 DSYMUTIL=$ac_ct_DSYMUTIL
6888 fi
b214d478
SE
6889else
6890 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6891fi
6892
6893 if test -n "$ac_tool_prefix"; then
6894 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6895set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
6898if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
b214d478
SE
6900else
6901 if test -n "$NMEDIT"; then
6902 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6911 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6913 break 2
6914 fi
6915done
81ecdfbb
RW
6916 done
6917IFS=$as_save_IFS
b214d478
SE
6918
6919fi
6920fi
6921NMEDIT=$ac_cv_prog_NMEDIT
6922if test -n "$NMEDIT"; then
81ecdfbb
RW
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6924$as_echo "$NMEDIT" >&6; }
b214d478 6925else
81ecdfbb
RW
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
b214d478
SE
6928fi
6929
81ecdfbb 6930
b214d478
SE
6931fi
6932if test -z "$ac_cv_prog_NMEDIT"; then
6933 ac_ct_NMEDIT=$NMEDIT
6934 # Extract the first word of "nmedit", so it can be a program name with args.
6935set dummy nmedit; ac_word=$2
81ecdfbb
RW
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
b214d478
SE
6940else
6941 if test -n "$ac_ct_NMEDIT"; then
6942 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6951 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6953 break 2
6954 fi
6955done
81ecdfbb
RW
6956 done
6957IFS=$as_save_IFS
b214d478 6958
b214d478
SE
6959fi
6960fi
6961ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6962if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6964$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 6965else
81ecdfbb
RW
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
b214d478
SE
6968fi
6969
81ecdfbb
RW
6970 if test "x$ac_ct_NMEDIT" = x; then
6971 NMEDIT=":"
6972 else
6973 case $cross_compiling:$ac_tool_warned in
6974yes:)
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977ac_tool_warned=yes ;;
6978esac
6979 NMEDIT=$ac_ct_NMEDIT
6980 fi
b214d478
SE
6981else
6982 NMEDIT="$ac_cv_prog_NMEDIT"
6983fi
6984
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if test "${ac_cv_prog_LIPO+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
b214d478
SE
6992else
6993 if test -n "$LIPO"; then
6994 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7003 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7005 break 2
7006 fi
7007done
81ecdfbb
RW
7008 done
7009IFS=$as_save_IFS
b214d478
SE
7010
7011fi
7012fi
7013LIPO=$ac_cv_prog_LIPO
7014if test -n "$LIPO"; then
81ecdfbb
RW
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7016$as_echo "$LIPO" >&6; }
b214d478 7017else
81ecdfbb
RW
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
b214d478
SE
7020fi
7021
81ecdfbb 7022
b214d478
SE
7023fi
7024if test -z "$ac_cv_prog_LIPO"; then
7025 ac_ct_LIPO=$LIPO
7026 # Extract the first word of "lipo", so it can be a program name with args.
7027set dummy lipo; ac_word=$2
81ecdfbb
RW
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
b214d478
SE
7032else
7033 if test -n "$ac_ct_LIPO"; then
7034 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7043 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7045 break 2
7046 fi
7047done
81ecdfbb
RW
7048 done
7049IFS=$as_save_IFS
b214d478 7050
b214d478
SE
7051fi
7052fi
7053ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7054if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7056$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7057else
81ecdfbb
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
b214d478
SE
7060fi
7061
81ecdfbb
RW
7062 if test "x$ac_ct_LIPO" = x; then
7063 LIPO=":"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 LIPO=$ac_ct_LIPO
7072 fi
b214d478
SE
7073else
7074 LIPO="$ac_cv_prog_LIPO"
7075fi
7076
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
7082if test "${ac_cv_prog_OTOOL+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
b214d478
SE
7084else
7085 if test -n "$OTOOL"; then
7086 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7095 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7097 break 2
7098 fi
7099done
81ecdfbb
RW
7100 done
7101IFS=$as_save_IFS
b214d478
SE
7102
7103fi
7104fi
7105OTOOL=$ac_cv_prog_OTOOL
7106if test -n "$OTOOL"; then
81ecdfbb
RW
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7108$as_echo "$OTOOL" >&6; }
b214d478 7109else
81ecdfbb
RW
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
b214d478
SE
7112fi
7113
81ecdfbb 7114
b214d478
SE
7115fi
7116if test -z "$ac_cv_prog_OTOOL"; then
7117 ac_ct_OTOOL=$OTOOL
7118 # Extract the first word of "otool", so it can be a program name with args.
7119set dummy otool; ac_word=$2
81ecdfbb
RW
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
b214d478
SE
7124else
7125 if test -n "$ac_ct_OTOOL"; then
7126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7135 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7137 break 2
7138 fi
7139done
81ecdfbb
RW
7140 done
7141IFS=$as_save_IFS
b214d478 7142
b214d478
SE
7143fi
7144fi
7145ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7146if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7148$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7149else
81ecdfbb
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
b214d478
SE
7152fi
7153
81ecdfbb
RW
7154 if test "x$ac_ct_OTOOL" = x; then
7155 OTOOL=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163 OTOOL=$ac_ct_OTOOL
7164 fi
b214d478
SE
7165else
7166 OTOOL="$ac_cv_prog_OTOOL"
7167fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7171set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
7174if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
b214d478
SE
7176else
7177 if test -n "$OTOOL64"; then
7178 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7187 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7189 break 2
7190 fi
7191done
81ecdfbb
RW
7192 done
7193IFS=$as_save_IFS
b214d478
SE
7194
7195fi
7196fi
7197OTOOL64=$ac_cv_prog_OTOOL64
7198if test -n "$OTOOL64"; then
81ecdfbb
RW
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7200$as_echo "$OTOOL64" >&6; }
b214d478 7201else
81ecdfbb
RW
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
b214d478
SE
7204fi
7205
81ecdfbb 7206
b214d478
SE
7207fi
7208if test -z "$ac_cv_prog_OTOOL64"; then
7209 ac_ct_OTOOL64=$OTOOL64
7210 # Extract the first word of "otool64", so it can be a program name with args.
7211set dummy otool64; ac_word=$2
81ecdfbb
RW
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
b214d478
SE
7216else
7217 if test -n "$ac_ct_OTOOL64"; then
7218 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7227 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7229 break 2
7230 fi
7231done
81ecdfbb
RW
7232 done
7233IFS=$as_save_IFS
b214d478 7234
b214d478
SE
7235fi
7236fi
7237ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7238if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7240$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7241else
81ecdfbb
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
b214d478
SE
7244fi
7245
81ecdfbb
RW
7246 if test "x$ac_ct_OTOOL64" = x; then
7247 OTOOL64=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255 OTOOL64=$ac_ct_OTOOL64
7256 fi
b214d478
SE
7257else
7258 OTOOL64="$ac_cv_prog_OTOOL64"
7259fi
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
81ecdfbb
RW
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7288$as_echo_n "checking for -single_module linker flag... " >&6; }
7289if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
b214d478
SE
7291else
7292 lt_cv_apple_cc_single_mod=no
7293 if test -z "${LT_MULTI_MODULE}"; then
7294 # By default we will add the -single_module flag. You can override
7295 # by either setting the environment variable LT_MULTI_MODULE
7296 # non-empty at configure time, or by adding -multi_module to the
7297 # link flags.
7298 rm -rf libconftest.dylib*
7299 echo "int foo(void){return 1;}" > conftest.c
7300 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7301-dynamiclib -Wl,-single_module conftest.c" >&5
7302 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7303 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7304 _lt_result=$?
7305 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7306 lt_cv_apple_cc_single_mod=yes
7307 else
7308 cat conftest.err >&5
7309 fi
7310 rm -rf libconftest.dylib*
7311 rm -f conftest.*
7312 fi
7313fi
81ecdfbb
RW
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7315$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7317$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7318if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7319 $as_echo_n "(cached) " >&6
b214d478
SE
7320else
7321 lt_cv_ld_exported_symbols_list=no
7322 save_LDFLAGS=$LDFLAGS
7323 echo "_main" > conftest.sym
7324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7326/* end confdefs.h. */
7327
7328int
7329main ()
7330{
7331
7332 ;
7333 return 0;
7334}
7335_ACEOF
81ecdfbb 7336if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7337 lt_cv_ld_exported_symbols_list=yes
7338else
81ecdfbb 7339 lt_cv_ld_exported_symbols_list=no
b214d478 7340fi
81ecdfbb
RW
7341rm -f core conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7343 LDFLAGS="$save_LDFLAGS"
7344
7345fi
81ecdfbb
RW
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7347$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7349$as_echo_n "checking for -force_load linker flag... " >&6; }
7350if test "${lt_cv_ld_force_load+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352else
7353 lt_cv_ld_force_load=no
7354 cat > conftest.c << _LT_EOF
7355int forced_loaded() { return 2;}
7356_LT_EOF
7357 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7358 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7359 echo "$AR cru libconftest.a conftest.o" >&5
7360 $AR cru libconftest.a conftest.o 2>&5
7361 cat > conftest.c << _LT_EOF
7362int main() { return 0;}
7363_LT_EOF
7364 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7365 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7366 _lt_result=$?
7367 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7368 lt_cv_ld_force_load=yes
7369 else
7370 cat conftest.err >&5
7371 fi
7372 rm -f conftest.err libconftest.a conftest conftest.c
7373 rm -rf conftest.dSYM
7374
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7377$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
7378 case $host_os in
7379 rhapsody* | darwin1.[012])
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7381 darwin1.*)
7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383 darwin*) # darwin 5.x on
7384 # if running on 10.5 or later, the deployment target defaults
7385 # to the OS version, if on x86, and 10.4, the deployment
7386 # target defaults to 10.4. Don't you love it?
7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7390 10.[012][,.]*)
b214d478
SE
7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7392 10.*)
7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7394 esac
7395 ;;
7396 esac
7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7398 _lt_dar_single_mod='$single_module'
7399 fi
7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7402 else
7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404 fi
3725885a 7405 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
7406 _lt_dsymutil='~$DSYMUTIL $lib || :'
7407 else
7408 _lt_dsymutil=
7409 fi
7410 ;;
7411 esac
7412
b214d478 7413for ac_header in dlfcn.h
81ecdfbb
RW
7414do :
7415 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7416"
7417if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7418 cat >>confdefs.h <<_ACEOF
81ecdfbb 7419#define HAVE_DLFCN_H 1
b214d478
SE
7420_ACEOF
7421
7422fi
7423
7424done
7425
7426
7427
3725885a
RW
7428
7429
b214d478
SE
7430# Set options
7431
7432
7433
7434 enable_dlopen=no
7435
7436
7437 enable_win32_dll=no
7438
7439
81ecdfbb
RW
7440 # Check whether --enable-shared was given.
7441if test "${enable_shared+set}" = set; then :
7442 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7443 case $enableval in
7444 yes) enable_shared=yes ;;
7445 no) enable_shared=no ;;
7446 *)
7447 enable_shared=no
7448 # Look at the argument we got. We use all the common list separators.
7449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7450 for pkg in $enableval; do
7451 IFS="$lt_save_ifs"
7452 if test "X$pkg" = "X$p"; then
7453 enable_shared=yes
7454 fi
7455 done
7456 IFS="$lt_save_ifs"
7457 ;;
7458 esac
7459else
7460 enable_shared=yes
81ecdfbb
RW
7461fi
7462
b214d478
SE
7463
7464
7465
7466
7467
7468
7469
7470
81ecdfbb
RW
7471 # Check whether --enable-static was given.
7472if test "${enable_static+set}" = set; then :
7473 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7474 case $enableval in
7475 yes) enable_static=yes ;;
7476 no) enable_static=no ;;
7477 *)
7478 enable_static=no
7479 # Look at the argument we got. We use all the common list separators.
7480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7481 for pkg in $enableval; do
7482 IFS="$lt_save_ifs"
7483 if test "X$pkg" = "X$p"; then
7484 enable_static=yes
7485 fi
7486 done
7487 IFS="$lt_save_ifs"
7488 ;;
7489 esac
7490else
7491 enable_static=yes
81ecdfbb
RW
7492fi
7493
b214d478
SE
7494
7495
7496
7497
7498
7499
7500
7501
7502
81ecdfbb
RW
7503# Check whether --with-pic was given.
7504if test "${with_pic+set}" = set; then :
7505 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7506else
7507 pic_mode=default
81ecdfbb
RW
7508fi
7509
b214d478
SE
7510
7511test -z "$pic_mode" && pic_mode=default
7512
7513
7514
7515
7516
7517
7518
81ecdfbb
RW
7519 # Check whether --enable-fast-install was given.
7520if test "${enable_fast_install+set}" = set; then :
7521 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7522 case $enableval in
7523 yes) enable_fast_install=yes ;;
7524 no) enable_fast_install=no ;;
7525 *)
7526 enable_fast_install=no
7527 # Look at the argument we got. We use all the common list separators.
7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7529 for pkg in $enableval; do
7530 IFS="$lt_save_ifs"
7531 if test "X$pkg" = "X$p"; then
7532 enable_fast_install=yes
7533 fi
7534 done
7535 IFS="$lt_save_ifs"
7357c5b6
AM
7536 ;;
7537 esac
b214d478
SE
7538else
7539 enable_fast_install=yes
81ecdfbb
RW
7540fi
7541
d7040cdb 7542
ce2cded5
L
7543
7544
ce2cded5 7545
252b5132 7546
d7040cdb 7547
252b5132 7548
6bf9431b 7549
252b5132 7550
6bf9431b 7551
ce2cded5
L
7552# This can be used to rebuild libtool when needed
7553LIBTOOL_DEPS="$ltmain"
6bf9431b 7554
ce2cded5
L
7555# Always use our own libtool.
7556LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7557
6bf9431b 7558
252b5132 7559
6bf9431b 7560
252b5132 7561
252b5132 7562
d7040cdb 7563
6bf9431b 7564
252b5132 7565
d7040cdb 7566
d7040cdb 7567
d7040cdb 7568
d7040cdb 7569
d7040cdb 7570
d7040cdb 7571
d7040cdb 7572
d7040cdb 7573
d7040cdb 7574
d7040cdb 7575
d7040cdb 7576
d7040cdb
SE
7577
7578
7579
3725885a 7580
d7040cdb
SE
7581
7582
ce2cded5 7583test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
ce2cded5
L
7598if test -n "${ZSH_VERSION+set}" ; then
7599 setopt NO_GLOB_SUBST
7600fi
d7040cdb 7601
81ecdfbb
RW
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7603$as_echo_n "checking for objdir... " >&6; }
7604if test "${lt_cv_objdir+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
ce2cded5
L
7606else
7607 rm -f .libs 2>/dev/null
7608mkdir .libs 2>/dev/null
7609if test -d .libs; then
7610 lt_cv_objdir=.libs
7611else
7612 # MS-DOS does not allow filenames that begin with a dot.
7613 lt_cv_objdir=_libs
7614fi
7615rmdir .libs 2>/dev/null
7616fi
81ecdfbb
RW
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7618$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7619objdir=$lt_cv_objdir
d7040cdb
SE
7620
7621
7622
7623
7624
ce2cded5
L
7625cat >>confdefs.h <<_ACEOF
7626#define LT_OBJDIR "$lt_cv_objdir/"
7627_ACEOF
d7040cdb
SE
7628
7629
7630
7631
ce2cded5
L
7632case $host_os in
7633aix3*)
7634 # AIX sometimes has problems with the GCC collect2 program. For some
7635 # reason, if we set the COLLECT_NAMES environment variable, the problems
7636 # vanish in a puff of smoke.
7637 if test "X${COLLECT_NAMES+set}" != Xset; then
7638 COLLECT_NAMES=
7639 export COLLECT_NAMES
7640 fi
7641 ;;
7642esac
d7040cdb 7643
ce2cded5
L
7644# Global variables:
7645ofile=libtool
7646can_build_shared=yes
d7040cdb 7647
ce2cded5
L
7648# All known linkers require a `.a' archive for static linking (except MSVC,
7649# which needs '.lib').
7650libext=a
d7040cdb 7651
ce2cded5 7652with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7653
ce2cded5
L
7654old_CC="$CC"
7655old_CFLAGS="$CFLAGS"
d7040cdb 7656
ce2cded5
L
7657# Set sane defaults for various variables
7658test -z "$CC" && CC=cc
7659test -z "$LTCC" && LTCC=$CC
7660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7661test -z "$LD" && LD=ld
7662test -z "$ac_objext" && ac_objext=o
d7040cdb 7663
ce2cded5
L
7664for cc_temp in $compiler""; do
7665 case $cc_temp in
7666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7668 \-*) ;;
7669 *) break;;
7670 esac
7671done
3725885a 7672cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7673
7674
ce2cded5
L
7675# Only perform the check for file, if the check method requires it
7676test -z "$MAGIC_CMD" && MAGIC_CMD=file
7677case $deplibs_check_method in
7678file_magic*)
7679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7681$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7682if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
ce2cded5
L
7684else
7685 case $MAGIC_CMD in
7686[\\/*] | ?:[\\/]*)
7687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688 ;;
7689*)
7690 lt_save_MAGIC_CMD="$MAGIC_CMD"
7691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7693 for ac_dir in $ac_dummy; do
7694 IFS="$lt_save_ifs"
7695 test -z "$ac_dir" && ac_dir=.
7696 if test -f $ac_dir/${ac_tool_prefix}file; then
7697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7698 if test -n "$file_magic_test_file"; then
7699 case $deplibs_check_method in
7700 "file_magic "*)
7701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7704 $EGREP "$file_magic_regex" > /dev/null; then
7705 :
7706 else
7707 cat <<_LT_EOF 1>&2
d7040cdb 7708
ce2cded5
L
7709*** Warning: the command libtool uses to detect shared libraries,
7710*** $file_magic_cmd, produces output that libtool cannot recognize.
7711*** The result is that libtool may fail to recognize shared libraries
7712*** as such. This will affect the creation of libtool libraries that
7713*** depend on shared libraries, but programs linked with such libtool
7714*** libraries will work regardless of this problem. Nevertheless, you
7715*** may want to report the problem to your system manager and/or to
7716*** bug-libtool@gnu.org
d7040cdb 7717
ce2cded5
L
7718_LT_EOF
7719 fi ;;
7720 esac
7721 fi
7722 break
7723 fi
7724 done
7725 IFS="$lt_save_ifs"
7726 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 ;;
7728esac
7729fi
d7040cdb 7730
ce2cded5
L
7731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7734$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7735else
81ecdfbb
RW
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
ce2cded5 7738fi
d7040cdb
SE
7739
7740
7741
7742
7743
ce2cded5
L
7744if test -z "$lt_cv_path_MAGIC_CMD"; then
7745 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7747$as_echo_n "checking for file... " >&6; }
7748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
ce2cded5
L
7750else
7751 case $MAGIC_CMD in
7752[\\/*] | ?:[\\/]*)
7753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754 ;;
7755*)
7756 lt_save_MAGIC_CMD="$MAGIC_CMD"
7757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759 for ac_dir in $ac_dummy; do
7760 IFS="$lt_save_ifs"
7761 test -z "$ac_dir" && ac_dir=.
7762 if test -f $ac_dir/file; then
7763 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7764 if test -n "$file_magic_test_file"; then
7765 case $deplibs_check_method in
7766 "file_magic "*)
7767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770 $EGREP "$file_magic_regex" > /dev/null; then
7771 :
7772 else
7773 cat <<_LT_EOF 1>&2
d7040cdb 7774
ce2cded5
L
7775*** Warning: the command libtool uses to detect shared libraries,
7776*** $file_magic_cmd, produces output that libtool cannot recognize.
7777*** The result is that libtool may fail to recognize shared libraries
7778*** as such. This will affect the creation of libtool libraries that
7779*** depend on shared libraries, but programs linked with such libtool
7780*** libraries will work regardless of this problem. Nevertheless, you
7781*** may want to report the problem to your system manager and/or to
7782*** bug-libtool@gnu.org
d7040cdb 7783
ce2cded5
L
7784_LT_EOF
7785 fi ;;
7786 esac
7787 fi
7788 break
7789 fi
7790 done
7791 IFS="$lt_save_ifs"
7792 MAGIC_CMD="$lt_save_MAGIC_CMD"
7793 ;;
7794esac
7795fi
d7040cdb 7796
ce2cded5
L
7797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7800$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7801else
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
ce2cded5 7804fi
d7040cdb
SE
7805
7806
ce2cded5
L
7807 else
7808 MAGIC_CMD=:
7809 fi
7810fi
d7040cdb 7811
ce2cded5
L
7812 fi
7813 ;;
7814esac
d7040cdb 7815
ce2cded5 7816# Use C for the default configuration in the libtool script
d7040cdb 7817
ce2cded5
L
7818lt_save_CC="$CC"
7819ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7824
7825
ce2cded5
L
7826# Source file extension for C test sources.
7827ac_ext=c
d7040cdb 7828
ce2cded5
L
7829# Object file extension for compiled C test sources.
7830objext=o
7831objext=$objext
d7040cdb 7832
ce2cded5
L
7833# Code to be used in simple compile tests
7834lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 7835
ce2cded5
L
7836# Code to be used in simple link tests
7837lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
7838
7839
7840
7841
7842
7843
7844
ce2cded5
L
7845# If no C compiler was specified, use CC.
7846LTCC=${LTCC-"$CC"}
d7040cdb 7847
ce2cded5
L
7848# If no C compiler flags were specified, use CFLAGS.
7849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 7850
ce2cded5
L
7851# Allow CC to be a program name with arguments.
7852compiler=$CC
d7040cdb 7853
ce2cded5
L
7854# Save the default compiler, since it gets overwritten when the other
7855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7856compiler_DEFAULT=$CC
d7040cdb 7857
ce2cded5
L
7858# save warnings/boilerplate of simple test code
7859ac_outfile=conftest.$ac_objext
7860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7862_lt_compiler_boilerplate=`cat conftest.err`
7863$RM conftest*
d7040cdb 7864
ce2cded5
L
7865ac_outfile=conftest.$ac_objext
7866echo "$lt_simple_link_test_code" >conftest.$ac_ext
7867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868_lt_linker_boilerplate=`cat conftest.err`
b214d478 7869$RM -r conftest*
d7040cdb
SE
7870
7871
ce2cded5
L
7872## CAVEAT EMPTOR:
7873## There is no encapsulation within the following macros, do not change
7874## the running order or otherwise move them around unless you know exactly
7875## what you are doing...
7876if test -n "$compiler"; then
d7040cdb 7877
ce2cded5 7878lt_prog_compiler_no_builtin_flag=
d7040cdb 7879
ce2cded5 7880if test "$GCC" = yes; then
3725885a
RW
7881 case $cc_basename in
7882 nvcc*)
7883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7884 *)
7885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7886 esac
d7040cdb 7887
81ecdfbb
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7889$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7890if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
ce2cded5
L
7892else
7893 lt_cv_prog_compiler_rtti_exceptions=no
7894 ac_outfile=conftest.$ac_objext
7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="-fno-rtti -fno-exceptions"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 # The option is referenced via a variable to avoid confusing sed.
7902 lt_compile=`echo "$ac_compile" | $SED \
7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7905 -e 's:$: $lt_compiler_flag:'`
3725885a 7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7907 (eval "$lt_compile" 2>conftest.err)
7908 ac_status=$?
7909 cat conftest.err >&5
3725885a 7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7911 if (exit $ac_status) && test -s "$ac_outfile"; then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings other than the usual output.
3725885a 7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_rtti_exceptions=yes
7918 fi
7919 fi
7920 $RM conftest*
d7040cdb 7921
ce2cded5 7922fi
81ecdfbb
RW
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7924$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 7925
ce2cded5
L
7926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7928else
7929 :
7930fi
d7040cdb 7931
ce2cded5 7932fi
d7040cdb
SE
7933
7934
7935
7936
7937
7938
ce2cded5
L
7939 lt_prog_compiler_wl=
7940lt_prog_compiler_pic=
7941lt_prog_compiler_static=
d7040cdb 7942
81ecdfbb
RW
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7944$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 7945
ce2cded5
L
7946 if test "$GCC" = yes; then
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_static='-static'
d7040cdb 7949
ce2cded5
L
7950 case $host_os in
7951 aix*)
7952 # All AIX code is PIC.
7953 if test "$host_cpu" = ia64; then
7954 # AIX 5 now supports IA64 processor
7955 lt_prog_compiler_static='-Bstatic'
7956 fi
6c9c0a50 7957 lt_prog_compiler_pic='-fPIC'
ce2cded5 7958 ;;
d7040cdb 7959
ce2cded5 7960 amigaos*)
b214d478
SE
7961 case $host_cpu in
7962 powerpc)
7963 # see comment about AmigaOS4 .so support
7964 lt_prog_compiler_pic='-fPIC'
7965 ;;
7966 m68k)
7967 # FIXME: we need at least 68020 code to build shared libraries, but
7968 # adding the `-m68020' flag to GCC prevents building anything better,
7969 # like `-m68040'.
7970 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7971 ;;
7972 esac
ce2cded5 7973 ;;
d7040cdb 7974
ce2cded5
L
7975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7976 # PIC is the default for these OSes.
7977 ;;
d7040cdb 7978
b214d478 7979 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
7980 # This hack is so that the source file can tell whether it is being
7981 # built for inclusion in a dll (and should export symbols for example).
7982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7983 # (--disable-auto-import) libraries
7984 lt_prog_compiler_pic='-DDLL_EXPORT'
7985 ;;
d7040cdb 7986
ce2cded5
L
7987 darwin* | rhapsody*)
7988 # PIC is the default on this platform
7989 # Common symbols not allowed in MH_DYLIB files
7990 lt_prog_compiler_pic='-fno-common'
7991 ;;
d7040cdb 7992
3725885a
RW
7993 haiku*)
7994 # PIC is the default for Haiku.
7995 # The "-static" flag exists, but is broken.
7996 lt_prog_compiler_static=
7997 ;;
7998
ce2cded5 7999 hpux*)
b214d478
SE
8000 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8001 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8002 # sets the default TLS model and affects inlining.
ce2cded5 8003 case $host_cpu in
b214d478 8004 hppa*64*)
ce2cded5
L
8005 # +Z the default
8006 ;;
8007 *)
8008 lt_prog_compiler_pic='-fPIC'
8009 ;;
8010 esac
8011 ;;
d7040cdb 8012
ce2cded5
L
8013 interix[3-9]*)
8014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8015 # Instead, we relocate shared libraries at runtime.
8016 ;;
d7040cdb 8017
ce2cded5
L
8018 msdosdjgpp*)
8019 # Just because we use GCC doesn't mean we suddenly get shared libraries
8020 # on systems that don't support them.
8021 lt_prog_compiler_can_build_shared=no
8022 enable_shared=no
8023 ;;
d7040cdb 8024
ce2cded5
L
8025 *nto* | *qnx*)
8026 # QNX uses GNU C++, but need to define -shared option too, otherwise
8027 # it will coredump.
8028 lt_prog_compiler_pic='-fPIC -shared'
8029 ;;
d7040cdb 8030
ce2cded5
L
8031 sysv4*MP*)
8032 if test -d /usr/nec; then
8033 lt_prog_compiler_pic=-Kconform_pic
8034 fi
8035 ;;
d7040cdb 8036
ce2cded5
L
8037 *)
8038 lt_prog_compiler_pic='-fPIC'
8039 ;;
8040 esac
3725885a
RW
8041
8042 case $cc_basename in
8043 nvcc*) # Cuda Compiler Driver 2.2
8044 lt_prog_compiler_wl='-Xlinker '
8045 lt_prog_compiler_pic='-Xcompiler -fPIC'
8046 ;;
8047 esac
ce2cded5
L
8048 else
8049 # PORTME Check for flag to pass linker flags through the system compiler.
8050 case $host_os in
8051 aix*)
8052 lt_prog_compiler_wl='-Wl,'
8053 if test "$host_cpu" = ia64; then
8054 # AIX 5 now supports IA64 processor
8055 lt_prog_compiler_static='-Bstatic'
8056 else
8057 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8058 fi
8059 ;;
d7040cdb 8060
b214d478 8061 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8062 # This hack is so that the source file can tell whether it is being
8063 # built for inclusion in a dll (and should export symbols for example).
8064 lt_prog_compiler_pic='-DDLL_EXPORT'
8065 ;;
d7040cdb 8066
ce2cded5
L
8067 hpux9* | hpux10* | hpux11*)
8068 lt_prog_compiler_wl='-Wl,'
8069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8070 # not for PA HP-UX.
8071 case $host_cpu in
8072 hppa*64*|ia64*)
8073 # +Z the default
8074 ;;
8075 *)
8076 lt_prog_compiler_pic='+Z'
8077 ;;
8078 esac
8079 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8080 lt_prog_compiler_static='${wl}-a ${wl}archive'
8081 ;;
d7040cdb 8082
ce2cded5
L
8083 irix5* | irix6* | nonstopux*)
8084 lt_prog_compiler_wl='-Wl,'
8085 # PIC (with -KPIC) is the default.
8086 lt_prog_compiler_static='-non_shared'
8087 ;;
d7040cdb 8088
58e24671 8089 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8090 case $cc_basename in
b214d478
SE
8091 # old Intel for x86_64 which still supported -KPIC.
8092 ecc*)
ce2cded5
L
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-static'
8096 ;;
b214d478
SE
8097 # icc used to be incompatible with GCC.
8098 # ICC 10 doesn't accept -KPIC any more.
8099 icc* | ifort*)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-fPIC'
8102 lt_prog_compiler_static='-static'
8103 ;;
8104 # Lahey Fortran 8.1.
8105 lf95*)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='--shared'
8108 lt_prog_compiler_static='--static'
8109 ;;
3725885a 8110 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8111 # Portland Group compilers (*not* the Pentium gcc compiler,
8112 # which looks to be a dead project)
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_pic='-fpic'
8115 lt_prog_compiler_static='-Bstatic'
8116 ;;
8117 ccc*)
8118 lt_prog_compiler_wl='-Wl,'
8119 # All Alpha code is PIC.
8120 lt_prog_compiler_static='-non_shared'
8121 ;;
3725885a
RW
8122 xl* | bgxl* | bgf* | mpixl*)
8123 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-qpic'
8126 lt_prog_compiler_static='-qstaticlink'
8127 ;;
ce2cded5
L
8128 *)
8129 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8130 *Sun\ F* | *Sun*Fortran*)
8131 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
3725885a 8134 lt_prog_compiler_wl=''
ce2cded5 8135 ;;
3725885a
RW
8136 *Sun\ C*)
8137 # Sun C 5.9
ce2cded5
L
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
3725885a 8140 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8141 ;;
8142 esac
8143 ;;
8144 esac
8145 ;;
d7040cdb 8146
ce2cded5
L
8147 newsos6)
8148 lt_prog_compiler_pic='-KPIC'
8149 lt_prog_compiler_static='-Bstatic'
8150 ;;
d7040cdb 8151
ce2cded5
L
8152 *nto* | *qnx*)
8153 # QNX uses GNU C++, but need to define -shared option too, otherwise
8154 # it will coredump.
8155 lt_prog_compiler_pic='-fPIC -shared'
8156 ;;
d7040cdb 8157
ce2cded5
L
8158 osf3* | osf4* | osf5*)
8159 lt_prog_compiler_wl='-Wl,'
8160 # All OSF/1 code is PIC.
8161 lt_prog_compiler_static='-non_shared'
8162 ;;
d7040cdb 8163
ce2cded5
L
8164 rdos*)
8165 lt_prog_compiler_static='-non_shared'
8166 ;;
d7040cdb 8167
ce2cded5
L
8168 solaris*)
8169 lt_prog_compiler_pic='-KPIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 case $cc_basename in
8172 f77* | f90* | f95*)
8173 lt_prog_compiler_wl='-Qoption ld ';;
8174 *)
8175 lt_prog_compiler_wl='-Wl,';;
8176 esac
8177 ;;
d7040cdb 8178
ce2cded5
L
8179 sunos4*)
8180 lt_prog_compiler_wl='-Qoption ld '
8181 lt_prog_compiler_pic='-PIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 ;;
d7040cdb 8184
ce2cded5
L
8185 sysv4 | sysv4.2uw2* | sysv4.3*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-KPIC'
8188 lt_prog_compiler_static='-Bstatic'
8189 ;;
d7040cdb 8190
ce2cded5
L
8191 sysv4*MP*)
8192 if test -d /usr/nec ;then
8193 lt_prog_compiler_pic='-Kconform_pic'
8194 lt_prog_compiler_static='-Bstatic'
8195 fi
8196 ;;
d7040cdb 8197
ce2cded5
L
8198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 ;;
d7040cdb 8203
ce2cded5
L
8204 unicos*)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_can_build_shared=no
8207 ;;
d7040cdb 8208
ce2cded5
L
8209 uts4*)
8210 lt_prog_compiler_pic='-pic'
8211 lt_prog_compiler_static='-Bstatic'
8212 ;;
d7040cdb 8213
ce2cded5
L
8214 *)
8215 lt_prog_compiler_can_build_shared=no
8216 ;;
8217 esac
8218 fi
d7040cdb 8219
ce2cded5
L
8220case $host_os in
8221 # For platforms which do not support PIC, -DPIC is meaningless:
8222 *djgpp*)
8223 lt_prog_compiler_pic=
8224 ;;
8225 *)
8226 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8227 ;;
8228esac
81ecdfbb
RW
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8230$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8231
8232
8233
8234
8235
8236
ce2cded5
L
8237#
8238# Check to make sure the PIC flag actually works.
8239#
8240if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8242$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8243if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
ce2cded5 8245else
b214d478 8246 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8247 ac_outfile=conftest.$ac_objext
8248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8249 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8250 # Insert the option either (1) after the last *FLAGS variable, or
8251 # (2) before a word containing "conftest.", or (3) at the end.
8252 # Note that $ac_compile itself does not contain backslashes and begins
8253 # with a dollar sign (not a hyphen), so the echo should work correctly.
8254 # The option is referenced via a variable to avoid confusing sed.
8255 lt_compile=`echo "$ac_compile" | $SED \
8256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8258 -e 's:$: $lt_compiler_flag:'`
3725885a 8259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8260 (eval "$lt_compile" 2>conftest.err)
8261 ac_status=$?
8262 cat conftest.err >&5
3725885a 8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8264 if (exit $ac_status) && test -s "$ac_outfile"; then
8265 # The compiler can only warn and ignore the option if not recognized
8266 # So say no if there are warnings other than the usual output.
3725885a 8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8270 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8271 fi
8272 fi
8273 $RM conftest*
d7040cdb 8274
ce2cded5 8275fi
81ecdfbb
RW
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8277$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8278
b214d478 8279if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8280 case $lt_prog_compiler_pic in
8281 "" | " "*) ;;
8282 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8283 esac
8284else
8285 lt_prog_compiler_pic=
8286 lt_prog_compiler_can_build_shared=no
8287fi
d7040cdb 8288
ce2cded5 8289fi
d7040cdb
SE
8290
8291
8292
8293
8294
8295
ce2cded5
L
8296#
8297# Check to make sure the static flag actually works.
8298#
8299wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8302if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
ce2cded5 8304else
b214d478 8305 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8306 save_LDFLAGS="$LDFLAGS"
8307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8310 # The linker can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 if test -s conftest.err; then
8313 # Append any errors to the config.log.
8314 cat conftest.err 1>&5
3725885a 8315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8317 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8318 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8319 fi
8320 else
b214d478 8321 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8322 fi
8323 fi
b214d478 8324 $RM -r conftest*
ce2cded5 8325 LDFLAGS="$save_LDFLAGS"
d7040cdb 8326
ce2cded5 8327fi
81ecdfbb
RW
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8329$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8330
b214d478 8331if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8332 :
8333else
8334 lt_prog_compiler_static=
8335fi
d7040cdb
SE
8336
8337
8338
8339
8340
8341
8342
81ecdfbb
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8345if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
ce2cded5
L
8347else
8348 lt_cv_prog_compiler_c_o=no
8349 $RM -r conftest 2>/dev/null
8350 mkdir conftest
8351 cd conftest
8352 mkdir out
8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8354
ce2cded5
L
8355 lt_compiler_flag="-o out/conftest2.$ac_objext"
8356 # Insert the option either (1) after the last *FLAGS variable, or
8357 # (2) before a word containing "conftest.", or (3) at the end.
8358 # Note that $ac_compile itself does not contain backslashes and begins
8359 # with a dollar sign (not a hyphen), so the echo should work correctly.
8360 lt_compile=`echo "$ac_compile" | $SED \
8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363 -e 's:$: $lt_compiler_flag:'`
3725885a 8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8365 (eval "$lt_compile" 2>out/conftest.err)
8366 ac_status=$?
8367 cat out/conftest.err >&5
3725885a 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8370 then
8371 # The compiler can only warn and ignore the option if not recognized
8372 # So say no if there are warnings
3725885a 8373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8376 lt_cv_prog_compiler_c_o=yes
8377 fi
8378 fi
8379 chmod u+w . 2>&5
8380 $RM conftest*
8381 # SGI C++ compiler will create directory out/ii_files/ for
8382 # template instantiation
8383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8384 $RM out/* && rmdir out
8385 cd ..
8386 $RM -r conftest
8387 $RM conftest*
8388
8389fi
81ecdfbb
RW
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8391$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8392
8393
8394
8395
8396
8397
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8400if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
d7040cdb 8402else
ce2cded5
L
8403 lt_cv_prog_compiler_c_o=no
8404 $RM -r conftest 2>/dev/null
8405 mkdir conftest
8406 cd conftest
8407 mkdir out
8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409
8410 lt_compiler_flag="-o out/conftest2.$ac_objext"
8411 # Insert the option either (1) after the last *FLAGS variable, or
8412 # (2) before a word containing "conftest.", or (3) at the end.
8413 # Note that $ac_compile itself does not contain backslashes and begins
8414 # with a dollar sign (not a hyphen), so the echo should work correctly.
8415 lt_compile=`echo "$ac_compile" | $SED \
8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418 -e 's:$: $lt_compiler_flag:'`
3725885a 8419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8420 (eval "$lt_compile" 2>out/conftest.err)
8421 ac_status=$?
8422 cat out/conftest.err >&5
3725885a 8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8425 then
8426 # The compiler can only warn and ignore the option if not recognized
8427 # So say no if there are warnings
3725885a 8428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8431 lt_cv_prog_compiler_c_o=yes
8432 fi
8433 fi
8434 chmod u+w . 2>&5
8435 $RM conftest*
8436 # SGI C++ compiler will create directory out/ii_files/ for
8437 # template instantiation
8438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8439 $RM out/* && rmdir out
8440 cd ..
8441 $RM -r conftest
8442 $RM conftest*
8443
d7040cdb 8444fi
81ecdfbb
RW
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8446$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8447
d7040cdb 8448
d7040cdb 8449
d7040cdb 8450
ce2cded5
L
8451hard_links="nottested"
8452if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8453 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8455$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8456 hard_links=yes
8457 $RM conftest*
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 touch conftest.a
8460 ln conftest.a conftest.b 2>&5 || hard_links=no
8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8463$as_echo "$hard_links" >&6; }
ce2cded5 8464 if test "$hard_links" = no; then
81ecdfbb
RW
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8466$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8467 need_locks=warn
d7040cdb 8468 fi
ce2cded5
L
8469else
8470 need_locks=no
8471fi
d7040cdb 8472
d7040cdb 8473
d7040cdb 8474
d7040cdb 8475
d7040cdb 8476
d7040cdb 8477
81ecdfbb
RW
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8479$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8480
ce2cded5
L
8481 runpath_var=
8482 allow_undefined_flag=
8483 always_export_symbols=no
8484 archive_cmds=
8485 archive_expsym_cmds=
8486 compiler_needs_object=no
8487 enable_shared_with_static_runtimes=no
8488 export_dynamic_flag_spec=
8489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8490 hardcode_automatic=no
8491 hardcode_direct=no
8492 hardcode_direct_absolute=no
8493 hardcode_libdir_flag_spec=
8494 hardcode_libdir_flag_spec_ld=
8495 hardcode_libdir_separator=
8496 hardcode_minus_L=no
8497 hardcode_shlibpath_var=unsupported
8498 inherit_rpath=no
8499 link_all_deplibs=unknown
8500 module_cmds=
8501 module_expsym_cmds=
8502 old_archive_from_new_cmds=
8503 old_archive_from_expsyms_cmds=
8504 thread_safe_flag_spec=
8505 whole_archive_flag_spec=
8506 # include_expsyms should be a list of space-separated symbols to be *always*
8507 # included in the symbol list
8508 include_expsyms=
8509 # exclude_expsyms can be an extended regexp of symbols to exclude
8510 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8512 # as well as any symbol that contains `d'.
b214d478 8513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8515 # platforms (ab)use it in PIC code, but their linkers get confused if
8516 # the symbol is explicitly referenced. Since portable code cannot
8517 # rely on this symbol name, it's probably fine to never include it in
8518 # preloaded symbol tables.
b214d478 8519 # Exclude shared library initialization/finalization symbols.
ce2cded5 8520 extract_expsyms_cmds=
d7040cdb 8521
d7040cdb 8522 case $host_os in
b214d478 8523 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8525 # When not using gcc, we currently assume that we are using
8526 # Microsoft Visual C++.
8527 if test "$GCC" != yes; then
8528 with_gnu_ld=no
8529 fi
d7040cdb 8530 ;;
ce2cded5
L
8531 interix*)
8532 # we just hope/assume this is gcc and not c89 (= MSVC++)
8533 with_gnu_ld=yes
d7040cdb 8534 ;;
ce2cded5
L
8535 openbsd*)
8536 with_gnu_ld=no
d7040cdb
SE
8537 ;;
8538 esac
d7040cdb 8539
ce2cded5 8540 ld_shlibs=yes
3725885a
RW
8541
8542 # On some targets, GNU ld is compatible enough with the native linker
8543 # that we're better off using the native interface for both.
8544 lt_use_gnu_ld_interface=no
ce2cded5 8545 if test "$with_gnu_ld" = yes; then
3725885a
RW
8546 case $host_os in
8547 aix*)
8548 # The AIX port of GNU ld has always aspired to compatibility
8549 # with the native linker. However, as the warning in the GNU ld
8550 # block says, versions before 2.19.5* couldn't really create working
8551 # shared libraries, regardless of the interface used.
8552 case `$LD -v 2>&1` in
8553 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8554 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8555 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8556 *)
8557 lt_use_gnu_ld_interface=yes
8558 ;;
8559 esac
8560 ;;
8561 *)
8562 lt_use_gnu_ld_interface=yes
8563 ;;
8564 esac
8565 fi
8566
8567 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8568 # If archive_cmds runs LD, not CC, wlarc should be empty
8569 wlarc='${wl}'
d7040cdb 8570
ce2cded5
L
8571 # Set some defaults for GNU ld with shared library support. These
8572 # are reset later if shared libraries are not supported. Putting them
8573 # here allows them to be overridden if necessary.
8574 runpath_var=LD_RUN_PATH
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 export_dynamic_flag_spec='${wl}--export-dynamic'
8577 # ancient GNU ld didn't support --whole-archive et. al.
8578 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8579 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8580 else
ce2cded5 8581 whole_archive_flag_spec=
d7040cdb 8582 fi
ce2cded5
L
8583 supports_anon_versioning=no
8584 case `$LD -v 2>&1` in
3725885a 8585 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8589 *\ 2.11.*) ;; # other 2.11 versions
8590 *) supports_anon_versioning=yes ;;
8591 esac
d7040cdb 8592
ce2cded5
L
8593 # See if GNU ld supports shared libraries.
8594 case $host_os in
50e7d84b 8595 aix[3-9]*)
ce2cded5
L
8596 # On AIX/PPC, the GNU linker is very broken
8597 if test "$host_cpu" != ia64; then
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
d7040cdb 8600
3725885a 8601*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8602*** to be unable to reliably create shared libraries on AIX.
8603*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8604*** really care for shared libraries, you may want to install binutils
8605*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8606*** You will then need to restart the configuration process.
d7040cdb 8607
ce2cded5
L
8608_LT_EOF
8609 fi
8610 ;;
d7040cdb 8611
ce2cded5 8612 amigaos*)
b214d478
SE
8613 case $host_cpu in
8614 powerpc)
8615 # see comment about AmigaOS4 .so support
8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 archive_expsym_cmds=''
8618 ;;
8619 m68k)
8620 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)'
8621 hardcode_libdir_flag_spec='-L$libdir'
8622 hardcode_minus_L=yes
8623 ;;
8624 esac
ce2cded5 8625 ;;
d7040cdb 8626
ce2cded5
L
8627 beos*)
8628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629 allow_undefined_flag=unsupported
8630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8631 # support --undefined. This deserves some investigation. FIXME
8632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 else
8634 ld_shlibs=no
8635 fi
8636 ;;
d7040cdb 8637
b214d478 8638 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8639 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8640 # as there is no search path for DLLs.
8641 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8642 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8643 allow_undefined_flag=unsupported
8644 always_export_symbols=no
8645 enable_shared_with_static_runtimes=yes
8646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8647
ce2cded5
L
8648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8650 # If the export-symbols file already is a .def file (1st line
8651 # is EXPORTS), use it as is; otherwise, prepend...
8652 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8653 cp $export_symbols $output_objdir/$soname.def;
8654 else
8655 echo EXPORTS > $output_objdir/$soname.def;
8656 cat $export_symbols >> $output_objdir/$soname.def;
8657 fi~
8658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8659 else
8660 ld_shlibs=no
8661 fi
8662 ;;
d7040cdb 8663
3725885a
RW
8664 haiku*)
8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666 link_all_deplibs=yes
8667 ;;
8668
ce2cded5
L
8669 interix[3-9]*)
8670 hardcode_direct=no
8671 hardcode_shlibpath_var=no
8672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8673 export_dynamic_flag_spec='${wl}-E'
8674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8675 # Instead, shared libraries are loaded at an image base (0x10000000 by
8676 # default) and relocated if they conflict, which is a slow very memory
8677 # consuming and fragmenting process. To avoid this, we pick a random,
8678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8681 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'
8682 ;;
d7040cdb 8683
58e24671 8684 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8685 tmp_diet=no
8686 if test "$host_os" = linux-dietlibc; then
8687 case $cc_basename in
8688 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8689 esac
8690 fi
8691 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8692 && test "$tmp_diet" = no
8693 then
6e733cce 8694 tmp_addflag=' $pic_flag'
b214d478 8695 tmp_sharedflag='-shared'
ce2cded5
L
8696 case $cc_basename,$host_cpu in
8697 pgcc*) # Portland Group C compiler
3725885a 8698 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
8699 tmp_addflag=' $pic_flag'
8700 ;;
3725885a
RW
8701 pgf77* | pgf90* | pgf95* | pgfortran*)
8702 # Portland Group f77 and f90 compilers
8703 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
8704 tmp_addflag=' $pic_flag -Mnomain' ;;
8705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8706 tmp_addflag=' -i_dynamic' ;;
8707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8708 tmp_addflag=' -i_dynamic -nofor_main' ;;
8709 ifc* | ifort*) # Intel Fortran compiler
8710 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8711 lf95*) # Lahey Fortran 8.1
8712 whole_archive_flag_spec=
8713 tmp_sharedflag='--shared' ;;
3725885a 8714 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
8715 tmp_sharedflag='-qmkshrobj'
8716 tmp_addflag= ;;
3725885a
RW
8717 nvcc*) # Cuda Compiler Driver 2.2
8718 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'
8719 compiler_needs_object=yes
8720 ;;
ce2cded5
L
8721 esac
8722 case `$CC -V 2>&1 | sed 5q` in
8723 *Sun\ C*) # Sun C 5.9
3725885a 8724 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
8725 compiler_needs_object=yes
8726 tmp_sharedflag='-G' ;;
8727 *Sun\ F*) # Sun Fortran 8.3
8728 tmp_sharedflag='-G' ;;
ce2cded5
L
8729 esac
8730 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8731
ce2cded5
L
8732 if test "x$supports_anon_versioning" = xyes; then
8733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8735 echo "local: *; };" >> $output_objdir/$libname.ver~
8736 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8737 fi
b214d478
SE
8738
8739 case $cc_basename in
3725885a 8740 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
8741 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8742 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8743 hardcode_libdir_flag_spec=
8744 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8745 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8746 if test "x$supports_anon_versioning" = xyes; then
8747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8749 echo "local: *; };" >> $output_objdir/$libname.ver~
8750 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8751 fi
8752 ;;
8753 esac
ce2cded5
L
8754 else
8755 ld_shlibs=no
8756 fi
8757 ;;
d7040cdb 8758
ce2cded5
L
8759 netbsd*)
8760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8762 wlarc=
8763 else
8764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766 fi
8767 ;;
d7040cdb 8768
ce2cded5
L
8769 solaris*)
8770 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8771 ld_shlibs=no
8772 cat <<_LT_EOF 1>&2
d7040cdb 8773
ce2cded5
L
8774*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8775*** create shared libraries on Solaris systems. Therefore, libtool
8776*** is disabling shared libraries support. We urge you to upgrade GNU
8777*** binutils to release 2.9.1 or newer. Another option is to modify
8778*** your PATH or compiler configuration so that the native linker is
8779*** used, and then restart.
d7040cdb 8780
ce2cded5
L
8781_LT_EOF
8782 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785 else
8786 ld_shlibs=no
8787 fi
8788 ;;
d7040cdb 8789
ce2cded5
L
8790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8791 case `$LD -v 2>&1` in
8792 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8793 ld_shlibs=no
8794 cat <<_LT_EOF 1>&2
d7040cdb 8795
ce2cded5
L
8796*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8797*** reliably create shared libraries on SCO systems. Therefore, libtool
8798*** is disabling shared libraries support. We urge you to upgrade GNU
8799*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8800*** your PATH or compiler configuration so that the native linker is
8801*** used, and then restart.
d7040cdb 8802
ce2cded5
L
8803_LT_EOF
8804 ;;
8805 *)
8806 # For security reasons, it is highly recommended that you always
8807 # use absolute paths for naming shared libraries, and exclude the
8808 # DT_RUNPATH tag from executables and libraries. But doing so
8809 # requires that you compile everything twice, which is a pain.
8810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8814 else
8815 ld_shlibs=no
8816 fi
8817 ;;
8818 esac
d7040cdb 8819 ;;
ce2cded5
L
8820
8821 sunos4*)
8822 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8823 wlarc=
8824 hardcode_direct=yes
8825 hardcode_shlibpath_var=no
d7040cdb 8826 ;;
d7040cdb 8827
ce2cded5
L
8828 *)
8829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836 esac
d7040cdb 8837
ce2cded5
L
8838 if test "$ld_shlibs" = no; then
8839 runpath_var=
8840 hardcode_libdir_flag_spec=
8841 export_dynamic_flag_spec=
8842 whole_archive_flag_spec=
8843 fi
d7040cdb 8844 else
ce2cded5 8845 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 8846 case $host_os in
ce2cded5
L
8847 aix3*)
8848 allow_undefined_flag=unsupported
8849 always_export_symbols=yes
8850 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'
8851 # Note: this linker hardcodes the directories in LIBPATH if there
8852 # are no directories specified by -L.
8853 hardcode_minus_L=yes
8854 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8855 # Neither direct hardcoding nor static linking is supported with a
8856 # broken collect2.
8857 hardcode_direct=unsupported
8858 fi
8859 ;;
d7040cdb 8860
50e7d84b 8861 aix[4-9]*)
ce2cded5
L
8862 if test "$host_cpu" = ia64; then
8863 # On IA64, the linker does run time linking by default, so we don't
8864 # have to do anything special.
8865 aix_use_runtimelinking=no
8866 exp_sym_flag='-Bexport'
8867 no_entry_flag=""
8868 else
8869 # If we're using GNU nm, then we don't want the "-C" option.
8870 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8871 # Also, AIX nm treats weak defined symbols like other global
8872 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8873 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8874 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 8875 else
5c14705f 8876 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
8877 fi
8878 aix_use_runtimelinking=no
d7040cdb 8879
ce2cded5
L
8880 # Test if we are trying to use run time linking or normal
8881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8882 # need to do runtime linking.
50e7d84b 8883 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8884 for ld_flag in $LDFLAGS; do
8885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8886 aix_use_runtimelinking=yes
8887 break
8888 fi
8889 done
8890 ;;
8891 esac
d7040cdb 8892
ce2cded5
L
8893 exp_sym_flag='-bexport'
8894 no_entry_flag='-bnoentry'
8895 fi
d7040cdb 8896
ce2cded5
L
8897 # When large executables or shared objects are built, AIX ld can
8898 # have problems creating the table of contents. If linking a library
8899 # or program results in "error TOC overflow" add -mminimal-toc to
8900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8902
ce2cded5
L
8903 archive_cmds=''
8904 hardcode_direct=yes
8905 hardcode_direct_absolute=yes
8906 hardcode_libdir_separator=':'
8907 link_all_deplibs=yes
8908 file_list_spec='${wl}-f,'
d7040cdb 8909
ce2cded5
L
8910 if test "$GCC" = yes; then
8911 case $host_os in aix4.[012]|aix4.[012].*)
8912 # We only want to do this on AIX 4.2 and lower, the check
8913 # below for broken collect2 doesn't work under 4.3+
8914 collect2name=`${CC} -print-prog-name=collect2`
8915 if test -f "$collect2name" &&
8916 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8917 then
8918 # We have reworked collect2
8919 :
8920 else
8921 # We have old collect2
8922 hardcode_direct=unsupported
8923 # It fails to find uninstalled libraries when the uninstalled
8924 # path is not listed in the libpath. Setting hardcode_minus_L
8925 # to unsupported forces relinking
8926 hardcode_minus_L=yes
8927 hardcode_libdir_flag_spec='-L$libdir'
8928 hardcode_libdir_separator=
8929 fi
8930 ;;
8931 esac
8932 shared_flag='-shared'
8933 if test "$aix_use_runtimelinking" = yes; then
8934 shared_flag="$shared_flag "'${wl}-G'
8935 fi
8936 else
8937 # not using gcc
8938 if test "$host_cpu" = ia64; then
8939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8940 # chokes on -Wl,-G. The following line is correct:
8941 shared_flag='-G'
8942 else
8943 if test "$aix_use_runtimelinking" = yes; then
8944 shared_flag='${wl}-G'
8945 else
8946 shared_flag='${wl}-bM:SRE'
8947 fi
8948 fi
8949 fi
d7040cdb 8950
b214d478 8951 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
8952 # It seems that -bexpall does not export symbols beginning with
8953 # underscore (_), so it is better to generate a list of symbols to export.
8954 always_export_symbols=yes
8955 if test "$aix_use_runtimelinking" = yes; then
8956 # Warning - without using the other runtime loading flags (-brtl),
8957 # -berok will link without error, but may produce a broken library.
8958 allow_undefined_flag='-berok'
8959 # Determine the default libpath from the value encoded in an
8960 # empty executable.
81ecdfbb 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
8962/* end confdefs.h. */
8963
d7040cdb
SE
8964int
8965main ()
8966{
ce2cded5 8967
d7040cdb
SE
8968 ;
8969 return 0;
8970}
8971_ACEOF
81ecdfbb 8972if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8973
ce2cded5
L
8974lt_aix_libpath_sed='
8975 /Import File Strings/,/^$/ {
8976 /^0/ {
8977 s/^0 *\(.*\)$/\1/
8978 p
8979 }
8980 }'
8981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982# Check for a 64-bit object if we didn't find anything.
8983if test -z "$aix_libpath"; then
8984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 8985fi
d7040cdb 8986fi
81ecdfbb
RW
8987rm -f core conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
8989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8990
8991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8992 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
8993 else
8994 if test "$host_cpu" = ia64; then
8995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8996 allow_undefined_flag="-z nodefs"
8997 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"
8998 else
8999 # Determine the default libpath from the value encoded in an
9000 # empty executable.
81ecdfbb 9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9002/* end confdefs.h. */
9003
d7040cdb
SE
9004int
9005main ()
9006{
ce2cded5 9007
d7040cdb
SE
9008 ;
9009 return 0;
9010}
9011_ACEOF
81ecdfbb 9012if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9013
9014lt_aix_libpath_sed='
9015 /Import File Strings/,/^$/ {
9016 /^0/ {
9017 s/^0 *\(.*\)$/\1/
9018 p
9019 }
9020 }'
9021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022# Check for a 64-bit object if we didn't find anything.
9023if test -z "$aix_libpath"; then
9024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025fi
d7040cdb 9026fi
81ecdfbb
RW
9027rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9030
ce2cded5
L
9031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9032 # Warning - without using the other run time loading flags,
9033 # -berok will link without error, but may produce a broken library.
9034 no_undefined_flag=' ${wl}-bernotok'
9035 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9036 if test "$with_gnu_ld" = yes; then
9037 # We only use this code for GNU lds that support --whole-archive.
9038 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9039 else
9040 # Exported symbols can be pulled into shared objects from archives
9041 whole_archive_flag_spec='$convenience'
9042 fi
ce2cded5
L
9043 archive_cmds_need_lc=yes
9044 # This is similar to how AIX traditionally builds its shared libraries.
9045 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'
9046 fi
9047 fi
9048 ;;
d7040cdb 9049
ce2cded5 9050 amigaos*)
b214d478
SE
9051 case $host_cpu in
9052 powerpc)
9053 # see comment about AmigaOS4 .so support
9054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 archive_expsym_cmds=''
9056 ;;
9057 m68k)
9058 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)'
9059 hardcode_libdir_flag_spec='-L$libdir'
9060 hardcode_minus_L=yes
9061 ;;
9062 esac
ce2cded5 9063 ;;
d7040cdb 9064
ce2cded5
L
9065 bsdi[45]*)
9066 export_dynamic_flag_spec=-rdynamic
9067 ;;
d7040cdb 9068
b214d478 9069 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9070 # When not using gcc, we currently assume that we are using
9071 # Microsoft Visual C++.
9072 # hardcode_libdir_flag_spec is actually meaningless, as there is
9073 # no search path for DLLs.
9074 hardcode_libdir_flag_spec=' '
9075 allow_undefined_flag=unsupported
9076 # Tell ltmain to make .lib files, not .a files.
9077 libext=lib
9078 # Tell ltmain to make .dll files, not .so files.
9079 shrext_cmds=".dll"
9080 # FIXME: Setting linknames here is a bad hack.
3725885a 9081 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9082 # The linker will automatically build a .lib file if we build a DLL.
9083 old_archive_from_new_cmds='true'
9084 # FIXME: Should let the user specify the lib program.
9085 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9086 fix_srcfile_path='`cygpath -w "$srcfile"`'
9087 enable_shared_with_static_runtimes=yes
9088 ;;
d7040cdb 9089
ce2cded5 9090 darwin* | rhapsody*)
ce2cded5 9091
b214d478
SE
9092
9093 archive_cmds_need_lc=no
9094 hardcode_direct=no
9095 hardcode_automatic=yes
9096 hardcode_shlibpath_var=unsupported
3725885a
RW
9097 if test "$lt_cv_ld_force_load" = "yes"; then
9098 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\"`'
9099 else
9100 whole_archive_flag_spec=''
9101 fi
b214d478
SE
9102 link_all_deplibs=yes
9103 allow_undefined_flag="$_lt_dar_allow_undefined"
9104 case $cc_basename in
9105 ifort*) _lt_dar_can_shared=yes ;;
9106 *) _lt_dar_can_shared=$GCC ;;
9107 esac
9108 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9109 output_verbose_link_cmd=func_echo_all
b214d478
SE
9110 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9111 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9112 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}"
9113 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}"
9114
9115 else
9116 ld_shlibs=no
9117 fi
9118
ce2cded5
L
9119 ;;
9120
9121 dgux*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_shlibpath_var=no
9125 ;;
9126
ce2cded5
L
9127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9128 # support. Future versions do this automatically, but an explicit c++rt0.o
9129 # does not break anything, and helps significantly (at the cost of a little
9130 # extra space).
9131 freebsd2.2*)
9132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9133 hardcode_libdir_flag_spec='-R$libdir'
9134 hardcode_direct=yes
9135 hardcode_shlibpath_var=no
9136 ;;
9137
9138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9139 freebsd2.*)
ce2cded5
L
9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_direct=yes
9142 hardcode_minus_L=yes
9143 hardcode_shlibpath_var=no
9144 ;;
9145
9146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9147 freebsd* | dragonfly*)
9148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9149 hardcode_libdir_flag_spec='-R$libdir'
9150 hardcode_direct=yes
9151 hardcode_shlibpath_var=no
9152 ;;
9153
9154 hpux9*)
9155 if test "$GCC" = yes; then
9156 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'
9157 else
9158 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'
9159 fi
9160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161 hardcode_libdir_separator=:
9162 hardcode_direct=yes
9163
9164 # hardcode_minus_L: Not really in the search PATH,
9165 # but as the default location of the library.
9166 hardcode_minus_L=yes
9167 export_dynamic_flag_spec='${wl}-E'
9168 ;;
9169
9170 hpux10*)
3725885a 9171 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173 else
9174 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175 fi
9176 if test "$with_gnu_ld" = no; then
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_flag_spec_ld='+b $libdir'
9179 hardcode_libdir_separator=:
9180 hardcode_direct=yes
9181 hardcode_direct_absolute=yes
9182 export_dynamic_flag_spec='${wl}-E'
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9186 fi
9187 ;;
9188
9189 hpux11*)
3725885a 9190 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9191 case $host_cpu in
9192 hppa*64*)
9193 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 ;;
9195 ia64*)
b214d478 9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9197 ;;
9198 *)
9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200 ;;
9201 esac
9202 else
9203 case $host_cpu in
9204 hppa*64*)
9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206 ;;
9207 ia64*)
9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209 ;;
9210 *)
3725885a
RW
9211
9212 # Older versions of the 11.00 compiler do not understand -b yet
9213 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9215$as_echo_n "checking if $CC understands -b... " >&6; }
9216if test "${lt_cv_prog_compiler__b+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9218else
9219 lt_cv_prog_compiler__b=no
9220 save_LDFLAGS="$LDFLAGS"
9221 LDFLAGS="$LDFLAGS -b"
9222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9224 # The linker can only warn and ignore the option if not recognized
9225 # So say no if there are warnings
9226 if test -s conftest.err; then
9227 # Append any errors to the config.log.
9228 cat conftest.err 1>&5
9229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231 if diff conftest.exp conftest.er2 >/dev/null; then
9232 lt_cv_prog_compiler__b=yes
9233 fi
9234 else
9235 lt_cv_prog_compiler__b=yes
9236 fi
9237 fi
9238 $RM -r conftest*
9239 LDFLAGS="$save_LDFLAGS"
9240
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9243$as_echo "$lt_cv_prog_compiler__b" >&6; }
9244
9245if test x"$lt_cv_prog_compiler__b" = xyes; then
9246 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9247else
9248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9249fi
9250
ce2cded5
L
9251 ;;
9252 esac
9253 fi
9254 if test "$with_gnu_ld" = no; then
9255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9256 hardcode_libdir_separator=:
9257
9258 case $host_cpu in
9259 hppa*64*|ia64*)
9260 hardcode_direct=no
9261 hardcode_shlibpath_var=no
9262 ;;
9263 *)
9264 hardcode_direct=yes
9265 hardcode_direct_absolute=yes
9266 export_dynamic_flag_spec='${wl}-E'
9267
9268 # hardcode_minus_L: Not really in the search PATH,
9269 # but as the default location of the library.
9270 hardcode_minus_L=yes
9271 ;;
9272 esac
9273 fi
9274 ;;
9275
9276 irix5* | irix6* | nonstopux*)
9277 if test "$GCC" = yes; then
3725885a 9278 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
9279 # Try to use the -exported_symbol ld option, if it does not
9280 # work, assume that -exports_file does not work either and
9281 # implicitly export all symbols.
9282 save_LDFLAGS="$LDFLAGS"
9283 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h. */
ce2cded5 9286int foo(void) {}
d7040cdb 9287_ACEOF
81ecdfbb 9288if ac_fn_c_try_link "$LINENO"; then :
3725885a 9289 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 9290
d7040cdb 9291fi
81ecdfbb
RW
9292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9294 LDFLAGS="$save_LDFLAGS"
9295 else
3725885a
RW
9296 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'
9297 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
9298 fi
9299 archive_cmds_need_lc='no'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9302 inherit_rpath=yes
9303 link_all_deplibs=yes
9304 ;;
9305
9306 netbsd*)
9307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9309 else
9310 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9311 fi
9312 hardcode_libdir_flag_spec='-R$libdir'
9313 hardcode_direct=yes
9314 hardcode_shlibpath_var=no
9315 ;;
9316
9317 newsos6)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=yes
9320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9321 hardcode_libdir_separator=:
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 *nto* | *qnx*)
9326 ;;
9327
9328 openbsd*)
b214d478
SE
9329 if test -f /usr/libexec/ld.so; then
9330 hardcode_direct=yes
9331 hardcode_shlibpath_var=no
9332 hardcode_direct_absolute=yes
9333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9337 export_dynamic_flag_spec='${wl}-E'
9338 else
9339 case $host_os in
9340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 ;;
9344 *)
9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 ;;
9348 esac
9349 fi
9350 else
9351 ld_shlibs=no
ce2cded5
L
9352 fi
9353 ;;
9354
9355 os2*)
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_minus_L=yes
9358 allow_undefined_flag=unsupported
3725885a 9359 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
9360 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9361 ;;
9362
9363 osf3*)
9364 if test "$GCC" = yes; then
9365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9366 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
9367 else
9368 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9369 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
9370 fi
9371 archive_cmds_need_lc='no'
9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373 hardcode_libdir_separator=:
9374 ;;
9375
9376 osf4* | osf5*) # as osf3* with the addition of -msym flag
9377 if test "$GCC" = yes; then
9378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9379 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
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 else
9382 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9383 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 9384 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 9385 $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
9386
9387 # Both c and cxx compiler support -rpath directly
9388 hardcode_libdir_flag_spec='-rpath $libdir'
9389 fi
9390 archive_cmds_need_lc='no'
9391 hardcode_libdir_separator=:
9392 ;;
9393
9394 solaris*)
9395 no_undefined_flag=' -z defs'
9396 if test "$GCC" = yes; then
9397 wlarc='${wl}'
9398 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9401 else
9402 case `$CC -V 2>&1` in
9403 *"Compilers 5.0"*)
9404 wlarc=''
9405 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9407 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9408 ;;
9409 *)
9410 wlarc='${wl}'
9411 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9414 ;;
9415 esac
9416 fi
9417 hardcode_libdir_flag_spec='-R$libdir'
9418 hardcode_shlibpath_var=no
9419 case $host_os in
9420 solaris2.[0-5] | solaris2.[0-5].*) ;;
9421 *)
9422 # The compiler driver will combine and reorder linker options,
9423 # but understands `-z linker_flag'. GCC discards it without `$wl',
9424 # but is careful enough not to reorder.
9425 # Supported since Solaris 2.6 (maybe 2.5.1?)
9426 if test "$GCC" = yes; then
9427 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9428 else
9429 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9430 fi
9431 ;;
9432 esac
9433 link_all_deplibs=yes
9434 ;;
9435
9436 sunos4*)
9437 if test "x$host_vendor" = xsequent; then
9438 # Use $CC to link under sequent, because it throws in some extra .o
9439 # files that make .init and .fini sections work.
9440 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9441 else
9442 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9443 fi
9444 hardcode_libdir_flag_spec='-L$libdir'
9445 hardcode_direct=yes
9446 hardcode_minus_L=yes
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 sysv4)
9451 case $host_vendor in
9452 sni)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_direct=yes # is this really true???
9455 ;;
9456 siemens)
9457 ## LD is ld it makes a PLAMLIB
9458 ## CC just makes a GrossModule.
9459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9460 reload_cmds='$CC -r -o $output$reload_objs'
9461 hardcode_direct=no
9462 ;;
9463 motorola)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9466 ;;
9467 esac
9468 runpath_var='LD_RUN_PATH'
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 sysv4.3*)
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_shlibpath_var=no
9475 export_dynamic_flag_spec='-Bexport'
9476 ;;
9477
9478 sysv4*MP*)
9479 if test -d /usr/nec; then
9480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9481 hardcode_shlibpath_var=no
9482 runpath_var=LD_RUN_PATH
9483 hardcode_runpath_var=yes
9484 ld_shlibs=yes
9485 fi
9486 ;;
9487
9488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9489 no_undefined_flag='${wl}-z,text'
9490 archive_cmds_need_lc=no
9491 hardcode_shlibpath_var=no
9492 runpath_var='LD_RUN_PATH'
9493
9494 if test "$GCC" = yes; then
9495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 else
9498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 fi
9501 ;;
9502
9503 sysv5* | sco3.2v5* | sco5v6*)
9504 # Note: We can NOT use -z defs as we might desire, because we do not
9505 # link with -lc, and that would cause any symbols used from libc to
9506 # always be unresolved, which means just about no library would
9507 # ever link correctly. If we're not using GNU ld we use -z text
9508 # though, which does catch some bad symbols but isn't as heavy-handed
9509 # as -z defs.
9510 no_undefined_flag='${wl}-z,text'
9511 allow_undefined_flag='${wl}-z,nodefs'
9512 archive_cmds_need_lc=no
9513 hardcode_shlibpath_var=no
9514 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9515 hardcode_libdir_separator=':'
9516 link_all_deplibs=yes
9517 export_dynamic_flag_spec='${wl}-Bexport'
9518 runpath_var='LD_RUN_PATH'
9519
9520 if test "$GCC" = yes; then
9521 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 else
9524 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 fi
9527 ;;
9528
9529 uts4*)
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_shlibpath_var=no
9533 ;;
9534
9535 *)
9536 ld_shlibs=no
9537 ;;
9538 esac
9539
9540 if test x$host_vendor = xsni; then
9541 case $host in
9542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9543 export_dynamic_flag_spec='${wl}-Blargedynsym'
9544 ;;
9545 esac
9546 fi
9547 fi
9548
81ecdfbb
RW
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9550$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9551test "$ld_shlibs" = no && can_build_shared=no
9552
9553with_gnu_ld=$with_gnu_ld
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569#
9570# Do we need to explicitly link libc?
9571#
9572case "x$archive_cmds_need_lc" in
9573x|xyes)
9574 # Assume -lc should be added
9575 archive_cmds_need_lc=yes
9576
9577 if test "$enable_shared" = yes && test "$GCC" = yes; then
9578 case $archive_cmds in
9579 *'~'*)
9580 # FIXME: we may have to deal with multi-command sequences.
9581 ;;
9582 '$CC '*)
9583 # Test whether the compiler implicitly links with -lc since on some
9584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9585 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9587$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9588if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
39144654
RW
9590else
9591 $RM conftest*
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9593
81ecdfbb 9594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9595 (eval $ac_compile) 2>&5
9596 ac_status=$?
81ecdfbb
RW
9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9599 soname=conftest
9600 lib=conftest
9601 libobjs=conftest.$ac_objext
9602 deplibs=
9603 wl=$lt_prog_compiler_wl
9604 pic_flag=$lt_prog_compiler_pic
9605 compiler_flags=-v
9606 linker_flags=-v
9607 verstring=
9608 output_objdir=.
9609 libname=conftest
9610 lt_save_allow_undefined_flag=$allow_undefined_flag
9611 allow_undefined_flag=
81ecdfbb 9612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9613 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9614 ac_status=$?
81ecdfbb
RW
9615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; }
39144654
RW
9617 then
9618 lt_cv_archive_cmds_need_lc=no
9619 else
9620 lt_cv_archive_cmds_need_lc=yes
9621 fi
9622 allow_undefined_flag=$lt_save_allow_undefined_flag
9623 else
9624 cat conftest.err 1>&5
9625 fi
9626 $RM conftest*
9627
9628fi
81ecdfbb
RW
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9630$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9631 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9632 ;;
9633 esac
9634 fi
9635 ;;
9636esac
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
9790
9791
9792
9793
81ecdfbb
RW
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9795$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
9796
9797if test "$GCC" = yes; then
ce2cded5
L
9798 case $host_os in
9799 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9800 *) lt_awk_arg="/^libraries:/" ;;
9801 esac
3725885a
RW
9802 case $host_os in
9803 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9804 *) lt_sed_strip_eq="s,=/,/,g" ;;
9805 esac
9806 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9807 case $lt_search_path_spec in
9808 *\;*)
ce2cded5
L
9809 # if the path contains ";" then we assume it to be the separator
9810 # otherwise default to the standard path separator (i.e. ":") - it is
9811 # assumed that no part of a normal pathname contains ";" but that should
9812 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9814 ;;
9815 *)
9816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9817 ;;
9818 esac
ce2cded5
L
9819 # Ok, now we have the path, separated by spaces, we can step through it
9820 # and add multilib dir if necessary.
9821 lt_tmp_lt_search_path_spec=
9822 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9823 for lt_sys_path in $lt_search_path_spec; do
9824 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9826 else
9827 test -d "$lt_sys_path" && \
9828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9829 fi
9830 done
3725885a 9831 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9832BEGIN {RS=" "; FS="/|\n";} {
9833 lt_foo="";
9834 lt_count=0;
9835 for (lt_i = NF; lt_i > 0; lt_i--) {
9836 if ($lt_i != "" && $lt_i != ".") {
9837 if ($lt_i == "..") {
9838 lt_count++;
9839 } else {
9840 if (lt_count == 0) {
9841 lt_foo="/" $lt_i lt_foo;
9842 } else {
9843 lt_count--;
9844 }
9845 }
9846 }
9847 }
9848 if (lt_foo != "") { lt_freq[lt_foo]++; }
9849 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9850}'`
3725885a
RW
9851 # AWK program above erroneously prepends '/' to C:/dos/paths
9852 # for these hosts.
9853 case $host_os in
9854 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9855 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9856 esac
9857 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ce2cded5
L
9858else
9859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9860fi
9861library_names_spec=
9862libname_spec='lib$name'
9863soname_spec=
9864shrext_cmds=".so"
9865postinstall_cmds=
9866postuninstall_cmds=
9867finish_cmds=
9868finish_eval=
9869shlibpath_var=
9870shlibpath_overrides_runpath=unknown
9871version_type=none
9872dynamic_linker="$host_os ld.so"
9873sys_lib_dlsearch_path_spec="/lib /usr/lib"
9874need_lib_prefix=unknown
9875hardcode_into_libs=no
9876
9877# when you set need_version to no, make sure it does not cause -set_version
9878# flags to be left without arguments
9879need_version=unknown
9880
9881case $host_os in
9882aix3*)
9883 version_type=linux
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9885 shlibpath_var=LIBPATH
9886
9887 # AIX 3 has no versioning support, so we append a major version to the name.
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 ;;
9890
50e7d84b 9891aix[4-9]*)
ce2cded5
L
9892 version_type=linux
9893 need_lib_prefix=no
9894 need_version=no
9895 hardcode_into_libs=yes
9896 if test "$host_cpu" = ia64; then
9897 # AIX 5 supports IA64
9898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 else
9901 # With GCC up to 2.95.x, collect2 would create an import file
9902 # for dependence libraries. The import file would start with
9903 # the line `#! .'. This would cause the generated library to
9904 # depend on `.', always an invalid library. This was fixed in
9905 # development snapshots of GCC prior to 3.0.
9906 case $host_os in
9907 aix4 | aix4.[01] | aix4.[01].*)
9908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9909 echo ' yes '
9910 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9911 :
9912 else
9913 can_build_shared=no
9914 fi
9915 ;;
9916 esac
9917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9918 # soname into executable. Probably we can add versioning support to
9919 # collect2, so additional links can be useful in future.
9920 if test "$aix_use_runtimelinking" = yes; then
9921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9922 # instead of lib<name>.a to let people know that these are not
9923 # typical AIX shared libraries.
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 else
9926 # We preserve .a as extension for shared libraries through AIX4.2
9927 # and later when we are not doing run time linking.
9928 library_names_spec='${libname}${release}.a $libname.a'
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 fi
9931 shlibpath_var=LIBPATH
9932 fi
9933 ;;
9934
9935amigaos*)
b214d478
SE
9936 case $host_cpu in
9937 powerpc)
9938 # Since July 2007 AmigaOS4 officially supports .so libraries.
9939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 ;;
9942 m68k)
ce2cded5
L
9943 library_names_spec='$libname.ixlibrary $libname.a'
9944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9945 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
9946 ;;
9947 esac
ce2cded5
L
9948 ;;
9949
9950beos*)
9951 library_names_spec='${libname}${shared_ext}'
9952 dynamic_linker="$host_os ld.so"
9953 shlibpath_var=LIBRARY_PATH
9954 ;;
9955
9956bsdi[45]*)
9957 version_type=linux
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9965 # the default ld.so.conf also contains /usr/contrib/lib and
9966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9967 # libtool to hard-code these into programs
9968 ;;
9969
b214d478 9970cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9971 version_type=windows
9972 shrext_cmds=".dll"
9973 need_version=no
9974 need_lib_prefix=no
9975
b214d478
SE
9976 case $GCC,$host_os in
9977 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
9978 library_names_spec='$libname.dll.a'
9979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9980 postinstall_cmds='base_file=`basename \${file}`~
9981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9982 dldir=$destdir/`dirname \$dlpath`~
9983 test -d \$dldir || mkdir -p \$dldir~
9984 $install_prog $dir/$dlname \$dldir/$dlname~
9985 chmod a+x \$dldir/$dlname~
9986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9988 fi'
9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9991 $RM \$dlpath'
9992 shlibpath_overrides_runpath=yes
9993
9994 case $host_os in
9995 cygwin*)
9996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9998
9999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10000 ;;
b214d478 10001 mingw* | cegcc*)
ce2cded5
L
10002 # MinGW DLLs use traditional 'lib' prefix
10003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10004 ;;
10005 pw32*)
10006 # pw32 DLLs use 'pw' prefix rather than 'lib'
10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008 ;;
10009 esac
10010 ;;
10011
10012 *)
10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014 ;;
10015 esac
10016 dynamic_linker='Win32 ld.exe'
10017 # FIXME: first we should search . and the directory the executable is in
10018 shlibpath_var=PATH
10019 ;;
10020
10021darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
10028 shlibpath_overrides_runpath=yes
10029 shlibpath_var=DYLD_LIBRARY_PATH
10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10031
10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10034 ;;
10035
10036dgux*)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 ;;
10044
ce2cded5
L
10045freebsd* | dragonfly*)
10046 # DragonFly does not have aout. When/if they implement a new
10047 # versioning mechanism, adjust this.
10048 if test -x /usr/bin/objformat; then
10049 objformat=`/usr/bin/objformat`
10050 else
10051 case $host_os in
6d2920c8 10052 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10053 *) objformat=elf ;;
10054 esac
10055 fi
10056 version_type=freebsd-$objformat
10057 case $version_type in
10058 freebsd-elf*)
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10060 need_version=no
10061 need_lib_prefix=no
10062 ;;
10063 freebsd-*)
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10065 need_version=yes
10066 ;;
10067 esac
10068 shlibpath_var=LD_LIBRARY_PATH
10069 case $host_os in
6d2920c8 10070 freebsd2.*)
ce2cded5
L
10071 shlibpath_overrides_runpath=yes
10072 ;;
10073 freebsd3.[01]* | freebsdelf3.[01]*)
10074 shlibpath_overrides_runpath=yes
10075 hardcode_into_libs=yes
10076 ;;
10077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10079 shlibpath_overrides_runpath=no
10080 hardcode_into_libs=yes
10081 ;;
10082 *) # from 4.6 on, and DragonFly
10083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10085 ;;
10086 esac
10087 ;;
10088
10089gnu*)
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 hardcode_into_libs=yes
10097 ;;
10098
3725885a
RW
10099haiku*)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 dynamic_linker="$host_os runtime_loader"
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 shlibpath_var=LIBRARY_PATH
10107 shlibpath_overrides_runpath=yes
10108 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10109 hardcode_into_libs=yes
10110 ;;
10111
ce2cded5
L
10112hpux9* | hpux10* | hpux11*)
10113 # Give a soname corresponding to the major version so that dld.sl refuses to
10114 # link against other versions.
10115 version_type=sunos
10116 need_lib_prefix=no
10117 need_version=no
10118 case $host_cpu in
10119 ia64*)
10120 shrext_cmds='.so'
10121 hardcode_into_libs=yes
10122 dynamic_linker="$host_os dld.so"
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 if test "X$HPUX_IA64_MODE" = X32; then
10128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10129 else
10130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10131 fi
10132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10133 ;;
10134 hppa*64*)
10135 shrext_cmds='.sl'
10136 hardcode_into_libs=yes
10137 dynamic_linker="$host_os dld.sl"
10138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10144 ;;
10145 *)
10146 shrext_cmds='.sl'
10147 dynamic_linker="$host_os dld.sl"
10148 shlibpath_var=SHLIB_PATH
10149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 ;;
10153 esac
3725885a 10154 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10155 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10156 # or fails outright, so override atomically:
10157 install_override_mode=555
ce2cded5
L
10158 ;;
10159
10160interix[3-9]*)
10161 version_type=linux
10162 need_lib_prefix=no
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=no
10169 hardcode_into_libs=yes
10170 ;;
d7040cdb 10171
ce2cded5
L
10172irix5* | irix6* | nonstopux*)
10173 case $host_os in
10174 nonstopux*) version_type=nonstopux ;;
10175 *)
10176 if test "$lt_cv_prog_gnu_ld" = yes; then
10177 version_type=linux
10178 else
10179 version_type=irix
10180 fi ;;
10181 esac
10182 need_lib_prefix=no
10183 need_version=no
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10186 case $host_os in
10187 irix5* | nonstopux*)
10188 libsuff= shlibsuff=
10189 ;;
10190 *)
10191 case $LD in # libtool.m4 will add one of these switches to LD
10192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10193 libsuff= shlibsuff= libmagic=32-bit;;
10194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10195 libsuff=32 shlibsuff=N32 libmagic=N32;;
10196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10198 *) libsuff= shlibsuff= libmagic=never-match;;
10199 esac
10200 ;;
10201 esac
10202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10203 shlibpath_overrides_runpath=no
10204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10206 hardcode_into_libs=yes
10207 ;;
d7040cdb 10208
ce2cded5
L
10209# No shared lib support for Linux oldld, aout, or coff.
10210linux*oldld* | linux*aout* | linux*coff*)
10211 dynamic_linker=no
10212 ;;
10213
10214# This must be Linux ELF.
58e24671 10215linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10216 version_type=linux
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=no
39144654 10224
ce2cded5 10225 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10226 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
39144654
RW
10228else
10229 lt_cv_shlibpath_overrides_runpath=no
10230 save_LDFLAGS=$LDFLAGS
10231 save_libdir=$libdir
10232 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10233 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10235/* end confdefs.h. */
10236
d7040cdb
SE
10237int
10238main ()
10239{
ce2cded5 10240
d7040cdb
SE
10241 ;
10242 return 0;
10243}
10244_ACEOF
81ecdfbb
RW
10245if ac_fn_c_try_link "$LINENO"; then :
10246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10247 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10248fi
d7040cdb 10249fi
81ecdfbb
RW
10250rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10252 LDFLAGS=$save_LDFLAGS
10253 libdir=$save_libdir
10254
10255fi
10256
10257 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10258
ce2cded5
L
10259 # This implies no fast_install, which is unacceptable.
10260 # Some rework will be needed to allow for fast_install
10261 # before this can be enabled.
10262 hardcode_into_libs=yes
d7040cdb 10263
ce2cded5
L
10264 # Append ld.so.conf contents to the search path
10265 if test -f /etc/ld.so.conf; then
3725885a 10266 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
10267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10268 fi
d7040cdb 10269
ce2cded5
L
10270 # We used to test for /lib/ld.so.1 and disable shared libraries on
10271 # powerpc, because MkLinux only supported shared libraries with the
10272 # GNU dynamic linker. Since this was broken with cross compilers,
10273 # most powerpc-linux boxes support dynamic linking these days and
10274 # people can always --disable-shared, the test was removed, and we
10275 # assume the GNU/Linux dynamic linker is in use.
10276 dynamic_linker='GNU/Linux ld.so'
10277 ;;
d7040cdb 10278
ce2cded5
L
10279netbsd*)
10280 version_type=sunos
10281 need_lib_prefix=no
10282 need_version=no
10283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10286 dynamic_linker='NetBSD (a.out) ld.so'
10287 else
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 dynamic_linker='NetBSD ld.elf_so'
10291 fi
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10295 ;;
d7040cdb 10296
ce2cded5
L
10297newsos6)
10298 version_type=linux
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 ;;
d7040cdb 10303
ce2cded5
L
10304*nto* | *qnx*)
10305 version_type=qnx
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=no
10312 hardcode_into_libs=yes
10313 dynamic_linker='ldqnx.so'
10314 ;;
d7040cdb 10315
ce2cded5
L
10316openbsd*)
10317 version_type=sunos
10318 sys_lib_dlsearch_path_spec="/usr/lib"
10319 need_lib_prefix=no
10320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10321 case $host_os in
10322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10323 *) need_version=no ;;
d7040cdb 10324 esac
ce2cded5
L
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10329 case $host_os in
10330 openbsd2.[89] | openbsd2.[89].*)
10331 shlibpath_overrides_runpath=no
10332 ;;
10333 *)
10334 shlibpath_overrides_runpath=yes
10335 ;;
10336 esac
d7040cdb 10337 else
ce2cded5 10338 shlibpath_overrides_runpath=yes
d7040cdb 10339 fi
ce2cded5 10340 ;;
d7040cdb 10341
ce2cded5
L
10342os2*)
10343 libname_spec='$name'
10344 shrext_cmds=".dll"
10345 need_lib_prefix=no
10346 library_names_spec='$libname${shared_ext} $libname.a'
10347 dynamic_linker='OS/2 ld.exe'
10348 shlibpath_var=LIBPATH
10349 ;;
d7040cdb 10350
ce2cded5
L
10351osf3* | osf4* | osf5*)
10352 version_type=osf
10353 need_lib_prefix=no
10354 need_version=no
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10360 ;;
d7040cdb 10361
ce2cded5
L
10362rdos*)
10363 dynamic_linker=no
10364 ;;
d7040cdb 10365
ce2cded5
L
10366solaris*)
10367 version_type=linux
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 # ldd complains unless libraries are executable
10376 postinstall_cmds='chmod +x $lib'
10377 ;;
d7040cdb 10378
ce2cded5
L
10379sunos4*)
10380 version_type=sunos
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10385 if test "$with_gnu_ld" = yes; then
10386 need_lib_prefix=no
10387 fi
10388 need_version=yes
10389 ;;
d7040cdb 10390
ce2cded5
L
10391sysv4 | sysv4.3*)
10392 version_type=linux
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 case $host_vendor in
10397 sni)
10398 shlibpath_overrides_runpath=no
10399 need_lib_prefix=no
10400 runpath_var=LD_RUN_PATH
10401 ;;
10402 siemens)
10403 need_lib_prefix=no
10404 ;;
10405 motorola)
10406 need_lib_prefix=no
10407 need_version=no
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410 ;;
10411 esac
10412 ;;
d7040cdb 10413
ce2cded5
L
10414sysv4*MP*)
10415 if test -d /usr/nec ;then
10416 version_type=linux
10417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10418 soname_spec='$libname${shared_ext}.$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 fi
10421 ;;
d7040cdb 10422
ce2cded5
L
10423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10424 version_type=freebsd-elf
10425 need_lib_prefix=no
10426 need_version=no
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes
10431 hardcode_into_libs=yes
10432 if test "$with_gnu_ld" = yes; then
10433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10434 else
10435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10436 case $host_os in
10437 sco3.2v5*)
10438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10439 ;;
10440 esac
10441 fi
10442 sys_lib_dlsearch_path_spec='/usr/lib'
10443 ;;
d7040cdb 10444
ce2cded5
L
10445tpf*)
10446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10447 version_type=linux
10448 need_lib_prefix=no
10449 need_version=no
b214d478 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=no
10453 hardcode_into_libs=yes
10454 ;;
d7040cdb 10455
ce2cded5
L
10456uts4*)
10457 version_type=linux
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 ;;
d7040cdb 10462
ce2cded5
L
10463*)
10464 dynamic_linker=no
10465 ;;
10466esac
81ecdfbb
RW
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10468$as_echo "$dynamic_linker" >&6; }
ce2cded5 10469test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10470
ce2cded5
L
10471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10472if test "$GCC" = yes; then
10473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10474fi
d7040cdb 10475
b214d478
SE
10476if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10478fi
10479if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10481fi
10482
d7040cdb 10483
d7040cdb 10484
d7040cdb 10485
d7040cdb 10486
d7040cdb 10487
d7040cdb 10488
d7040cdb 10489
d7040cdb 10490
d7040cdb 10491
d7040cdb 10492
d7040cdb
SE
10493
10494
d7040cdb 10495
d7040cdb 10496
d7040cdb 10497
d7040cdb
SE
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
d7040cdb
SE
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
d7040cdb 10527
d7040cdb 10528
d7040cdb 10529
d7040cdb 10530
d7040cdb
SE
10531
10532
10533
10534
d7040cdb 10535
d7040cdb
SE
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
d7040cdb
SE
10549
10550
10551
10552
d7040cdb
SE
10553
10554
10555
d7040cdb
SE
10556
10557
d7040cdb 10558
d7040cdb 10559
d7040cdb 10560
ce2cded5
L
10561
10562
3725885a
RW
10563
10564
10565
10566
10567
ce2cded5
L
10568
10569
10570
10571
10572
10573
81ecdfbb
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10575$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10576hardcode_action=
10577if test -n "$hardcode_libdir_flag_spec" ||
10578 test -n "$runpath_var" ||
10579 test "X$hardcode_automatic" = "Xyes" ; then
10580
10581 # We can hardcode non-existent directories.
10582 if test "$hardcode_direct" != no &&
10583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10584 # have to relink, otherwise we might link with an installed library
10585 # when we should be linking with a yet-to-be-installed one
10586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10587 test "$hardcode_minus_L" != no; then
10588 # Linking always hardcodes the temporary library directory.
10589 hardcode_action=relink
10590 else
10591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10592 hardcode_action=immediate
10593 fi
d7040cdb 10594else
ce2cded5
L
10595 # We cannot hardcode anything, or else we can only hardcode existing
10596 # directories.
10597 hardcode_action=unsupported
d7040cdb 10598fi
81ecdfbb
RW
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10600$as_echo "$hardcode_action" >&6; }
d7040cdb 10601
ce2cded5
L
10602if test "$hardcode_action" = relink ||
10603 test "$inherit_rpath" = yes; then
10604 # Fast installation is not supported
10605 enable_fast_install=no
10606elif test "$shlibpath_overrides_runpath" = yes ||
10607 test "$enable_shared" = no; then
10608 # Fast installation is not necessary
10609 enable_fast_install=needless
d7040cdb
SE
10610fi
10611
d7040cdb 10612
d7040cdb 10613
0ab6f085 10614
0ab6f085 10615
0ab6f085 10616
ce2cded5
L
10617 if test "x$enable_dlopen" != xyes; then
10618 enable_dlopen=unknown
10619 enable_dlopen_self=unknown
10620 enable_dlopen_self_static=unknown
d7040cdb 10621else
ce2cded5
L
10622 lt_cv_dlopen=no
10623 lt_cv_dlopen_libs=
d7040cdb 10624
ce2cded5
L
10625 case $host_os in
10626 beos*)
10627 lt_cv_dlopen="load_add_on"
10628 lt_cv_dlopen_libs=
10629 lt_cv_dlopen_self=yes
10630 ;;
d7040cdb 10631
b214d478 10632 mingw* | pw32* | cegcc*)
ce2cded5
L
10633 lt_cv_dlopen="LoadLibrary"
10634 lt_cv_dlopen_libs=
10635 ;;
10636
10637 cygwin*)
10638 lt_cv_dlopen="dlopen"
10639 lt_cv_dlopen_libs=
10640 ;;
10641
10642 darwin*)
10643 # if libdl is installed we need to link against it
81ecdfbb
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10645$as_echo_n "checking for dlopen in -ldl... " >&6; }
10646if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
d7040cdb 10648else
ce2cded5
L
10649 ac_check_lib_save_LIBS=$LIBS
10650LIBS="-ldl $LIBS"
81ecdfbb 10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10652/* end confdefs.h. */
10653
81ecdfbb
RW
10654/* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
ce2cded5
L
10657#ifdef __cplusplus
10658extern "C"
10659#endif
ce2cded5
L
10660char dlopen ();
10661int
10662main ()
10663{
81ecdfbb 10664return dlopen ();
ce2cded5
L
10665 ;
10666 return 0;
10667}
10668_ACEOF
81ecdfbb 10669if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10670 ac_cv_lib_dl_dlopen=yes
10671else
81ecdfbb 10672 ac_cv_lib_dl_dlopen=no
d7040cdb 10673fi
81ecdfbb
RW
10674rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10676LIBS=$ac_check_lib_save_LIBS
d7040cdb 10677fi
81ecdfbb
RW
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10679$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10680if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10682else
d7040cdb 10683
ce2cded5
L
10684 lt_cv_dlopen="dyld"
10685 lt_cv_dlopen_libs=
10686 lt_cv_dlopen_self=yes
10687
d7040cdb 10688fi
ce2cded5
L
10689
10690 ;;
10691
10692 *)
81ecdfbb
RW
10693 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10694if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10695 lt_cv_dlopen="shl_load"
10696else
81ecdfbb
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10698$as_echo_n "checking for shl_load in -ldld... " >&6; }
10699if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
ce2cded5
L
10701else
10702 ac_check_lib_save_LIBS=$LIBS
10703LIBS="-ldld $LIBS"
81ecdfbb 10704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10705/* end confdefs.h. */
d7040cdb 10706
81ecdfbb
RW
10707/* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
ce2cded5
L
10710#ifdef __cplusplus
10711extern "C"
10712#endif
ce2cded5
L
10713char shl_load ();
10714int
10715main ()
10716{
81ecdfbb 10717return shl_load ();
ce2cded5
L
10718 ;
10719 return 0;
10720}
10721_ACEOF
81ecdfbb 10722if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10723 ac_cv_lib_dld_shl_load=yes
10724else
81ecdfbb 10725 ac_cv_lib_dld_shl_load=no
ce2cded5 10726fi
81ecdfbb
RW
10727rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10729LIBS=$ac_check_lib_save_LIBS
10730fi
81ecdfbb
RW
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10732$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10733if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10735else
81ecdfbb
RW
10736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10737if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10738 lt_cv_dlopen="dlopen"
10739else
81ecdfbb
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10741$as_echo_n "checking for dlopen in -ldl... " >&6; }
10742if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
d7040cdb 10744else
ce2cded5
L
10745 ac_check_lib_save_LIBS=$LIBS
10746LIBS="-ldl $LIBS"
81ecdfbb 10747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10748/* end confdefs.h. */
10749
81ecdfbb
RW
10750/* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
ce2cded5
L
10753#ifdef __cplusplus
10754extern "C"
10755#endif
ce2cded5 10756char dlopen ();
d7040cdb
SE
10757int
10758main ()
10759{
81ecdfbb 10760return dlopen ();
d7040cdb
SE
10761 ;
10762 return 0;
10763}
10764_ACEOF
81ecdfbb 10765if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10766 ac_cv_lib_dl_dlopen=yes
d7040cdb 10767else
81ecdfbb 10768 ac_cv_lib_dl_dlopen=no
1b9750d6 10769fi
81ecdfbb
RW
10770rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10772LIBS=$ac_check_lib_save_LIBS
d7040cdb 10773fi
81ecdfbb
RW
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10775$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10776if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10778else
81ecdfbb
RW
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10780$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10781if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
d7040cdb 10783else
ce2cded5
L
10784 ac_check_lib_save_LIBS=$LIBS
10785LIBS="-lsvld $LIBS"
81ecdfbb 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10787/* end confdefs.h. */
d7040cdb 10788
81ecdfbb
RW
10789/* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
ce2cded5
L
10792#ifdef __cplusplus
10793extern "C"
10794#endif
ce2cded5 10795char dlopen ();
d7040cdb
SE
10796int
10797main ()
10798{
81ecdfbb 10799return dlopen ();
d7040cdb
SE
10800 ;
10801 return 0;
10802}
10803_ACEOF
81ecdfbb 10804if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10805 ac_cv_lib_svld_dlopen=yes
0ab6f085 10806else
81ecdfbb 10807 ac_cv_lib_svld_dlopen=no
0ab6f085 10808fi
81ecdfbb
RW
10809rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10811LIBS=$ac_check_lib_save_LIBS
0ab6f085 10812fi
81ecdfbb
RW
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10814$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10815if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10817else
81ecdfbb
RW
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10819$as_echo_n "checking for dld_link in -ldld... " >&6; }
10820if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
ce2cded5
L
10822else
10823 ac_check_lib_save_LIBS=$LIBS
10824LIBS="-ldld $LIBS"
81ecdfbb 10825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 10826/* end confdefs.h. */
ce2cded5 10827
81ecdfbb
RW
10828/* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
ce2cded5
L
10831#ifdef __cplusplus
10832extern "C"
10833#endif
ce2cded5 10834char dld_link ();
0ab6f085
AM
10835int
10836main ()
10837{
81ecdfbb 10838return dld_link ();
0ab6f085
AM
10839 ;
10840 return 0;
10841}
10842_ACEOF
81ecdfbb 10843if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10844 ac_cv_lib_dld_dld_link=yes
0ab6f085 10845else
81ecdfbb 10846 ac_cv_lib_dld_dld_link=no
0ab6f085 10847fi
81ecdfbb
RW
10848rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10850LIBS=$ac_check_lib_save_LIBS
10851fi
81ecdfbb
RW
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10853$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10854if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 10855 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10856fi
10857
10858
10859fi
10860
10861
10862fi
10863
10864
10865fi
10866
10867
10868fi
10869
10870
10871fi
10872
10873 ;;
10874 esac
10875
10876 if test "x$lt_cv_dlopen" != xno; then
10877 enable_dlopen=yes
10878 else
10879 enable_dlopen=no
10880 fi
10881
10882 case $lt_cv_dlopen in
10883 dlopen)
10884 save_CPPFLAGS="$CPPFLAGS"
10885 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10886
10887 save_LDFLAGS="$LDFLAGS"
10888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10889
10890 save_LIBS="$LIBS"
10891 LIBS="$lt_cv_dlopen_libs $LIBS"
10892
81ecdfbb
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10894$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10895if test "${lt_cv_dlopen_self+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
ce2cded5
L
10897else
10898 if test "$cross_compiling" = yes; then :
10899 lt_cv_dlopen_self=cross
10900else
10901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10902 lt_status=$lt_dlunknown
10903 cat > conftest.$ac_ext <<_LT_EOF
6eb7d830 10904#line 10904 "configure"
ce2cded5
L
10905#include "confdefs.h"
10906
10907#if HAVE_DLFCN_H
10908#include <dlfcn.h>
10909#endif
10910
10911#include <stdio.h>
10912
10913#ifdef RTLD_GLOBAL
10914# define LT_DLGLOBAL RTLD_GLOBAL
10915#else
10916# ifdef DL_GLOBAL
10917# define LT_DLGLOBAL DL_GLOBAL
10918# else
10919# define LT_DLGLOBAL 0
10920# endif
10921#endif
10922
10923/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10924 find out it does not work in some platform. */
10925#ifndef LT_DLLAZY_OR_NOW
10926# ifdef RTLD_LAZY
10927# define LT_DLLAZY_OR_NOW RTLD_LAZY
10928# else
10929# ifdef DL_LAZY
10930# define LT_DLLAZY_OR_NOW DL_LAZY
10931# else
10932# ifdef RTLD_NOW
10933# define LT_DLLAZY_OR_NOW RTLD_NOW
10934# else
10935# ifdef DL_NOW
10936# define LT_DLLAZY_OR_NOW DL_NOW
10937# else
10938# define LT_DLLAZY_OR_NOW 0
10939# endif
10940# endif
10941# endif
10942# endif
10943#endif
10944
3725885a
RW
10945/* When -fvisbility=hidden is used, assume the code has been annotated
10946 correspondingly for the symbols needed. */
10947#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10948void fnord () __attribute__((visibility("default")));
10949#endif
10950
10951void fnord () { int i=42; }
ce2cded5 10952int main ()
0ab6f085 10953{
ce2cded5
L
10954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10955 int status = $lt_dlunknown;
10956
10957 if (self)
10958 {
10959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10960 else
10961 {
10962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10963 else puts (dlerror ());
10964 }
ce2cded5
L
10965 /* dlclose (self); */
10966 }
10967 else
10968 puts (dlerror ());
10969
b214d478 10970 return status;
ce2cded5
L
10971}
10972_LT_EOF
81ecdfbb 10973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
10974 (eval $ac_link) 2>&5
10975 ac_status=$?
81ecdfbb
RW
10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
10978 (./conftest; exit; ) >&5 2>/dev/null
10979 lt_status=$?
10980 case x$lt_status in
10981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10984 esac
10985 else :
10986 # compilation failed
10987 lt_cv_dlopen_self=no
10988 fi
10989fi
10990rm -fr conftest*
10991
10992
10993fi
81ecdfbb
RW
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10995$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
10996
10997 if test "x$lt_cv_dlopen_self" = xyes; then
10998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11000$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11001if test "${lt_cv_dlopen_self_static+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
ce2cded5
L
11003else
11004 if test "$cross_compiling" = yes; then :
11005 lt_cv_dlopen_self_static=cross
11006else
11007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11008 lt_status=$lt_dlunknown
11009 cat > conftest.$ac_ext <<_LT_EOF
6eb7d830 11010#line 11010 "configure"
ce2cded5
L
11011#include "confdefs.h"
11012
11013#if HAVE_DLFCN_H
11014#include <dlfcn.h>
11015#endif
11016
11017#include <stdio.h>
11018
11019#ifdef RTLD_GLOBAL
11020# define LT_DLGLOBAL RTLD_GLOBAL
11021#else
11022# ifdef DL_GLOBAL
11023# define LT_DLGLOBAL DL_GLOBAL
11024# else
11025# define LT_DLGLOBAL 0
11026# endif
11027#endif
11028
11029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11030 find out it does not work in some platform. */
11031#ifndef LT_DLLAZY_OR_NOW
11032# ifdef RTLD_LAZY
11033# define LT_DLLAZY_OR_NOW RTLD_LAZY
11034# else
11035# ifdef DL_LAZY
11036# define LT_DLLAZY_OR_NOW DL_LAZY
11037# else
11038# ifdef RTLD_NOW
11039# define LT_DLLAZY_OR_NOW RTLD_NOW
11040# else
11041# ifdef DL_NOW
11042# define LT_DLLAZY_OR_NOW DL_NOW
11043# else
11044# define LT_DLLAZY_OR_NOW 0
11045# endif
11046# endif
11047# endif
11048# endif
11049#endif
11050
3725885a
RW
11051/* When -fvisbility=hidden is used, assume the code has been annotated
11052 correspondingly for the symbols needed. */
11053#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11054void fnord () __attribute__((visibility("default")));
11055#endif
11056
11057void fnord () { int i=42; }
ce2cded5
L
11058int main ()
11059{
11060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11061 int status = $lt_dlunknown;
11062
11063 if (self)
11064 {
11065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11066 else
11067 {
11068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11069 else puts (dlerror ());
11070 }
ce2cded5
L
11071 /* dlclose (self); */
11072 }
11073 else
11074 puts (dlerror ());
11075
b214d478 11076 return status;
0ab6f085 11077}
ce2cded5 11078_LT_EOF
81ecdfbb 11079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11080 (eval $ac_link) 2>&5
0ab6f085 11081 ac_status=$?
81ecdfbb
RW
11082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11084 (./conftest; exit; ) >&5 2>/dev/null
11085 lt_status=$?
11086 case x$lt_status in
11087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11090 esac
11091 else :
11092 # compilation failed
11093 lt_cv_dlopen_self_static=no
11094 fi
11095fi
11096rm -fr conftest*
11097
d7040cdb
SE
11098
11099fi
81ecdfbb
RW
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11101$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11102 fi
11103
11104 CPPFLAGS="$save_CPPFLAGS"
11105 LDFLAGS="$save_LDFLAGS"
11106 LIBS="$save_LIBS"
11107 ;;
11108 esac
11109
11110 case $lt_cv_dlopen_self in
11111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11112 *) enable_dlopen_self=unknown ;;
11113 esac
11114
11115 case $lt_cv_dlopen_self_static in
11116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11117 *) enable_dlopen_self_static=unknown ;;
11118 esac
d7040cdb
SE
11119fi
11120
ce2cded5
L
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137striplib=
11138old_striplib=
81ecdfbb
RW
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11140$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11141if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11145$as_echo "yes" >&6; }
0ab6f085 11146else
ce2cded5
L
11147# FIXME - insert some real tests, host_os isn't really good enough
11148 case $host_os in
11149 darwin*)
11150 if test -n "$STRIP" ; then
11151 striplib="$STRIP -x"
11152 old_striplib="$STRIP -S"
81ecdfbb
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154$as_echo "yes" >&6; }
ce2cded5 11155 else
81ecdfbb
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157$as_echo "no" >&6; }
ce2cded5
L
11158 fi
11159 ;;
11160 *)
81ecdfbb
RW
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162$as_echo "no" >&6; }
ce2cded5
L
11163 ;;
11164 esac
11165fi
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178 # Report which library types will actually be built
81ecdfbb
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11180$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11182$as_echo "$can_build_shared" >&6; }
ce2cded5 11183
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11185$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11186 test "$can_build_shared" = "no" && enable_shared=no
11187
11188 # On AIX, shared libraries and static libraries use the same namespace, and
11189 # are all built from PIC.
11190 case $host_os in
11191 aix3*)
11192 test "$enable_shared" = yes && enable_static=no
11193 if test -n "$RANLIB"; then
11194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11195 postinstall_cmds='$RANLIB $lib'
11196 fi
11197 ;;
11198
50e7d84b 11199 aix[4-9]*)
ce2cded5
L
11200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11201 test "$enable_shared" = yes && enable_static=no
11202 fi
11203 ;;
11204 esac
81ecdfbb
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11206$as_echo "$enable_shared" >&6; }
ce2cded5 11207
81ecdfbb
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11209$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11210 # Make sure either enable_shared or enable_static is yes.
11211 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11213$as_echo "$enable_static" >&6; }
ce2cded5
L
11214
11215
11216
d7040cdb 11217
0ab6f085 11218fi
d7040cdb
SE
11219ac_ext=c
11220ac_cpp='$CPP $CPPFLAGS'
11221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223ac_compiler_gnu=$ac_cv_c_compiler_gnu
11224
ce2cded5 11225CC="$lt_save_CC"
0ab6f085 11226
0ab6f085
AM
11227
11228
d7040cdb
SE
11229
11230
d7040cdb 11231
d7040cdb 11232
d7040cdb 11233
ce2cded5
L
11234
11235
11236
11237
11238
81ecdfbb 11239 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11240
11241
11242
11243
11244# Only expand once:
11245
d7040cdb
SE
11246
11247
b879806f
AM
11248# The tests for host and target for $enable_largefile require
11249# canonical names.
11250
11251
11252
11253# As the $enable_largefile decision depends on --enable-plugins we must set it
11254# even in directories otherwise not depending on the $plugins option.
11255
11256
11257 maybe_plugins=no
11258 for ac_header in dlfcn.h
11259do :
11260 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11261"
11262if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11263 cat >>confdefs.h <<_ACEOF
11264#define HAVE_DLFCN_H 1
11265_ACEOF
11266 maybe_plugins=yes
11267fi
11268
11269done
11270
11271 for ac_header in windows.h
11272do :
11273 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11274"
11275if test "x$ac_cv_header_windows_h" = x""yes; then :
11276 cat >>confdefs.h <<_ACEOF
11277#define HAVE_WINDOWS_H 1
11278_ACEOF
11279 maybe_plugins=yes
11280fi
11281
11282done
11283
11284
11285 # Check whether --enable-plugins was given.
11286if test "${enable_plugins+set}" = set; then :
11287 enableval=$enable_plugins; case "${enableval}" in
11288 no) plugins=no ;;
11289 *) plugins=yes
11290 if test "$maybe_plugins" != "yes" ; then
11291 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11292 fi ;;
11293 esac
11294else
11295 plugins=$maybe_plugins
11296
11297fi
11298
2974be62
AM
11299 if test "$plugins" = "yes"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11301$as_echo_n "checking for library containing dlopen... " >&6; }
11302if test "${ac_cv_search_dlopen+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304else
11305 ac_func_search_save_LIBS=$LIBS
11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307/* end confdefs.h. */
11308
11309/* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312#ifdef __cplusplus
11313extern "C"
11314#endif
11315char dlopen ();
11316int
11317main ()
11318{
11319return dlopen ();
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324for ac_lib in '' dl; do
11325 if test -z "$ac_lib"; then
11326 ac_res="none required"
11327 else
11328 ac_res=-l$ac_lib
11329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11330 fi
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_search_dlopen=$ac_res
11333fi
11334rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext
11336 if test "${ac_cv_search_dlopen+set}" = set; then :
11337 break
11338fi
11339done
11340if test "${ac_cv_search_dlopen+set}" = set; then :
11341
11342else
11343 ac_cv_search_dlopen=no
11344fi
11345rm conftest.$ac_ext
11346LIBS=$ac_func_search_save_LIBS
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11349$as_echo "$ac_cv_search_dlopen" >&6; }
11350ac_res=$ac_cv_search_dlopen
11351if test "$ac_res" != no; then :
11352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11353
11354fi
11355
11356 fi
b879806f
AM
11357
11358
11359case "${host}" in
11360 sparc-*-solaris*|i[3-7]86-*-solaris*)
11361 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11362 # are mutually exclusive; and without procfs support, the bfd/ elf module
11363 # cannot provide certain routines such as elfcore_write_prpsinfo
11364 # or elfcore_write_prstatus. So unless the user explicitly requested
11365 # large-file support through the --enable-largefile switch, disable
11366 # large-file support in favor of procfs support.
11367 test "${target}" = "${host}" -a "x$plugins" = xno \
11368 && : ${enable_largefile="no"}
11369 ;;
11370esac
11371
11372# Check whether --enable-largefile was given.
11373if test "${enable_largefile+set}" = set; then :
11374 enableval=$enable_largefile;
11375fi
11376
11377if test "$enable_largefile" != no; then
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11380$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11381if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 ac_cv_sys_largefile_CC=no
11385 if test "$GCC" != yes; then
11386 ac_save_CC=$CC
11387 while :; do
11388 # IRIX 6.2 and later do not support large files by default,
11389 # so use the C compiler's -n32 option if that helps.
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391/* end confdefs.h. */
11392#include <sys/types.h>
11393 /* Check that off_t can represent 2**63 - 1 correctly.
11394 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11395 since some C++ compilers masquerading as C compilers
11396 incorrectly reject 9223372036854775807. */
11397#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11399 && LARGE_OFF_T % 2147483647 == 1)
11400 ? 1 : -1];
11401int
11402main ()
11403{
11404
11405 ;
11406 return 0;
11407}
11408_ACEOF
11409 if ac_fn_c_try_compile "$LINENO"; then :
11410 break
11411fi
11412rm -f core conftest.err conftest.$ac_objext
11413 CC="$CC -n32"
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 ac_cv_sys_largefile_CC=' -n32'; break
11416fi
11417rm -f core conftest.err conftest.$ac_objext
11418 break
11419 done
11420 CC=$ac_save_CC
11421 rm -f conftest.$ac_ext
11422 fi
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11425$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11426 if test "$ac_cv_sys_largefile_CC" != no; then
11427 CC=$CC$ac_cv_sys_largefile_CC
11428 fi
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11431$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11432if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11434else
11435 while :; do
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437/* end confdefs.h. */
11438#include <sys/types.h>
11439 /* Check that off_t can represent 2**63 - 1 correctly.
11440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11441 since some C++ compilers masquerading as C compilers
11442 incorrectly reject 9223372036854775807. */
11443#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11445 && LARGE_OFF_T % 2147483647 == 1)
11446 ? 1 : -1];
11447int
11448main ()
11449{
11450
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_compile "$LINENO"; then :
11456 ac_cv_sys_file_offset_bits=no; break
11457fi
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h. */
11461#define _FILE_OFFSET_BITS 64
11462#include <sys/types.h>
11463 /* Check that off_t can represent 2**63 - 1 correctly.
11464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11465 since some C++ compilers masquerading as C compilers
11466 incorrectly reject 9223372036854775807. */
11467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11469 && LARGE_OFF_T % 2147483647 == 1)
11470 ? 1 : -1];
11471int
11472main ()
11473{
11474
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479if ac_fn_c_try_compile "$LINENO"; then :
11480 ac_cv_sys_file_offset_bits=64; break
11481fi
11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 ac_cv_sys_file_offset_bits=unknown
11484 break
11485done
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11488$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11489case $ac_cv_sys_file_offset_bits in #(
11490 no | unknown) ;;
11491 *)
11492cat >>confdefs.h <<_ACEOF
11493#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11494_ACEOF
11495;;
11496esac
11497rm -rf conftest*
11498 if test $ac_cv_sys_file_offset_bits = unknown; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11500$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11501if test "${ac_cv_sys_large_files+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11503else
11504 while :; do
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h. */
11507#include <sys/types.h>
11508 /* Check that off_t can represent 2**63 - 1 correctly.
11509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11510 since some C++ compilers masquerading as C compilers
11511 incorrectly reject 9223372036854775807. */
11512#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11514 && LARGE_OFF_T % 2147483647 == 1)
11515 ? 1 : -1];
11516int
11517main ()
11518{
11519
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524if ac_fn_c_try_compile "$LINENO"; then :
11525 ac_cv_sys_large_files=no; break
11526fi
11527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529/* end confdefs.h. */
11530#define _LARGE_FILES 1
11531#include <sys/types.h>
11532 /* Check that off_t can represent 2**63 - 1 correctly.
11533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11534 since some C++ compilers masquerading as C compilers
11535 incorrectly reject 9223372036854775807. */
11536#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11538 && LARGE_OFF_T % 2147483647 == 1)
11539 ? 1 : -1];
11540int
11541main ()
11542{
11543
11544 ;
11545 return 0;
11546}
11547_ACEOF
11548if ac_fn_c_try_compile "$LINENO"; then :
11549 ac_cv_sys_large_files=1; break
11550fi
11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 ac_cv_sys_large_files=unknown
11553 break
11554done
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11557$as_echo "$ac_cv_sys_large_files" >&6; }
11558case $ac_cv_sys_large_files in #(
11559 no | unknown) ;;
11560 *)
11561cat >>confdefs.h <<_ACEOF
11562#define _LARGE_FILES $ac_cv_sys_large_files
11563_ACEOF
11564;;
11565esac
11566rm -rf conftest*
11567 fi
11568fi
11569
11570
11571
d7040cdb 11572for ac_func in setmode
81ecdfbb
RW
11573do :
11574 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11575if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11576 cat >>confdefs.h <<_ACEOF
81ecdfbb 11577#define HAVE_SETMODE 1
d7040cdb
SE
11578_ACEOF
11579
11580fi
11581done
11582
11583
ba241f2d 11584ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr hu"
d7040cdb
SE
11585# If we haven't got the data from the intl directory,
11586# assume NLS is disabled.
11587USE_NLS=no
11588LIBINTL=
11589LIBINTL_DEP=
11590INCINTL=
11591XGETTEXT=
11592GMSGFMT=
11593POSUB=
11594
11595if test -f ../intl/config.intl; then
11596 . ../intl/config.intl
11597fi
81ecdfbb
RW
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11599$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11600if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
d7040cdb 11603else
81ecdfbb
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605$as_echo "yes" >&6; }
d7040cdb 11606
81ecdfbb 11607$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11608
11609
81ecdfbb
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11611$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11612 # Look for .po and .gmo files in the source directory.
11613 CATALOGS=
11614 XLINGUAS=
11615 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11616 # If there aren't any .gmo files the shell will give us the
11617 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11618 # weeded out.
11619 case "$cat" in *\**)
11620 continue;;
11621 esac
11622 # The quadruple backslash is collapsed to a double backslash
11623 # by the backticks, then collapsed again by the double quotes,
11624 # leaving us with one backslash in the sed expression (right
11625 # before the dot that mustn't act as a wildcard).
11626 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11627 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11628 # The user is allowed to set LINGUAS to a list of languages to
11629 # install catalogs for. If it's empty that means "all of them."
11630 if test "x$LINGUAS" = x; then
11631 CATALOGS="$CATALOGS $cat"
11632 XLINGUAS="$XLINGUAS $lang"
11633 else
11634 case "$LINGUAS" in *$lang*)
11635 CATALOGS="$CATALOGS $cat"
11636 XLINGUAS="$XLINGUAS $lang"
11637 ;;
11638 esac
11639 fi
11640 done
11641 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11643$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11644
11645
11646 DATADIRNAME=share
11647
11648 INSTOBJEXT=.mo
11649
11650 GENCAT=gencat
11651
11652 CATOBJEXT=.gmo
11653
11654fi
11655
11656 MKINSTALLDIRS=
11657 if test -n "$ac_aux_dir"; then
11658 case "$ac_aux_dir" in
11659 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11660 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11661 esac
11662 fi
11663 if test -z "$MKINSTALLDIRS"; then
11664 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11665 fi
11666
11667
11668
81ecdfbb
RW
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11670$as_echo_n "checking whether NLS is requested... " >&6; }
11671 # Check whether --enable-nls was given.
11672if test "${enable_nls+set}" = set; then :
11673 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11674else
11675 USE_NLS=yes
81ecdfbb
RW
11676fi
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11679$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11680
11681
11682
11683
11684
11685
11686# Prepare PATH_SEPARATOR.
11687# The user is always right.
11688if test "${PATH_SEPARATOR+set}" != set; then
11689 echo "#! /bin/sh" >conf$$.sh
11690 echo "exit 0" >>conf$$.sh
11691 chmod +x conf$$.sh
11692 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11693 PATH_SEPARATOR=';'
11694 else
11695 PATH_SEPARATOR=:
11696 fi
11697 rm -f conf$$.sh
11698fi
11699
11700# Find out how to test for executable files. Don't use a zero-byte file,
11701# as systems may use methods other than mode bits to determine executability.
11702cat >conf$$.file <<_ASEOF
11703#! /bin/sh
11704exit 0
11705_ASEOF
11706chmod +x conf$$.file
11707if test -x conf$$.file >/dev/null 2>&1; then
11708 ac_executable_p="test -x"
11709else
11710 ac_executable_p="test -f"
11711fi
11712rm -f conf$$.file
11713
11714# Extract the first word of "msgfmt", so it can be a program name with args.
11715set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
11718if test "${ac_cv_path_MSGFMT+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
d7040cdb
SE
11720else
11721 case "$MSGFMT" in
11722 [\\/]* | ?:[\\/]*)
11723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11724 ;;
11725 *)
11726 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11727 for ac_dir in $PATH; do
11728 IFS="$ac_save_IFS"
11729 test -z "$ac_dir" && ac_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11732 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11733 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11734 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11735 break 2
11736 fi
11737 fi
11738 done
11739 done
11740 IFS="$ac_save_IFS"
11741 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11742 ;;
11743esac
11744fi
11745MSGFMT="$ac_cv_path_MSGFMT"
11746if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11748$as_echo "$MSGFMT" >&6; }
d7040cdb 11749else
81ecdfbb
RW
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751$as_echo "no" >&6; }
d7040cdb
SE
11752fi
11753
11754 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11755set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757$as_echo_n "checking for $ac_word... " >&6; }
11758if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
d7040cdb
SE
11760else
11761 case $GMSGFMT in
11762 [\\/]* | ?:[\\/]*)
11763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11764 ;;
11765 *)
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11773 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11775 break 2
11776 fi
11777done
81ecdfbb
RW
11778 done
11779IFS=$as_save_IFS
d7040cdb
SE
11780
11781 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11782 ;;
11783esac
11784fi
11785GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11786if test -n "$GMSGFMT"; then
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11788$as_echo "$GMSGFMT" >&6; }
d7040cdb 11789else
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
d7040cdb
SE
11792fi
11793
11794
11795
81ecdfbb 11796
d7040cdb
SE
11797# Prepare PATH_SEPARATOR.
11798# The user is always right.
11799if test "${PATH_SEPARATOR+set}" != set; then
11800 echo "#! /bin/sh" >conf$$.sh
11801 echo "exit 0" >>conf$$.sh
11802 chmod +x conf$$.sh
11803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11804 PATH_SEPARATOR=';'
11805 else
11806 PATH_SEPARATOR=:
11807 fi
11808 rm -f conf$$.sh
11809fi
11810
11811# Find out how to test for executable files. Don't use a zero-byte file,
11812# as systems may use methods other than mode bits to determine executability.
11813cat >conf$$.file <<_ASEOF
11814#! /bin/sh
11815exit 0
11816_ASEOF
11817chmod +x conf$$.file
11818if test -x conf$$.file >/dev/null 2>&1; then
11819 ac_executable_p="test -x"
11820else
11821 ac_executable_p="test -f"
11822fi
11823rm -f conf$$.file
11824
11825# Extract the first word of "xgettext", so it can be a program name with args.
11826set dummy xgettext; ac_word=$2
81ecdfbb
RW
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828$as_echo_n "checking for $ac_word... " >&6; }
11829if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
d7040cdb
SE
11831else
11832 case "$XGETTEXT" in
11833 [\\/]* | ?:[\\/]*)
11834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11835 ;;
11836 *)
11837 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11838 for ac_dir in $PATH; do
11839 IFS="$ac_save_IFS"
11840 test -z "$ac_dir" && ac_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11843 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11844 (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
11845 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11846 break 2
11847 fi
11848 fi
11849 done
11850 done
11851 IFS="$ac_save_IFS"
11852 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11853 ;;
11854esac
11855fi
11856XGETTEXT="$ac_cv_path_XGETTEXT"
11857if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11859$as_echo "$XGETTEXT" >&6; }
d7040cdb 11860else
81ecdfbb
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
d7040cdb
SE
11863fi
11864
11865 rm -f messages.po
11866
11867
11868# Prepare PATH_SEPARATOR.
11869# The user is always right.
11870if test "${PATH_SEPARATOR+set}" != set; then
11871 echo "#! /bin/sh" >conf$$.sh
11872 echo "exit 0" >>conf$$.sh
11873 chmod +x conf$$.sh
11874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11875 PATH_SEPARATOR=';'
11876 else
11877 PATH_SEPARATOR=:
11878 fi
11879 rm -f conf$$.sh
11880fi
11881
11882# Find out how to test for executable files. Don't use a zero-byte file,
11883# as systems may use methods other than mode bits to determine executability.
11884cat >conf$$.file <<_ASEOF
11885#! /bin/sh
11886exit 0
11887_ASEOF
11888chmod +x conf$$.file
11889if test -x conf$$.file >/dev/null 2>&1; then
11890 ac_executable_p="test -x"
11891else
11892 ac_executable_p="test -f"
11893fi
11894rm -f conf$$.file
11895
11896# Extract the first word of "msgmerge", so it can be a program name with args.
11897set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
d7040cdb
SE
11902else
11903 case "$MSGMERGE" in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11906 ;;
11907 *)
11908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11909 for ac_dir in $PATH; do
11910 IFS="$ac_save_IFS"
11911 test -z "$ac_dir" && ac_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11914 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11915 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11916 break 2
11917 fi
11918 fi
11919 done
11920 done
11921 IFS="$ac_save_IFS"
11922 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11923 ;;
11924esac
11925fi
11926MSGMERGE="$ac_cv_path_MSGMERGE"
11927if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11929$as_echo "$MSGMERGE" >&6; }
d7040cdb 11930else
81ecdfbb
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
d7040cdb
SE
11933fi
11934
11935
11936 if test "$GMSGFMT" != ":"; then
11937 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11938 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11939 : ;
11940 else
11941 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11943$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11944 GMSGFMT=":"
11945 fi
11946 fi
11947
11948 if test "$XGETTEXT" != ":"; then
11949 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11950 (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
11951 : ;
11952 else
81ecdfbb
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11954$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11955 XGETTEXT=":"
11956 fi
11957 rm -f messages.po
11958 fi
11959
81ecdfbb
RW
11960 ac_config_commands="$ac_config_commands default-1"
11961
d7040cdb
SE
11962
11963
11964
81ecdfbb
RW
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11966$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11967 # Check whether --enable-maintainer-mode was given.
11968if test "${enable_maintainer_mode+set}" = set; then :
11969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11970else
d7040cdb 11971 USE_MAINTAINER_MODE=no
81ecdfbb 11972fi
d7040cdb 11973
81ecdfbb
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11975$as_echo "$USE_MAINTAINER_MODE" >&6; }
11976 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11977 MAINTAINER_MODE_TRUE=
11978 MAINTAINER_MODE_FALSE='#'
11979else
11980 MAINTAINER_MODE_TRUE='#'
11981 MAINTAINER_MODE_FALSE=
20e95c23 11982fi
6bf9431b 11983
d7040cdb
SE
11984 MAINT=$MAINTAINER_MODE_TRUE
11985
11986
81ecdfbb 11987 if false; then
d7040cdb
SE
11988 GENINSRC_NEVER_TRUE=
11989 GENINSRC_NEVER_FALSE='#'
11990else
11991 GENINSRC_NEVER_TRUE='#'
11992 GENINSRC_NEVER_FALSE=
20e95c23 11993fi
6bf9431b
BE
11994
11995
11996
6bf9431b 11997for ac_header in sys/gmon_out.h
81ecdfbb
RW
11998do :
11999 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
12000if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 12001 cat >>confdefs.h <<_ACEOF
81ecdfbb 12002#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
12003_ACEOF
12004
12005fi
12006
12007done
12008
12009
81ecdfbb
RW
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12011$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12012if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
34875e64 12014else
81ecdfbb 12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
12016/* end confdefs.h. */
12017#include <unistd.h>
12018int
12019main ()
12020{
12021extern int getopt (int, char *const*, const char *);
12022 ;
12023 return 0;
12024}
12025_ACEOF
81ecdfbb 12026if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
12027 gprof_cv_decl_getopt_unistd_h=yes
12028else
81ecdfbb 12029 gprof_cv_decl_getopt_unistd_h=no
34875e64 12030fi
81ecdfbb 12031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12032fi
12033
81ecdfbb
RW
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
12035$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
12036if test $gprof_cv_decl_getopt_unistd_h = yes; then
12037
81ecdfbb 12038$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
12039
12040fi
12041
1b9750d6 12042# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12044$as_echo_n "checking for library containing fabs... " >&6; }
12045if test "${ac_cv_search_fabs+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
1b9750d6
NC
12047else
12048 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
12050/* end confdefs.h. */
12051
81ecdfbb
RW
12052/* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
1b9750d6
NC
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char fabs ();
12059int
12060main ()
12061{
81ecdfbb 12062return fabs ();
1b9750d6
NC
12063 ;
12064 return 0;
12065}
12066_ACEOF
81ecdfbb
RW
12067for ac_lib in '' m; do
12068 if test -z "$ac_lib"; then
12069 ac_res="none required"
12070 else
12071 ac_res=-l$ac_lib
0ab6f085 12072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12073 fi
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_search_fabs=$ac_res
12076fi
12077rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext
12079 if test "${ac_cv_search_fabs+set}" = set; then :
12080 break
12081fi
12082done
12083if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 12084
1b9750d6 12085else
81ecdfbb 12086 ac_cv_search_fabs=no
1b9750d6 12087fi
81ecdfbb 12088rm conftest.$ac_ext
1b9750d6
NC
12089LIBS=$ac_func_search_save_LIBS
12090fi
81ecdfbb
RW
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12092$as_echo "$ac_cv_search_fabs" >&6; }
12093ac_res=$ac_cv_search_fabs
12094if test "$ac_res" != no; then :
12095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
12096
12097fi
12098
12099
9e9b66a9 12100
270c9937
JB
12101# Set the 'development' global.
12102. $srcdir/../bfd/development.sh
12103
9780e045 12104# Default set of GCC warnings to enable.
397841b5 12105GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12106
12107# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
12110__GNUC__
12111_ACEOF
12112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12113 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12114
12115else
12116 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12117fi
12118rm -f conftest*
12119
1ad12f97 12120
9780e045
NC
12121# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124__GNUC__
12125_ACEOF
12126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12127 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12128
12129else
12130 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12131fi
12132rm -f conftest*
12133
12134
6757cf57
TS
12135# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12136WARN_WRITE_STRINGS=""
12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h. */
12139__GNUC__
12140_ACEOF
12141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12142 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12143
12144else
12145 WARN_WRITE_STRINGS="-Wwrite-strings"
12146fi
12147rm -f conftest*
12148
9780e045 12149
81ecdfbb
RW
12150# Check whether --enable-werror was given.
12151if test "${enable_werror+set}" = set; then :
12152 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
12153 yes | y) ERROR_ON_WARNING="yes" ;;
12154 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12155 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 12156 esac
81ecdfbb
RW
12157fi
12158
1ad12f97 12159
397841b5 12160# Disable -Wformat by default when using gcc on mingw
32b1cf22
L
12161case "${host}" in
12162 *-*-mingw32*)
12163 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12164 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12165 fi
12166 ;;
12167 *) ;;
12168esac
12169
270c9937
JB
12170# Enable -Werror by default when using gcc. Turn it off for releases.
12171if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9e9b66a9
AM
12172 ERROR_ON_WARNING=yes
12173fi
12174
12175NO_WERROR=
12176if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12177 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 12178 NO_WERROR="-Wno-error"
1ad12f97
NC
12179fi
12180
a541e3ce
SE
12181if test "${GCC}" = yes ; then
12182 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12183fi
12184
81ecdfbb
RW
12185# Check whether --enable-build-warnings was given.
12186if test "${enable_build_warnings+set}" = set; then :
12187 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
12188 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12189 no) if test "${GCC}" = yes ; then
12190 WARN_CFLAGS="-w"
12191 fi;;
6bf9431b 12192 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12193 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 12194 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12195 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 12196 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 12197esac
81ecdfbb
RW
12198fi
12199
9e9b66a9
AM
12200
12201if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12202 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
12203fi
12204
12205
9e9b66a9
AM
12206
12207
12208
108a6f8e
CD
12209
12210
12211
12212
31dd3154 12213
6757cf57 12214
81ecdfbb 12215ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 12216
6bf9431b
BE
12217cat >confcache <<\_ACEOF
12218# This file is a shell script that caches the results of configure
12219# tests run on this system so they can be shared between configure
12220# scripts and configure runs, see configure's option --config-cache.
12221# It is not useful on other systems. If it contains results you don't
12222# want to keep, you may remove or edit it.
12223#
12224# config.status only pays attention to the cache file if you give it
12225# the --recheck option to rerun configure.
12226#
12227# `ac_cv_env_foo' variables (set or unset) will be overridden when
12228# loading this file, other *unset* `ac_cv_foo' will be assigned the
12229# following values.
12230
12231_ACEOF
12232
12233# The following way of writing the cache mishandles newlines in values,
12234# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12235# So, we kill variables containing newlines.
6bf9431b
BE
12236# Ultrix sh set writes to stderr and can't be redirected directly,
12237# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12238(
12239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12240 eval ac_val=\$$ac_var
12241 case $ac_val in #(
12242 *${as_nl}*)
12243 case $ac_var in #(
12244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12246 esac
12247 case $ac_var in #(
12248 _ | IFS | as_nl) ;; #(
12249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12250 *) { eval $ac_var=; unset $ac_var;} ;;
12251 esac ;;
12252 esac
12253 done
12254
6bf9431b 12255 (set) 2>&1 |
81ecdfbb
RW
12256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12257 *${as_nl}ac_space=\ *)
12258 # `set' does not quote correctly, so add quotes: double-quote
12259 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
12260 sed -n \
12261 "s/'/'\\\\''/g;
12262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12263 ;; #(
6bf9431b
BE
12264 *)
12265 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 12267 ;;
81ecdfbb
RW
12268 esac |
12269 sort
12270) |
6bf9431b 12271 sed '
81ecdfbb 12272 /^ac_cv_env_/b end
6bf9431b 12273 t clear
81ecdfbb 12274 :clear
6bf9431b
BE
12275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12276 t end
81ecdfbb
RW
12277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12278 :end' >>confcache
12279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12280 if test -w "$cache_file"; then
12281 test "x$cache_file" != "x/dev/null" &&
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12283$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12284 cat confcache >$cache_file
12285 else
81ecdfbb
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12287$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12288 fi
12289fi
12290rm -f confcache
12291
12292test "x$prefix" = xNONE && prefix=$ac_default_prefix
12293# Let make expand exec_prefix.
12294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12295
6bf9431b
BE
12296DEFS=-DHAVE_CONFIG_H
12297
12298ac_libobjs=
12299ac_ltlibobjs=
12300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12301 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12305 # will be set to the directory where LIBOBJS objects are built.
12306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12308done
12309LIBOBJS=$ac_libobjs
12310
12311LTLIBOBJS=$ac_ltlibobjs
12312
12313
12314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12315 as_fn_error "conditional \"AMDEP\" was never defined.
12316Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12317fi
12318if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12319 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12320Usually this means the macro was only invoked conditionally." "$LINENO" 5
12321fi
12322 if test -n "$EXEEXT"; then
12323 am__EXEEXT_TRUE=
12324 am__EXEEXT_FALSE='#'
12325else
12326 am__EXEEXT_TRUE='#'
12327 am__EXEEXT_FALSE=
6bf9431b 12328fi
81ecdfbb 12329
6bf9431b 12330if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12331 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12332Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12333fi
d5fbea21 12334if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12335 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12336Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12337fi
6bf9431b
BE
12338
12339: ${CONFIG_STATUS=./config.status}
81ecdfbb 12340ac_write_fail=0
6bf9431b
BE
12341ac_clean_files_save=$ac_clean_files
12342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12345as_write_fail=0
12346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12347#! $SHELL
12348# Generated by $as_me.
12349# Run this file to recreate the current configuration.
12350# Compiler output produced by configure, useful for debugging
12351# configure, is in config.log if it exists.
12352
12353debug=false
12354ac_cs_recheck=false
12355ac_cs_silent=false
6bf9431b 12356
81ecdfbb
RW
12357SHELL=\${CONFIG_SHELL-$SHELL}
12358export SHELL
12359_ASEOF
12360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12361## -------------------- ##
12362## M4sh Initialization. ##
12363## -------------------- ##
6bf9431b 12364
81ecdfbb
RW
12365# Be more Bourne compatible
12366DUALCASE=1; export DUALCASE # for MKS sh
12367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12368 emulate sh
12369 NULLCMD=:
81ecdfbb 12370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12371 # is contrary to our usage. Disable this feature.
12372 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12373 setopt NO_GLOB_SUBST
12374else
12375 case `(set -o) 2>/dev/null` in #(
12376 *posix*) :
12377 set -o posix ;; #(
12378 *) :
12379 ;;
12380esac
6bf9431b 12381fi
6bf9431b 12382
81ecdfbb
RW
12383
12384as_nl='
12385'
12386export as_nl
12387# Printing a long string crashes Solaris 7 /usr/bin/printf.
12388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12391# Prefer a ksh shell builtin over an external printf program on Solaris,
12392# but without wasting forks for bash or zsh.
12393if test -z "$BASH_VERSION$ZSH_VERSION" \
12394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12395 as_echo='print -r --'
12396 as_echo_n='print -rn --'
12397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12398 as_echo='printf %s\n'
12399 as_echo_n='printf %s'
12400else
12401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12403 as_echo_n='/usr/ucb/echo -n'
12404 else
12405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12406 as_echo_n_body='eval
12407 arg=$1;
12408 case $arg in #(
12409 *"$as_nl"*)
12410 expr "X$arg" : "X\\(.*\\)$as_nl";
12411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12412 esac;
12413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12414 '
12415 export as_echo_n_body
12416 as_echo_n='sh -c $as_echo_n_body as_echo'
12417 fi
12418 export as_echo_body
12419 as_echo='sh -c $as_echo_body as_echo'
12420fi
12421
12422# The user is always right.
12423if test "${PATH_SEPARATOR+set}" != set; then
12424 PATH_SEPARATOR=:
12425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12427 PATH_SEPARATOR=';'
12428 }
6bf9431b
BE
12429fi
12430
12431
81ecdfbb
RW
12432# IFS
12433# We need space, tab and new line, in precisely that order. Quoting is
12434# there to prevent editors from complaining about space-tab.
12435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12436# splitting by setting IFS to empty value.)
12437IFS=" "" $as_nl"
12438
12439# Find who we are. Look in the path if we contain no directory separator.
12440case $0 in #((
12441 *[\\/]* ) as_myself=$0 ;;
12442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12448 done
12449IFS=$as_save_IFS
12450
12451 ;;
12452esac
12453# We did not find ourselves, most probably we were run as `sh COMMAND'
12454# in which case we are not to be found in the path.
12455if test "x$as_myself" = x; then
12456 as_myself=$0
12457fi
12458if test ! -f "$as_myself"; then
12459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12460 exit 1
12461fi
12462
12463# Unset variables that we do not need and which cause bugs (e.g. in
12464# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12465# suppresses any "Segmentation fault" message there. '((' could
12466# trigger a bug in pdksh 5.2.14.
12467for as_var in BASH_ENV ENV MAIL MAILPATH
12468do eval test x\${$as_var+set} = xset \
12469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12470done
6bf9431b
BE
12471PS1='$ '
12472PS2='> '
12473PS4='+ '
12474
12475# NLS nuisances.
81ecdfbb
RW
12476LC_ALL=C
12477export LC_ALL
12478LANGUAGE=C
12479export LANGUAGE
12480
12481# CDPATH.
12482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12483
12484
12485# as_fn_error ERROR [LINENO LOG_FD]
12486# ---------------------------------
12487# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12488# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12489# script with status $?, using 1 if that was 0.
12490as_fn_error ()
12491{
12492 as_status=$?; test $as_status -eq 0 && as_status=1
12493 if test "$3"; then
12494 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12496 fi
81ecdfbb
RW
12497 $as_echo "$as_me: error: $1" >&2
12498 as_fn_exit $as_status
12499} # as_fn_error
12500
12501
12502# as_fn_set_status STATUS
12503# -----------------------
12504# Set $? to STATUS, without forking.
12505as_fn_set_status ()
12506{
12507 return $1
12508} # as_fn_set_status
6bf9431b 12509
81ecdfbb
RW
12510# as_fn_exit STATUS
12511# -----------------
12512# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12513as_fn_exit ()
12514{
12515 set +e
12516 as_fn_set_status $1
12517 exit $1
12518} # as_fn_exit
12519
12520# as_fn_unset VAR
12521# ---------------
12522# Portably unset VAR.
12523as_fn_unset ()
12524{
12525 { eval $1=; unset $1;}
12526}
12527as_unset=as_fn_unset
12528# as_fn_append VAR VALUE
12529# ----------------------
12530# Append the text in VALUE to the end of the definition contained in VAR. Take
12531# advantage of any shell optimizations that allow amortized linear growth over
12532# repeated appends, instead of the typical quadratic growth present in naive
12533# implementations.
12534if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12535 eval 'as_fn_append ()
12536 {
12537 eval $1+=\$2
12538 }'
12539else
12540 as_fn_append ()
12541 {
12542 eval $1=\$$1\$2
12543 }
12544fi # as_fn_append
12545
12546# as_fn_arith ARG...
12547# ------------------
12548# Perform arithmetic evaluation on the ARGs, and store the result in the
12549# global $as_val. Take advantage of shells that can avoid forks. The arguments
12550# must be portable across $(()) and expr.
12551if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12552 eval 'as_fn_arith ()
12553 {
12554 as_val=$(( $* ))
12555 }'
12556else
12557 as_fn_arith ()
12558 {
12559 as_val=`expr "$@" || test $? -eq 1`
12560 }
12561fi # as_fn_arith
12562
12563
12564if expr a : '\(a\)' >/dev/null 2>&1 &&
12565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12566 as_expr=expr
12567else
12568 as_expr=false
12569fi
12570
81ecdfbb 12571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12572 as_basename=basename
12573else
12574 as_basename=false
252b5132 12575fi
252b5132 12576
81ecdfbb
RW
12577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12578 as_dirname=dirname
12579else
12580 as_dirname=false
12581fi
252b5132 12582
81ecdfbb 12583as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12585 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12587$as_echo X/"$0" |
12588 sed '/^.*\/\([^/][^/]*\)\/*$/{
12589 s//\1/
12590 q
12591 }
12592 /^X\/\(\/\/\)$/{
12593 s//\1/
12594 q
12595 }
12596 /^X\/\(\/\).*/{
12597 s//\1/
12598 q
12599 }
12600 s/.*/./; q'`
0ab6f085 12601
0ab6f085
AM
12602# Avoid depending upon Character Ranges.
12603as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12605as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12606as_cr_digits='0123456789'
12607as_cr_alnum=$as_cr_Letters$as_cr_digits
12608
81ecdfbb
RW
12609ECHO_C= ECHO_N= ECHO_T=
12610case `echo -n x` in #(((((
12611-n*)
12612 case `echo 'xy\c'` in
12613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12614 xy) ECHO_C='\c';;
12615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12616 ECHO_T=' ';;
12617 esac;;
12618*)
12619 ECHO_N='-n';;
6bf9431b
BE
12620esac
12621
81ecdfbb
RW
12622rm -f conf$$ conf$$.exe conf$$.file
12623if test -d conf$$.dir; then
12624 rm -f conf$$.dir/conf$$.file
0eee5820 12625else
81ecdfbb
RW
12626 rm -f conf$$.dir
12627 mkdir conf$$.dir 2>/dev/null
0eee5820 12628fi
81ecdfbb
RW
12629if (echo >conf$$.file) 2>/dev/null; then
12630 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12631 as_ln_s='ln -s'
81ecdfbb
RW
12632 # ... but there are two gotchas:
12633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12635 # In both cases, we have to default to `cp -p'.
12636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12637 as_ln_s='cp -p'
12638 elif ln conf$$.file conf$$ 2>/dev/null; then
12639 as_ln_s=ln
12640 else
12641 as_ln_s='cp -p'
0ab6f085 12642 fi
6bf9431b
BE
12643else
12644 as_ln_s='cp -p'
0eee5820 12645fi
81ecdfbb
RW
12646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12647rmdir conf$$.dir 2>/dev/null
12648
12649
12650# as_fn_mkdir_p
12651# -------------
12652# Create "$as_dir" as a directory, including parents if necessary.
12653as_fn_mkdir_p ()
12654{
12655
12656 case $as_dir in #(
12657 -*) as_dir=./$as_dir;;
12658 esac
12659 test -d "$as_dir" || eval $as_mkdir_p || {
12660 as_dirs=
12661 while :; do
12662 case $as_dir in #(
12663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12664 *) as_qdir=$as_dir;;
12665 esac
12666 as_dirs="'$as_qdir' $as_dirs"
12667 as_dir=`$as_dirname -- "$as_dir" ||
12668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12669 X"$as_dir" : 'X\(//\)[^/]' \| \
12670 X"$as_dir" : 'X\(//\)$' \| \
12671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12672$as_echo X"$as_dir" |
12673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12674 s//\1/
12675 q
12676 }
12677 /^X\(\/\/\)[^/].*/{
12678 s//\1/
12679 q
12680 }
12681 /^X\(\/\/\)$/{
12682 s//\1/
12683 q
12684 }
12685 /^X\(\/\).*/{
12686 s//\1/
12687 q
12688 }
12689 s/.*/./; q'`
12690 test -d "$as_dir" && break
12691 done
12692 test -z "$as_dirs" || eval "mkdir $as_dirs"
12693 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12694
81ecdfbb
RW
12695
12696} # as_fn_mkdir_p
6bf9431b 12697if mkdir -p . 2>/dev/null; then
81ecdfbb 12698 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12699else
12700 test -d ./-p && rmdir ./-p
12701 as_mkdir_p=false
1b9750d6 12702fi
0ab6f085 12703
81ecdfbb
RW
12704if test -x / >/dev/null 2>&1; then
12705 as_test_x='test -x'
12706else
12707 if ls -dL / >/dev/null 2>&1; then
12708 as_ls_L_option=L
12709 else
12710 as_ls_L_option=
12711 fi
12712 as_test_x='
12713 eval sh -c '\''
12714 if test -d "$1"; then
12715 test -d "$1/.";
12716 else
12717 case $1 in #(
12718 -*)set "./$1";;
12719 esac;
12720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12721 ???[sx]*):;;*)false;;esac;fi
12722 '\'' sh
12723 '
12724fi
12725as_executable_p=$as_test_x
0eee5820 12726
6bf9431b
BE
12727# Sed expression to map a string onto a valid CPP name.
12728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12729
12730# Sed expression to map a string onto a valid variable name.
12731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12732
1b9750d6 12733
6bf9431b 12734exec 6>&1
81ecdfbb
RW
12735## ----------------------------------- ##
12736## Main body of $CONFIG_STATUS script. ##
12737## ----------------------------------- ##
12738_ASEOF
12739test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12740
81ecdfbb
RW
12741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12742# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12743# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12744# values after options handling.
12745ac_log="
d8bd95ef 12746This file was extended by gprof $as_me 2.26.51, which was
81ecdfbb 12747generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12748
12749 CONFIG_FILES = $CONFIG_FILES
12750 CONFIG_HEADERS = $CONFIG_HEADERS
12751 CONFIG_LINKS = $CONFIG_LINKS
12752 CONFIG_COMMANDS = $CONFIG_COMMANDS
12753 $ $0 $@
12754
81ecdfbb
RW
12755on `(hostname || uname -n) 2>/dev/null | sed 1q`
12756"
12757
6bf9431b
BE
12758_ACEOF
12759
81ecdfbb
RW
12760case $ac_config_files in *"
12761"*) set x $ac_config_files; shift; ac_config_files=$*;;
12762esac
a2d91340 12763
81ecdfbb
RW
12764case $ac_config_headers in *"
12765"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12766esac
0ab6f085 12767
0ab6f085 12768
81ecdfbb
RW
12769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12770# Files that config.status was made for.
12771config_files="$ac_config_files"
12772config_headers="$ac_config_headers"
12773config_commands="$ac_config_commands"
a2d91340 12774
81ecdfbb 12775_ACEOF
0ab6f085 12776
81ecdfbb 12777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12778ac_cs_usage="\
81ecdfbb
RW
12779\`$as_me' instantiates files and other configuration actions
12780from templates according to the current configuration. Unless the files
12781and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12782
81ecdfbb 12783Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12784
12785 -h, --help print this help, then exit
81ecdfbb
RW
12786 -V, --version print version number and configuration settings, then exit
12787 -q, --quiet, --silent
12788 do not print progress messages
6bf9431b
BE
12789 -d, --debug don't remove temporary files
12790 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12791 --file=FILE[:TEMPLATE]
12792 instantiate the configuration file FILE
12793 --header=FILE[:TEMPLATE]
12794 instantiate the configuration header FILE
6bf9431b
BE
12795
12796Configuration files:
12797$config_files
12798
12799Configuration headers:
12800$config_headers
12801
12802Configuration commands:
12803$config_commands
12804
81ecdfbb 12805Report bugs to the package provider."
0ab6f085 12806
81ecdfbb
RW
12807_ACEOF
12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12809ac_cs_version="\\
d8bd95ef 12810gprof config.status 2.26.51
81ecdfbb
RW
12811configured by $0, generated by GNU Autoconf 2.64,
12812 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12813
81ecdfbb 12814Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12815This config.status script is free software; the Free Software Foundation
12816gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12817
12818ac_pwd='$ac_pwd'
12819srcdir='$srcdir'
12820INSTALL='$INSTALL'
12821MKDIR_P='$MKDIR_P'
12822AWK='$AWK'
12823test -n "\$AWK" || AWK=awk
6bf9431b
BE
12824_ACEOF
12825
81ecdfbb
RW
12826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12827# The default lists apply if the user does not specify any file.
6bf9431b
BE
12828ac_need_defaults=:
12829while test $# != 0
12830do
12831 case $1 in
12832 --*=*)
81ecdfbb
RW
12833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12835 ac_shift=:
252b5132 12836 ;;
81ecdfbb 12837 *)
6bf9431b
BE
12838 ac_option=$1
12839 ac_optarg=$2
12840 ac_shift=shift
252b5132 12841 ;;
6bf9431b 12842 esac
252b5132 12843
6bf9431b
BE
12844 case $ac_option in
12845 # Handling of the options.
6bf9431b
BE
12846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12847 ac_cs_recheck=: ;;
81ecdfbb
RW
12848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12849 $as_echo "$ac_cs_version"; exit ;;
12850 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12851 debug=: ;;
12852 --file | --fil | --fi | --f )
12853 $ac_shift
81ecdfbb
RW
12854 case $ac_optarg in
12855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12856 esac
12857 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12858 ac_need_defaults=false;;
12859 --header | --heade | --head | --hea )
12860 $ac_shift
81ecdfbb
RW
12861 case $ac_optarg in
12862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12863 esac
12864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12865 ac_need_defaults=false;;
81ecdfbb
RW
12866 --he | --h)
12867 # Conflict between --help and --header
12868 as_fn_error "ambiguous option: \`$1'
12869Try \`$0 --help' for more information.";;
12870 --help | --hel | -h )
12871 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12874 ac_cs_silent=: ;;
252b5132 12875
6bf9431b 12876 # This is an error.
81ecdfbb
RW
12877 -*) as_fn_error "unrecognized option: \`$1'
12878Try \`$0 --help' for more information." ;;
252b5132 12879
81ecdfbb
RW
12880 *) as_fn_append ac_config_targets " $1"
12881 ac_need_defaults=false ;;
252b5132 12882
6bf9431b
BE
12883 esac
12884 shift
12885done
252b5132 12886
6bf9431b 12887ac_configure_extra_args=
252b5132 12888
6bf9431b
BE
12889if $ac_cs_silent; then
12890 exec 6>/dev/null
12891 ac_configure_extra_args="$ac_configure_extra_args --silent"
12892fi
252b5132 12893
6bf9431b 12894_ACEOF
81ecdfbb 12895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12896if \$ac_cs_recheck; then
81ecdfbb
RW
12897 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12898 shift
12899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12900 CONFIG_SHELL='$SHELL'
12901 export CONFIG_SHELL
12902 exec "\$@"
6bf9431b
BE
12903fi
12904
12905_ACEOF
81ecdfbb
RW
12906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907exec 5>>config.log
12908{
12909 echo
12910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12911## Running $as_me. ##
12912_ASBOX
12913 $as_echo "$ac_log"
12914} >&5
6bf9431b 12915
81ecdfbb
RW
12916_ACEOF
12917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12918#
81ecdfbb 12919# INIT-COMMANDS
252b5132 12920#
6bf9431b 12921AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12922
12923
12924# The HP-UX ksh and POSIX shell print the target directory to stdout
12925# if CDPATH is set.
12926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12927
12928sed_quote_subst='$sed_quote_subst'
12929double_quote_subst='$double_quote_subst'
12930delay_variable_subst='$delay_variable_subst'
3725885a
RW
12931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12937SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12938ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12939host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12940host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12941host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12942build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12943build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12944build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12945SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12946Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12947GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12948EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12949FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12950LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12951NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12952LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12953max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12954ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12955exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12956lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12957lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12958lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12966STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12967RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12968old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12969old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12970old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12971lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12972CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12973CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12974compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12975GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12976lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12977lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12979lt_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"`'
12980objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12981MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12982lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12983lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12985lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12986lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12987need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12988DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12989NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12990LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12991OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12992OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12993libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12994shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12995extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12996archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12997enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12998export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12999whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13000compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13001old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13002old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13003archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13004archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13005module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13006module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13007with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13008allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13009no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13010hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13011hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13012hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13013hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13014hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13015hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13016hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13017hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13018inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13019link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13020fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13026file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13027variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13028need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13029need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13030version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13031runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13032shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13033shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13034libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13035library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13036soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13037install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13038postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13039postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13040finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13041finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13042hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13043sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13044sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13051
13052LTCC='$LTCC'
13053LTCFLAGS='$LTCFLAGS'
13054compiler='$compiler_DEFAULT'
13055
3725885a
RW
13056# A function that is used when there is no print builtin or printf.
13057func_fallback_echo ()
13058{
13059 eval 'cat <<_LTECHO_EOF
13060\$1
13061_LTECHO_EOF'
13062}
13063
d7040cdb 13064# Quote evaled strings.
3725885a
RW
13065for var in SHELL \
13066ECHO \
13067SED \
d7040cdb
SE
13068GREP \
13069EGREP \
13070FGREP \
13071LD \
13072NM \
13073LN_S \
13074lt_SP2NL \
13075lt_NL2SP \
13076reload_flag \
b214d478 13077OBJDUMP \
d7040cdb
SE
13078deplibs_check_method \
13079file_magic_cmd \
13080AR \
13081AR_FLAGS \
13082STRIP \
13083RANLIB \
13084CC \
13085CFLAGS \
13086compiler \
13087lt_cv_sys_global_symbol_pipe \
13088lt_cv_sys_global_symbol_to_cdecl \
13089lt_cv_sys_global_symbol_to_c_name_address \
b214d478 13090lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13091lt_prog_compiler_no_builtin_flag \
13092lt_prog_compiler_wl \
13093lt_prog_compiler_pic \
13094lt_prog_compiler_static \
13095lt_cv_prog_compiler_c_o \
13096need_locks \
b214d478
SE
13097DSYMUTIL \
13098NMEDIT \
13099LIPO \
13100OTOOL \
13101OTOOL64 \
d7040cdb
SE
13102shrext_cmds \
13103export_dynamic_flag_spec \
13104whole_archive_flag_spec \
13105compiler_needs_object \
13106with_gnu_ld \
13107allow_undefined_flag \
13108no_undefined_flag \
13109hardcode_libdir_flag_spec \
13110hardcode_libdir_flag_spec_ld \
13111hardcode_libdir_separator \
13112fix_srcfile_path \
13113exclude_expsyms \
13114include_expsyms \
13115file_list_spec \
13116variables_saved_for_relink \
13117libname_spec \
13118library_names_spec \
13119soname_spec \
3725885a 13120install_override_mode \
d7040cdb
SE
13121finish_eval \
13122old_striplib \
13123striplib; do
3725885a 13124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13125 *[\\\\\\\`\\"\\\$]*)
3725885a 13126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13127 ;;
13128 *)
13129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13130 ;;
13131 esac
13132done
13133
13134# Double-quote double-evaled strings.
13135for var in reload_cmds \
13136old_postinstall_cmds \
13137old_postuninstall_cmds \
13138old_archive_cmds \
13139extract_expsyms_cmds \
13140old_archive_from_new_cmds \
13141old_archive_from_expsyms_cmds \
13142archive_cmds \
13143archive_expsym_cmds \
13144module_cmds \
13145module_expsym_cmds \
13146export_symbols_cmds \
13147prelink_cmds \
13148postinstall_cmds \
13149postuninstall_cmds \
13150finish_cmds \
13151sys_lib_search_path_spec \
13152sys_lib_dlsearch_path_spec; do
3725885a 13153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13154 *[\\\\\\\`\\"\\\$]*)
3725885a 13155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13156 ;;
13157 *)
13158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13159 ;;
13160 esac
13161done
13162
d7040cdb
SE
13163ac_aux_dir='$ac_aux_dir'
13164xsi_shell='$xsi_shell'
13165lt_shell_append='$lt_shell_append'
13166
13167# See if we are running on zsh, and set the options which allow our
13168# commands through without removal of \ escapes INIT.
13169if test -n "\${ZSH_VERSION+set}" ; then
13170 setopt NO_GLOB_SUBST
13171fi
13172
13173
13174 PACKAGE='$PACKAGE'
13175 VERSION='$VERSION'
13176 TIMESTAMP='$TIMESTAMP'
13177 RM='$RM'
13178 ofile='$ofile'
13179
13180
13181
20e95c23
DJ
13182# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13183 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13184 # from automake.
13185 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13186 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13187 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
13188
13189
13190_ACEOF
13191
81ecdfbb 13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 13193
81ecdfbb 13194# Handling of arguments.
6bf9431b 13195for ac_config_target in $ac_config_targets
252b5132 13196do
81ecdfbb
RW
13197 case $ac_config_target in
13198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13199 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13201 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13203 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13204
13205 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
13206 esac
13207done
13208
81ecdfbb 13209
6bf9431b
BE
13210# If the user did not use the arguments to specify the items to instantiate,
13211# then the envvar interface is used. Set only those that are not.
13212# We use the long form for the default assignment because of an extremely
13213# bizarre bug on SunOS 4.1.3.
13214if $ac_need_defaults; then
13215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13217 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13218fi
13219
13220# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13221# simply because there is no reason against having it here, and in addition,
6bf9431b 13222# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13223# Hook for its removal unless debugging.
13224# Note that there is a small window in which the directory will not be cleaned:
13225# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
13226$debug ||
13227{
81ecdfbb
RW
13228 tmp=
13229 trap 'exit_status=$?
13230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13231' 0
13232 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 13233}
6bf9431b 13234# Create a (secure) tmp directory for tmp files.
252b5132 13235
6bf9431b 13236{
81ecdfbb 13237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
13238 test -n "$tmp" && test -d "$tmp"
13239} ||
13240{
81ecdfbb
RW
13241 tmp=./conf$$-$RANDOM
13242 (umask 077 && mkdir "$tmp")
13243} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13244
13245# Set up the scripts for CONFIG_FILES section.
13246# No need to generate them if there are no CONFIG_FILES.
13247# This happens for instance with `./config.status config.h'.
13248if test -n "$CONFIG_FILES"; then
13249
13250
13251ac_cr=`echo X | tr X '\015'`
13252# On cygwin, bash can eat \r inside `` if the user requested igncr.
13253# But we know of no other shell where ac_cr would be empty at this
13254# point, so we can use a bashism as a fallback.
13255if test "x$ac_cr" = x; then
13256 eval ac_cr=\$\'\\r\'
13257fi
13258ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13259if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13260 ac_cs_awk_cr='\r'
13261else
13262 ac_cs_awk_cr=$ac_cr
13263fi
13264
13265echo 'BEGIN {' >"$tmp/subs1.awk" &&
13266_ACEOF
13267
13268
13269{
13270 echo "cat >conf$$subs.awk <<_ACEOF" &&
13271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13272 echo "_ACEOF"
13273} >conf$$subs.sh ||
13274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13275ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13276ac_delim='%!_!# '
13277for ac_last_try in false false false false false :; do
13278 . ./conf$$subs.sh ||
13279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13280
13281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13282 if test $ac_delim_n = $ac_delim_num; then
13283 break
13284 elif $ac_last_try; then
13285 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13286 else
13287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13288 fi
13289done
13290rm -f conf$$subs.sh
13291
13292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13293cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13294_ACEOF
13295sed -n '
13296h
13297s/^/S["/; s/!.*/"]=/
13298p
13299g
13300s/^[^!]*!//
13301:repl
13302t repl
13303s/'"$ac_delim"'$//
13304t delim
13305:nl
13306h
13307s/\(.\{148\}\).*/\1/
13308t more1
13309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13310p
13311n
13312b repl
13313:more1
13314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13315p
13316g
13317s/.\{148\}//
13318t nl
13319:delim
13320h
13321s/\(.\{148\}\).*/\1/
13322t more2
13323s/["\\]/\\&/g; s/^/"/; s/$/"/
13324p
13325b
13326:more2
13327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13328p
13329g
13330s/.\{148\}//
13331t delim
13332' <conf$$subs.awk | sed '
13333/^[^""]/{
13334 N
13335 s/\n//
13336}
13337' >>$CONFIG_STATUS || ac_write_fail=1
13338rm -f conf$$subs.awk
13339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340_ACAWK
13341cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13342 for (key in S) S_is_set[key] = 1
13343 FS = "\a"
13344
13345}
6bf9431b 13346{
81ecdfbb
RW
13347 line = $ 0
13348 nfields = split(line, field, "@")
13349 substed = 0
13350 len = length(field[1])
13351 for (i = 2; i < nfields; i++) {
13352 key = field[i]
13353 keylen = length(key)
13354 if (S_is_set[key]) {
13355 value = S[key]
13356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13357 len += length(value) + length(field[++i])
13358 substed = 1
13359 } else
13360 len += 1 + keylen
13361 }
13362
13363 print line
6bf9431b 13364}
252b5132 13365
81ecdfbb
RW
13366_ACAWK
13367_ACEOF
13368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13371else
13372 cat
13373fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13374 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13375_ACEOF
13376
81ecdfbb
RW
13377# VPATH may cause trouble with some makes, so we remove $(srcdir),
13378# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13379# trailing colons and then remove the whole line if VPATH becomes empty
13380# (actually we leave an empty line to preserve line numbers).
13381if test "x$srcdir" = x.; then
13382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13383s/:*\$(srcdir):*/:/
13384s/:*\${srcdir}:*/:/
13385s/:*@srcdir@:*/:/
13386s/^\([^=]*=[ ]*\):*/\1/
13387s/:*$//
13388s/^[^=]*=[ ]*$//
13389}'
13390fi
13391
13392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13393fi # test -n "$CONFIG_FILES"
0ab6f085 13394
81ecdfbb
RW
13395# Set up the scripts for CONFIG_HEADERS section.
13396# No need to generate them if there are no CONFIG_HEADERS.
13397# This happens for instance with `./config.status Makefile'.
13398if test -n "$CONFIG_HEADERS"; then
13399cat >"$tmp/defines.awk" <<\_ACAWK ||
13400BEGIN {
13401_ACEOF
6bf9431b 13402
81ecdfbb
RW
13403# Transform confdefs.h into an awk script `defines.awk', embedded as
13404# here-document in config.status, that substitutes the proper values into
13405# config.h.in to produce config.h.
1b9750d6 13406
81ecdfbb
RW
13407# Create a delimiter string that does not exist in confdefs.h, to ease
13408# handling of long lines.
13409ac_delim='%!_!# '
13410for ac_last_try in false false :; do
13411 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13412 if test -z "$ac_t"; then
13413 break
13414 elif $ac_last_try; then
13415 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13416 else
13417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13418 fi
13419done
13420
13421# For the awk script, D is an array of macro values keyed by name,
13422# likewise P contains macro parameters if any. Preserve backslash
13423# newline sequences.
13424
13425ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13426sed -n '
13427s/.\{148\}/&'"$ac_delim"'/g
13428t rset
13429:rset
13430s/^[ ]*#[ ]*define[ ][ ]*/ /
13431t def
13432d
13433:def
13434s/\\$//
13435t bsnl
13436s/["\\]/\\&/g
13437s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13438D["\1"]=" \3"/p
13439s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13440d
13441:bsnl
13442s/["\\]/\\&/g
13443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13444D["\1"]=" \3\\\\\\n"\\/p
13445t cont
13446s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13447t cont
13448d
13449:cont
13450n
13451s/.\{148\}/&'"$ac_delim"'/g
13452t clear
13453:clear
13454s/\\$//
13455t bsnlc
13456s/["\\]/\\&/g; s/^/"/; s/$/"/p
13457d
13458:bsnlc
13459s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13460b cont
13461' <confdefs.h | sed '
13462s/'"$ac_delim"'/"\\\
13463"/g' >>$CONFIG_STATUS || ac_write_fail=1
13464
13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466 for (key in D) D_is_set[key] = 1
13467 FS = "\a"
13468}
13469/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13470 line = \$ 0
13471 split(line, arg, " ")
13472 if (arg[1] == "#") {
13473 defundef = arg[2]
13474 mac1 = arg[3]
13475 } else {
13476 defundef = substr(arg[1], 2)
13477 mac1 = arg[2]
13478 }
13479 split(mac1, mac2, "(") #)
13480 macro = mac2[1]
13481 prefix = substr(line, 1, index(line, defundef) - 1)
13482 if (D_is_set[macro]) {
13483 # Preserve the white space surrounding the "#".
13484 print prefix "define", macro P[macro] D[macro]
13485 next
13486 } else {
13487 # Replace #undef with comments. This is necessary, for example,
13488 # in the case of _POSIX_SOURCE, which is predefined and required
13489 # on some systems where configure will not decide to define it.
13490 if (defundef == "undef") {
13491 print "/*", prefix defundef, macro, "*/"
13492 next
13493 }
13494 }
13495}
13496{ print }
13497_ACAWK
1b9750d6 13498_ACEOF
81ecdfbb
RW
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13501fi # test -n "$CONFIG_HEADERS"
1b9750d6 13502
81ecdfbb
RW
13503
13504eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13505shift
13506for ac_tag
13507do
13508 case $ac_tag in
13509 :[FHLC]) ac_mode=$ac_tag; continue;;
13510 esac
13511 case $ac_mode$ac_tag in
13512 :[FHL]*:*);;
13513 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13514 :[FH]-) ac_tag=-:-;;
13515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13516 esac
13517 ac_save_IFS=$IFS
13518 IFS=:
13519 set x $ac_tag
13520 IFS=$ac_save_IFS
13521 shift
13522 ac_file=$1
13523 shift
13524
13525 case $ac_mode in
13526 :L) ac_source=$1;;
13527 :[FH])
13528 ac_file_inputs=
13529 for ac_f
13530 do
13531 case $ac_f in
13532 -) ac_f="$tmp/stdin";;
13533 *) # Look for the file first in the build tree, then in the source tree
13534 # (if the path is not absolute). The absolute path cannot be DOS-style,
13535 # because $ac_f cannot contain `:'.
13536 test -f "$ac_f" ||
13537 case $ac_f in
13538 [\\/$]*) false;;
13539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13540 esac ||
13541 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13542 esac
13543 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13544 as_fn_append ac_file_inputs " '$ac_f'"
13545 done
13546
13547 # Let's still pretend it is `configure' which instantiates (i.e., don't
13548 # use $as_me), people would be surprised to read:
13549 # /* config.h. Generated by config.status. */
13550 configure_input='Generated from '`
13551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13552 `' by configure.'
13553 if test x"$ac_file" != x-; then
13554 configure_input="$ac_file. $configure_input"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13556$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13557 fi
81ecdfbb
RW
13558 # Neutralize special characters interpreted by sed in replacement strings.
13559 case $configure_input in #(
13560 *\&* | *\|* | *\\* )
13561 ac_sed_conf_input=`$as_echo "$configure_input" |
13562 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13563 *) ac_sed_conf_input=$configure_input;;
13564 esac
1b9750d6 13565
81ecdfbb
RW
13566 case $ac_tag in
13567 *:-:* | *:-) cat >"$tmp/stdin" \
13568 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13569 esac
13570 ;;
252b5132
RH
13571 esac
13572
81ecdfbb 13573 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13574$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13575 X"$ac_file" : 'X\(//\)[^/]' \| \
13576 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13578$as_echo X"$ac_file" |
13579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13580 s//\1/
13581 q
13582 }
13583 /^X\(\/\/\)[^/].*/{
13584 s//\1/
13585 q
13586 }
13587 /^X\(\/\/\)$/{
13588 s//\1/
13589 q
13590 }
13591 /^X\(\/\).*/{
13592 s//\1/
13593 q
13594 }
13595 s/.*/./; q'`
13596 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13597 ac_builddir=.
13598
81ecdfbb
RW
13599case "$ac_dir" in
13600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13601*)
13602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13603 # A ".." for each directory in $ac_dir_suffix.
13604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13605 case $ac_top_builddir_sub in
13606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13608 esac ;;
13609esac
13610ac_abs_top_builddir=$ac_pwd
13611ac_abs_builddir=$ac_pwd$ac_dir_suffix
13612# for backward compatibility:
13613ac_top_builddir=$ac_top_build_prefix
252b5132 13614
6bf9431b 13615case $srcdir in
81ecdfbb 13616 .) # We are building in place.
6bf9431b 13617 ac_srcdir=.
81ecdfbb
RW
13618 ac_top_srcdir=$ac_top_builddir_sub
13619 ac_abs_top_srcdir=$ac_pwd ;;
13620 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13621 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13622 ac_top_srcdir=$srcdir
13623 ac_abs_top_srcdir=$srcdir ;;
13624 *) # Relative name.
13625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13626 ac_top_srcdir=$ac_top_build_prefix$srcdir
13627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13628esac
81ecdfbb 13629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13630
252b5132 13631
81ecdfbb
RW
13632 case $ac_mode in
13633 :F)
13634 #
13635 # CONFIG_FILE
13636 #
6bf9431b
BE
13637
13638 case $INSTALL in
13639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13641 esac
13642 ac_MKDIR_P=$MKDIR_P
13643 case $MKDIR_P in
13644 [\\/$]* | ?:[\\/]* ) ;;
13645 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13646 esac
81ecdfbb 13647_ACEOF
1b9750d6 13648
81ecdfbb
RW
13649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13650# If the template does not know about datarootdir, expand it.
13651# FIXME: This hack should be removed a few years after 2.60.
13652ac_datarootdir_hack=; ac_datarootdir_seen=
13653ac_sed_dataroot='
13654/datarootdir/ {
13655 p
13656 q
13657}
13658/@datadir@/p
13659/@docdir@/p
13660/@infodir@/p
13661/@localedir@/p
13662/@mandir@/p'
13663case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13664*datarootdir*) ac_datarootdir_seen=yes;;
13665*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13667$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13668_ACEOF
13669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13670 ac_datarootdir_hack='
13671 s&@datadir@&$datadir&g
13672 s&@docdir@&$docdir&g
13673 s&@infodir@&$infodir&g
13674 s&@localedir@&$localedir&g
13675 s&@mandir@&$mandir&g
13676 s&\\\${datarootdir}&$datarootdir&g' ;;
13677esac
6bf9431b 13678_ACEOF
81ecdfbb
RW
13679
13680# Neutralize VPATH when `$srcdir' = `.'.
13681# Shell code in configure.ac might set extrasub.
13682# FIXME: do we really want to maintain this feature?
13683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13684ac_sed_extra="$ac_vpsub
6bf9431b
BE
13685$extrasub
13686_ACEOF
81ecdfbb 13687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13688:t
13689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13690s|@configure_input@|$ac_sed_conf_input|;t t
13691s&@top_builddir@&$ac_top_builddir_sub&;t t
13692s&@top_build_prefix@&$ac_top_build_prefix&;t t
13693s&@srcdir@&$ac_srcdir&;t t
13694s&@abs_srcdir@&$ac_abs_srcdir&;t t
13695s&@top_srcdir@&$ac_top_srcdir&;t t
13696s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13697s&@builddir@&$ac_builddir&;t t
13698s&@abs_builddir@&$ac_abs_builddir&;t t
13699s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13700s&@INSTALL@&$ac_INSTALL&;t t
13701s&@MKDIR_P@&$ac_MKDIR_P&;t t
13702$ac_datarootdir_hack
13703"
13704eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13705 || as_fn_error "could not create $ac_file" "$LINENO" 5
13706
13707test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13708 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13711which seems to be undefined. Please make sure it is defined." >&5
13712$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13713which seems to be undefined. Please make sure it is defined." >&2;}
13714
13715 rm -f "$tmp/stdin"
6bf9431b 13716 case $ac_file in
81ecdfbb
RW
13717 -) cat "$tmp/out" && rm -f "$tmp/out";;
13718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13719 esac \
13720 || as_fn_error "could not create $ac_file" "$LINENO" 5
13721 ;;
13722 :H)
13723 #
13724 # CONFIG_HEADER
13725 #
6bf9431b 13726 if test x"$ac_file" != x-; then
81ecdfbb
RW
13727 {
13728 $as_echo "/* $configure_input */" \
13729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13730 } >"$tmp/config.h" \
13731 || as_fn_error "could not create $ac_file" "$LINENO" 5
13732 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13734$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13735 else
81ecdfbb
RW
13736 rm -f "$ac_file"
13737 mv "$tmp/config.h" "$ac_file" \
13738 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13739 fi
6bf9431b 13740 else
81ecdfbb
RW
13741 $as_echo "/* $configure_input */" \
13742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13743 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13744 fi
81ecdfbb
RW
13745# Compute "$ac_file"'s index in $config_headers.
13746_am_arg="$ac_file"
6bf9431b
BE
13747_am_stamp_count=1
13748for _am_header in $config_headers :; do
13749 case $_am_header in
81ecdfbb 13750 $_am_arg | $_am_arg:* )
6bf9431b
BE
13751 break ;;
13752 * )
13753 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13754 esac
13755done
81ecdfbb
RW
13756echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13757$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13758 X"$_am_arg" : 'X\(//\)[^/]' \| \
13759 X"$_am_arg" : 'X\(//\)$' \| \
13760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13761$as_echo X"$_am_arg" |
13762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13763 s//\1/
13764 q
13765 }
13766 /^X\(\/\/\)[^/].*/{
13767 s//\1/
13768 q
13769 }
13770 /^X\(\/\/\)$/{
13771 s//\1/
13772 q
13773 }
13774 /^X\(\/\).*/{
13775 s//\1/
13776 q
13777 }
13778 s/.*/./; q'`/stamp-h$_am_stamp_count
13779 ;;
0ab6f085 13780
81ecdfbb
RW
13781 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13782$as_echo "$as_me: executing $ac_file commands" >&6;}
13783 ;;
13784 esac
6bf9431b
BE
13785
13786
81ecdfbb
RW
13787 case $ac_file$ac_mode in
13788 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13789 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13790 # are listed without --file. Let's play safe and only enable the eval
13791 # if we detect the quoting.
13792 case $CONFIG_FILES in
13793 *\'*) eval set x "$CONFIG_FILES" ;;
13794 *) set x $CONFIG_FILES ;;
13795 esac
13796 shift
13797 for mf
13798 do
13799 # Strip MF so we end up with the name of the file.
13800 mf=`echo "$mf" | sed -e 's/:.*$//'`
13801 # Check whether this is an Automake generated Makefile or not.
13802 # We used to match only the files named `Makefile.in', but
13803 # some people rename them; so instead we look at the file content.
13804 # Grep'ing the first line is not enough: some people post-process
13805 # each Makefile.in and add a new line on top of each file to say so.
13806 # Grep'ing the whole file is not good either: AIX grep has a line
13807 # limit of 2048, but all sed's we know have understand at least 4000.
13808 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13809 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13810$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13811 X"$mf" : 'X\(//\)[^/]' \| \
13812 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13813 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13814$as_echo X"$mf" |
13815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\/\)[^/].*/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\/\)$/{
13824 s//\1/
13825 q
13826 }
13827 /^X\(\/\).*/{
13828 s//\1/
13829 q
13830 }
13831 s/.*/./; q'`
13832 else
13833 continue
13834 fi
13835 # Extract the definition of DEPDIR, am__include, and am__quote
13836 # from the Makefile without running `make'.
13837 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13838 test -z "$DEPDIR" && continue
13839 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13840 test -z "am__include" && continue
13841 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13842 # When using ansi2knr, U may be empty or an underscore; expand it
13843 U=`sed -n 's/^U = //p' < "$mf"`
13844 # Find all dependency output files, they are included files with
13845 # $(DEPDIR) in their names. We invoke sed twice because it is the
13846 # simplest approach to changing $(DEPDIR) to its actual value in the
13847 # expansion.
13848 for file in `sed -n "
13849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13851 # Make sure the directory exists.
13852 test -f "$dirpart/$file" && continue
13853 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13854$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13855 X"$file" : 'X\(//\)[^/]' \| \
13856 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13857 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13858$as_echo X"$file" |
13859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13860 s//\1/
13861 q
13862 }
13863 /^X\(\/\/\)[^/].*/{
13864 s//\1/
13865 q
13866 }
13867 /^X\(\/\/\)$/{
13868 s//\1/
13869 q
13870 }
13871 /^X\(\/\).*/{
13872 s//\1/
13873 q
13874 }
13875 s/.*/./; q'`
13876 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13877 # echo "creating $dirpart/$file"
13878 echo '# dummy' > "$dirpart/$file"
6bf9431b 13879 done
6bf9431b 13880 done
81ecdfbb 13881}
d7040cdb 13882 ;;
81ecdfbb 13883 "libtool":C)
d7040cdb
SE
13884
13885 # See if we are running on zsh, and set the options which allow our
13886 # commands through without removal of \ escapes.
13887 if test -n "${ZSH_VERSION+set}" ; then
13888 setopt NO_GLOB_SUBST
13889 fi
13890
13891 cfgfile="${ofile}T"
13892 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13893 $RM "$cfgfile"
13894
13895 cat <<_LT_EOF >> "$cfgfile"
13896#! $SHELL
13897
13898# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13899# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13900# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13901# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13902#
b214d478 13903# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 13904# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 13905# Written by Gordon Matzigkeit, 1996
d7040cdb 13906#
b214d478 13907# This file is part of GNU Libtool.
d7040cdb 13908#
b214d478
SE
13909# GNU Libtool is free software; you can redistribute it and/or
13910# modify it under the terms of the GNU General Public License as
13911# published by the Free Software Foundation; either version 2 of
13912# the License, or (at your option) any later version.
d7040cdb 13913#
b214d478
SE
13914# As a special exception to the GNU General Public License,
13915# if you distribute this file as part of a program or library that
13916# is built using GNU Libtool, you may include this file under the
13917# same distribution terms that you use for the rest of that program.
d7040cdb 13918#
b214d478
SE
13919# GNU Libtool is distributed in the hope that it will be useful,
13920# but WITHOUT ANY WARRANTY; without even the implied warranty of
13921# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13922# GNU General Public License for more details.
d7040cdb 13923#
b214d478
SE
13924# You should have received a copy of the GNU General Public License
13925# along with GNU Libtool; see the file COPYING. If not, a copy
13926# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13927# obtained by writing to the Free Software Foundation, Inc.,
13928# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13929
13930
13931# The names of the tagged configurations supported by this script.
13932available_tags=""
13933
13934# ### BEGIN LIBTOOL CONFIG
13935
13936# Which release of libtool.m4 was used?
13937macro_version=$macro_version
13938macro_revision=$macro_revision
13939
13940# Whether or not to build shared libraries.
13941build_libtool_libs=$enable_shared
13942
13943# Whether or not to build static libraries.
13944build_old_libs=$enable_static
13945
13946# What type of objects to build.
13947pic_mode=$pic_mode
13948
13949# Whether or not to optimize for fast installation.
13950fast_install=$enable_fast_install
13951
3725885a
RW
13952# Shell to use when invoking shell scripts.
13953SHELL=$lt_SHELL
13954
13955# An echo program that protects backslashes.
13956ECHO=$lt_ECHO
13957
d7040cdb
SE
13958# The host system.
13959host_alias=$host_alias
13960host=$host
13961host_os=$host_os
13962
13963# The build system.
13964build_alias=$build_alias
13965build=$build
13966build_os=$build_os
13967
13968# A sed program that does not truncate output.
13969SED=$lt_SED
13970
13971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13972Xsed="\$SED -e 1s/^X//"
13973
13974# A grep program that handles long lines.
13975GREP=$lt_GREP
13976
13977# An ERE matcher.
13978EGREP=$lt_EGREP
13979
13980# A literal string matcher.
13981FGREP=$lt_FGREP
13982
13983# A BSD- or MS-compatible name lister.
13984NM=$lt_NM
13985
13986# Whether we need soft or hard links.
13987LN_S=$lt_LN_S
13988
13989# What is the maximum length of a command?
13990max_cmd_len=$max_cmd_len
13991
13992# Object file suffix (normally "o").
13993objext=$ac_objext
13994
13995# Executable file suffix (normally "").
13996exeext=$exeext
13997
13998# whether the shell understands "unset".
13999lt_unset=$lt_unset
14000
14001# turn spaces into newlines.
14002SP2NL=$lt_lt_SP2NL
14003
14004# turn newlines into spaces.
14005NL2SP=$lt_lt_NL2SP
14006
b214d478
SE
14007# An object symbol dumper.
14008OBJDUMP=$lt_OBJDUMP
14009
d7040cdb
SE
14010# Method to check whether dependent libraries are shared objects.
14011deplibs_check_method=$lt_deplibs_check_method
14012
14013# Command to use when deplibs_check_method == "file_magic".
14014file_magic_cmd=$lt_file_magic_cmd
14015
14016# The archiver.
14017AR=$lt_AR
14018AR_FLAGS=$lt_AR_FLAGS
14019
14020# A symbol stripping program.
14021STRIP=$lt_STRIP
14022
14023# Commands used to install an old-style archive.
14024RANLIB=$lt_RANLIB
14025old_postinstall_cmds=$lt_old_postinstall_cmds
14026old_postuninstall_cmds=$lt_old_postuninstall_cmds
14027
3725885a
RW
14028# Whether to use a lock for old archive extraction.
14029lock_old_archive_extraction=$lock_old_archive_extraction
14030
d7040cdb
SE
14031# A C compiler.
14032LTCC=$lt_CC
14033
14034# LTCC compiler flags.
14035LTCFLAGS=$lt_CFLAGS
14036
14037# Take the output of nm and produce a listing of raw symbols and C names.
14038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14039
14040# Transform the output of nm in a proper C declaration.
14041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14042
14043# Transform the output of nm in a C name address pair.
14044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14045
b214d478
SE
14046# Transform the output of nm in a C name address pair when lib prefix is needed.
14047global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14048
d7040cdb
SE
14049# The name of the directory that contains temporary libtool files.
14050objdir=$objdir
14051
d7040cdb
SE
14052# Used to examine libraries when file_magic_cmd begins with "file".
14053MAGIC_CMD=$MAGIC_CMD
14054
14055# Must we lock files when doing compilation?
14056need_locks=$lt_need_locks
14057
b214d478
SE
14058# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14059DSYMUTIL=$lt_DSYMUTIL
14060
14061# Tool to change global to local symbols on Mac OS X.
14062NMEDIT=$lt_NMEDIT
14063
14064# Tool to manipulate fat objects and archives on Mac OS X.
14065LIPO=$lt_LIPO
14066
14067# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14068OTOOL=$lt_OTOOL
14069
14070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14071OTOOL64=$lt_OTOOL64
14072
d7040cdb
SE
14073# Old archive suffix (normally "a").
14074libext=$libext
14075
14076# Shared library suffix (normally ".so").
14077shrext_cmds=$lt_shrext_cmds
14078
14079# The commands to extract the exported symbol list from a shared archive.
14080extract_expsyms_cmds=$lt_extract_expsyms_cmds
14081
14082# Variables whose values should be saved in libtool wrapper scripts and
14083# restored at link time.
14084variables_saved_for_relink=$lt_variables_saved_for_relink
14085
14086# Do we need the "lib" prefix for modules?
14087need_lib_prefix=$need_lib_prefix
14088
14089# Do we need a version for libraries?
14090need_version=$need_version
14091
14092# Library versioning type.
14093version_type=$version_type
14094
14095# Shared library runtime path variable.
14096runpath_var=$runpath_var
14097
14098# Shared library path variable.
14099shlibpath_var=$shlibpath_var
14100
14101# Is shlibpath searched before the hard-coded library search path?
14102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14103
14104# Format of library name prefix.
14105libname_spec=$lt_libname_spec
14106
14107# List of archive names. First name is the real one, the rest are links.
14108# The last name is the one that the linker finds with -lNAME
14109library_names_spec=$lt_library_names_spec
14110
14111# The coded name of the library, if different from the real name.
14112soname_spec=$lt_soname_spec
14113
3725885a
RW
14114# Permission mode override for installation of shared libraries.
14115install_override_mode=$lt_install_override_mode
14116
d7040cdb
SE
14117# Command to use after installation of a shared archive.
14118postinstall_cmds=$lt_postinstall_cmds
14119
14120# Command to use after uninstallation of a shared archive.
14121postuninstall_cmds=$lt_postuninstall_cmds
14122
14123# Commands used to finish a libtool library installation in a directory.
14124finish_cmds=$lt_finish_cmds
14125
14126# As "finish_cmds", except a single script fragment to be evaled but
14127# not shown.
14128finish_eval=$lt_finish_eval
14129
14130# Whether we should hardcode library paths into libraries.
14131hardcode_into_libs=$hardcode_into_libs
14132
14133# Compile-time system search path for libraries.
14134sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14135
14136# Run-time system search path for libraries.
14137sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14138
14139# Whether dlopen is supported.
14140dlopen_support=$enable_dlopen
14141
14142# Whether dlopen of programs is supported.
14143dlopen_self=$enable_dlopen_self
14144
14145# Whether dlopen of statically linked programs is supported.
14146dlopen_self_static=$enable_dlopen_self_static
14147
14148# Commands to strip libraries.
14149old_striplib=$lt_old_striplib
14150striplib=$lt_striplib
14151
14152
14153# The linker used to build libraries.
14154LD=$lt_LD
14155
3725885a
RW
14156# How to create reloadable object files.
14157reload_flag=$lt_reload_flag
14158reload_cmds=$lt_reload_cmds
14159
d7040cdb
SE
14160# Commands used to build an old-style archive.
14161old_archive_cmds=$lt_old_archive_cmds
14162
14163# A language specific compiler.
14164CC=$lt_compiler
14165
14166# Is the compiler the GNU compiler?
14167with_gcc=$GCC
14168
14169# Compiler flag to turn off builtin functions.
14170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14171
14172# How to pass a linker flag through the compiler.
14173wl=$lt_lt_prog_compiler_wl
14174
14175# Additional compiler flags for building library objects.
14176pic_flag=$lt_lt_prog_compiler_pic
14177
14178# Compiler flag to prevent dynamic linking.
14179link_static_flag=$lt_lt_prog_compiler_static
14180
14181# Does compiler simultaneously support -c and -o options?
14182compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14183
14184# Whether or not to add -lc for building shared libraries.
14185build_libtool_need_lc=$archive_cmds_need_lc
14186
14187# Whether or not to disallow shared libs when runtime libs are static.
14188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14189
14190# Compiler flag to allow reflexive dlopens.
14191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14192
14193# Compiler flag to generate shared objects directly from archives.
14194whole_archive_flag_spec=$lt_whole_archive_flag_spec
14195
14196# Whether the compiler copes with passing no objects directly.
14197compiler_needs_object=$lt_compiler_needs_object
14198
14199# Create an old-style archive from a shared archive.
14200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14201
14202# Create a temporary old-style archive to link instead of a shared archive.
14203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14204
14205# Commands used to build a shared archive.
14206archive_cmds=$lt_archive_cmds
14207archive_expsym_cmds=$lt_archive_expsym_cmds
14208
14209# Commands used to build a loadable module if different from building
14210# a shared archive.
14211module_cmds=$lt_module_cmds
14212module_expsym_cmds=$lt_module_expsym_cmds
14213
14214# Whether we are building with GNU ld or not.
14215with_gnu_ld=$lt_with_gnu_ld
14216
14217# Flag that allows shared libraries with undefined symbols to be built.
14218allow_undefined_flag=$lt_allow_undefined_flag
14219
14220# Flag that enforces no undefined symbols.
14221no_undefined_flag=$lt_no_undefined_flag
14222
14223# Flag to hardcode \$libdir into a binary during linking.
14224# This must work even if \$libdir does not exist
14225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14226
14227# If ld is used when linking, flag to hardcode \$libdir into a binary
14228# during linking. This must work even if \$libdir does not exist.
14229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14230
14231# Whether we need a single "-rpath" flag with a separated argument.
14232hardcode_libdir_separator=$lt_hardcode_libdir_separator
14233
14234# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14235# DIR into the resulting binary.
14236hardcode_direct=$hardcode_direct
14237
14238# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14239# DIR into the resulting binary and the resulting library dependency is
14240# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14241# library is relocated.
14242hardcode_direct_absolute=$hardcode_direct_absolute
14243
14244# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14245# into the resulting binary.
14246hardcode_minus_L=$hardcode_minus_L
14247
14248# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14249# into the resulting binary.
14250hardcode_shlibpath_var=$hardcode_shlibpath_var
14251
14252# Set to "yes" if building a shared library automatically hardcodes DIR
14253# into the library and all subsequent libraries and executables linked
14254# against it.
14255hardcode_automatic=$hardcode_automatic
14256
14257# Set to yes if linker adds runtime paths of dependent libraries
14258# to runtime path list.
14259inherit_rpath=$inherit_rpath
14260
14261# Whether libtool must link a program against all its dependency libraries.
14262link_all_deplibs=$link_all_deplibs
14263
14264# Fix the shell variable \$srcfile for the compiler.
14265fix_srcfile_path=$lt_fix_srcfile_path
14266
14267# Set to "yes" if exported symbols are required.
14268always_export_symbols=$always_export_symbols
14269
14270# The commands to list exported symbols.
14271export_symbols_cmds=$lt_export_symbols_cmds
14272
14273# Symbols that should not be listed in the preloaded symbols.
14274exclude_expsyms=$lt_exclude_expsyms
14275
14276# Symbols that must always be exported.
14277include_expsyms=$lt_include_expsyms
14278
14279# Commands necessary for linking programs (against libraries) with templates.
14280prelink_cmds=$lt_prelink_cmds
14281
14282# Specify filename containing input files.
14283file_list_spec=$lt_file_list_spec
14284
14285# How to hardcode a shared library path into an executable.
14286hardcode_action=$hardcode_action
14287
14288# ### END LIBTOOL CONFIG
14289
14290_LT_EOF
14291
14292 case $host_os in
14293 aix3*)
14294 cat <<\_LT_EOF >> "$cfgfile"
14295# AIX sometimes has problems with the GCC collect2 program. For some
14296# reason, if we set the COLLECT_NAMES environment variable, the problems
14297# vanish in a puff of smoke.
14298if test "X${COLLECT_NAMES+set}" != Xset; then
14299 COLLECT_NAMES=
14300 export COLLECT_NAMES
14301fi
14302_LT_EOF
14303 ;;
14304 esac
14305
14306
14307ltmain="$ac_aux_dir/ltmain.sh"
14308
14309
14310 # We use sed instead of cat because bash on DJGPP gets confused if
14311 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14312 # text mode, it properly converts lines to CR/LF. This bash problem
14313 # is reportedly fixed, but why not run on old versions too?
14314 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14315 || (rm -f "$cfgfile"; exit 1)
14316
14317 case $xsi_shell in
14318 yes)
14319 cat << \_LT_EOF >> "$cfgfile"
b214d478 14320
d7040cdb
SE
14321# func_dirname file append nondir_replacement
14322# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14323# otherwise set result to NONDIR_REPLACEMENT.
14324func_dirname ()
14325{
14326 case ${1} in
14327 */*) func_dirname_result="${1%/*}${2}" ;;
14328 * ) func_dirname_result="${3}" ;;
14329 esac
14330}
14331
14332# func_basename file
14333func_basename ()
14334{
14335 func_basename_result="${1##*/}"
14336}
14337
b214d478
SE
14338# func_dirname_and_basename file append nondir_replacement
14339# perform func_basename and func_dirname in a single function
14340# call:
14341# dirname: Compute the dirname of FILE. If nonempty,
14342# add APPEND to the result, otherwise set result
14343# to NONDIR_REPLACEMENT.
14344# value returned in "$func_dirname_result"
14345# basename: Compute filename of FILE.
14346# value retuned in "$func_basename_result"
14347# Implementation must be kept synchronized with func_dirname
14348# and func_basename. For efficiency, we do not delegate to
14349# those functions but instead duplicate the functionality here.
14350func_dirname_and_basename ()
14351{
14352 case ${1} in
14353 */*) func_dirname_result="${1%/*}${2}" ;;
14354 * ) func_dirname_result="${3}" ;;
14355 esac
14356 func_basename_result="${1##*/}"
14357}
14358
d7040cdb
SE
14359# func_stripname prefix suffix name
14360# strip PREFIX and SUFFIX off of NAME.
14361# PREFIX and SUFFIX must not contain globbing or regex special
14362# characters, hashes, percent signs, but SUFFIX may contain a leading
14363# dot (in which case that matches only a dot).
14364func_stripname ()
14365{
14366 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14367 # positional parameters, so assign one to ordinary parameter first.
14368 func_stripname_result=${3}
14369 func_stripname_result=${func_stripname_result#"${1}"}
14370 func_stripname_result=${func_stripname_result%"${2}"}
14371}
14372
14373# func_opt_split
14374func_opt_split ()
14375{
14376 func_opt_split_opt=${1%%=*}
14377 func_opt_split_arg=${1#*=}
14378}
14379
14380# func_lo2o object
14381func_lo2o ()
14382{
14383 case ${1} in
14384 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14385 *) func_lo2o_result=${1} ;;
14386 esac
14387}
b214d478
SE
14388
14389# func_xform libobj-or-source
14390func_xform ()
14391{
14392 func_xform_result=${1%.*}.lo
14393}
14394
14395# func_arith arithmetic-term...
14396func_arith ()
14397{
14398 func_arith_result=$(( $* ))
14399}
14400
14401# func_len string
14402# STRING may not start with a hyphen.
14403func_len ()
14404{
14405 func_len_result=${#1}
14406}
14407
d7040cdb
SE
14408_LT_EOF
14409 ;;
14410 *) # Bourne compatible functions.
14411 cat << \_LT_EOF >> "$cfgfile"
b214d478 14412
d7040cdb
SE
14413# func_dirname file append nondir_replacement
14414# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14415# otherwise set result to NONDIR_REPLACEMENT.
14416func_dirname ()
14417{
14418 # Extract subdirectory from the argument.
3725885a 14419 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14420 if test "X$func_dirname_result" = "X${1}"; then
14421 func_dirname_result="${3}"
14422 else
14423 func_dirname_result="$func_dirname_result${2}"
14424 fi
14425}
14426
14427# func_basename file
14428func_basename ()
14429{
3725885a 14430 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14431}
14432
b214d478 14433
d7040cdb
SE
14434# func_stripname prefix suffix name
14435# strip PREFIX and SUFFIX off of NAME.
14436# PREFIX and SUFFIX must not contain globbing or regex special
14437# characters, hashes, percent signs, but SUFFIX may contain a leading
14438# dot (in which case that matches only a dot).
14439# func_strip_suffix prefix name
14440func_stripname ()
14441{
14442 case ${2} in
3725885a
RW
14443 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14444 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14445 esac
14446}
14447
14448# sed scripts:
14449my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14450my_sed_long_arg='1s/^-[^=]*=//'
14451
14452# func_opt_split
14453func_opt_split ()
14454{
3725885a
RW
14455 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14456 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14457}
14458
14459# func_lo2o object
14460func_lo2o ()
14461{
3725885a 14462 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14463}
b214d478
SE
14464
14465# func_xform libobj-or-source
14466func_xform ()
14467{
3725885a 14468 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
14469}
14470
14471# func_arith arithmetic-term...
14472func_arith ()
14473{
14474 func_arith_result=`expr "$@"`
14475}
14476
14477# func_len string
14478# STRING may not start with a hyphen.
14479func_len ()
14480{
14481 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14482}
14483
d7040cdb
SE
14484_LT_EOF
14485esac
14486
14487case $lt_shell_append in
14488 yes)
14489 cat << \_LT_EOF >> "$cfgfile"
14490
14491# func_append var value
14492# Append VALUE to the end of shell variable VAR.
14493func_append ()
14494{
14495 eval "$1+=\$2"
14496}
14497_LT_EOF
14498 ;;
14499 *)
14500 cat << \_LT_EOF >> "$cfgfile"
14501
14502# func_append var value
14503# Append VALUE to the end of shell variable VAR.
14504func_append ()
14505{
14506 eval "$1=\$$1\$2"
14507}
b214d478 14508
d7040cdb
SE
14509_LT_EOF
14510 ;;
14511 esac
14512
14513
14514 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14515 || (rm -f "$cfgfile"; exit 1)
14516
14517 mv -f "$cfgfile" "$ofile" ||
14518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14519 chmod +x "$ofile"
14520
6bf9431b 14521 ;;
81ecdfbb 14522 "default-1":C)
20e95c23
DJ
14523 for ac_file in $CONFIG_FILES; do
14524 # Support "outfile[:infile[:infile...]]"
14525 case "$ac_file" in
14526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14527 esac
14528 # PO directories have a Makefile.in generated from Makefile.in.in.
14529 case "$ac_file" in */Makefile.in)
14530 # Adjust a relative srcdir.
14531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14532 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14534 # In autoconf-2.13 it is called $ac_given_srcdir.
14535 # In autoconf-2.50 it is called $srcdir.
14536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14537 case "$ac_given_srcdir" in
14538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14539 /*) top_srcdir="$ac_given_srcdir" ;;
14540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14541 esac
14542 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14543 rm -f "$ac_dir/POTFILES"
14544 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14545 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14546 POMAKEFILEDEPS="POTFILES.in"
14547 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14548 # on $ac_dir but don't depend on user-specified configuration
14549 # parameters.
14550 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14551 # The LINGUAS file contains the set of available languages.
14552 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 14553 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
14554 fi
14555 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14556 # Hide the ALL_LINGUAS assigment from automake.
14557 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14558 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14559 else
37a42ee9 14560 # The set of available languages was given in configure.ac.
20e95c23
DJ
14561 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14562 fi
14563 case "$ac_given_srcdir" in
14564 .) srcdirpre= ;;
14565 *) srcdirpre='$(srcdir)/' ;;
14566 esac
14567 POFILES=
14568 GMOFILES=
14569 UPDATEPOFILES=
14570 DUMMYPOFILES=
14571 for lang in $ALL_LINGUAS; do
14572 POFILES="$POFILES $srcdirpre$lang.po"
14573 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14574 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14575 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14576 done
14577 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14578 # environment variable.
14579 INST_LINGUAS=
14580 if test -n "$ALL_LINGUAS"; then
14581 for presentlang in $ALL_LINGUAS; do
14582 useit=no
14583 if test "%UNSET%" != "$LINGUAS"; then
14584 desiredlanguages="$LINGUAS"
14585 else
14586 desiredlanguages="$ALL_LINGUAS"
14587 fi
14588 for desiredlang in $desiredlanguages; do
14589 # Use the presentlang catalog if desiredlang is
14590 # a. equal to presentlang, or
14591 # b. a variant of presentlang (because in this case,
14592 # presentlang can be used as a fallback for messages
14593 # which are not translated in the desiredlang catalog).
14594 case "$desiredlang" in
14595 "$presentlang"*) useit=yes;;
14596 esac
14597 done
14598 if test $useit = yes; then
14599 INST_LINGUAS="$INST_LINGUAS $presentlang"
14600 fi
14601 done
14602 fi
14603 CATALOGS=
14604 if test -n "$INST_LINGUAS"; then
14605 for lang in $INST_LINGUAS; do
14606 CATALOGS="$CATALOGS $lang.gmo"
14607 done
14608 fi
14609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14610 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"
14611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14612 if test -f "$f"; then
14613 case "$f" in
14614 *.orig | *.bak | *~) ;;
14615 *) cat "$f" >> "$ac_dir/Makefile" ;;
14616 esac
14617 fi
14618 done
14619 fi
14620 ;;
14621 esac
14622 done ;;
81ecdfbb 14623
6bf9431b 14624 esac
81ecdfbb 14625done # for ac_tag
6bf9431b 14626
6bf9431b 14627
81ecdfbb 14628as_fn_exit 0
6bf9431b 14629_ACEOF
6bf9431b
BE
14630ac_clean_files=$ac_clean_files_save
14631
81ecdfbb
RW
14632test $ac_write_fail = 0 ||
14633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14634
6bf9431b
BE
14635
14636# configure is writing to config.log, and then calls config.status.
14637# config.status does its own redirection, appending to config.log.
14638# Unfortunately, on DOS this fails, as config.log is still kept open
14639# by configure, so config.status won't be able to write to it; its
14640# output is simply discarded. So we exec the FD to /dev/null,
14641# effectively closing config.log, so it can be properly (re)opened and
14642# appended to by config.status. When coming back to configure, we
14643# need to make the FD available again.
14644if test "$no_create" != yes; then
14645 ac_cs_success=:
14646 ac_config_status_args=
14647 test "$silent" = yes &&
14648 ac_config_status_args="$ac_config_status_args --quiet"
14649 exec 5>/dev/null
14650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14651 exec 5>>config.log
14652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14653 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14654 $ac_cs_success || as_fn_exit $?
14655fi
14656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14659fi
252b5132 14660
This page took 1.779177 seconds and 4 git commands to generate.